Files
yakpanel-core/YakPanel/static/vite/js/echarts-DiepRh70.js
2026-04-07 02:04:22 +05:30

2 lines
1.9 MiB
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{c as PD}from"./prismjs-BZPoR7_J.js?v=1773287522785";var Ow=function(r,t){return Ow=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])},Ow(r,t)};function he(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ow(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var cY=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),dY=(function(){function r(){this.browser=new cY,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),vt=new dY;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(vt.wxa=!0,vt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?vt.worker=!0:!vt.hasGlobalWindow||"Deno"in window?(vt.node=!0,vt.svgSupported=!0):pY(navigator.userAgent,vt);function pY(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),i&&(e.ie=!0,e.version=i[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var LA=12,L4="sans-serif",oo=LA+"px "+L4,gY=20,mY=100,yY="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _Y(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),i=(r.charCodeAt(e)-gY)/mY;t[a]=i}return t}var xY=_Y(yY),mi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,a){if(!r){var i=mi.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==a&&(t=r.font=a||oo),r.measureText(e);e=e||"",a=a||oo;var n=/((?:\d+)?\.?\d*)px/.exec(a),o=n&&+n[1]||LA,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=xY[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a}};function I4(r){for(var t in mi)r[t]&&(mi[t]=r[t])}var P4=Ya(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),R4=Ya(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),au=Object.prototype.toString,gp=Array.prototype,SY=gp.forEach,bY=gp.filter,IA=gp.slice,wY=gp.map,RD=(function(){}).constructor,Tf=RD?RD.prototype:null,PA="__proto__",TY=2311;function RA(){return TY++}function mp(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Ye(r){if(r==null||typeof r!="object")return r;var t=r,e=au.call(r);if(e==="[object Array]"){if(!zl(r)){t=[];for(var a=0,i=r.length;a<i;a++)t[a]=Ye(r[a])}}else if(R4[e]){if(!zl(r)){var n=r.constructor;if(n.from)t=n.from(r);else{t=new n(r.length);for(var a=0,i=r.length;a<i;a++)t[a]=r[a]}}}else if(!P4[e]&&!zl(r)&&!Cs(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==PA&&(t[o]=Ye(r[o]))}return t}function tt(r,t,e){if(!$e(t)||!$e(r))return e?Ye(t):r;for(var a in t)if(t.hasOwnProperty(a)&&a!==PA){var i=r[a],n=t[a];$e(n)&&$e(i)&&!Se(n)&&!Se(i)&&!Cs(n)&&!Cs(i)&&!Nw(n)&&!Nw(i)&&!zl(n)&&!zl(i)?tt(i,n,e):(e||!(a in r))&&(r[a]=Ye(t[a]))}return r}function yp(r,t){for(var e=r[0],a=1,i=r.length;a<i;a++)e=tt(e,r[a],t);return e}function _e(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==PA&&(r[e]=t[e]);return r}function Ue(r,t,e){for(var a=ft(t),i=0,n=a.length;i<n;i++){var o=a[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var AY=mi.createCanvas;function nt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,a=r.length;e<a;e++)if(r[e]===t)return e}return-1}function EA(r,t){var e=r.prototype;function a(){}a.prototype=t.prototype,r.prototype=new a;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function nr(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),i=0;i<a.length;i++){var n=a[i];n!=="constructor"&&(e?t[n]!=null:r[n]==null)&&(r[n]=t[n])}else Ue(r,t,e)}function Br(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function $(r,t,e){if(r&&t)if(r.forEach&&r.forEach===SY)r.forEach(t,e);else if(r.length===+r.length)for(var a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r);else for(var n in r)r.hasOwnProperty(n)&&t.call(e,r[n],n,r)}function we(r,t,e){if(!r)return[];if(!t)return _p(r);if(r.map&&r.map===wY)return r.map(t,e);for(var a=[],i=0,n=r.length;i<n;i++)a.push(t.call(e,r[i],i,r));return a}function Ya(r,t,e,a){if(r&&t){for(var i=0,n=r.length;i<n;i++)e=t.call(a,e,r[i],i,r);return e}}function Ct(r,t,e){if(!r)return[];if(!t)return _p(r);if(r.filter&&r.filter===bY)return r.filter(t,e);for(var a=[],i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r)&&a.push(r[i]);return a}function E4(r,t,e){if(r&&t){for(var a=0,i=r.length;a<i;a++)if(t.call(e,r[a],a,r))return r[a]}}function ft(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function CY(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(IA.call(arguments)))}}var Ne=Tf&&He(Tf.bind)?Tf.call.bind(Tf.bind):CY;function et(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(IA.call(arguments)))}}function Se(r){return Array.isArray?Array.isArray(r):au.call(r)==="[object Array]"}function He(r){return typeof r=="function"}function Re(r){return typeof r=="string"}function md(r){return au.call(r)==="[object String]"}function bt(r){return typeof r=="number"}function $e(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Nw(r){return!!P4[au.call(r)]}function ua(r){return!!R4[au.call(r)]}function Cs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function zh(r){return r.colorStops!=null}function k4(r){return r.image!=null}function O4(r){return au.call(r)==="[object RegExp]"}function Ul(r){return r!==r}function wr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,a=r.length;e<a;e++)if(r[e]!=null)return r[e]}function Je(r,t){return r!=null?r:t}function ci(r,t,e){return r!=null?r:t!=null?t:e}function _p(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return IA.apply(r,t)}function xp(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Kr(r,t){if(!r)throw new Error(t)}function Ua(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var N4="__ec_primitive__";function sh(r){r[N4]=!0}function zl(r){return r[N4]}var MY=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return ft(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var a in e)e.hasOwnProperty(a)&&t(e[a],a)},r})(),z4=typeof Map=="function";function DY(){return z4?new Map:new MY}var B4=(function(){function r(t){var e=Se(t);this.data=DY();var a=this;t instanceof r?t.each(i):t&&$(t,i);function i(n,o){e?a.set(n,o):a.set(o,n)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(a,i){t.call(e,a,i)})},r.prototype.keys=function(){var t=this.data.keys();return z4?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Ge(r){return new B4(r)}function $l(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var i=r.length,a=0;a<t.length;a++)e[a+i]=t[a];return e}function Bh(r,t){var e;if(Object.create)e=Object.create(r);else{var a=function(){};a.prototype=r,e=new a}return t&&_e(e,t),e}function kA(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Be(r,t){return r.hasOwnProperty(t)}function ir(){}var Fv=180/Math.PI;const LY=Object.freeze(Object.defineProperty({__proto__:null,HashMap:B4,RADIAN_TO_DEGREE:Fv,assert:Kr,bind:Ne,clone:Ye,concatArray:$l,createCanvas:AY,createHashMap:Ge,createObject:Bh,curry:et,defaults:Ue,disableUserSelect:kA,each:$,eqNaN:Ul,extend:_e,filter:Ct,find:E4,guid:RA,hasOwn:Be,indexOf:nt,inherits:EA,isArray:Se,isArrayLike:Br,isBuiltInObject:Nw,isDom:Cs,isFunction:He,isGradientObject:zh,isImagePatternObject:k4,isNumber:bt,isObject:$e,isPrimitive:zl,isRegExp:O4,isString:Re,isStringSafe:md,isTypedArray:ua,keys:ft,logError:mp,map:we,merge:tt,mergeAll:yp,mixin:nr,noop:ir,normalizeCssArray:xp,reduce:Ya,retrieve:wr,retrieve2:Je,retrieve3:ci,setAsPrimitive:sh,slice:_p,trim:Ua},Symbol.toStringTag,{value:"Module"}));function fo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function $r(r,t){return r[0]=t[0],r[1]=t[1],r}function qi(r){return[r[0],r[1]]}function V4(r,t,e){return r[0]=t,r[1]=e,r}function zw(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function yd(r,t,e,a){return r[0]=t[0]+e[0]*a,r[1]=t[1]+e[1]*a,r}function $n(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function lh(r){return Math.sqrt(OA(r))}var IY=lh;function OA(r){return r[0]*r[0]+r[1]*r[1]}var PY=OA;function RY(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function EY(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function kY(r,t){return r[0]*t[0]+r[1]*t[1]}function Hv(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Os(r,t){var e=lh(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function _d(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var fn=_d;function G4(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Jn=G4;function OY(r,t){return r[0]=-t[0],r[1]=-t[1],r}function qv(r,t,e,a){return r[0]=t[0]+a*(e[0]-t[0]),r[1]=t[1]+a*(e[1]-t[1]),r}function Or(r,t,e){var a=t[0],i=t[1];return r[0]=e[0]*a+e[2]*i+e[4],r[1]=e[1]*a+e[3]*i+e[5],r}function cn(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function dn(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const NY=Object.freeze(Object.defineProperty({__proto__:null,add:zw,applyTransform:Or,clone:qi,copy:$r,create:fo,dist:fn,distSquare:Jn,distance:_d,distanceSquare:G4,div:EY,dot:kY,len:lh,lenSquare:OA,length:IY,lengthSquare:PY,lerp:qv,max:dn,min:cn,mul:RY,negate:OY,normalize:Os,scale:Hv,scaleAndAdd:yd,set:V4,sub:$n},Symbol.toStringTag,{value:"Module"}));var el=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),zY=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new el(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var a=t.offsetX,i=t.offsetY,n=a-this._x,o=i-this._y;this._x=a,this._y=i,e.drift(n,o,t),this.handler.dispatchToElement(new el(e,t),"drag",t.event);var s=this.handler.findHover(a,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new el(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new el(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new el(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new el(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Xa=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,a,i){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof e=="function"&&(i=a,a=e,e=null),!a||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),n[t]||(n[t]=[]);for(var s=0;s<n[t].length;s++)if(n[t][s].h===a)return this;var l={h:a,query:e,ctx:i||this,callAtLast:a.zrEventfulCallAtLast},u=n[t].length-1,v=n[t][u];return v&&v.callAtLast?n[t].splice(u,0,l):n[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(e){if(a[t]){for(var i=[],n=0,o=a[t].length;n<o;n++)a[t][n].h!==e&&i.push(a[t][n]);a[t]=i}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},r.prototype.trigger=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var i=this._$handlers[t],n=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(n&&n.filter&&u.query!=null&&!n.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var i=this._$handlers[t],n=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var v=i[u];if(!(n&&n.filter&&v.query!=null&&!n.filter(t,v.query)))switch(o){case 0:v.h.call(s);break;case 1:v.h.call(s,e[0]);break;case 2:v.h.call(s,e[0],e[1]);break;default:v.h.apply(s,e.slice(1,o-1));break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r})(),BY=Math.log(2);function Bw(r,t,e,a,i,n){var o=a+"-"+i,s=r.length;if(n.hasOwnProperty(o))return n[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/BY);return r[e][l]}for(var u=a|1<<e,v=e+1;a&1<<v;)v++;for(var h=0,f=0,c=0;f<s;f++){var d=1<<f;d&i||(h+=(c%2?-1:1)*r[e][f]*Bw(r,t-1,v,u,i|d,n),c++)}return n[o]=h,h}function ED(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],a={},i=Bw(e,8,0,0,0,a);if(i!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*Bw(e,7,o===0?1:0,1<<o,1<<s,a)/i*t[o];return function(l,u,v){var h=u*n[6]+v*n[7]+1;l[0]=(u*n[0]+v*n[1]+n[2])/h,l[1]=(u*n[3]+v*n[4]+n[5])/h}}}var kD="___zrEVENTSAVED",Lg=[];function VY(r,t,e,a,i){return Vw(Lg,t,a,i,!0)&&Vw(r,e,Lg[0],Lg[1])}function Vw(r,t,e,a,i){if(t.getBoundingClientRect&&vt.domSupported&&!F4(t)){var n=t[kD]||(t[kD]={}),o=GY(t,n),s=FY(o,n,i);if(s)return s(r,e,a),!0}return!1}function GY(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var a=["left","right"],i=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[u]+":0",a[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function FY(r,t,e){for(var a=e?"invTrans":"trans",i=t[a],n=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var v=r[u].getBoundingClientRect(),h=2*u,f=v.left,c=v.top;o.push(f,c),l=l&&n&&f===n[h]&&c===n[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[a]=e?ED(s,o):ED(o,s))}function F4(r){return r.nodeName.toUpperCase()==="CANVAS"}var HY=/([&<>"'])/g,qY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Zr(r){return r==null?"":(r+"").replace(HY,function(t,e){return qY[e]})}var WY=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ig=[],UY=vt.browser.firefox&&+vt.browser.version.split(".")[0]<39;function Gw(r,t,e,a){return e=e||{},a?OD(r,t,e):UY&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):OD(r,t,e),e}function OD(r,t,e){if(vt.domSupported&&r.getBoundingClientRect){var a=t.clientX,i=t.clientY;if(F4(r)){var n=r.getBoundingClientRect();e.zrX=a-n.left,e.zrY=i-n.top;return}else if(Vw(Ig,r,a,i)){e.zrX=Ig[0],e.zrY=Ig[1];return}}e.zrX=e.zrY=0}function NA(r){return r||window.event}function Ba(r,t,e){if(t=NA(t),t.zrX!=null)return t;var a=t.type,i=a&&a.indexOf("touch")>=0;if(i){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Gw(r,o,t,e)}else{Gw(r,t,t,e);var n=$Y(t);t.zrDelta=n?n/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&WY.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $Y(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var i=Math.abs(a!==0?a:e),n=a>0?-1:a<0?1:e>0?-1:1;return 3*i*n}function Fw(r,t,e,a){r.addEventListener(t,e,a)}function YY(r,t,e,a){r.removeEventListener(t,e,a)}var _n=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ND(r){return r.which===2||r.which===3}var ZY=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Gw(a,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(t){for(var e in Pg)if(Pg.hasOwnProperty(e)){var a=Pg[e](this._track,t);if(a)return a}},r})();function zD(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function XY(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Pg={pinch:function(r,t){var e=r.length;if(e){var a=(r[e-1]||{}).points,i=(r[e-2]||{}).points||a;if(i&&i.length>1&&a&&a.length>1){var n=zD(a)/zD(i);!isFinite(n)&&(n=1),t.pinchScale=n;var o=XY(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function xa(){return[1,0,0,1,0,0]}function Vh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Sp(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Wi(r,t,e){var a=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],n=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=i,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function yi(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function co(r,t,e,a){a===void 0&&(a=[0,0]);var i=t[0],n=t[2],o=t[4],s=t[1],l=t[3],u=t[5],v=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*v,r[1]=-i*v+s*h,r[2]=n*h+l*v,r[3]=-n*v+h*l,r[4]=h*(o-a[0])+v*(u-a[1])+a[0],r[5]=h*(u-a[1])-v*(o-a[0])+a[1],r}function bp(r,t,e){var a=e[0],i=e[1];return r[0]=t[0]*a,r[1]=t[1]*i,r[2]=t[2]*a,r[3]=t[3]*i,r[4]=t[4]*a,r[5]=t[5]*i,r}function Ns(r,t){var e=t[0],a=t[2],i=t[4],n=t[1],o=t[3],s=t[5],l=e*o-n*a;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*i)*l,r[5]=(n*i-e*s)*l,r):null}function H4(r){var t=xa();return Sp(t,r),t}const KY=Object.freeze(Object.defineProperty({__proto__:null,clone:H4,copy:Sp,create:xa,identity:Vh,invert:Ns,mul:Wi,rotate:co,scale:bp,translate:yi},Symbol.toStringTag,{value:"Module"}));var rt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,i){t.x=e.x+a.x*i,t.y=e.y+a.y*i},r.lerp=function(t,e,a,i){var n=1-i;t.x=n*e.x+i*a.x,t.y=n*e.y+i*a.y},r})(),Af=Math.min,Cf=Math.max,Co=new rt,Mo=new rt,Do=new rt,Lo=new rt,ku=new rt,Ou=new rt,at=(function(){function r(t,e,a,i){a<0&&(t=t+a,a=-a),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=a,this.height=i}return r.prototype.union=function(t){var e=Af(t.x,this.x),a=Af(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Cf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Cf(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,i=t.height/e.height,n=xa();return yi(n,n,[-e.x,-e.y]),bp(n,n,[a,i]),yi(n,n,[t.x,t.y]),n},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var a=this,i=a.x,n=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,u=t.x+t.width,v=t.y,h=t.y+t.height,f=!(n<l||u<i||s<v||h<o);if(e){var c=1/0,d=0,p=Math.abs(n-l),g=Math.abs(u-i),m=Math.abs(s-v),y=Math.abs(h-o),_=Math.min(p,g),x=Math.min(m,y);n<l||u<i?_>d&&(d=_,p<g?rt.set(Ou,-p,0):rt.set(Ou,g,0)):_<c&&(c=_,p<g?rt.set(ku,p,0):rt.set(ku,-g,0)),s<v||h<o?x>d&&(d=x,m<y?rt.set(Ou,0,-m):rt.set(Ou,0,y)):_<c&&(c=_,m<y?rt.set(ku,0,m):rt.set(ku,0,-y))}return e&&rt.copy(e,f?ku:Ou),f},r.prototype.contain=function(t,e){var a=this;return t>=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var i=a[0],n=a[3],o=a[4],s=a[5];t.x=e.x*i+o,t.y=e.y*n+s,t.width=e.width*i,t.height=e.height*n,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Co.x=Do.x=e.x,Co.y=Lo.y=e.y,Mo.x=Lo.x=e.x+e.width,Mo.y=Do.y=e.y+e.height,Co.transform(a),Lo.transform(a),Mo.transform(a),Do.transform(a),t.x=Af(Co.x,Mo.x,Do.x,Lo.x),t.y=Af(Co.y,Mo.y,Do.y,Lo.y);var l=Cf(Co.x,Mo.x,Do.x,Lo.x),u=Cf(Co.y,Mo.y,Do.y,Lo.y);t.width=l-t.x,t.height=u-t.y},r})(),q4="silent";function QY(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:jY}}function jY(){_n(this.event)}var JY=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Xa),Nu=(function(){function r(t,e){this.x=t,this.y=e}return r})(),eZ=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rg=new at(0,0,0,0),W4=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this)||this;return s._hovered=new Nu(0,0),s.storage=e,s.painter=a,s.painterRoot=n,s._pointerSize=o,i=i||new JY,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new zY(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&($(eZ,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,i=e.zrY,n=U4(this,a,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Nu(a,i):this.findHover(a,i),u=l.target,v=this.proxy;v.setCursor&&v.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Nu(0,0)},t.prototype.dispatch=function(e,a){var i=this[e];i&&i.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,i){e=e||{};var n=e.target;if(!(n&&n.silent)){for(var o="on"+a,s=QY(a,e,i);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(a,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,i){var n=this.storage.getDisplayList(),o=new Nu(e,a);if(BD(n,o,e,a,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,v=new at(e-u,a-u,l,l),h=n.length-1;h>=0;h--){var f=n[h];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Rg.copy(f.getBoundingRect()),f.transform&&Rg.applyTransform(f.transform),Rg.intersect(v)&&s.push(f))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var m=0;m<p;m+=d){var y=e+g*Math.cos(m),_=a+g*Math.sin(m);if(BD(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new ZY);var i=this._gestureMgr;a==="start"&&i.clear();var n=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&i.clear(),n){var o=n.type;e.gestureEvent=o;var s=new Nu;s.target=n.target,this.dispatchToElement(s,o,n.event)}},t})(Xa);$(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){W4.prototype[r]=function(t){var e=t.zrX,a=t.zrY,i=U4(this,e,a),n,o;if((r!=="mouseup"||!i)&&(n=this.findHover(e,a),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||fn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function tZ(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,i=void 0,n=!1;a;){if(a.ignoreClip&&(n=!0),!n){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(i=!0);var s=a.__hostTarget;a=s||a.parent}return i?q4:!0}return!1}function BD(r,t,e,a,i){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==i&&!o.ignore&&(s=tZ(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==q4)){t.target=o;break}}}function U4(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var $4=32,zu=7;function rZ(r){for(var t=0;r>=$4;)t|=r&1,r>>=1;return r+t}function VD(r,t,e,a){var i=t+1;if(i===e)return 1;if(a(r[i++],r[t])<0){for(;i<e&&a(r[i],r[i-1])<0;)i++;aZ(r,t,i)}else for(;i<e&&a(r[i],r[i-1])>=0;)i++;return i-t}function aZ(r,t,e){for(e--;t<e;){var a=r[t];r[t++]=r[e],r[e--]=a}}function GD(r,t,e,a,i){for(a===t&&a++;a<e;a++){for(var n=r[a],o=t,s=a,l;o<s;)l=o+s>>>1,i(n,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function Eg(r,t,e,a,i,n){var o=0,s=0,l=1;if(n(r,t[e+i])>0){for(s=a-i;l<s&&n(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&n(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var v=o+(l-o>>>1);n(r,t[e+v])>0?o=v+1:l=v}return l}function kg(r,t,e,a,i,n){var o=0,s=0,l=1;if(n(r,t[e+i])<0){for(s=i+1;l<s&&n(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=a-i;l<s&&n(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var v=o+(l-o>>>1);n(r,t[e+v])<0?l=v:o=v+1}return l}function iZ(r,t){var e=zu,a,i,n=0,o=[];a=[],i=[];function s(c,d){a[n]=c,i[n]=d,n+=1}function l(){for(;n>1;){var c=n-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;v(c)}}function u(){for(;n>1;){var c=n-2;c>0&&i[c-1]<i[c+1]&&c--,v(c)}}function v(c){var d=a[c],p=i[c],g=a[c+1],m=i[c+1];i[c]=p+m,c===n-3&&(a[c+1]=a[c+2],i[c+1]=i[c+2]),n--;var y=kg(r[g],r,d,p,0,t);d+=y,p-=y,p!==0&&(m=Eg(r[d+p-1],r,g,m,m-1,t),m!==0&&(p<=m?h(d,p,g,m):f(d,p,g,m)))}function h(c,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[c+m];var y=0,_=p,x=c;if(r[x++]=r[_++],--g===0){for(m=0;m<d;m++)r[x+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[x+m]=r[_+m];r[x+g]=o[y];return}for(var S=e,b,w,A;;){b=0,w=0,A=!1;do if(t(r[_],o[y])<0){if(r[x++]=r[_++],w++,b=0,--g===0){A=!0;break}}else if(r[x++]=o[y++],b++,w=0,--d===1){A=!0;break}while((b|w)<S);if(A)break;do{if(b=kg(r[_],o,y,d,0,t),b!==0){for(m=0;m<b;m++)r[x+m]=o[y+m];if(x+=b,y+=b,d-=b,d<=1){A=!0;break}}if(r[x++]=r[_++],--g===0){A=!0;break}if(w=Eg(o[y],r,_,g,0,t),w!==0){for(m=0;m<w;m++)r[x+m]=r[_+m];if(x+=w,_+=w,g-=w,g===0){A=!0;break}}if(r[x++]=o[y++],--d===1){A=!0;break}S--}while(b>=zu||w>=zu);if(A)break;S<0&&(S=0),S+=2}if(e=S,e<1&&(e=1),d===1){for(m=0;m<g;m++)r[x+m]=r[_+m];r[x+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[x+m]=o[y+m]}}function f(c,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=c+d-1,_=g-1,x=p+g-1,S=0,b=0;if(r[x--]=r[y--],--d===0){for(S=x-(g-1),m=0;m<g;m++)r[S+m]=o[m];return}if(g===1){for(x-=d,y-=d,b=x+1,S=y+1,m=d-1;m>=0;m--)r[b+m]=r[S+m];r[x]=o[_];return}for(var w=e;;){var A=0,T=0,C=!1;do if(t(o[_],r[y])<0){if(r[x--]=r[y--],A++,T=0,--d===0){C=!0;break}}else if(r[x--]=o[_--],T++,A=0,--g===1){C=!0;break}while((A|T)<w);if(C)break;do{if(A=d-kg(o[_],r,c,d,d-1,t),A!==0){for(x-=A,y-=A,d-=A,b=x+1,S=y+1,m=A-1;m>=0;m--)r[b+m]=r[S+m];if(d===0){C=!0;break}}if(r[x--]=o[_--],--g===1){C=!0;break}if(T=g-Eg(r[y],o,0,g,g-1,t),T!==0){for(x-=T,_-=T,g-=T,b=x+1,S=_+1,m=0;m<T;m++)r[b+m]=o[S+m];if(g<=1){C=!0;break}}if(r[x--]=r[y--],--d===0){C=!0;break}w--}while(A>=zu||T>=zu);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(x-=d,y-=d,b=x+1,S=y+1,m=d-1;m>=0;m--)r[b+m]=r[S+m];r[x]=o[_]}else{if(g===0)throw new Error;for(S=x-(g-1),m=0;m<g;m++)r[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Xc(r,t,e,a){e||(e=0),a||(a=r.length);var i=a-e;if(!(i<2)){var n=0;if(i<$4){n=VD(r,e,a,t),GD(r,e,a,e+n,t);return}var o=iZ(r,t),s=rZ(i);do{if(n=VD(r,e,a,t),n<s){var l=i;l>s&&(l=s),GD(r,e,e+l,e+n,t),n=l}o.pushRun(e,n),o.mergeRuns(),i-=n,e+=n}while(i!==0);o.forceMergeRuns()}}var ba=1,Dv=2,Dl=4,FD=!1;function Og(){FD||(FD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function HD(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var nZ=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=HD}return r.prototype.traverse=function(t,e){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(e),a},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,a=this._displayList,i=0,n=e.length;i<n;i++)this._updateAndAddDisplayable(e[i],null,t);a.length=this._displayListLen,Xc(a,HD)},r.prototype._updateAndAddDisplayable=function(t,e,a){if(!(t.ignore&&!a)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var n=i,o=t;n;)n.parent=o,n.updateTransform(),e.push(n),o=n,n=n.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=ba),this._updateAndAddDisplayable(u,e,a)}t.__dirty=0}else{var v=t;e&&e.length?v.__clipPaths=e:v.__clipPaths&&v.__clipPaths.length>0&&(v.__clipPaths=[]),isNaN(v.z)&&(Og(),v.z=0),isNaN(v.z2)&&(Og(),v.z2=0),isNaN(v.zlevel)&&(Og(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,a);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,e,a);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,a)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,a=t.length;e<a;e++)this.delRoot(t[e]);return}var i=nt(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),xd;xd=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Wv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Wv.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Wv.bounceIn(r*2)*.5:Wv.bounceOut(r*2-1)*.5+.5}},Mf=Math.pow,eo=Math.sqrt,Sd=1e-8,Y4=1e-4,qD=eo(3),Df=1/3,Bi=fo(),Ha=fo(),Bl=fo();function Yn(r){return r>-Sd&&r<Sd}function Z4(r){return r>Sd||r<-Sd}function br(r,t,e,a,i){var n=1-i;return n*n*(n*r+3*i*t)+i*i*(i*a+3*n*e)}function WD(r,t,e,a,i){var n=1-i;return 3*(((t-r)*n+2*(e-t)*i)*n+(a-e)*i*i)}function bd(r,t,e,a,i,n){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,v=s*s-3*o*l,h=s*l-9*o*u,f=l*l-3*s*u,c=0;if(Yn(v)&&Yn(h))if(Yn(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[c++]=d)}else{var p=h*h-4*v*f;if(Yn(p)){var g=h/v,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m)}else if(p>0){var y=eo(p),_=v*s+1.5*o*(-h+y),x=v*s+1.5*o*(-h-y);_<0?_=-Mf(-_,Df):_=Mf(_,Df),x<0?x=-Mf(-x,Df):x=Mf(x,Df);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(n[c++]=d)}else{var S=(2*v*s-3*o*h)/(2*eo(v*v*v)),b=Math.acos(S)/3,w=eo(v),A=Math.cos(b),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+qD*Math.sin(b)))/(3*o),T=(-s+w*(A-qD*Math.sin(b)))/(3*o);d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m),T>=0&&T<=1&&(n[c++]=T)}}return c}function X4(r,t,e,a,i){var n=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Yn(o)){if(Z4(n)){var u=-s/n;u>=0&&u<=1&&(i[l++]=u)}}else{var v=n*n-4*o*s;if(Yn(v))i[0]=-n/(2*o);else if(v>0){var h=eo(v),u=(-n+h)/(2*o),f=(-n-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function so(r,t,e,a,i,n){var o=(t-r)*i+r,s=(e-t)*i+t,l=(a-e)*i+e,u=(s-o)*i+o,v=(l-s)*i+s,h=(v-u)*i+u;n[0]=r,n[1]=o,n[2]=u,n[3]=h,n[4]=h,n[5]=v,n[6]=l,n[7]=a}function K4(r,t,e,a,i,n,o,s,l,u,v){var h,f=.005,c=1/0,d,p,g,m;Bi[0]=l,Bi[1]=u;for(var y=0;y<1;y+=.05)Ha[0]=br(r,e,i,o,y),Ha[1]=br(t,a,n,s,y),g=Jn(Bi,Ha),g<c&&(h=y,c=g);c=1/0;for(var _=0;_<32&&!(f<Y4);_++)d=h-f,p=h+f,Ha[0]=br(r,e,i,o,d),Ha[1]=br(t,a,n,s,d),g=Jn(Ha,Bi),d>=0&&g<c?(h=d,c=g):(Bl[0]=br(r,e,i,o,p),Bl[1]=br(t,a,n,s,p),m=Jn(Bl,Bi),p<=1&&m<c?(h=p,c=m):f*=.5);return v&&(v[0]=br(r,e,i,o,h),v[1]=br(t,a,n,s,h)),eo(c)}function oZ(r,t,e,a,i,n,o,s,l){for(var u=r,v=t,h=0,f=1/l,c=1;c<=l;c++){var d=c*f,p=br(r,e,i,o,d),g=br(t,a,n,s,d),m=p-u,y=g-v;h+=Math.sqrt(m*m+y*y),u=p,v=g}return h}function kr(r,t,e,a){var i=1-a;return i*(i*r+2*a*t)+a*a*e}function Hw(r,t,e,a){return 2*((1-a)*(t-r)+a*(e-t))}function sZ(r,t,e,a,i){var n=r-2*t+e,o=2*(t-r),s=r-a,l=0;if(Yn(n)){if(Z4(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var v=o*o-4*n*s;if(Yn(v)){var u=-o/(2*n);u>=0&&u<=1&&(i[l++]=u)}else if(v>0){var h=eo(v),u=(-o+h)/(2*n),f=(-o-h)/(2*n);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Q4(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function uh(r,t,e,a,i){var n=(t-r)*a+r,o=(e-t)*a+t,s=(o-n)*a+n;i[0]=r,i[1]=n,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function j4(r,t,e,a,i,n,o,s,l){var u,v=.005,h=1/0;Bi[0]=o,Bi[1]=s;for(var f=0;f<1;f+=.05){Ha[0]=kr(r,e,i,f),Ha[1]=kr(t,a,n,f);var c=Jn(Bi,Ha);c<h&&(u=f,h=c)}h=1/0;for(var d=0;d<32&&!(v<Y4);d++){var p=u-v,g=u+v;Ha[0]=kr(r,e,i,p),Ha[1]=kr(t,a,n,p);var c=Jn(Ha,Bi);if(p>=0&&c<h)u=p,h=c;else{Bl[0]=kr(r,e,i,g),Bl[1]=kr(t,a,n,g);var m=Jn(Bl,Bi);g<=1&&m<h?(u=g,h=m):v*=.5}}return l&&(l[0]=kr(r,e,i,u),l[1]=kr(t,a,n,u)),eo(h)}function lZ(r,t,e,a,i,n,o){for(var s=r,l=t,u=0,v=1/o,h=1;h<=o;h++){var f=h*v,c=kr(r,e,i,f),d=kr(t,a,n,f),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var uZ=/cubic-bezier\(([0-9,\.e ]+)\)/;function zA(r){var t=r&&uZ.exec(r);if(t){var e=t[1].split(","),a=+Ua(e[0]),i=+Ua(e[1]),n=+Ua(e[2]),o=+Ua(e[3]);if(isNaN(a+i+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:bd(0,a,n,1,l,s)&&br(0,i,o,1,s[0])}}}var vZ=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ir,this.ondestroy=t.ondestroy||ir,this.onrestart=t.onrestart||ir,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,i=t-this._startTime-this._pausedTime,n=i/a;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=He(t)?t:Wv[t]||zA(t)},r})(),J4=(function(){function r(t){this.value=t}return r})(),hZ=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new J4(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Gh=(function(){function r(t){this._list=new hZ,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,i=this._map,n=null;if(i[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new J4(e),s.key=t,a.insertEntry(s),i[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),UD={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function di(r){return r=Math.round(r),r<0?0:r>255?255:r}function fZ(r){return r=Math.round(r),r<0?0:r>360?360:r}function vh(r){return r<0?0:r>1?1:r}function Ng(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?di(parseFloat(t)/100*255):di(parseInt(t,10))}function _s(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?vh(parseFloat(t)/100):vh(parseFloat(t))}function zg(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Zn(r,t,e){return r+(t-r)*e}function Na(r,t,e,a,i){return r[0]=t,r[1]=e,r[2]=a,r[3]=i,r}function qw(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var eq=new Gh(20),Lf=null;function tl(r,t){Lf&&qw(Lf,t),Lf=eq.put(r,Lf||t.slice())}function sa(r,t){if(r){t=t||[];var e=eq.get(r);if(e)return qw(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in UD)return qw(t,UD[a]),tl(r,t),t;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){Na(t,0,0,0,1);return}return Na(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),tl(r,t),t}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){Na(t,0,0,0,1);return}return Na(t,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),tl(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),v=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Na(t,+u[0],+u[1],+u[2],1):Na(t,0,0,0,1);v=_s(u.pop());case"rgb":if(u.length>=3)return Na(t,Ng(u[0]),Ng(u[1]),Ng(u[2]),u.length===3?v:_s(u[3])),tl(r,t),t;Na(t,0,0,0,1);return;case"hsla":if(u.length!==4){Na(t,0,0,0,1);return}return u[3]=_s(u[3]),Ww(u,t),tl(r,t),t;case"hsl":if(u.length!==3){Na(t,0,0,0,1);return}return Ww(u,t),tl(r,t),t;default:return}}Na(t,0,0,0,1)}}function Ww(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=_s(r[1]),i=_s(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return t=t||[],Na(t,di(zg(o,n,e+1/3)*255),di(zg(o,n,e)*255),di(zg(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function cZ(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,i=Math.min(t,e,a),n=Math.max(t,e,a),o=n-i,s=(n+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+i):u=o/(2-n-i);var v=((n-t)/6+o/2)/o,h=((n-e)/6+o/2)/o,f=((n-a)/6+o/2)/o;t===n?l=f-h:e===n?l=1/3+v-f:a===n&&(l=2/3+h-v),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function wd(r,t){var e=sa(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return pi(e,e.length===4?"rgba":"rgb")}}function dZ(r){var t=sa(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Uv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),i=Math.floor(a),n=Math.ceil(a),o=t[i],s=t[n],l=a-i;return e[0]=di(Zn(o[0],s[0],l)),e[1]=di(Zn(o[1],s[1],l)),e[2]=di(Zn(o[2],s[2],l)),e[3]=vh(Zn(o[3],s[3],l)),e}}var pZ=Uv;function BA(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),i=Math.floor(a),n=Math.ceil(a),o=sa(t[i]),s=sa(t[n]),l=a-i,u=pi([di(Zn(o[0],s[0],l)),di(Zn(o[1],s[1],l)),di(Zn(o[2],s[2],l)),vh(Zn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:n,value:a}:u}}var gZ=BA;function Vl(r,t,e,a){var i=sa(r);if(r)return i=cZ(i),t!=null&&(i[0]=fZ(t)),e!=null&&(i[1]=_s(e)),a!=null&&(i[2]=_s(a)),pi(Ww(i),"rgba")}function hh(r,t){var e=sa(r);if(e&&t!=null)return e[3]=vh(t),pi(e,"rgba")}function pi(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function fh(r,t){var e=sa(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function mZ(){return pi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var $D=new Gh(100);function Td(r){if(Re(r)){var t=$D.get(r);return t||(t=wd(r,-.1),$D.put(r,t)),t}else if(zh(r)){var e=_e({},r);return e.colorStops=we(r.colorStops,function(a){return{offset:a.offset,color:wd(a.color,-.1)}}),e}return r}const yZ=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Uv,fastMapToColor:pZ,lerp:BA,lift:wd,liftColor:Td,lum:fh,mapToColor:gZ,modifyAlpha:hh,modifyHSL:Vl,parse:sa,random:mZ,stringify:pi,toHex:dZ},Symbol.toStringTag,{value:"Module"}));var Ad=Math.round;function ch(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=sa(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var YD=1e-4;function Xn(r){return r<YD&&r>-YD}function If(r){return Ad(r*1e3)/1e3}function Uw(r){return Ad(r*1e4)/1e4}function _Z(r){return"matrix("+If(r[0])+","+If(r[1])+","+If(r[2])+","+If(r[3])+","+Uw(r[4])+","+Uw(r[5])+")"}var xZ={left:"start",right:"end",center:"middle",middle:"middle"};function SZ(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function bZ(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function wZ(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function tq(r){return r&&!!r.image}function TZ(r){return r&&!!r.svgElement}function VA(r){return tq(r)||TZ(r)}function rq(r){return r.type==="linear"}function aq(r){return r.type==="radial"}function iq(r){return r&&(r.type==="linear"||r.type==="radial")}function wp(r){return"url(#"+r+")"}function nq(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function oq(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*Fv,i=Je(r.scaleX,1),n=Je(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(i!==1||n!==1)&&l.push("scale("+i+","+n+")"),(o||s)&&l.push("skew("+Ad(o*Fv)+"deg, "+Ad(s*Fv)+"deg)"),l.join(" ")}var AZ=(function(){return vt.hasGlobalWindow&&He(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),$w=Array.prototype.slice;function un(r,t,e){return(t-r)*e+r}function Bg(r,t,e,a){for(var i=t.length,n=0;n<i;n++)r[n]=un(t[n],e[n],a);return r}function CZ(r,t,e,a){for(var i=t.length,n=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=un(t[o][s],e[o][s],a)}return r}function Pf(r,t,e,a){for(var i=t.length,n=0;n<i;n++)r[n]=t[n]+e[n]*a;return r}function ZD(r,t,e,a){for(var i=t.length,n=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function MZ(r,t){for(var e=r.length,a=t.length,i=e>a?t:r,n=Math.min(e,a),o=i[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(e,a);s++)i.push({offset:o.offset,color:o.color.slice()})}function DZ(r,t,e){var a=r,i=t;if(!(!a.push||!i.push)){var n=a.length,o=i.length;if(n!==o){var s=n>o;if(s)a.length=o;else for(var l=n;l<o;l++)a.push(e===1?i[l]:$w.call(i[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)isNaN(a[l])&&(a[l]=i[l]);else for(var v=0;v<u;v++)isNaN(a[l][v])&&(a[l][v]=i[l][v])}}function $v(r){if(Br(r)){var t=r.length;if(Br(r[0])){for(var e=[],a=0;a<t;a++)e.push($w.call(r[a]));return e}return $w.call(r)}return r}function Kc(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function LZ(r){return Br(r&&r[0])?2:1}var Rf=0,Qc=1,sq=2,Lv=3,Yw=4,Zw=5,XD=6;function KD(r){return r===Yw||r===Zw}function Ef(r){return r===Qc||r===sq}var Bu=[0,0,0,0],IZ=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,s=XD,l=e;if(Br(e)){var u=LZ(e);s=u,(u===1&&!bt(e[0])||u===2&&!bt(e[0][0]))&&(o=!0)}else if(bt(e)&&!Ul(e))s=Rf;else if(Re(e))if(!isNaN(+e))s=Rf;else{var v=sa(e);v&&(l=v,s=Lv)}else if(zh(e)){var h=_e({},l);h.colorStops=we(e.colorStops,function(c){return{offset:c.offset,color:sa(c.color)}}),rq(e)?s=Yw:aq(e)&&(s=Zw),l=h}n===0?this.valType=s:(s!==this.valType||s===XD)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:e,percent:0};return a&&(f.easing=a,f.easingFunc=He(a)?a:Wv[a]||zA(a)),i.push(f),f},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var i=this.valType,n=a.length,o=a[n-1],s=this.discrete,l=Ef(i),u=KD(i),v=0;v<n;v++){var h=a[v],f=h.value,c=o.value;h.percent=h.time/t,s||(l&&v!==n-1?DZ(f,c,i):u&&MZ(f.colorStops,c.colorStops))}if(!s&&i!==Zw&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=a[0].value,v=0;v<n;v++)i===Rf?a[v].additiveValue=a[v].value-d:i===Lv?a[v].additiveValue=Pf([],a[v].value,d,-1):Ef(i)&&(a[v].additiveValue=i===Qc?Pf([],a[v].value,d,-1):ZD([],a[v].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,i=a?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Lv,v,h=this._lastFr,f=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)v=0;else if(e<this._lastFrP){var p=f(h+1,s-1);for(v=p;v>=0&&!(o[v].percent<=e);v--);v=f(v,s-2)}else{for(v=h;v<s&&!(o[v].percent>e);v++);v=f(v-1,s-2)}d=o[v+1],c=o[v]}if(c&&d){this._lastFr=v,this._lastFrP=e;var g=d.percent-c.percent,m=g===0?1:f((e-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?Bu:t[l];if((Ef(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(Ef(n))n===Qc?Bg(y,c[i],d[i],m):CZ(y,c[i],d[i],m);else if(KD(n)){var _=c[i],x=d[i],S=n===Yw;t[l]={type:S?"linear":"radial",x:un(_.x,x.x,m),y:un(_.y,x.y,m),colorStops:we(_.colorStops,function(w,A){var T=x.colorStops[A];return{offset:un(w.offset,T.offset,m),color:Kc(Bg([],w.color,T.color,m))}}),global:x.global},S?(t[l].x2=un(_.x2,x.x2,m),t[l].y2=un(_.y2,x.y2,m)):t[l].r=un(_.r,x.r,m)}else if(u)Bg(y,c[i],d[i],m),a||(t[l]=Kc(y));else{var b=un(c[i],d[i],m);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,i=this._additiveValue;e===Rf?t[a]=t[a]+i:e===Lv?(sa(t[a],Bu),Pf(Bu,Bu,i,1),t[a]=Kc(Bu)):e===Qc?Pf(t[a],t[a],i,1):e===sq&&ZD(t[a],t[a],i,1)},r})(),GA=(function(){function r(t,e,a,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){mp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,ft(e),a)},r.prototype.whenWithKeys=function(t,e,a,i){for(var n=this._tracks,o=0;o<a.length;o++){var s=a[o],l=n[s];if(!l){l=n[s]=new IZ(s);var u=void 0,v=this._getAdditiveTrack(s);if(v){var h=v.keyframes,f=h[h.length-1];u=f&&f.value,v.valType===Lv&&u&&(u=Kc(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,$v(u),i),this._trackKeys.push(s)}l.addKeyframe(t,$v(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a<e;a++)t[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var i=0;i<a.length;i++){var n=a[i].getTrack(t);n&&(e=n)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,a=[],i=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,v=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[v-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var f=new vZ({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(e._target,c);var m=e._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return we(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,i=this._trackKeys,n=0;n<t.length;n++){var o=a[t[n]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<i.length;n++)if(!a[i[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var n=e[i],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[n]=$v(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||ft(t);for(var a=0;a<e.length;a++){var i=e[a],n=this._tracks[i];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,t[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})();function El(){return new Date().getTime()}var PZ=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,i=e.next;a?a.next=i:this._head=i,i?i.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=El()-this._pausedTime,i=a-this._time,n=this._head;n;){var o=n.next,s=n.step(a,i);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=a,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(xd(a),!e._paused&&e.update())}xd(a)},t.prototype.start=function(){this._running||(this._time=El(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=El(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=El()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var i=new GA(e,a.loop);return this.addAnimator(i),i},t})(Xa),RZ=300,Vg=vt.domSupported,Gg=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=we(r,function(i){var n=i.replace("mouse","pointer");return e.hasOwnProperty(n)?n:i});return{mouse:r,touch:t,pointer:a}})(),QD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jD=!1;function Xw(r){var t=r.pointerType;return t==="pen"||t==="touch"}function EZ(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Fg(r){r&&(r.zrByTouch=!0)}function kZ(r,t){return Ba(r.dom,new OZ(r,t),!0)}function lq(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var OZ=(function(){function r(t,e){this.stopPropagation=ir,this.stopImmediatePropagation=ir,this.preventDefault=ir,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),li={mousedown:function(r){r=Ba(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ba(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ba(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ba(this.dom,r);var t=r.toElement||r.relatedTarget;lq(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){jD=!0,r=Ba(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){jD||(r=Ba(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ba(this.dom,r),Fg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),li.mousemove.call(this,r),li.mousedown.call(this,r)},touchmove:function(r){r=Ba(this.dom,r),Fg(r),this.handler.processGesture(r,"change"),li.mousemove.call(this,r)},touchend:function(r){r=Ba(this.dom,r),Fg(r),this.handler.processGesture(r,"end"),li.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<RZ&&li.click.call(this,r)},pointerdown:function(r){li.mousedown.call(this,r)},pointermove:function(r){Xw(r)||li.mousemove.call(this,r)},pointerup:function(r){li.mouseup.call(this,r)},pointerout:function(r){Xw(r)||li.mouseout.call(this,r)}};$(["click","dblclick","contextmenu"],function(r){li[r]=function(t){t=Ba(this.dom,t),this.trigger(r,t)}});var Kw={pointermove:function(r){Xw(r)||Kw.mousemove.call(this,r)},pointerup:function(r){Kw.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function NZ(r,t){var e=t.domHandlers;vt.pointerEventsSupported?$(Gg.pointer,function(a){jc(t,a,function(i){e[a].call(r,i)})}):(vt.touchEventsSupported&&$(Gg.touch,function(a){jc(t,a,function(i){e[a].call(r,i),EZ(t)})}),$(Gg.mouse,function(a){jc(t,a,function(i){i=NA(i),t.touching||e[a].call(r,i)})}))}function zZ(r,t){vt.pointerEventsSupported?$(QD.pointer,e):vt.touchEventsSupported||$(QD.mouse,e);function e(a){function i(n){n=NA(n),lq(r,n.target)||(n=kZ(r,n),t.domHandlers[a].call(r,n))}jc(t,a,i,{capture:!0})}}function jc(r,t,e,a){r.mounted[t]=e,r.listenerOpts[t]=a,Fw(r.domTarget,t,e,a)}function Hg(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&YY(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var JD=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),BZ=(function(r){he(t,r);function t(e,a){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=a,i._localHandlerScope=new JD(e,li),Vg&&(i._globalHandlerScope=new JD(document,Kw)),NZ(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Hg(this._localHandlerScope),Vg&&Hg(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Vg&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var a=this._globalHandlerScope;e?zZ(this,a):Hg(a)}},t})(Xa),uq=1;vt.hasGlobalWindow&&(uq=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Cd=uq,Qw=.4,jw="#333",Jw="#ccc",VZ="#eee",eL=Vh,tL=5e-5;function Io(r){return r>tL||r<-tL}var Po=[],rl=[],qg=xa(),Wg=Math.abs,pn=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Io(this.rotation)||Io(this.x)||Io(this.y)||Io(this.scaleX-1)||Io(this.scaleY-1)||Io(this.skewX)||Io(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(eL(a),this.invTransform=null);return}a=a||xa(),e?this.getLocalTransform(a):eL(a),t&&(e?Wi(a,t,a):Sp(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Po);var a=Po[0]<0?-1:1,i=Po[1]<0?-1:1,n=((Po[0]-a)*e+a)/Po[0]||0,o=((Po[1]-i)*e+i)/Po[1]||0;t[0]*=n,t[1]*=n,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||xa(),Ns(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),n=Math.PI/2+i-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||xa(),Wi(rl,t.invTransform,e),e=rl);var a=this.originX,i=this.originY;(a||i)&&(qg[4]=a,qg[5]=i,Wi(rl,e,qg),rl[4]-=a,rl[5]-=i,e=rl),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],i=this.invTransform;return i&&Or(a,a,i),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],i=this.transform;return i&&Or(a,a,i),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Wg(t[0]-1)>1e-10&&Wg(t[3]-1)>1e-10?Math.sqrt(Wg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){vq(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,i=t.originY||0,n=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,v=t.x,h=t.y,f=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(a||i||s||l){var d=a+s,p=i+l;e[4]=-d*n-f*p*o,e[5]=-p*o-c*d*n}else e[4]=e[5]=0;return e[0]=n,e[3]=o,e[1]=c*n,e[2]=f*o,u&&co(e,e,u),e[4]+=a+v,e[5]+=i+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),$i=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function vq(r,t){for(var e=0;e<$i.length;e++){var a=$i[e];r[a]=t[a]}}var rL={};function Ca(r,t){t=t||oo;var e=rL[t];e||(e=rL[t]=new Gh(500));var a=e.get(r);return a==null&&(a=mi.measureText(r,t).width,e.put(r,a)),a}function aL(r,t,e,a){var i=Ca(r,t),n=Tp(t),o=Iv(0,i,e),s=Ll(0,n,a),l=new at(o,s,i,n);return l}function Fh(r,t,e,a){var i=((r||"")+"").split("\n"),n=i.length;if(n===1)return aL(i[0],t,e,a);for(var o=new at(0,0,0,0),s=0;s<i.length;s++){var l=aL(i[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function Iv(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ll(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Tp(r){return Ca("国",r)}function _i(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Md(r,t,e){var a=t.position||"inside",i=t.distance!=null?t.distance:5,n=e.height,o=e.width,s=n/2,l=e.x,u=e.y,v="left",h="top";if(a instanceof Array)l+=_i(a[0],e.width),u+=_i(a[1],e.height),v=null,h=null;else switch(a){case"left":l-=i,u+=s,v="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,v="center",h="bottom";break;case"bottom":l+=o/2,u+=n+i,v="center";break;case"inside":l+=o/2,u+=s,v="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,v="right",h="middle";break;case"insideTop":l+=o/2,u+=i,v="center";break;case"insideBottom":l+=o/2,u+=n-i,v="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,v="right";break;case"insideBottomLeft":l+=i,u+=n-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=n-i,v="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=v,r.verticalAlign=h,r}var Ug="__zr_normal__",$g=$i.concat(["ignore"]),GZ=Ya($i,function(r,t){return r[t]=!0,r},{ignore:!1}),al={},FZ=new at(0,0,0,0),Ap=(function(){function r(t){this.id=RA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,i=a.local,n=e.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=i?this:null;var u=!1;if(n.copyTransform(e),a.position!=null){var v=FZ;a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(al,a,v):Md(al,a,v),n.x=al.x,n.y=al.y,o=al.align,s=al.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var f=void 0,c=void 0;h==="center"?(f=v.width*.5,c=v.height*.5):(f=_i(h[0],v.width),c=_i(h[1],v.height)),u=!0,n.originX=-n.x+f+(i?0:v.x),n.originY=-n.y+c+(i?0:v.y)}}a.rotation!=null&&(n.rotation=a.rotation);var d=a.offset;d&&(n.x+=d[0],n.y+=d[1],u||(n.originX=-d[0],n.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=a.insideFill,y=a.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=a.outsideFill,y=a.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=ba,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jw:jw},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&sa(e);a||(a=[255,255,255,1]);for(var i=a[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*i+(n?0:255)*(1-i);return a[3]=1,pi(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},_e(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if($e(t))for(var a=t,i=ft(a),n=0;n<i.length;n++){var o=i[n];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,a=0;a<this.animators.length;a++){var i=this.animators[a],n=i.__fromStateTransition;if(!(i.getLoop()||n&&n!==Ug)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,$g)},r.prototype._savePrimaryToNormal=function(t,e,a){for(var i=0;i<a.length;i++){var n=a[i];t[n]!=null&&!(n in e)&&(e[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ug,!1,t)},r.prototype.useState=function(t,e,a,i){var n=t===Ug,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(nt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!n){mp("State "+t+" not exists.");return}n||this.saveCurrentToNormalState(u);var v=!!(u&&u.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,f=this._textGuide;return h&&h.useState(t,e,a,v),f&&f.useState(t,e,a,v),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ba),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var i=[],n=this.currentStates,o=t.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(t[l]!==n[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],v=void 0;this.stateProxy&&(v=this.stateProxy(u,t)),v||(v=this.states[u]),v&&i.push(v)}var h=i[o-1],f=!!(h&&h.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,f),g&&g.useStates(t,e,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ba)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=nt(this.currentStates,t);if(e>=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var i=this.currentStates.slice(),n=nt(i,t),o=nt(i,e)>=0;n>=0?o?i.splice(n,1):i[n]=e:a&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,i=0;i<t.length;i++){var n=t[i];_e(e,n),n.textConfig&&(a=a||{},_e(a,n.textConfig))}return a&&(e.textConfig=a),e},r.prototype._applyStateObj=function(t,e,a,i,n,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=_e({},i?this.textConfig:a.textConfig),_e(this.textConfig,e.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,v=0;v<$g.length;v++){var h=$g[v],f=n&&GZ[h];e&&e[h]!=null?f?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&a[h]!=null&&(f?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!n)for(var v=0;v<this.animators.length;v++){var c=this.animators[v],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||a)[d]:e||a)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new pn,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),_e(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ba;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,a=this._textGuide;e&&(e.__inHover=t),a&&(a.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.addAnimator(e[a]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.removeAnimator(e[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,a){var i=t?this[t]:this,n=new GA(i,e,a);return t&&(n.targetName=t),this.addAnimator(n,t),n},r.prototype.addAnimator=function(t,e){var a=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var n=i.animators,o=nt(n,t);o>=0&&n.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,i=a.length,n=[],o=0;o<i;o++){var s=a[o];!t||t===s.scope?s.stop(e):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(t,e,a){Yg(this,t,e,a)},r.prototype.animateFrom=function(t,e,a){Yg(this,t,e,a,!0)},r.prototype._transitionState=function(t,e,a,i){for(var n=Yg(this,e,a,i),o=0;o<n.length;o++)n[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ba;function e(a,i,n,o){Object.defineProperty(t,a,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[n]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[n]},set:function(v){l[n]=v}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(v){l[o]=v}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();nr(Ap,Xa);nr(Ap,pn);function Yg(r,t,e,a,i){e=e||{};var n=[];hq(r,"",r,t,e,a,n,i);var o=n.length,s=!1,l=e.done,u=e.aborted,v=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&e.during&&n[0].during(function(d,p){e.during(p)});for(var f=0;f<n.length;f++){var c=n[f];v&&c.done(v),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return n}function Zg(r,t,e){for(var a=0;a<e;a++)r[a]=t[a]}function HZ(r){return Br(r[0])}function qZ(r,t,e){if(Br(t[e]))if(Br(r[e])||(r[e]=[]),ua(t[e])){var a=t[e].length;r[e].length!==a&&(r[e]=new t[e].constructor(a),Zg(r[e],t[e],a))}else{var i=t[e],n=r[e],o=i.length;if(HZ(i))for(var s=i[0].length,l=0;l<o;l++)n[l]?Zg(n[l],i[l],s):n[l]=Array.prototype.slice.call(i[l]);else Zg(n,i,o);n.length=i.length}else r[e]=t[e]}function WZ(r,t){return r===t||Br(r)&&Br(t)&&UZ(r,t)}function UZ(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++)if(r[a]!==t[a])return!1;return!0}function hq(r,t,e,a,i,n,o,s){for(var l=ft(a),u=i.duration,v=i.delay,h=i.additive,f=i.setToFinal,c=!$e(n),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=a[m];if(y!=null&&e[m]!=null&&(c||n[m]))if($e(y)&&!Br(y)&&!zh(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}hq(r,m,e[m],y,i,n&&n[m],o,s)}else p.push(m);else s||(e[m]=y,r.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!h&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===t){var b=S.stopTracks(p);if(b){var w=nt(d,S);d.splice(w,1)}}}if(i.force||(p=Ct(p,function(M){return!WZ(a[M],e[M])}),_=p.length),_>0||i.force&&!o.length){var A=void 0,T=void 0,C=void 0;if(s){T={},f&&(A={});for(var x=0;x<_;x++){var m=p[x];T[m]=e[m],f?A[m]=a[m]:e[m]=a[m]}}else if(f){C={};for(var x=0;x<_;x++){var m=p[x];C[m]=$v(e[m]),qZ(e,a,m)}}var S=new GA(e,!1,!1,h?Ct(d,function(L){return L.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),f&&A&&S.whenWithKeys(0,A,p),C&&S.whenWithKeys(0,C,p),S.whenWithKeys(u==null?500:u,s?T:a,p).delay(v||0),r.addAnimator(S,t),o.push(S)}}var Ze=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,i=0;i<a.length;i++)if(a[i].name===e)return a[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,a){if(e&&e!==this&&e.parent!==this&&a&&a.parent===this){var i=this._children,n=i.indexOf(a);n>=0&&(i.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var i=nt(this._children,e);return i>=0&&this.replaceAt(a,i),this},t.prototype.replaceAt=function(e,a){var i=this._children,n=i[a];if(e&&e!==this&&e.parent!==this&&e!==n){i[a]=e,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,i=this._children,n=nt(i,e);return n<0?this:(i.splice(n,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,i=0;i<e.length;i++){var n=e[i];a&&n.removeSelfFromZr(a),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,a){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];e.call(a,o,n)}return this},t.prototype.traverse=function(e,a){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=e.call(a,n);n.isGroup&&!o&&n.traverse(e,a)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++){var i=this._children[a];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++){var i=this._children[a];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var a=new at(0,0,0,0),i=e||this._children,n=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),v=l.getLocalTransform(n);v?(at.applyTransform(a,u,v),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},t})(Ap);Ze.prototype.type="group";var Jc={},hs={};function $Z(r){delete hs[r]}function YZ(r){if(!r)return!1;if(typeof r=="string")return fh(r,1)<Qw;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,i=0;i<a;i++)e+=fh(t[i].color,1);return e/=a,e<Qw}return!1}var ZZ=(function(){function r(t,e,a){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var n=new nZ,o=a.renderer||"canvas";Jc[o]||(o=ft(Jc)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Jc[o](e,n,a,t),l=a.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!vt.node&&!vt.worker&&!l?new BZ(s.getViewportRoot(),s.root):null,v=a.useCoarsePointer,h=v==null||v==="auto"?vt.touchEventsSupported:!!v,f=44,c;h&&(c=Je(a.pointerSize,f)),this.handler=new W4(n,s,u,s.root,c),this.animation=new PZ({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=YZ(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,a=El();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=El();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ze&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,$Z(this.id))},r})();function eT(r,t){var e=new ZZ(RA(),r,t);return hs[e.id]=e,e}function XZ(r){r.dispose()}function KZ(){for(var r in hs)hs.hasOwnProperty(r)&&hs[r].dispose();hs={}}function QZ(r){return hs[r]}function fq(r,t){Jc[r]=t}var tT;function cq(r){if(typeof tT=="function")return tT(r)}function dq(r){tT=r}var jZ="5.6.1";const JZ=Object.freeze(Object.defineProperty({__proto__:null,dispose:XZ,disposeAll:KZ,getElementSSRData:cq,getInstance:QZ,init:eT,registerPainter:fq,registerSSRDataGetter:dq,version:jZ},Symbol.toStringTag,{value:"Module"}));var iL=1e-4,pq=20;function eX(r){return r.replace(/^\s+|\s+$/g,"")}function Pt(r,t,e,a){var i=t[0],n=t[1],o=e[0],s=e[1],l=n-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=i)return o;if(r>=n)return s}else{if(r>=i)return o;if(r<=n)return s}else{if(r===i)return o;if(r===n)return s}return(r-i)/l*u+o}function Ie(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Re(r)?eX(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ar(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),pq),r=(+r).toFixed(t),e?r:+r}function Ta(r){return r.sort(function(t,e){return t-e}),r}function hi(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return gq(r)}function gq(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,i=e>0?e:t.length,n=t.indexOf("."),o=n<0?0:i-1-n;return Math.max(0,o-a)}function FA(r,t){var e=Math.log,a=Math.LN10,i=Math.floor(e(r[1]-r[0])/a),n=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-i+n,0),20);return isFinite(o)?o:20}function tX(r,t,e){if(!r[t])return 0;var a=mq(r,e);return a[t]||0}function mq(r,t){var e=Ya(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),i=we(r,function(c){return(isNaN(c)?0:c)/e*a*100}),n=a*100,o=we(i,function(c){return Math.floor(c)}),s=Ya(o,function(c,d){return c+d},0),l=we(i,function(c,d){return c-o[d]});s<n;){for(var u=Number.NEGATIVE_INFINITY,v=null,h=0,f=l.length;h<f;++h)l[h]>u&&(u=l[h],v=h);++o[v],l[v]=0,++s}return we(o,function(c){return c/a})}function rX(r,t){var e=Math.max(hi(r),hi(t)),a=r+t;return e>pq?a:ar(a,e)}var rT=9007199254740991;function HA(r){var t=Math.PI*2;return(r%t+t)%t}function Yl(r){return r>-iL&&r<iL}var aX=/^(?:(\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 Ma(r){if(r instanceof Date)return r;if(Re(r)){var t=aX.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function yq(r){return Math.pow(10,Cp(r))}function Cp(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function qA(r,t){var e=Cp(r),a=Math.pow(10,e),i=r/a,n;return t?i<1.5?n=1:i<2.5?n=2:i<4?n=3:i<7?n=5:n=10:i<1?n=1:i<2?n=2:i<3?n=3:i<5?n=5:n=10,r=n*a,e>=-20?+r.toFixed(e<0?-e:0):r}function ed(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),i=+r[a-1],n=e-a;return n?i+n*(r[a]-i):i}function aT(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var i=r[a].interval,n=r[a].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,n[o]=o?1:1-e),t=i[o],e=n[o];i[0]===i[1]&&n[0]*n[1]!==1?r.splice(a,1):a++}return r;function s(l,u,v){return l.interval[v]<u.interval[v]||l.interval[v]===u.interval[v]&&(l.close[v]-u.close[v]===(v?-1:1)||!v&&s(l,u,1))}}function Yi(r){var t=parseFloat(r);return t==r&&(t!==0||!Re(r)||r.indexOf("x")<=0)?t:NaN}function WA(r){return!isNaN(Yi(r))}function _q(){return Math.round(Math.random()*9)}function xq(r,t){return t===0?r:xq(t,r%t)}function nL(r,t){return r==null?t:t==null?r:r*t/xq(r,t)}function Rt(r){throw new Error(r)}function oL(r,t,e){return(t-r)*e+r}var Sq="series\0",bq="\0_ec_\0";function Nt(r){return r instanceof Array?r:r==null?[]:[r]}function Ms(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,i=e.length;a<i;a++){var n=e[a];!r.emphasis[t].hasOwnProperty(n)&&r[t].hasOwnProperty(n)&&(r.emphasis[t][n]=r[t][n])}}}var sL=["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 iu(r){return $e(r)&&!Se(r)&&!(r instanceof Date)?r.value:r}function iX(r){return $e(r)&&!(r instanceof Array)}function wq(r,t,e){var a=e==="normalMerge",i=e==="replaceMerge",n=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Ge();$(t,function(l,u){if(!$e(l)){t[u]=null;return}});var s=nX(r,o,e);return(a||i)&&oX(s,r,o,t),a&&sX(s,t),a||i?lX(s,t,i):n&&uX(s,t),vX(s),s}function nX(r,t,e){var a=[];if(e==="replaceAll")return a;for(var i=0;i<r.length;i++){var n=r[i];n&&n.id!=null&&t.set(n.id,i),a.push({existing:e==="replaceMerge"||dh(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return a}function oX(r,t,e,a){$(a,function(i,n){if(!(!i||i.id==null)){var o=Yv(i.id),s=e.get(o);if(s!=null){var l=r[s];Kr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],a[n]=null}}})}function sX(r,t){$(t,function(e,a){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var n=r[i].existing;if(!r[i].newOption&&n&&(n.id==null||e.id==null)&&!dh(e)&&!dh(n)&&Tq("name",n,e)){r[i].newOption=e,t[a]=null;return}}})}function lX(r,t,e){$(t,function(a){if(a){for(var i,n=0;(i=r[n])&&(i.newOption||dh(i.existing)||i.existing&&a.id!=null&&!Tq("id",a,i.existing));)n++;i?(i.newOption=a,i.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),n++}})}function uX(r,t){$(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function vX(r){var t=Ge();$(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),$(r,function(e){var a=e.newOption;Kr(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),$(r,function(e,a){var i=e.existing,n=e.newOption,o=e.keyInfo;if($e(n)){if(o.name=n.name!=null?Yv(n.name):i?i.name:Sq+a,i)o.id=Yv(i.id);else if(n.id!=null)o.id=Yv(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Tq(r,t,e){var a=_r(t[r],null),i=_r(e[r],null);return a!=null&&i!=null&&a===i}function Yv(r){return _r(r,"")}function _r(r,t){return r==null?t:Re(r)?r:bt(r)||md(r)?r+"":t}function UA(r){var t=r.name;return!!(t&&t.indexOf(Sq))}function dh(r){return r&&r.id!=null&&Yv(r.id).indexOf(bq)===0}function hX(r){return bq+r}function fX(r,t,e){$(r,function(a){var i=a.newOption;$e(i)&&(a.keyInfo.mainType=t,a.keyInfo.subType=cX(t,i,a.existing,e))})}function cX(r,t,e,a){var i=t.type?t.type:e?e.subType:a.determineSubType(r,t);return i}function dX(r,t){var e={},a={};return i(r||[],e),i(t||[],a,e),[n(e),n(a)];function i(o,s,l){for(var u=0,v=o.length;u<v;u++){var h=_r(o[u].seriesId,null);if(h==null)return;for(var f=Nt(o[u].dataIndex),c=l&&l[h],d=0,p=f.length;d<p;d++){var g=f[d];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[g]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var v=n(o[u],!0);v.length&&l.push({seriesId:u,dataIndex:v})}return l}}function Ds(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Se(t.dataIndex)?we(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Se(t.name)?we(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function yt(){var r="__ec_inner_"+pX++;return function(t){return t[r]||(t[r]={})}}var pX=_q();function Zv(r,t,e){var a=$A(t,e),i=a.mainTypeSpecified,n=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&n.set(l,{}),n.each(function(u,v){var h=Hh(r,v,u,{useDefault:l===v,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[v+"Models"]=h.models,s[v+"Model"]=h.models[0]}),s}function $A(r,t){var e;if(Re(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var i=Ge(),n={},o=!1;return $(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],v=u[1],h=(u[2]||"").toLowerCase();if(!(!v||!h||t&&t.includeMainTypes&&nt(t.includeMainTypes,v)<0)){o=o||!!v;var f=i.get(v)||i.set(v,{});f[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:n}}var cr={useDefault:!0,enableAll:!1,enableNone:!1},gX={useDefault:!1,enableAll:!0,enableNone:!0};function Hh(r,t,e,a){a=a||cr;var i=e.index,n=e.id,o=e.name,s={models:null,specified:i!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(Kr(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Kr(a.enableAll,'`"all"` is not a valid value on index option.'),i=n=o=null),s.models=r.queryComponents({mainType:t,index:i,id:n,name:o}),s)}function Aq(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function mX(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function yX(r){return r==="auto"?vt.domSupported?"html":"richText":r||"html"}function iT(r,t){var e=Ge(),a=[];return $(r,function(i){var n=t(i);(e.get(n)||(a.push(n),e.set(n,[]))).push(i)}),{keys:a,buckets:e}}function Cq(r,t,e,a,i){var n=t==null||t==="auto";if(a==null)return a;if(bt(a)){var o=oL(e||0,a,i);return ar(o,n?Math.max(hi(e||0),hi(a)):t)}else{if(Re(a))return i<1?e:a;for(var s=[],l=e,u=a,v=Math.max(l?l.length:0,u.length),h=0;h<v;++h){var f=r.getDimensionInfo(h);if(f&&f.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=oL(c,d,i);s[h]=ar(o,n?Math.max(hi(c),hi(d)):t)}}return s}}var _X=".",Ro="___EC__COMPONENT__CONTAINER___",Mq="___EC__EXTENDED_CLASS___";function Gi(r){var t={main:"",sub:""};if(r){var e=r.split(_X);t.main=e[0]||"",t.sub=e[1]||""}return t}function xX(r){Kr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function SX(r){return!!(r&&r[Mq])}function YA(r,t){r.$constructor=r,r.extend=function(e){var a=this,i;return bX(a)?i=(function(n){he(o,n);function o(){return n.apply(this,arguments)||this}return o})(a):(i=function(){(e.$constructor||a).apply(this,arguments)},EA(i,this)),_e(i.prototype,e),i[Mq]=!0,i.extend=this.extend,i.superCall=AX,i.superApply=CX,i.superClass=a,i}}function bX(r){return He(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Dq(r,t){r.extend=t.extend}var wX=Math.round(Math.random()*10);function TX(r){var t=["__\0is_clz",wX++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function AX(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function CX(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Mp(r){var t={};r.registerClass=function(a){var i=a.type||a.prototype.type;if(i){xX(i),a.prototype.type=i;var n=Gi(i);if(!n.sub)t[n.main]=a;else if(n.sub!==Ro){var o=e(n);o[n.sub]=a}}return a},r.getClass=function(a,i,n){var o=t[a];if(o&&o[Ro]&&(o=i?o[i]:null),n&&!o)throw new Error(i?"Component "+a+"."+(i||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var i=Gi(a),n=[],o=t[i.main];return o&&o[Ro]?$(o,function(s,l){l!==Ro&&n.push(s)}):n.push(o),n},r.hasClass=function(a){var i=Gi(a);return!!t[i.main]},r.getAllClassMainTypes=function(){var a=[];return $(t,function(i,n){a.push(n)}),a},r.hasSubTypes=function(a){var i=Gi(a),n=t[i.main];return n&&n[Ro]};function e(a){var i=t[a.main];return(!i||!i[Ro])&&(i=t[a.main]={},i[Ro]=!0),i}}function Ls(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,i,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&nt(i,l)>=0||n&&nt(n,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var MX=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DX=Ls(MX),LX=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return DX(this,t,e)},r})(),nT=new Gh(50);function IX(r){if(typeof r=="string"){var t=nT.get(r);return t&&t.image}else return r}function ZA(r,t,e,a,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=nT.get(r),o={hostEl:e,cb:a,cbPayload:i};return n?(t=n.image,!Dp(t)&&n.pending.push(o)):(t=mi.loadImage(r,lL,lL),t.__zrImageSrc=r,nT.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function lL(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],a=e.cb;a&&a(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Dp(r){return r&&r.width&&r.height}var Xg=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function PX(r,t,e,a,i){var n={};return Lq(n,r,t,e,a,i),n.text}function Lq(r,t,e,a,i,n){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split("\n");n=Iq(e,a,i,n);for(var s=!1,l={},u=0,v=o.length;u<v;u++)Pq(l,o[u],n),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join("\n"),r.isTruncated=s}function Iq(r,t,e,a){a=a||{};var i=_e({},a);i.font=t,e=Je(e,"..."),i.maxIterations=Je(a.maxIterations,2);var n=i.minChar=Je(a.minChar,0);i.cnCharWidth=Ca("国",t);var o=i.ascCharWidth=Ca("a",t);i.placeholder=Je(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Ca(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function Pq(r,t,e){var a=e.containerWidth,i=e.font,n=e.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ca(t,i);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?RX(t,n,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ca(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function RX(r,t,e,a){for(var i=0,n=0,o=r.length;n<o&&i<t;n++){var s=r.charCodeAt(n);i+=0<=s&&s<=127?e:a}return n}function EX(r,t){r!=null&&(r+="");var e=t.overflow,a=t.padding,i=t.font,n=e==="truncate",o=Tp(i),s=Je(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",v=!1,h=t.width,f;h!=null&&(e==="break"||e==="breakAll")?f=r?Rq(r,t.font,h,e==="breakAll",0).lines:[]:f=r?r.split("\n"):[];var c=f.length*s,d=Je(t.height,c);if(c>d&&u){var p=Math.floor(d/s);v=v||f.length>p,f=f.slice(0,p)}if(r&&n&&h!=null)for(var g=Iq(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m={},y=0;y<f.length;y++)Pq(m,f[y],g),f[y]=m.textLine,v=v||m.isTruncated;for(var _=d,x=0,y=0;y<f.length;y++)x=Math.max(Ca(f[y],i),x);h==null&&(h=x);var S=x;return a&&(_+=a[0]+a[2],S+=a[1]+a[3],h+=a[1]+a[3]),l&&(S=h),{lines:f,height:d,outerWidth:S,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:c,width:h,isTruncated:v}}var kX=(function(){function r(){}return r})(),uL=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),OX=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function NX(r,t){var e=new OX;if(r!=null&&(r+=""),!r)return e;for(var a=t.width,i=t.height,n=t.overflow,o=(n==="break"||n==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:n==="breakAll"}:null,s=Xg.lastIndex=0,l;(l=Xg.exec(r))!=null;){var u=l.index;u>s&&Kg(e,r.substring(s,u),t,o),Kg(e,l[2],t,o,l[1]),s=Xg.lastIndex}s<r.length&&Kg(e,r.substring(s,r.length),t,o);var v=[],h=0,f=0,c=t.padding,d=n==="truncate",p=t.lineOverflow==="truncate",g={};function m(F,V,N){F.width=V,F.lineHeight=N,h+=N,f=Math.max(f,V)}e:for(var y=0;y<e.lines.length;y++){for(var _=e.lines[y],x=0,S=0,b=0;b<_.tokens.length;b++){var w=_.tokens[b],A=w.styleName&&t.rich[w.styleName]||{},T=w.textPadding=A.padding,C=T?T[1]+T[3]:0,M=w.font=A.font||t.font;w.contentHeight=Tp(M);var L=Je(A.height,w.contentHeight);if(w.innerHeight=L,T&&(L+=T[0]+T[2]),w.height=L,w.lineHeight=ci(A.lineHeight,t.lineHeight,L),w.align=A&&A.align||t.align,w.verticalAlign=A&&A.verticalAlign||"middle",p&&i!=null&&h+w.lineHeight>i){var D=e.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),m(_,S,x),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y),e.isTruncated=e.isTruncated||e.lines.length<D;break e}var P=A.width,I=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,v.push(w),w.contentWidth=Ca(w.text,M);else{if(I){var R=A.backgroundColor,E=R&&R.image;E&&(E=IX(E),Dp(E)&&(w.width=Math.max(w.width,E.width*L/E.height)))}var k=d&&a!=null?a-S:null;k!=null&&k<w.width?!I||k<C?(w.text="",w.width=w.contentWidth=0):(Lq(g,w.text,k-C,M,t.ellipsis,{minChar:t.truncateMinChar}),w.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,w.width=w.contentWidth=Ca(w.text,M)):w.contentWidth=Ca(w.text,M)}w.width+=C,S+=w.width,A&&(x=Math.max(x,w.lineHeight))}m(_,S,x)}e.outerWidth=e.width=Je(a,f),e.outerHeight=e.height=Je(i,h),e.contentHeight=h,e.contentWidth=f,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var y=0;y<v.length;y++){var w=v[y],B=w.percentWidth;w.width=parseInt(B,10)/100*e.width}return e}function Kg(r,t,e,a,i){var n=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,v,h;if(a){var f=o.padding,c=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var d=_i(o.width,a.width)+c;s.length>0&&d+a.accumWidth>a.width&&(v=t.split("\n"),u=!0),a.accumWidth=d}else{var p=Rq(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,v=p.lines}}else v=t.split("\n");for(var g=0;g<v.length;g++){var m=v[g],y=new kX;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!n,typeof o.width=="number"?y.width=o.width:y.width=h?h[g]:Ca(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new uL)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=y:(m||!x||n)&&_.push(y)}else s.push(new uL([y]))}}function zX(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var BX=Ya(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function VX(r){return zX(r)?!!BX[r]:!0}function Rq(r,t,e,a,i){for(var n=[],o=[],s="",l="",u=0,v=0,h=0;h<r.length;h++){var f=r.charAt(h);if(f==="\n"){l&&(s+=l,v+=u),n.push(s),o.push(v),s="",l="",u=0,v=0;continue}var c=Ca(f,t),d=a?!1:!VX(f);if(n.length?v+c>e:i+v+c>e){v?(s||l)&&(d?(s||(s=l,l="",u=0,v=u),n.push(s),o.push(v-u),l+=f,u+=c,s="",v=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(v),s=f,v=c)):d?(n.push(l),o.push(u),l=f,u=c):(n.push(f),o.push(c));continue}v+=c,d?(l+=f,u+=c):(l&&(s+=l,l="",u=0),s+=f)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(v)),n.length===1&&(v+=i),{accumWidth:v,lines:n,linesWidths:o}}var oT="__zr_style_"+Math.round(Math.random()*10),xs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xs[oT]=!0;var vL=["z","z2","invisible"],GX=["invisible"],Za=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=ft(e),i=0;i<a.length;i++){var n=a[i];n==="style"?this.useStyle(e[n]):r.prototype.attrKV.call(this,n,e[n])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,a,i,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&FX(this,e,a)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();return n.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,i=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new at(0,0,0,0)),a?at.applyTransform(e,i,a):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new at(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:_e(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Dv,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Dv)},t.prototype.styleUpdated=function(){this.__dirty&=~Dv},t.prototype.createStyle=function(e){return Bh(xs,e)},t.prototype.useStyle=function(e){e[oT]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[oT]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,a,vL)},t.prototype._applyStateObj=function(e,a,i,n,o,s){r.prototype._applyStateObj.call(this,e,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.style?o?n?u=a.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),n?this.style:i.style),this._mergeStyle(u,a.style)):l&&(u=i.style),u)if(o){var v=this.style;if(this.style=this.createStyle(l?{}:v),l)for(var h=ft(v),f=0;f<h.length;f++){var c=h[f];c in u&&(u[c]=u[c],this.style[c]=v[c])}for(var d=ft(u),f=0;f<d.length;f++){var c=d[f];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?GX:vL,f=0;f<p.length;f++){var c=p[f];a&&a[c]!=null?this[c]=a[c]:l&&i[c]!=null&&(this[c]=i[c])}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),i,n=0;n<e.length;n++){var o=e[n];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(a.style=i),a},t.prototype._mergeStyle=function(e,a){return _e(e,a),e},t.prototype.getAnimationStyleProps=function(){return Lp},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ba|Dv})(),t})(Ap),Qg=new at(0,0,0,0),jg=new at(0,0,0,0);function FX(r,t,e){return Qg.copy(r.getBoundingRect()),r.transform&&Qg.applyTransform(r.transform),jg.width=t,jg.height=e,!Qg.intersect(jg)}var ma=Math.min,ya=Math.max,Jg=Math.sin,em=Math.cos,Eo=Math.PI*2,kf=fo(),Of=fo(),Nf=fo();function Ip(r,t,e){if(r.length!==0){for(var a=r[0],i=a[0],n=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],i=ma(i,a[0]),n=ya(n,a[0]),o=ma(o,a[1]),s=ya(s,a[1]);t[0]=i,t[1]=o,e[0]=n,e[1]=s}}function hL(r,t,e,a,i,n){i[0]=ma(r,e),i[1]=ma(t,a),n[0]=ya(r,e),n[1]=ya(t,a)}var fL=[],cL=[];function HX(r,t,e,a,i,n,o,s,l,u){var v=X4,h=br,f=v(r,e,i,o,fL);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<f;c++){var d=h(r,e,i,o,fL[c]);l[0]=ma(d,l[0]),u[0]=ya(d,u[0])}f=v(t,a,n,s,cL);for(var c=0;c<f;c++){var p=h(t,a,n,s,cL[c]);l[1]=ma(p,l[1]),u[1]=ya(p,u[1])}l[0]=ma(r,l[0]),u[0]=ya(r,u[0]),l[0]=ma(o,l[0]),u[0]=ya(o,u[0]),l[1]=ma(t,l[1]),u[1]=ya(t,u[1]),l[1]=ma(s,l[1]),u[1]=ya(s,u[1])}function qX(r,t,e,a,i,n,o,s){var l=Q4,u=kr,v=ya(ma(l(r,e,i),1),0),h=ya(ma(l(t,a,n),1),0),f=u(r,e,i,v),c=u(t,a,n,h);o[0]=ma(r,i,f),o[1]=ma(t,n,c),s[0]=ya(r,i,f),s[1]=ya(t,n,c)}function WX(r,t,e,a,i,n,o,s,l){var u=cn,v=dn,h=Math.abs(i-n);if(h%Eo<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(kf[0]=em(i)*e+r,kf[1]=Jg(i)*a+t,Of[0]=em(n)*e+r,Of[1]=Jg(n)*a+t,u(s,kf,Of),v(l,kf,Of),i=i%Eo,i<0&&(i=i+Eo),n=n%Eo,n<0&&(n=n+Eo),i>n&&!o?n+=Eo:i<n&&o&&(i+=Eo),o){var f=n;n=i,i=f}for(var c=0;c<n;c+=Math.PI/2)c>i&&(Nf[0]=em(c)*e+r,Nf[1]=Jg(c)*a+t,u(s,Nf,s),v(l,Nf,l))}var Ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ko=[],Oo=[],Ci=[],Pn=[],Mi=[],Di=[],tm=Math.min,rm=Math.max,No=Math.cos,zo=Math.sin,nn=Math.abs,sT=Math.PI,Fn=sT*2,am=typeof Float32Array<"u",Vu=[];function im(r){var t=Math.round(r/sT*1e8)/1e8;return t%2*sT}function XA(r,t){var e=im(r[0]);e<0&&(e+=Fn);var a=e-r[0],i=r[1];i+=a,!t&&i-e>=Fn?i=e+Fn:t&&e-i>=Fn?i=e-Fn:!t&&e>i?i=e+(Fn-im(e-i)):t&&e<i&&(i=e-(Fn-im(i-e))),r[0]=e,r[1]=i}var Zi=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,a){a=a||0,a>0&&(this._ux=nn(a/Cd/t)||0,this._uy=nn(a/Cd/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ft.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=nn(t-this._xi),i=nn(e-this._yi),n=a>this._ux||i>this._uy;if(this.addData(Ft.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,i,n,o){return this._drawPendingPt(),this.addData(Ft.C,t,e,a,i,n,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,i,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,i){return this._drawPendingPt(),this.addData(Ft.Q,t,e,a,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,i),this._xi=a,this._yi=i,this},r.prototype.arc=function(t,e,a,i,n,o){this._drawPendingPt(),Vu[0]=i,Vu[1]=n,XA(Vu,o),i=Vu[0],n=Vu[1];var s=n-i;return this.addData(Ft.A,t,e,a,a,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,i,n,o),this._xi=No(n)*a+t,this._yi=zo(n)*a+e,this},r.prototype.arcTo=function(t,e,a,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,i,n),this},r.prototype.rect=function(t,e,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,i),this.addData(Ft.R,t,e,a,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ft.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&am&&(this.data=new Float32Array(e));for(var a=0;a<e;a++)this.data[a]=t[a];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,a=0,i=this._len,n=0;n<e;n++)a+=t[n].len();am&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+a));for(var n=0;n<e;n++)for(var o=t[n].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,a,i,n,o,s,l,u){if(this._saveData){var v=this.data;this._len+arguments.length>v.length&&(this._expandData(),v=this.data);for(var h=0;h<arguments.length;h++)v[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,am&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ci[0]=Ci[1]=Mi[0]=Mi[1]=Number.MAX_VALUE,Pn[0]=Pn[1]=Di[0]=Di[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,i=0,n=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],a=t[o+1],i=e,n=a),s){case Ft.M:e=i=t[o++],a=n=t[o++],Mi[0]=i,Mi[1]=n,Di[0]=i,Di[1]=n;break;case Ft.L:hL(e,a,t[o],t[o+1],Mi,Di),e=t[o++],a=t[o++];break;case Ft.C:HX(e,a,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Mi,Di),e=t[o++],a=t[o++];break;case Ft.Q:qX(e,a,t[o++],t[o++],t[o],t[o+1],Mi,Di),e=t[o++],a=t[o++];break;case Ft.A:var u=t[o++],v=t[o++],h=t[o++],f=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];l&&(i=No(c)*h+u,n=zo(c)*f+v),WX(u,v,h,f,c,d,p,Mi,Di),e=No(d)*h+u,a=zo(d)*f+v;break;case Ft.R:i=e=t[o++],n=a=t[o++];var g=t[o++],m=t[o++];hL(i,n,i+g,n+m,Mi,Di);break;case Ft.Z:e=i,a=n;break}cn(Ci,Ci,Mi),dn(Pn,Pn,Di)}return o===0&&(Ci[0]=Ci[1]=Pn[0]=Pn[1]=0),new at(Ci[0],Ci[1],Pn[0]-Ci[0],Pn[1]-Ci[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,a=this._ux,i=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,v=0,h=0,f=0;f<e;){var c=t[f++],d=f===1;d&&(n=t[f],o=t[f+1],s=n,l=o);var p=-1;switch(c){case Ft.M:n=s=t[f++],o=l=t[f++];break;case Ft.L:{var g=t[f++],m=t[f++],y=g-n,_=m-o;(nn(y)>a||nn(_)>i||f===e-1)&&(p=Math.sqrt(y*y+_*_),n=g,o=m);break}case Ft.C:{var x=t[f++],S=t[f++],g=t[f++],m=t[f++],b=t[f++],w=t[f++];p=oZ(n,o,x,S,g,m,b,w,10),n=b,o=w;break}case Ft.Q:{var x=t[f++],S=t[f++],g=t[f++],m=t[f++];p=lZ(n,o,x,S,g,m,10),n=g,o=m;break}case Ft.A:var A=t[f++],T=t[f++],C=t[f++],M=t[f++],L=t[f++],D=t[f++],P=D+L;f+=1,d&&(s=No(L)*C+A,l=zo(L)*M+T),p=rm(C,M)*tm(Fn,Math.abs(D)),n=No(P)*C+A,o=zo(P)*M+T;break;case Ft.R:{s=n=t[f++],l=o=t[f++];var I=t[f++],R=t[f++];p=I*2+R*2;break}case Ft.Z:{var y=s-n,_=l-o;p=Math.sqrt(y*y+_*_),n=s,o=l;break}}p>=0&&(u[h++]=p,v+=p)}return this._pathLen=v,v},r.prototype.rebuildPath=function(t,e){var a=this.data,i=this._ux,n=this._uy,o=this._len,s,l,u,v,h,f,c=e<1,d,p,g=0,m=0,y,_=0,x,S;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=e*p,!y)))e:for(var b=0;b<o;){var w=a[b++],A=b===1;switch(A&&(u=a[b],v=a[b+1],s=u,l=v),w!==Ft.L&&_>0&&(t.lineTo(x,S),_=0),w){case Ft.M:s=u=a[b++],l=v=a[b++],t.moveTo(u,v);break;case Ft.L:{h=a[b++],f=a[b++];var T=nn(h-u),C=nn(f-v);if(T>i||C>n){if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;t.lineTo(u*(1-L)+h*L,v*(1-L)+f*L);break e}g+=M}t.lineTo(h,f),u=h,v=f,_=0}else{var D=T*T+C*C;D>_&&(x=h,S=f,_=D)}break}case Ft.C:{var P=a[b++],I=a[b++],R=a[b++],E=a[b++],k=a[b++],B=a[b++];if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;so(u,P,R,k,L,ko),so(v,I,E,B,L,Oo),t.bezierCurveTo(ko[1],Oo[1],ko[2],Oo[2],ko[3],Oo[3]);break e}g+=M}t.bezierCurveTo(P,I,R,E,k,B),u=k,v=B;break}case Ft.Q:{var P=a[b++],I=a[b++],R=a[b++],E=a[b++];if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;uh(u,P,R,L,ko),uh(v,I,E,L,Oo),t.quadraticCurveTo(ko[1],Oo[1],ko[2],Oo[2]);break e}g+=M}t.quadraticCurveTo(P,I,R,E),u=R,v=E;break}case Ft.A:var F=a[b++],V=a[b++],N=a[b++],O=a[b++],z=a[b++],G=a[b++],q=a[b++],H=!a[b++],U=N>O?N:O,W=nn(N-O)>.001,Y=z+G,X=!1;if(c){var M=d[m++];g+M>y&&(Y=z+G*(y-g)/M,X=!0),g+=M}if(W&&t.ellipse?t.ellipse(F,V,N,O,q,z,Y,H):t.arc(F,V,U,z,Y,H),X)break e;A&&(s=No(z)*N+F,l=zo(z)*O+V),u=No(Y)*N+F,v=zo(Y)*O+V;break;case Ft.R:s=u=a[b],l=v=a[b+1],h=a[b++],f=a[b++];var K=a[b++],Q=a[b++];if(c){var M=d[m++];if(g+M>y){var j=y-g;t.moveTo(h,f),t.lineTo(h+tm(j,K),f),j-=K,j>0&&t.lineTo(h+K,f+tm(j,Q)),j-=Q,j>0&&t.lineTo(h+rm(K-j,0),f+Q),j-=K,j>0&&t.lineTo(h,f+rm(Q-j,0));break e}g+=M}t.rect(h,f,K,Q);break;case Ft.Z:if(c){var M=d[m++];if(g+M>y){var L=(y-g)/M;t.lineTo(u*(1-L)+s*L,v*(1-L)+l*L);break e}g+=M}t.closePath(),u=s,v=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Ft,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function qn(r,t,e,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||n>r+s&&n>e+s||n<r-s&&n<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(n-r)<=s/2;var v=l*n-o+u,h=v*v/(l*l+1);return h<=s/2*s/2}function UX(r,t,e,a,i,n,o,s,l,u,v){if(l===0)return!1;var h=l;if(v>t+h&&v>a+h&&v>n+h&&v>s+h||v<t-h&&v<a-h&&v<n-h&&v<s-h||u>r+h&&u>e+h&&u>i+h&&u>o+h||u<r-h&&u<e-h&&u<i-h&&u<o-h)return!1;var f=K4(r,t,e,a,i,n,o,s,u,v,null);return f<=h/2}function Eq(r,t,e,a,i,n,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>a+u&&l>n+u||l<t-u&&l<a-u&&l<n-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var v=j4(r,t,e,a,i,n,s,l,null);return v<=u/2}var dL=Math.PI*2;function Aa(r){return r%=dL,r<0&&(r+=dL),r}var Gu=Math.PI*2;function $X(r,t,e,a,i,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var v=Math.sqrt(s*s+l*l);if(v-u>e||v+u<e)return!1;if(Math.abs(a-i)%Gu<1e-4)return!0;if(n){var h=a;a=Aa(i),i=Aa(h)}else a=Aa(a),i=Aa(i);a>i&&(i+=Gu);var f=Math.atan2(l,s);return f<0&&(f+=Gu),f>=a&&f<=i||f+Gu>=a&&f+Gu<=i}function vn(r,t,e,a,i,n){if(n>t&&n>a||n<t&&n<a||a===t)return 0;var o=(n-t)/(a-t),s=a<t?1:-1;(o===1||o===0)&&(s=a<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var Rn=Zi.CMD,Bo=Math.PI*2,YX=1e-4;function ZX(r,t){return Math.abs(r-t)<YX}var ia=[-1,-1,-1],Ga=[-1,-1];function XX(){var r=Ga[0];Ga[0]=Ga[1],Ga[1]=r}function KX(r,t,e,a,i,n,o,s,l,u){if(u>t&&u>a&&u>n&&u>s||u<t&&u<a&&u<n&&u<s)return 0;var v=bd(t,a,n,s,u,ia);if(v===0)return 0;for(var h=0,f=-1,c=void 0,d=void 0,p=0;p<v;p++){var g=ia[p],m=g===0||g===1?.5:1,y=br(r,e,i,o,g);y<l||(f<0&&(f=X4(t,a,n,s,Ga),Ga[1]<Ga[0]&&f>1&&XX(),c=br(t,a,n,s,Ga[0]),f>1&&(d=br(t,a,n,s,Ga[1]))),f===2?g<Ga[0]?h+=c<t?m:-m:g<Ga[1]?h+=d<c?m:-m:h+=s<d?m:-m:g<Ga[0]?h+=c<t?m:-m:h+=s<c?m:-m)}return h}function QX(r,t,e,a,i,n,o,s){if(s>t&&s>a&&s>n||s<t&&s<a&&s<n)return 0;var l=sZ(t,a,n,s,ia);if(l===0)return 0;var u=Q4(t,a,n);if(u>=0&&u<=1){for(var v=0,h=kr(t,a,n,u),f=0;f<l;f++){var c=ia[f]===0||ia[f]===1?.5:1,d=kr(r,e,i,ia[f]);d<o||(ia[f]<u?v+=h<t?c:-c:v+=n<h?c:-c)}return v}else{var c=ia[0]===0||ia[0]===1?.5:1,d=kr(r,e,i,ia[0]);return d<o?0:n<t?c:-c}}function jX(r,t,e,a,i,n,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ia[0]=-l,ia[1]=l;var u=Math.abs(a-i);if(u<1e-4)return 0;if(u>=Bo-1e-4){a=0,i=Bo;var v=n?1:-1;return o>=ia[0]+r&&o<=ia[1]+r?v:0}if(a>i){var h=a;a=i,i=h}a<0&&(a+=Bo,i+=Bo);for(var f=0,c=0;c<2;c++){var d=ia[c];if(d+r>o){var p=Math.atan2(s,d),v=n?1:-1;p<0&&(p=Bo+p),(p>=a&&p<=i||p+Bo>=a&&p+Bo<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(v=-v),f+=v)}}return f}function kq(r,t,e,a,i){for(var n=r.data,o=r.len(),s=0,l=0,u=0,v=0,h=0,f,c,d=0;d<o;){var p=n[d++],g=d===1;switch(p===Rn.M&&d>1&&(e||(s+=vn(l,u,v,h,a,i))),g&&(l=n[d],u=n[d+1],v=l,h=u),p){case Rn.M:v=n[d++],h=n[d++],l=v,u=h;break;case Rn.L:if(e){if(qn(l,u,n[d],n[d+1],t,a,i))return!0}else s+=vn(l,u,n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case Rn.C:if(e){if(UX(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],t,a,i))return!0}else s+=KX(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case Rn.Q:if(e){if(Eq(l,u,n[d++],n[d++],n[d],n[d+1],t,a,i))return!0}else s+=QX(l,u,n[d++],n[d++],n[d],n[d+1],a,i)||0;l=n[d++],u=n[d++];break;case Rn.A:var m=n[d++],y=n[d++],_=n[d++],x=n[d++],S=n[d++],b=n[d++];d+=1;var w=!!(1-n[d++]);f=Math.cos(S)*_+m,c=Math.sin(S)*x+y,g?(v=f,h=c):s+=vn(l,u,f,c,a,i);var A=(a-m)*x/_+m;if(e){if($X(m,y,x,S,S+b,w,t,A,i))return!0}else s+=jX(m,y,x,S,S+b,w,A,i);l=Math.cos(S+b)*_+m,u=Math.sin(S+b)*x+y;break;case Rn.R:v=l=n[d++],h=u=n[d++];var T=n[d++],C=n[d++];if(f=v+T,c=h+C,e){if(qn(v,h,f,h,t,a,i)||qn(f,h,f,c,t,a,i)||qn(f,c,v,c,t,a,i)||qn(v,c,v,h,t,a,i))return!0}else s+=vn(f,h,f,c,a,i),s+=vn(v,c,v,h,a,i);break;case Rn.Z:if(e){if(qn(l,u,v,h,t,a,i))return!0}else s+=vn(l,u,v,h,a,i);l=v,u=h;break}}return!e&&!ZX(u,h)&&(s+=vn(l,u,v,h,a,i)||0),s!==0}function JX(r,t,e){return kq(r,0,!1,t,e)}function eK(r,t,e,a){return kq(r,t,!0,e,a)}var Dd=Ue({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xs),tK={style:Ue({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lp.style)},nm=$i.concat(["invisible","culling","z","z2","zlevel","parent"]),ht=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var n=i.style;for(var o in a)n[o]!==a[o]&&(n[o]=a[o]);n.fill=a.fill?a.decal:null,n.decal=null,n.shadowColor=null,a.strokeFirst&&(n.stroke=null);for(var s=0;s<nm.length;++s)i[nm[s]]=this[nm[s]];i.__dirty|=ba}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=ft(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var n=0;n<a.length;n++){var o=a[n],s=e[o];o==="style"?this.style?_e(this.style,s):this.useStyle(s):o==="shape"?_e(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Re(e)){var a=fh(e,0);return a>.5?jw:a>.2?VZ:Jw}else if(e)return Jw}return jw},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Re(a)){var i=this.__zr,n=!!(i&&i.isDarkMode()),o=fh(e,0)<Qw;if(n===o)return a}},t.prototype.buildPath=function(e,a,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Dl},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Zi(!1)},t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return!(a==null||a==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,i=!e;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Dl)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var v=this.strokeContainThreshold;u=Math.max(u,v==null?4:v)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect(),o=this.style;if(e=i[0],a=i[1],n.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),eK(s,l/u,e,a)))return!0}if(this.hasFill())return JX(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=a:_e(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Dl)},t.prototype.createStyle=function(e){return Bh(Dd,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=_e({},this.shape))},t.prototype._applyStateObj=function(e,a,i,n,o,s){r.prototype._applyStateObj.call(this,e,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.shape?o?n?u=a.shape:(u=_e({},i.shape),_e(u,a.shape)):(u=_e({},n?this.shape:i.shape),_e(u,a.shape)):l&&(u=i.shape),u)if(o){this.shape=_e({},this.shape);for(var v={},h=ft(u),f=0;f<h.length;f++){var c=h[f];typeof u[c]=="object"?this.shape[c]=u[c]:v[c]=u[c]}this._transitionState(e,{shape:v},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),i,n=0;n<e.length;n++){var o=e[n];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(a.shape=i),a},t.prototype.getAnimationStyleProps=function(){return tK},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var a=(function(n){he(o,n);function o(s){var l=n.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ye(e.style)},o.prototype.getDefaultShape=function(){return Ye(e.shape)},o})(t);for(var i in e)typeof e[i]=="function"&&(a.prototype[i]=e[i]);return a},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ba|Dv|Dl})(),t})(Za),rK=Ue({strokeFirst:!0,font:oo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Dd),Zl=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return a!=null&&a!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return Bh(rK,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var a=e.text;a!=null?a+="":a="";var i=Fh(a,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var n=e.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Za);Zl.prototype.type="tspan";var aK=Ue({x:0,y:0},xs),iK={style:Ue({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lp.style)};function nK(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Dr=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Bh(aK,e)},t.prototype._getSize=function(e){var a=this.style,i=a[e];if(i!=null)return i;var n=nK(a.image)?a.image:this.__image;if(!n)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?n[e]:n[e]/n[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return iK},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new at(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Za);Dr.prototype.type="image";function oK(r,t){var e=t.x,a=t.y,i=t.width,n=t.height,o=t.r,s,l,u,v;i<0&&(e=e+i,i=-i),n<0&&(a=a+n,n=-n),typeof o=="number"?s=l=u=v=o:o instanceof Array?o.length===1?s=l=u=v=o[0]:o.length===2?(s=u=o[0],l=v=o[1]):o.length===3?(s=o[0],l=v=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],v=o[3]):s=l=u=v=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+v>i&&(h=u+v,u*=i/h,v*=i/h),l+u>n&&(h=l+u,l*=n/h,u*=n/h),s+v>n&&(h=s+v,s*=n/h,v*=n/h),r.moveTo(e+s,a),r.lineTo(e+i-l,a),l!==0&&r.arc(e+i-l,a+l,l,-Math.PI/2,0),r.lineTo(e+i,a+n-u),u!==0&&r.arc(e+i-u,a+n-u,u,0,Math.PI/2),r.lineTo(e+v,a+n),v!==0&&r.arc(e+v,a+n-v,v,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var kl=Math.round;function Oq(r,t,e){if(t){var a=t.x1,i=t.x2,n=t.y1,o=t.y2;r.x1=a,r.x2=i,r.y1=n,r.y2=o;var s=e&&e.lineWidth;return s&&(kl(a*2)===kl(i*2)&&(r.x1=r.x2=fs(a,s,!0)),kl(n*2)===kl(o*2)&&(r.y1=r.y2=fs(n,s,!0))),r}}function Nq(r,t,e){if(t){var a=t.x,i=t.y,n=t.width,o=t.height;r.x=a,r.y=i,r.width=n,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=fs(a,s,!0),r.y=fs(i,s,!0),r.width=Math.max(fs(a+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(fs(i+o,s,!1)-r.y,o===0?0:1)),r}}function fs(r,t,e){if(!t)return r;var a=kl(r*2);return(a+kl(t))%2===0?a/2:(a+(e?1:-1))/2}var sK=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),lK={},gt=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sK},t.prototype.buildPath=function(e,a){var i,n,o,s;if(this.subPixelOptimize){var l=Nq(lK,a,this.style);i=l.x,n=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else i=a.x,n=a.y,o=a.width,s=a.height;a.r?oK(e,a):e.rect(i,n,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ht);gt.prototype.type="rect";var pL={fill:"#000"},gL=2,uK={style:Ue({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Lp.style)},pt=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=pL,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var a=this._children[e];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var a=this.innerTransformable;return a?a.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,fK(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new at(0,0,0,0),a=this._children,i=[],n=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),n=n||e.clone(),n.union(e)):(n=n||l.clone(),n.union(l))}this._rect=n||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||pL},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,a){if(!a)return e;var i=a.rich,n=e.rich||i&&{};return _e(e,a),i&&n?(this._mergeRich(n,i),e.rich=n):n&&(e.rich=n),e},t.prototype._mergeRich=function(e,a){for(var i=ft(a),n=0;n<i.length;n++){var o=i[n];e[o]=e[o]||{},_e(e[o],a[o])}},t.prototype.getAnimationStyleProps=function(){return uK},t.prototype._getOrCreateChild=function(e){var a=this._children[this._childCursor];return(!a||!(a instanceof e))&&(a=new e),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var e=this.style,a=e.font||oo,i=e.padding,n=wL(e),o=EX(n,e),s=om(e),l=!!e.backgroundColor,u=o.outerHeight,v=o.outerWidth,h=o.contentWidth,f=o.lines,c=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=e.x||0,g=e.y||0,m=e.align||d.align||"left",y=e.verticalAlign||d.verticalAlign||"top",_=p,x=Ll(g,o.contentHeight,y);if(s||i){var S=Iv(p,v,m),b=Ll(g,u,y);s&&this._renderBackground(e,e,S,b,v,u)}x+=c/2,i&&(_=bL(p,m,i),y==="top"?x+=i[0]:y==="bottom"&&(x-=i[2]));for(var w=0,A=!1,T=SL("fill"in e?e.fill:(A=!0,d.fill)),C=xL("stroke"in e?e.stroke:!l&&(!d.autoStroke||A)?(w=gL,d.stroke):null),M=e.textShadowBlur>0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),D=o.calculatedLineHeight,P=0;P<f.length;P++){var I=this._getOrCreateChild(Zl),R=I.createStyle();I.useStyle(R),R.text=f[P],R.x=_,R.y=x,R.textAlign=m,R.textBaseline="middle",R.opacity=e.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=e.textShadowBlur||0,R.shadowColor=e.textShadowColor||"transparent",R.shadowOffsetX=e.textShadowOffsetX||0,R.shadowOffsetY=e.textShadowOffsetY||0),R.stroke=C,R.fill=T,C&&(R.lineWidth=e.lineWidth||w,R.lineDash=e.lineDash,R.lineDashOffset=e.lineDashOffset||0),R.font=a,yL(R,e),x+=c,L&&I.setBoundingRect(new at(Iv(R.x,h,R.textAlign),Ll(R.y,D,R.textBaseline),h,D))}},t.prototype._updateRichTexts=function(){var e=this.style,a=wL(e),i=NX(a,e),n=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,v=e.y||0,h=this._defaultStyle,f=e.align||h.align,c=e.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var d=Iv(u,o,f),p=Ll(v,s,c),g=d,m=p;l&&(g+=l[3],m+=l[0]);var y=g+n;om(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,x=0;x<i.lines.length;x++){for(var S=i.lines[x],b=S.tokens,w=b.length,A=S.lineHeight,T=S.width,C=0,M=g,L=y,D=w-1,P=void 0;C<w&&(P=b[C],!P.align||P.align==="left");)this._placeToken(P,e,A,m,M,"left",_),T-=P.width,M+=P.width,C++;for(;D>=0&&(P=b[D],P.align==="right");)this._placeToken(P,e,A,m,L,"right",_),T-=P.width,L-=P.width,D--;for(M+=(n-(M-g)-(y-L)-T)/2;C<=D;)P=b[C],this._placeToken(P,e,A,m,M+P.width/2,"center",_),M+=P.width,C++;m+=A}},t.prototype._placeToken=function(e,a,i,n,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var v=e.verticalAlign,h=n+i/2;v==="top"?h=n+e.height/2:v==="bottom"&&(h=n+i-e.height/2);var f=!e.isLineHolder&&om(u);f&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=bL(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Zl),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,x=SL("fill"in u?u.fill:"fill"in a?a.fill:(y=!0,m.fill)),S=xL("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!m.autoStroke||y)?(_=gL,m.stroke):null),b=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||oo,g.opacity=ci(u.opacity,a.opacity,1),yL(g,u),S&&(g.lineWidth=ci(u.lineWidth,a.lineWidth,_),g.lineDash=Je(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=S),x&&(g.fill=x);var w=e.contentWidth,A=e.contentHeight;p.setBoundingRect(new at(Iv(g.x,w,g.textAlign),Ll(g.y,A,g.textBaseline),w,A))},t.prototype._renderBackground=function(e,a,i,n,o,s){var l=e.backgroundColor,u=e.borderWidth,v=e.borderColor,h=l&&l.image,f=l&&!h,c=e.borderRadius,d=this,p,g;if(f||e.lineHeight||u&&v){p=this._getOrCreateChild(gt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=n,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(f){var y=p.style;y.fill=l||null,y.fillOpacity=Je(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Dr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=n,_.width=o,_.height=s}if(u&&v){var y=p.style;y.lineWidth=u,y.stroke=v,y.strokeOpacity=Je(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=ci(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return Bq(e)&&(a=[e.fontStyle,e.fontWeight,zq(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Ua(a)||e.textFont||e.font},t})(Za),vK={left:!0,right:1,center:1},hK={top:1,bottom:1,middle:1},mL=["fontStyle","fontWeight","fontSize","fontFamily"];function zq(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?LA+"px":r+"px"}function yL(r,t){for(var e=0;e<mL.length;e++){var a=mL[e],i=t[a];i!=null&&(r[a]=i)}}function Bq(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function fK(r){return _L(r),$(r.rich,_L),r}function _L(r){if(r){r.font=pt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||vK[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||hK[e]?e:"top";var a=r.padding;a&&(r.padding=xp(r.padding))}}function xL(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function SL(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function bL(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function wL(r){var t=r.text;return t!=null&&(t+=""),t}function om(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Xe=yt(),lT=function(r,t,e,a){if(a){var i=Xe(a);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",a.type==="group"&&a.traverse(function(n){var o=Xe(n);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},TL=1,AL={},Vq=yt(),KA=yt(),QA=0,qh=1,Pp=2,va=["emphasis","blur","select"],ph=["normal","emphasis","blur","select"],nu=10,cK=9,Ss="highlight",td="downplay",Xv="select",rd="unselect",Kv="toggleSelect";function il(r){return r!=null&&r!=="none"}function Rp(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Gq(r){Rp(r,"emphasis",Pp)}function Fq(r){r.hoverState===Pp&&Rp(r,"normal",QA)}function jA(r){Rp(r,"blur",qh)}function Hq(r){r.hoverState===qh&&Rp(r,"normal",QA)}function dK(r){r.selected=!0}function pK(r){r.selected=!1}function CL(r,t,e){t(r,e)}function Mn(r,t,e){CL(r,t,e),r.isGroup&&r.traverse(function(a){CL(a,t,e)})}function Ld(r,t){switch(t){case"emphasis":r.hoverState=Pp;break;case"normal":r.hoverState=QA;break;case"blur":r.hoverState=qh;break;case"select":r.selected=!0}}function gK(r,t,e,a){for(var i=r.style,n={},o=0;o<t.length;o++){var s=t[o],l=i[s];n[s]=l==null?a&&a[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(n,t)}return n}function mK(r,t,e,a){var i=e&&nt(e,"select")>=0,n=!1;if(r instanceof ht){var o=Vq(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(il(s)||il(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(n=!0,a=_e({},a),u=_e({},u),u.fill=s):!il(u.fill)&&il(s)?(n=!0,a=_e({},a),u=_e({},u),u.fill=Td(s)):!il(u.stroke)&&il(l)&&(n||(a=_e({},a),u=_e({},u)),u.stroke=Td(l)),a.style=u}}if(a&&a.z2==null){n||(a=_e({},a));var v=r.z2EmphasisLift;a.z2=r.z2+(v!=null?v:nu)}return a}function yK(r,t,e){if(e&&e.z2==null){e=_e({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:cK)}return e}function _K(r,t,e){var a=nt(r.currentStates,t)>=0,i=r.style.opacity,n=a?null:gK(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=_e({},e),o=_e({opacity:a?i:n.opacity*.1},o),e.style=o),e}function sm(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return mK(this,r,t,e);if(r==="blur")return _K(this,r,e);if(r==="select")return yK(this,r,e)}return e}function Is(r){r.stateProxy=sm;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=sm),e&&(e.stateProxy=sm)}function ML(r,t){!$q(r,t)&&!r.__highByOuter&&Mn(r,Gq)}function DL(r,t){!$q(r,t)&&!r.__highByOuter&&Mn(r,Fq)}function xn(r,t){r.__highByOuter|=1<<(t||0),Mn(r,Gq)}function Sn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Mn(r,Fq)}function qq(r){Mn(r,jA)}function JA(r){Mn(r,Hq)}function Wq(r){Mn(r,dK)}function Uq(r){Mn(r,pK)}function $q(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Yq(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(i,n){var o=KA(n),s=i==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){Hq(u)}),s&&e.push(n)),o.isBlured=!1}),$(a,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function uT(r,t,e,a){var i=a.getModel();e=e||"coordinateSystem";function n(u,v){for(var h=0;h<v.length;h++){var f=u.getItemGraphicEl(v[h]);f&&JA(f)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var v=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var f=h&&s?h===s:v;if(!(e==="series"&&!v||e==="coordinateSystem"&&!f||t==="series"&&v)){var c=a.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&v&&t==="self"||jA(g)}),Br(t))n(u.getData(),t);else if($e(t))for(var d=ft(t),p=0;p<d.length;p++)n(u.getData(d[p]),t[d[p]]);l.push(u),KA(u).isBlured=!0}}),i.eachComponent(function(u,v){if(u!=="series"){var h=a.getViewOfComponentModel(v);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function vT(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){KA(a).isBlured=!0;var i=e.getViewOfComponentModel(a);!i||!i.focusBlurEnabled||i.group.traverse(function(n){jA(n)})}}}function xK(r,t,e){var a=r.seriesIndex,i=r.getData(t.dataType);if(i){var n=Ds(i,t);n=(Se(n)?n[0]:n)||0;var o=i.getItemGraphicEl(n);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Xe(o);uT(a,u.focus,u.blurScope,e)}else{var v=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);v!=null&&uT(a,v,h,e)}}}function eC(r,t,e,a){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var n=a.getModel().getComponent(r,t);if(!n)return i;var o=a.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Xe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function SK(r,t,e){var a=Xe(r),i=eC(a.componentMainType,a.componentIndex,a.componentHighDownName,e),n=i.dispatchers,o=i.focusSelf;n?(o&&vT(a.componentMainType,a.componentIndex,e),$(n,function(s){return ML(s,t)})):(uT(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&vT(a.componentMainType,a.componentIndex,e),ML(r,t))}function bK(r,t,e){Yq(e);var a=Xe(r),i=eC(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;i?$(i,function(n){return DL(n,t)}):DL(r,t)}function wK(r,t,e){if(fT(t)){var a=t.dataType,i=r.getData(a),n=Ds(i,t);Se(n)||(n=[n]),r[t.type===Kv?"toggleSelect":t.type===Xv?"select":"unselect"](n,a)}}function LL(r){var t=r.getAllData();$(t,function(e){var a=e.data,i=e.type;a.eachItemGraphicEl(function(n,o){r.isSelected(o,i)?Wq(n):Uq(n)})})}function TK(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();$(a,function(i){i.data;var n=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};n!=null&&(s.dataType=n),t.push(s)}})}),t}function to(r,t,e){cs(r,!0),Mn(r,Is),hT(r,t,e)}function AK(r){cs(r,!1)}function tr(r,t,e,a){a?AK(r):to(r,t,e)}function hT(r,t,e){var a=Xe(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var IL=["emphasis","blur","select"],CK={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vr(r,t,e,a){e=e||"itemStyle";for(var i=0;i<IL.length;i++){var n=IL[i],o=t.getModel([n,e]),s=r.ensureState(n);s.style=a?a(o):o[CK[e]]()}}function cs(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function gh(r){return!!(r&&r.__highDownDispatcher)}function MK(r,t,e){var a=Xe(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function DK(r){var t=AL[r];return t==null&&TL<=32&&(t=AL[r]=TL++),t}function fT(r){var t=r.type;return t===Xv||t===rd||t===Kv}function PL(r){var t=r.type;return t===Ss||t===td}function LK(r){var t=Vq(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var nl=Zi.CMD,IK=[[],[],[]],RL=Math.sqrt,PK=Math.atan2;function Zq(r,t){if(t){var e=r.data,a=r.len(),i,n,o,s,l,u,v=nl.M,h=nl.C,f=nl.L,c=nl.R,d=nl.A,p=nl.Q;for(o=0,s=0;o<a;){switch(i=e[o++],s=o,n=0,i){case v:n=1;break;case f:n=1;break;case h:n=3;break;case p:n=2;break;case d:var g=t[4],m=t[5],y=RL(t[0]*t[0]+t[1]*t[1]),_=RL(t[2]*t[2]+t[3]*t[3]),x=PK(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=g,e[o]*=_,e[o++]+=m,e[o++]*=y,e[o++]*=_,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],Or(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Or(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<n;l++){var S=IK[l];S[0]=e[o++],S[1]=e[o++],Or(S,S,t),e[s++]=S[0],e[s++]=S[1]}}r.increaseVersion()}}var lm=Math.sqrt,zf=Math.sin,Bf=Math.cos,Fu=Math.PI;function EL(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function cT(r,t){return(r[0]*t[0]+r[1]*t[1])/(EL(r)*EL(t))}function kL(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(cT(r,t))}function OL(r,t,e,a,i,n,o,s,l,u,v){var h=l*(Fu/180),f=Bf(h)*(r-e)/2+zf(h)*(t-a)/2,c=-1*zf(h)*(r-e)/2+Bf(h)*(t-a)/2,d=f*f/(o*o)+c*c/(s*s);d>1&&(o*=lm(d),s*=lm(d));var p=(i===n?-1:1)*lm((o*o*(s*s)-o*o*(c*c)-s*s*(f*f))/(o*o*(c*c)+s*s*(f*f)))||0,g=p*o*c/s,m=p*-s*f/o,y=(r+e)/2+Bf(h)*g-zf(h)*m,_=(t+a)/2+zf(h)*g+Bf(h)*m,x=kL([1,0],[(f-g)/o,(c-m)/s]),S=[(f-g)/o,(c-m)/s],b=[(-1*f-g)/o,(-1*c-m)/s],w=kL(S,b);if(cT(S,b)<=-1&&(w=Fu),cT(S,b)>=1&&(w=0),w<0){var A=Math.round(w/Fu*1e6)/1e6;w=Fu*2+A%2*Fu}v.addData(u,y,_,o,s,x,w,h,n)}var RK=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,EK=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kK(r){var t=new Zi;if(!r)return t;var e=0,a=0,i=e,n=a,o,s=Zi.CMD,l=r.match(RK);if(!l)return t;for(var u=0;u<l.length;u++){for(var v=l[u],h=v.charAt(0),f=void 0,c=v.match(EK)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=e,T=a,C=void 0,M=void 0;switch(h){case"l":e+=c[g++],a+=c[g++],f=s.L,t.addData(f,e,a);break;case"L":e=c[g++],a=c[g++],f=s.L,t.addData(f,e,a);break;case"m":e+=c[g++],a+=c[g++],f=s.M,t.addData(f,e,a),i=e,n=a,h="l";break;case"M":e=c[g++],a=c[g++],f=s.M,t.addData(f,e,a),i=e,n=a,h="L";break;case"h":e+=c[g++],f=s.L,t.addData(f,e,a);break;case"H":e=c[g++],f=s.L,t.addData(f,e,a);break;case"v":a+=c[g++],f=s.L,t.addData(f,e,a);break;case"V":a=c[g++],f=s.L,t.addData(f,e,a);break;case"C":f=s.C,t.addData(f,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],a=c[g-1];break;case"c":f=s.C,t.addData(f,c[g++]+e,c[g++]+a,c[g++]+e,c[g++]+a,c[g++]+e,c[g++]+a),e+=c[g-2],a+=c[g-1];break;case"S":m=e,y=a,C=t.len(),M=t.data,o===s.C&&(m+=e-M[C-4],y+=a-M[C-3]),f=s.C,A=c[g++],T=c[g++],e=c[g++],a=c[g++],t.addData(f,m,y,A,T,e,a);break;case"s":m=e,y=a,C=t.len(),M=t.data,o===s.C&&(m+=e-M[C-4],y+=a-M[C-3]),f=s.C,A=e+c[g++],T=a+c[g++],e+=c[g++],a+=c[g++],t.addData(f,m,y,A,T,e,a);break;case"Q":A=c[g++],T=c[g++],e=c[g++],a=c[g++],f=s.Q,t.addData(f,A,T,e,a);break;case"q":A=c[g++]+e,T=c[g++]+a,e+=c[g++],a+=c[g++],f=s.Q,t.addData(f,A,T,e,a);break;case"T":m=e,y=a,C=t.len(),M=t.data,o===s.Q&&(m+=e-M[C-4],y+=a-M[C-3]),e=c[g++],a=c[g++],f=s.Q,t.addData(f,m,y,e,a);break;case"t":m=e,y=a,C=t.len(),M=t.data,o===s.Q&&(m+=e-M[C-4],y+=a-M[C-3]),e+=c[g++],a+=c[g++],f=s.Q,t.addData(f,m,y,e,a);break;case"A":_=c[g++],x=c[g++],S=c[g++],b=c[g++],w=c[g++],A=e,T=a,e=c[g++],a=c[g++],f=s.A,OL(A,T,e,a,b,w,_,x,S,f,t);break;case"a":_=c[g++],x=c[g++],S=c[g++],b=c[g++],w=c[g++],A=e,T=a,e+=c[g++],a+=c[g++],f=s.A,OL(A,T,e,a,b,w,_,x,S,f,t);break}}(h==="z"||h==="Z")&&(f=s.Z,t.addData(f),e=i,a=n),o=f}return t.toStatic(),t}var Xq=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(ht);function Kq(r){return r.setData!=null}function Qq(r,t){var e=kK(r),a=_e({},t);return a.buildPath=function(i){if(Kq(i)){i.setData(e.data);var n=i.getContext();n&&i.rebuildPath(n,1)}else{var n=i;e.rebuildPath(n,1)}},a.applyTransform=function(i){Zq(e,i),this.dirtyShape()},a}function jq(r,t){return new Xq(Qq(r,t))}function OK(r,t){var e=Qq(r,t),a=(function(i){he(n,i);function n(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return n})(Xq);return a}function NK(r,t){for(var e=[],a=r.length,i=0;i<a;i++){var n=r[i];e.push(n.getUpdatedPathProxy(!0))}var o=new ht(t);return o.createPathProxy(),o.buildPath=function(s){if(Kq(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function tC(r,t){t=t||{};var e=new ht;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?Zq(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var zK=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Xi=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zK},t.prototype.buildPath=function(e,a){e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t})(ht);Xi.prototype.type="circle";var BK=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Wh=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new BK},t.prototype.buildPath=function(e,a){var i=.5522848,n=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*i,v=l*i;e.moveTo(n-s,o),e.bezierCurveTo(n-s,o-v,n-u,o-l,n,o-l),e.bezierCurveTo(n+u,o-l,n+s,o-v,n+s,o),e.bezierCurveTo(n+s,o+v,n+u,o+l,n,o+l),e.bezierCurveTo(n-u,o+l,n-s,o+v,n-s,o),e.closePath()},t})(ht);Wh.prototype.type="ellipse";var Jq=Math.PI,um=Jq*2,Vo=Math.sin,ol=Math.cos,VK=Math.acos,Hr=Math.atan2,NL=Math.abs,Qv=Math.sqrt,Pv=Math.max,Li=Math.min,si=1e-4;function GK(r,t,e,a,i,n,o,s){var l=e-r,u=a-t,v=o-i,h=s-n,f=h*l-v*u;if(!(f*f<si))return f=(v*(t-n)-h*(r-i))/f,[r+f*l,t+f*u]}function Vf(r,t,e,a,i,n,o){var s=r-e,l=t-a,u=(o?n:-n)/Qv(s*s+l*l),v=u*l,h=-u*s,f=r+v,c=t+h,d=e+v,p=a+h,g=(f+d)/2,m=(c+p)/2,y=d-f,_=p-c,x=y*y+_*_,S=i-n,b=f*p-d*c,w=(_<0?-1:1)*Qv(Pv(0,S*S*x-b*b)),A=(b*_-y*w)/x,T=(-b*y-_*w)/x,C=(b*_+y*w)/x,M=(-b*y+_*w)/x,L=A-g,D=T-m,P=C-g,I=M-m;return L*L+D*D>P*P+I*I&&(A=C,T=M),{cx:A,cy:T,x0:-v,y0:-h,x1:A*(i/S-1),y1:T*(i/S-1)}}function FK(r){var t;if(Se(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function HK(r,t){var e,a=Pv(t.r,0),i=Pv(t.r0||0,0),n=a>0,o=i>0;if(!(!n&&!o)){if(n||(a=i,i=0),i>a){var s=a;a=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var v=t.cx,h=t.cy,f=!!t.clockwise,c=NL(u-l),d=c>um&&c%um;if(d>si&&(c=d),!(a>si))r.moveTo(v,h);else if(c>um-si)r.moveTo(v+a*ol(l),h+a*Vo(l)),r.arc(v,h,a,l,u,!f),i>si&&(r.moveTo(v+i*ol(u),h+i*Vo(u)),r.arc(v,h,i,u,l,f));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=void 0,T=void 0,C=void 0,M=void 0,L=void 0,D=void 0,P=void 0,I=a*ol(l),R=a*Vo(l),E=i*ol(u),k=i*Vo(u),B=c>si;if(B){var F=t.cornerRadius;F&&(e=FK(F),p=e[0],g=e[1],m=e[2],y=e[3]);var V=NL(a-i)/2;if(_=Li(V,m),x=Li(V,y),S=Li(V,p),b=Li(V,g),T=w=Pv(_,x),C=A=Pv(S,b),(w>si||A>si)&&(M=a*ol(u),L=a*Vo(u),D=i*ol(l),P=i*Vo(l),c<Jq)){var N=GK(I,R,D,P,M,L,E,k);if(N){var O=I-N[0],z=R-N[1],G=M-N[0],q=L-N[1],H=1/Vo(VK((O*G+z*q)/(Qv(O*O+z*z)*Qv(G*G+q*q)))/2),U=Qv(N[0]*N[0]+N[1]*N[1]);T=Li(w,(a-U)/(H+1)),C=Li(A,(i-U)/(H-1))}}}if(!B)r.moveTo(v+I,h+R);else if(T>si){var W=Li(m,T),Y=Li(y,T),X=Vf(D,P,I,R,a,W,f),K=Vf(M,L,E,k,a,Y,f);r.moveTo(v+X.cx+X.x0,h+X.cy+X.y0),T<w&&W===Y?r.arc(v+X.cx,h+X.cy,T,Hr(X.y0,X.x0),Hr(K.y0,K.x0),!f):(W>0&&r.arc(v+X.cx,h+X.cy,W,Hr(X.y0,X.x0),Hr(X.y1,X.x1),!f),r.arc(v,h,a,Hr(X.cy+X.y1,X.cx+X.x1),Hr(K.cy+K.y1,K.cx+K.x1),!f),Y>0&&r.arc(v+K.cx,h+K.cy,Y,Hr(K.y1,K.x1),Hr(K.y0,K.x0),!f))}else r.moveTo(v+I,h+R),r.arc(v,h,a,l,u,!f);if(!(i>si)||!B)r.lineTo(v+E,h+k);else if(C>si){var W=Li(p,C),Y=Li(g,C),X=Vf(E,k,M,L,i,-Y,f),K=Vf(I,R,D,P,i,-W,f);r.lineTo(v+X.cx+X.x0,h+X.cy+X.y0),C<A&&W===Y?r.arc(v+X.cx,h+X.cy,C,Hr(X.y0,X.x0),Hr(K.y0,K.x0),!f):(Y>0&&r.arc(v+X.cx,h+X.cy,Y,Hr(X.y0,X.x0),Hr(X.y1,X.x1),!f),r.arc(v,h,i,Hr(X.cy+X.y1,X.cx+X.x1),Hr(K.cy+K.y1,K.cx+K.x1),f),W>0&&r.arc(v+K.cx,h+K.cy,W,Hr(K.y1,K.x1),Hr(K.y0,K.x0),!f))}else r.lineTo(v+E,h+k),r.arc(v,h,i,u,l,f)}r.closePath()}}}var qK=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),Qr=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qK},t.prototype.buildPath=function(e,a){HK(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ht);Qr.prototype.type="sector";var WK=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),ou=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new WK},t.prototype.buildPath=function(e,a){var i=a.cx,n=a.cy,o=Math.PI*2;e.moveTo(i+a.r,n),e.arc(i,n,a.r,0,o,!1),e.moveTo(i+a.r0,n),e.arc(i,n,a.r0,0,o,!0)},t})(ht);ou.prototype.type="ring";function UK(r,t,e,a){var i=[],n=[],o=[],s=[],l,u,v,h;if(a){v=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,c=r.length;f<c;f++)cn(v,v,r[f]),dn(h,h,r[f]);cn(v,v,a[0]),dn(h,h,a[1])}for(var f=0,c=r.length;f<c;f++){var d=r[f];if(e)l=r[f?f-1:c-1],u=r[(f+1)%c];else if(f===0||f===c-1){i.push(qi(r[f]));continue}else l=r[f-1],u=r[f+1];$n(n,u,l),Hv(n,n,t);var p=_d(d,l),g=_d(d,u),m=p+g;m!==0&&(p/=m,g/=m),Hv(o,n,-p),Hv(s,n,g);var y=zw([],d,o),_=zw([],d,s);a&&(dn(y,y,v),cn(y,y,h),dn(_,_,v),cn(_,_,h)),i.push(y),i.push(_)}return e&&i.push(i.shift()),i}function eW(r,t,e){var a=t.smooth,i=t.points;if(i&&i.length>=2){if(a){var n=UK(i,a,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=n[s*2],u=n[s*2+1],v=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],v[0],v[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var $K=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),jr=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $K},t.prototype.buildPath=function(e,a){eW(e,a,!0)},t})(ht);jr.prototype.type="polygon";var YK=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),ea=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YK},t.prototype.buildPath=function(e,a){eW(e,a,!1)},t})(ht);ea.prototype.type="polyline";var ZK={},XK=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),xr=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new XK},t.prototype.buildPath=function(e,a){var i,n,o,s;if(this.subPixelOptimize){var l=Oq(ZK,a,this.style);i=l.x1,n=l.y1,o=l.x2,s=l.y2}else i=a.x1,n=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(e.moveTo(i,n),u<1&&(o=i*(1-u)+o*u,s=n*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var a=this.shape;return[a.x1*(1-e)+a.x2*e,a.y1*(1-e)+a.y2*e]},t})(ht);xr.prototype.type="line";var ca=[],KK=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function zL(r,t,e){var a=r.cpx2,i=r.cpy2;return a!=null||i!=null?[(e?WD:br)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?WD:br)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Hw:kr)(r.x1,r.cpx1,r.x2,t),(e?Hw:kr)(r.y1,r.cpy1,r.y2,t)]}var su=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KK},t.prototype.buildPath=function(e,a){var i=a.x1,n=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,v=a.cpx2,h=a.cpy2,f=a.percent;f!==0&&(e.moveTo(i,n),v==null||h==null?(f<1&&(uh(i,l,o,f,ca),l=ca[1],o=ca[2],uh(n,u,s,f,ca),u=ca[1],s=ca[2]),e.quadraticCurveTo(l,u,o,s)):(f<1&&(so(i,l,v,o,f,ca),l=ca[1],v=ca[2],o=ca[3],so(n,u,h,s,f,ca),u=ca[1],h=ca[2],s=ca[3]),e.bezierCurveTo(l,u,v,h,o,s)))},t.prototype.pointAt=function(e){return zL(this.shape,e,!1)},t.prototype.tangentAt=function(e){var a=zL(this.shape,e,!0);return Os(a,a)},t})(ht);su.prototype.type="bezier-curve";var QK=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Uh=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QK},t.prototype.buildPath=function(e,a){var i=a.cx,n=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,v=Math.cos(s),h=Math.sin(s);e.moveTo(v*o+i,h*o+n),e.arc(i,n,o,s,l,!u)},t})(ht);Uh.prototype.type="arc";var Ep=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,a=this.shapeChanged(),i=0;i<e.length;i++)a=a||e[i].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(a[0],a[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,a){for(var i=a.paths||[],n=0;n<i.length;n++)i[n].buildPath(e,i[n].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ht.prototype.getBoundingRect.call(this)},t})(ht),tW=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),lu=(function(r){he(t,r);function t(e,a,i,n,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=a==null?0:a,l.x2=i==null?1:i,l.y2=n==null?0:n,l.type="linear",l.global=s||!1,l}return t})(tW),rC=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this,n)||this;return s.x=e==null?.5:e,s.y=a==null?.5:a,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t})(tW),Go=[0,0],Fo=[0,0],Gf=new rt,Ff=new rt,Id=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new rt;for(var a=0;a<2;a++)this._axes[a]=new rt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var a=this._corners,i=this._axes,n=t.x,o=t.y,s=n+t.width,l=o+t.height;if(a[0].set(n,o),a[1].set(s,o),a[2].set(s,l),a[3].set(n,l),e)for(var u=0;u<4;u++)a[u].transform(e);rt.sub(i[0],a[1],a[0]),rt.sub(i[1],a[3],a[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(a[0])},r.prototype.intersect=function(t,e){var a=!0,i=!e;return Gf.set(1/0,1/0),Ff.set(0,0),!this._intersectCheckOneSide(this,t,Gf,Ff,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,Gf,Ff,i,-1)&&(a=!1,i)||i||rt.copy(e,a?Gf:Ff),a},r.prototype._intersectCheckOneSide=function(t,e,a,i,n,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Go),this._getProjMinMaxOnAxis(l,e._corners,Fo),Go[1]<Fo[0]||Go[0]>Fo[1]){if(s=!1,n)return s;var v=Math.abs(Fo[0]-Go[1]),h=Math.abs(Go[0]-Fo[1]);Math.min(v,h)>i.len()&&(v<h?rt.scale(i,u,-v*o):rt.scale(i,u,h*o))}else if(a){var v=Math.abs(Fo[0]-Go[1]),h=Math.abs(Go[0]-Fo[1]);Math.min(v,h)<a.len()&&(v<h?rt.scale(a,u,v*o):rt.scale(a,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var i=this._axes[t],n=this._origin,o=e[0].dot(i)+n[t],s=o,l=o,u=1;u<e.length;u++){var v=e[u].dot(i)+n[t];s=Math.min(v,s),l=Math.max(v,l)}a[0]=s,a[1]=l},r})(),jK=[],rW=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,a){a=a||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var a=this._cursor;a<this._displayables.length;a++)e&&e(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)e&&e(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var a=this._displayables[e];a.parent=this,a.update(),a.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var a=this._temporaryDisplayables[e];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new at(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var i=this._displayables[a],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(jK)),e.union(n)}this._rect=e}return this._rect},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,a))return!0}return!1},t})(Za),aW=yt();function uu(r,t,e,a,i){var n;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();n=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,v=void 0,h=void 0;a?(u=Je(a.duration,200),v=Je(a.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),v=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(v=n.easing),n.delay!=null&&(h=n.delay)),He(h)&&(h=h(e,i)),He(u)&&(u=u(e));var f={duration:u||0,delay:h,easing:v};return f}else return null}function aC(r,t,e,a,i,n,o){var s=!1,l;He(i)?(o=n,n=i,i=null):$e(i)&&(n=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var v=uu(r,a,i,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,i):null);if(v&&v.duration>0){var h=v.duration,f=v.delay,c=v.easing,d={duration:h,delay:f||0,easing:c,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),n&&n()}function wt(r,t,e,a,i,n){aC("update",r,t,e,a,i,n)}function $t(r,t,e,a,i,n){aC("enter",r,t,e,a,i,n)}function Gl(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function lo(r,t,e,a,i,n){Gl(r)||aC("leave",r,t,e,a,i,n)}function BL(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),lo(r,{style:{opacity:0}},t,e,a)}function mh(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||BL(i,t,e,a)}):BL(r,t,e,a)}function xi(r){aW(r).oldStyle=r.style}function JK(r){return aW(r).oldStyle}var Pd=Math.max,Rd=Math.min,dT={};function iW(r){return ht.extend(r)}var eQ=OK;function nW(r,t){return eQ(r,t)}function Ka(r,t){dT[r]=t}function kp(r){if(dT.hasOwnProperty(r))return dT[r]}function $h(r,t,e,a){var i=jq(r,t);return e&&(a==="center"&&(e=oW(e,i.getBoundingRect())),nC(i,e)),i}function iC(r,t,e){var a=new Dr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var n={width:i.width,height:i.height};a.setStyle(oW(t,n))}}});return a}function oW(r,t){var e=t.width/t.height,a=r.height*e,i;a<=r.width?i=r.height:(a=r.width,i=a/e);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-a/2,y:o-i/2,width:a,height:i}}var wa=NK;function nC(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function Xl(r,t){return Oq(r,r,{lineWidth:t}),r}function tQ(r){return Nq(r.shape,r.shape,r.style),r}var ad=fs;function ro(r,t){for(var e=Vh([]);r&&r!==t;)Wi(e,r.getLocalTransform(),e),r=r.parent;return e}function gi(r,t,e){return t&&!Br(t)&&(t=pn.getLocalTransform(t)),e&&(t=Ns([],t)),Or([],r,t)}function Op(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),n=[r==="left"?-a:r==="right"?a:0,r==="top"?-i:r==="bottom"?i:0];return n=gi(n,t,e),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function VL(r){return!r.isGroup}function rQ(r){return r.shape!=null}function Yh(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){VL(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rQ(o)&&(s.shape=_e({},o.shape)),s}var n=a(r);t.traverse(function(o){if(VL(o)&&o.anid){var s=n[o.anid];if(s){var l=i(o);o.attr(i(s)),wt(o,l,e,Xe(o).dataIndex)}}})}function oC(r,t){return we(r,function(e){var a=e[0];a=Pd(a,t.x),a=Rd(a,t.x+t.width);var i=e[1];return i=Pd(i,t.y),i=Rd(i,t.y+t.height),[a,i]})}function sW(r,t){var e=Pd(r.x,t.x),a=Rd(r.x+r.width,t.x+t.width),i=Pd(r.y,t.y),n=Rd(r.y+r.height,t.y+t.height);if(a>=e&&n>=i)return{x:e,y:i,width:a-e,height:n-i}}function vu(r,t,e){var a=_e({rectHover:!0},t),i=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Ue(i,e),new Dr(a)):$h(r.replace("path://",""),a,e,"center")}function Rv(r,t,e,a,i){for(var n=0,o=i[i.length-1];n<i.length;n++){var s=i[n];if(lW(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function lW(r,t,e,a,i,n,o,s){var l=e-r,u=a-t,v=o-i,h=s-n,f=vm(v,h,l,u);if(aQ(f))return!1;var c=r-i,d=t-n,p=vm(c,d,l,u)/f;if(p<0||p>1)return!1;var g=vm(c,d,v,h)/f;return!(g<0||g>1)}function vm(r,t,e,a){return r*a-e*t}function aQ(r){return r<=1e-6&&r>=-1e-6}function zs(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,i=Re(t)?{formatter:t}:t,n=e.mainType,o=e.componentIndex,s={componentType:n,name:a,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&$(ft(l),function(v){Be(s,v)||(s[v]=l[v],s.$vars.push(v))});var u=Xe(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:a,option:Ue({content:a,encodeHTMLContent:!0,formatterParams:s},i)}}function GL(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function po(r,t){if(r)if(Se(r))for(var e=0;e<r.length;e++)GL(r[e],t);else GL(r,t)}Ka("circle",Xi);Ka("ellipse",Wh);Ka("sector",Qr);Ka("ring",ou);Ka("polygon",jr);Ka("polyline",ea);Ka("rect",gt);Ka("line",xr);Ka("bezierCurve",su);Ka("arc",Uh);const Bs=Object.freeze(Object.defineProperty({__proto__:null,Arc:Uh,BezierCurve:su,BoundingRect:at,Circle:Xi,CompoundPath:Ep,Ellipse:Wh,Group:Ze,Image:Dr,IncrementalDisplayable:rW,Line:xr,LinearGradient:lu,OrientedBoundingRect:Id,Path:ht,Point:rt,Polygon:jr,Polyline:ea,RadialGradient:rC,Rect:gt,Ring:ou,Sector:Qr,Text:pt,applyTransform:gi,clipPointsByRect:oC,clipRectByRect:sW,createIcon:vu,extendPath:nW,extendShape:iW,getShapeClass:kp,getTransform:ro,groupTransition:Yh,initProps:$t,isElementRemoved:Gl,lineLineIntersect:lW,linePolygonIntersect:Rv,makeImage:iC,makePath:$h,mergePath:wa,registerShape:Ka,removeElement:lo,removeElementWithFadeOut:mh,resizePath:nC,setTooltipConfig:zs,subPixelOptimize:ad,subPixelOptimizeLine:Xl,subPixelOptimizeRect:tQ,transformDirection:Op,traverseElements:po,updateProps:wt},Symbol.toStringTag,{value:"Module"}));var Np={};function uW(r,t){for(var e=0;e<va.length;e++){var a=va[e],i=t[a],n=r.ensureState(a);n.style=n.style||{},n.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function pT(r,t,e){var a=r.labelFetcher,i=r.labelDataIndex,n=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(i,"normal",null,n,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=He(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<va.length;u++){var v=va[u],h=t[v];l[v]=Je(a?a.getFormattedLabel(i,v,null,n,h&&h.get("formatter")):null,s)}return l}function Gr(r,t,e,a){e=e||Np;for(var i=r instanceof pt,n=!1,o=0;o<ph.length;o++){var s=t[ph[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=i?r:r.getTextContent();if(n){i||(l||(l=new pt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=pT(e,t),v=t.normal,h=!!v.getShallow("show"),f=Ht(v,a&&a.normal,e,!1,!i);f.text=u.normal,i||r.setTextConfig(Ed(v,e,!1));for(var o=0;o<va.length;o++){var c=va[o],s=t[c];if(s){var d=l.ensureState(c),p=!!Je(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Ht(s,a&&a[c],e,!0,!i),d.style.text=u[c],!i){var g=r.ensureState(c);g.textConfig=Ed(s,e,!0)}}}l.silent=!!v.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!h,l.useStyle(f),l.dirty(),e.enableTextSetter&&(hu(l).setLabelText=function(m){var y=pT(e,t,m);uW(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Cr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<va.length;a++){var i=va[a];e[i]=r.getModel([i,t])}return e}function Ht(r,t,e,a,i){var n={};return iQ(n,r,e,a,i),t&&_e(n,t),n}function Ed(r,t,e){t=t||{};var a={},i,n=r.getShallow("rotate"),o=Je(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(a.position=i),s!=null&&(a.offset=s),n!=null&&(n*=Math.PI/180,a.rotation=n),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function iQ(r,t,e,a,i){e=e||Np;var n=t.ecModel,o=n&&n.option.textStyle,s=nQ(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var v=t.getModel(["rich",u]);WL(l[u]={},v,o,e,a,i,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var f=t.get("minMargin");f!=null&&(r.margin=f),WL(r,t,o,e,a,i,!0,!1)}function nQ(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Np).rich;if(e){t=t||{};for(var a=ft(e),i=0;i<a.length;i++){var n=a[i];t[n]=1}}r=r.parentModel}return t}var FL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],HL=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],qL=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function WL(r,t,e,a,i,n,o,s){e=!i&&e||Np;var l=a&&a.inheritColor,u=t.getShallow("color"),v=t.getShallow("textBorderColor"),h=Je(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(v==="inherit"||v==="auto")&&(l?v=l:v=null),n||(u=u||e.color,v=v||e.textBorderColor),u!=null&&(r.fill=u),v!=null&&(r.stroke=v);var f=Je(t.getShallow("textBorderWidth"),e.textBorderWidth);f!=null&&(r.lineWidth=f);var c=Je(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=Je(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!i&&!n&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<FL.length;p++){var g=FL[p],m=Je(t.getShallow(g),e[g]);m!=null&&(r[g]=m)}for(var p=0;p<HL.length;p++){var g=HL[p],m=t.getShallow(g);m!=null&&(r[g]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!a.disableBox){for(var p=0;p<qL.length;p++){var g=qL[p],m=t.getShallow(g);m!=null&&(r[g]=m)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function sC(r,t){var e=t&&t.getModel("textStyle");return Ua([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var hu=yt();function vW(r,t,e,a){if(r){var i=hu(r);i.prevValue=i.value,i.value=e;var n=t.normal;i.valueAnimation=n.get("valueAnimation"),i.valueAnimation&&(i.precision=n.get("precision"),i.defaultInterpolatedText=a,i.statesModels=t)}}function hW(r,t,e,a,i){var n=hu(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=Je(n.interpolatedValue,n.prevValue),l=n.value;function u(v){var h=Cq(e,n.precision,s,l,v);n.interpolatedValue=v===1?null:h;var f=pT({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},n.statesModels,h);uW(r,f)}r.percent=0,(n.prevValue==null?$t:wt)(r,{percent:1},a,t,null,u)}var oQ=["textStyle","color"],hm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],fm=new pt,sQ=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(oQ):null)},r.prototype.getFont=function(){return sC({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<hm.length;a++)e[hm[a]]=this.getShallow(hm[a]);return fm.useStyle(e),fm.update(),fm.getBoundingRect()},r})(),fW=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lQ=Ls(fW),uQ=(function(){function r(){}return r.prototype.getLineStyle=function(t){return lQ(this,t)},r})(),cW=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],vQ=Ls(cW),hQ=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return vQ(this,t,e)},r})(),Mt=(function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){tt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,i=a==null?a:a[t];if(i==null&&!e){var n=this.parentModel;n&&(i=n.getShallow(t))}return i},r.prototype.getModel=function(t,e){var a=t!=null,i=a?this.parsePath(t):null,n=a?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(n,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Ye(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!vt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var i=0;i<t.length&&!(t[i]&&(a=a&&typeof a=="object"?a[t[i]]:null,a==null));i++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r})();YA(Mt);TX(Mt);nr(Mt,uQ);nr(Mt,hQ);nr(Mt,LX);nr(Mt,sQ);var fQ=Math.round(Math.random()*10);function fu(r){return[r||"",fQ++].join("_")}function cQ(r){var t={};r.registerSubTypeDefaulter=function(e,a){var i=Gi(e);t[i.main]=a},r.determineSubType=function(e,a){var i=a.type;if(!i){var n=Gi(e).main;r.hasSubTypes(e)&&t[n]&&(i=t[n](a))}return i}}function dQ(r,t){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=e(o),v=u.graph,h=u.noEntryList,f={};for($(n,function(y){f[y]=!0});h.length;){var c=h.pop(),d=v[c],p=!!f[c];p&&(s.call(l,c,d.originalDeps.slice()),delete f[c]),$(d.successor,p?m:g)}$(f,function(){var y="";throw new Error(y)});function g(y){v[y].entryCount--,v[y].entryCount===0&&h.push(y)}function m(y){f[y]=!0,g(y)}};function e(n){var o={},s=[];return $(n,function(l){var u=a(o,l),v=u.originalDeps=t(l),h=i(v,n);u.entryCount=h.length,u.entryCount===0&&s.push(l),$(h,function(f){nt(u.predecessor,f)<0&&u.predecessor.push(f);var c=a(o,f);nt(c.successor,f)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function a(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function i(n,o){var s=[];return $(n,function(l){nt(o,l)>=0&&s.push(l)}),s}}function go(r,t){return tt(tt({},r,!0),t,!0)}const pQ={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},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:". "}}}},gQ={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:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var kd="ZH",lC="EN",Fl=lC,id={},uC={},dW=vt.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fl).toUpperCase();return r.indexOf(kd)>-1?kd:Fl})():Fl;function vC(r,t){r=r.toUpperCase(),uC[r]=new Mt(t),id[r]=t}function mQ(r){if(Re(r)){var t=id[r.toUpperCase()]||{};return r===kd||r===lC?Ye(t):tt(Ye(t),Ye(id[Fl]),!1)}else return tt(Ye(r),Ye(id[Fl]),!1)}function gT(r){return uC[r]}function yQ(){return uC[Fl]}vC(lC,pQ);vC(kd,gQ);var hC=1e3,fC=hC*60,jv=fC*60,Wa=jv*24,UL=Wa*365,Ev={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}"},Hf="{yyyy}-{MM}-{dd}",$L={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hf,hour:Hf+" "+Ev.hour,minute:Hf+" "+Ev.minute,second:Hf+" "+Ev.second,millisecond:Ev.none},cm=["year","month","day","hour","minute","second","millisecond"],pW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function na(r,t){return r+="","0000".substr(0,t-r.length)+r}function Hl(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function _Q(r){return r===Hl(r)}function xQ(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zh(r,t,e,a){var i=Ma(r),n=i[cC(e)](),o=i[ql(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[zp(e)](),u=i["get"+(e?"UTC":"")+"Day"](),v=i[yh(e)](),h=(v-1)%12+1,f=i[Bp(e)](),c=i[Vp(e)](),d=i[Gp(e)](),p=v>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof Mt?a:gT(a||dW)||yQ(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,na(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,na(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,na(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,na(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,na(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,na(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,na(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,na(d,3)).replace(/{S}/g,d+"")}function SQ(r,t,e,a,i){var n=null;if(Re(e))n=e;else if(He(e))n=e(r.value,t,{level:r.level});else{var o=_e({},Ev);if(r.level>0)for(var s=0;s<cm.length;++s)o[cm[s]]="{primary|"+o[cm[s]]+"}";var l=e?e.inherit===!1?e:Ue(e,o):o,u=gW(r.value,i);if(l[u])n=l[u];else if(l.inherit){for(var v=pW.indexOf(u),s=v-1;s>=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(Se(n)){var h=r.level==null?0:r.level>=0?r.level:n.length+r.level;h=Math.min(h,n.length-1),n=n[h]}}return Zh(new Date(r.value),n,i,a)}function gW(r,t){var e=Ma(r),a=e[ql(t)]()+1,i=e[zp(t)](),n=e[yh(t)](),o=e[Bp(t)](),s=e[Vp(t)](),l=e[Gp(t)](),u=l===0,v=u&&s===0,h=v&&o===0,f=h&&n===0,c=f&&i===1,d=c&&a===1;return d?"year":c?"month":f?"day":h?"hour":v?"minute":u?"second":"millisecond"}function YL(r,t,e){var a=bt(r)?Ma(r):r;switch(t=t||gW(r,e),t){case"year":return a[cC(e)]();case"half-year":return a[ql(e)]()>=6?1:0;case"quarter":return Math.floor((a[ql(e)]()+1)/4);case"month":return a[ql(e)]();case"day":return a[zp(e)]();case"half-day":return a[yh(e)]()/24;case"hour":return a[yh(e)]();case"minute":return a[Bp(e)]();case"second":return a[Vp(e)]();case"millisecond":return a[Gp(e)]()}}function cC(r){return r?"getUTCFullYear":"getFullYear"}function ql(r){return r?"getUTCMonth":"getMonth"}function zp(r){return r?"getUTCDate":"getDate"}function yh(r){return r?"getUTCHours":"getHours"}function Bp(r){return r?"getUTCMinutes":"getMinutes"}function Vp(r){return r?"getUTCSeconds":"getSeconds"}function Gp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function bQ(r){return r?"setUTCFullYear":"setFullYear"}function mW(r){return r?"setUTCMonth":"setMonth"}function yW(r){return r?"setUTCDate":"setDate"}function _W(r){return r?"setUTCHours":"setHours"}function xW(r){return r?"setUTCMinutes":"setMinutes"}function SW(r){return r?"setUTCSeconds":"setSeconds"}function bW(r){return r?"setUTCMilliseconds":"setMilliseconds"}function wQ(r,t,e,a,i,n,o,s){var l=new pt({style:{text:r,font:t,align:e,verticalAlign:a,padding:i,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function dC(r){if(!WA(r))return Re(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function pC(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Vs=xp;function mT(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(v){return v&&Ua(v)?v:"-"}function n(v){return!!(v!=null&&!isNaN(v)&&isFinite(v))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ma(r):r;if(isNaN(+l)){if(s)return"-"}else return Zh(l,a,e)}if(t==="ordinal")return md(r)?i(r):bt(r)&&n(r)?r+"":"-";var u=Yi(r);return n(u)?dC(u):md(r)?i(r):typeof r=="boolean"?r+"":"-"}var ZL=["a","b","c","d","e","f","g"],dm=function(r,t){return"{"+r+(t==null?"":t)+"}"};function gC(r,t,e){Se(t)||(t=[t]);var a=t.length;if(!a)return"";for(var i=t[0].$vars||[],n=0;n<i.length;n++){var o=ZL[n];r=r.replace(dm(o),dm(o,0))}for(var s=0;s<a;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(dm(ZL[l],s),e?Zr(u):u)}return r}function TQ(r,t,e){return $(t,function(a,i){r=r.replace("{"+i+"}",a)}),r}function wW(r,t){var e=Re(r)?{color:r,extraCssText:t}:r||{},a=e.color,i=e.type;t=e.extraCssText;var n=e.renderMode||"html";if(!a)return"";if(n==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Zr(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zr(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function AQ(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r="MM-dd\nyyyy");var a=Ma(t),i=e?"getUTC":"get",n=a[i+"FullYear"](),o=a[i+"Month"]()+1,s=a[i+"Date"](),l=a[i+"Hours"](),u=a[i+"Minutes"](),v=a[i+"Seconds"](),h=a[i+"Milliseconds"]();return r=r.replace("MM",na(o,2)).replace("M",o).replace("yyyy",n).replace("yy",na(n%100+"",2)).replace("dd",na(s,2)).replace("d",s).replace("hh",na(l,2)).replace("h",l).replace("mm",na(u,2)).replace("m",u).replace("ss",na(v,2)).replace("s",v).replace("SSS",na(h,3)),r}function CQ(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ps(r,t){return t=t||"transparent",Re(r)?r:$e(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Od(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var nd=$,TW=["left","right","top","bottom","width","height"],ds=[["width","left","right"],["height","top","bottom"]];function mC(r,t,e,a,i){var n=0,o=0;a==null&&(a=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var v=l.getBoundingRect(),h=t.childAt(u+1),f=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=v.width+(f?-f.x+v.x:0);c=n+p,c>a||l.newline?(n=0,c=p,o+=s+e,s=v.height):s=Math.max(s,v.height)}else{var g=v.height+(f?-f.y+v.y:0);d=o+g,d>i||l.newline?(n+=s+e,o=0,d=g,s=v.width):s=Math.max(s,v.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=c+e:o=d+e)})}var bs=mC;et(mC,"vertical");et(mC,"horizontal");function MQ(r,t,e){var a=t.width,i=t.height,n=Ie(r.left,a),o=Ie(r.top,i),s=Ie(r.right,a),l=Ie(r.bottom,i);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=Vs(e||0),{width:Math.max(s-n-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function dr(r,t,e){e=Vs(e||0);var a=t.width,i=t.height,n=Ie(r.left,a),o=Ie(r.top,i),s=Ie(r.right,a),l=Ie(r.bottom,i),u=Ie(r.width,a),v=Ie(r.height,i),h=e[2]+e[0],f=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-f-n),isNaN(v)&&(v=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(v)&&(c>a/i?u=a*.8:v=i*.8),isNaN(u)&&(u=c*v),isNaN(v)&&(v=u/c)),isNaN(n)&&(n=a-s-u-f),isNaN(o)&&(o=i-l-v-h),r.left||r.right){case"center":n=a/2-u/2-e[3];break;case"right":n=a-u-f;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-v/2-e[0];break;case"bottom":o=i-v-h;break}n=n||0,o=o||0,isNaN(u)&&(u=a-f-n-(s||0)),isNaN(v)&&(v=i-h-o-(l||0));var d=new at(n+e[3],o+e[0],u,v);return d.margin=e,d}function Fp(r,t,e,a,i,n){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new at(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var v=r.getLocalTransform();u=u.clone(),u.applyTransform(v)}var h=dr(Ue({width:u.width,height:u.height},t),e,a),f=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(n.x=f,n.y=c):(n.x+=f,n.y+=c),n===r&&r.markRedraw(),!0}function DQ(r,t){return r[ds[t][0]]!=null||r[ds[t][1]]!=null&&r[ds[t][2]]!=null}function _h(r){var t=r.layoutMode||r.constructor.layoutMode;return $e(t)?t:t?{type:t}:null}function uo(r,t,e){var a=e&&e.ignoreSize;!Se(a)&&(a=[a,a]);var i=o(ds[0],0),n=o(ds[1],1);u(ds[0],r,i),u(ds[1],r,n);function o(v,h){var f={},c=0,d={},p=0,g=2;if(nd(v,function(_){d[_]=r[_]}),nd(v,function(_){s(t,_)&&(f[_]=d[_]=t[_]),l(f,_)&&c++,l(d,_)&&p++}),a[h])return l(t,v[1])?d[v[2]]=null:l(t,v[2])&&(d[v[1]]=null),d;if(p===g||!c)return d;if(c>=g)return f;for(var m=0;m<v.length;m++){var y=v[m];if(!s(f,y)&&s(r,y)){f[y]=r[y];break}}return f}function s(v,h){return v.hasOwnProperty(h)}function l(v,h){return v[h]!=null&&v[h]!=="auto"}function u(v,h,f){nd(v,function(c){h[c]=f[c]})}}function cu(r){return AW({},r)}function AW(r,t){return t&&r&&nd(TW,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var LQ=yt(),ut=(function(r){he(t,r);function t(e,a,i){var n=r.call(this,e,a,i)||this;return n.uid=fu("ec_cpt_model"),n}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,a){var i=_h(this),n=i?cu(e):{},o=a.getTheme();tt(e,o.get(this.mainType)),tt(e,this.getDefaultOption()),i&&uo(e,n,i)},t.prototype.mergeOption=function(e,a){tt(this.option,e,!0);var i=_h(this);i&&uo(this.option,e,i)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!SX(e))return e.defaultOption;var a=LQ(this);if(!a.defaultOption){for(var i=[],n=e;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var s={},l=i.length-1;l>=0;l--)s=tt(s,i[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var i=e+"Index",n=e+"Id";return Hh(this.ecModel,e,{index:this.get(i,!0),id:this.get(n,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(Mt);Dq(ut,Mt);Mp(ut);cQ(ut);dQ(ut,IQ);function IQ(r){var t=[];return $(ut.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=we(t,function(e){return Gi(e).main}),r!=="dataset"&&nt(t,"dataset")<=0&&t.unshift("dataset"),t}var CW="";typeof navigator<"u"&&(CW=navigator.platform||"");var sl="rgba(0, 0, 0, 0.2)";const PQ={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:CW.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};var MW=Ge(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qa="original",Jr="arrayRows",ja="objectRows",Ki="keyedColumns",ao="typedArray",DW="unknown",Ui="column",du="row",zr={Must:1,Might:2,Not:3},LW=yt();function RQ(r){LW(r).datasetMap=Ge()}function IW(r,t,e){var a={},i=_C(t);if(!i||!r)return a;var n=[],o=[],s=t.ecModel,l=LW(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,v,h;r=r.slice(),$(r,function(p,g){var m=$e(p)?p:r[g]={name:p};m.type==="ordinal"&&v==null&&(v=g,h=d(m)),a[m.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});$(r,function(p,g){var m=p.name,y=d(p);if(v==null){var _=f.valueWayDim;c(a[m],_,y),c(o,_,y),f.valueWayDim+=y}else if(v===g)c(a[m],0,y),c(n,0,y);else{var _=f.categoryWayDim;c(a[m],_,y),c(o,_,y),f.categoryWayDim+=y}});function c(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return n.length&&(a.itemName=n),o.length&&(a.seriesName=o),a}function yC(r,t,e){var a={},i=_C(r);if(!i)return a;var n=t.sourceFormat,o=t.dimensionsDefine,s;(n===ja||n===Ki)&&$(o,function(v,h){($e(v)?v.name:v)==="name"&&(s=h)});var l=(function(){for(var v={},h={},f=[],c=0,d=Math.min(5,e);c<d;c++){var p=RW(t.data,n,t.seriesLayoutBy,o,t.startIndex,c);f.push(p);var g=p===zr.Not;if(g&&v.v==null&&c!==s&&(v.v=c),(v.n==null||v.n===v.v||!g&&f[v.n]===zr.Not)&&(v.n=c),m(v)&&f[v.n]!==zr.Not)return v;g||(p===zr.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function m(y){return y.v!=null&&y.n!=null}return m(v)?v:m(h)?h:null})();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function _C(r){var t=r.get("data",!0);if(!t)return Hh(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},cr).models[0]}function EQ(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Hh(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},cr).models}function PW(r,t){return RW(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function RW(r,t,e,a,i,n){var o,s=5;if(ua(r))return zr.Not;var l,u;if(a){var v=a[n];$e(v)?(l=v.name,u=v.type):Re(v)&&(l=v)}if(u!=null)return u==="ordinal"?zr.Must:zr.Not;if(t===Jr){var h=r;if(e===du){for(var f=h[n],c=0;c<(f||[]).length&&c<s;c++)if((o=x(f[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=x(d[n]))!=null)return o}}else if(t===ja){var p=r;if(!l)return zr.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=x(g[l]))!=null)return o}}else if(t===Ki){var m=r;if(!l)return zr.Not;var f=m[l];if(!f||ua(f))return zr.Not;for(var c=0;c<f.length&&c<s;c++)if((o=x(f[c]))!=null)return o}else if(t===Qa)for(var y=r,c=0;c<y.length&&c<s;c++){var g=y[c],_=iu(g);if(!Se(_))return zr.Not;if((o=x(_[n]))!=null)return o}function x(S){var b=Re(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return b?zr.Might:zr.Not;if(b&&S!=="-")return zr.Must}return zr.Not}var yT=Ge();function kQ(r,t){Kr(yT.get(r)==null&&t),yT.set(r,t)}function OQ(r,t,e){var a=yT.get(t);if(!a)return e;var i=a(r);return i?e.concat(i):e}var XL=yt(),NQ=yt(),xC=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var i=Nt(this.get("color",!0)),n=this.get("colorLayer",!0);return EW(this,XL,i,n,t,e,a)},r.prototype.clearColorPalette=function(){BQ(this,XL)},r})();function _T(r,t,e,a){var i=Nt(r.get(["aria","decal","decals"]));return EW(r,NQ,i,null,t,e,a)}function zQ(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function EW(r,t,e,a,i,n,o){n=n||r;var s=t(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var v=o==null||!a?e:zQ(a,o);if(v=v||e,!(!v||!v.length)){var h=v[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%v.length,h}}function BQ(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qf,Hu,KL,QL="\0_ec_inner",VQ=1,SC=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,i,n,o,s){n=n||{},this.option=null,this._theme=new Mt(n),this._locale=new Mt(o),this._optionManager=s},t.prototype.setOption=function(e,a,i){var n=eI(a);this._optionManager.setOption(e,i,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,a){return this._resetOption(e,eI(a))},t.prototype._resetOption=function(e,a){var i=!1,n=this._optionManager;if(!e||e==="recreate"){var o=n.mountOption(e==="recreate");!this.option||e==="recreate"?KL(this,o):(this.restoreData(),this._mergeOption(o,a)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=n.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=n.getMediaOption(this);l.length&&$(l,function(u){i=!0,this._mergeOption(u,a)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var i=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Ge(),u=a&&a.replaceMergeMainTypeMap;RQ(this),$(e,function(h,f){h!=null&&(ut.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Ye(h):tt(i[f],h,!0))}),u&&u.each(function(h,f){ut.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),v,this);function v(h){var f=OQ(this,h,Nt(e[h])),c=n.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=wq(c,f,d);fX(p,h,ut),i[h]=null,n.set(h,null),o.set(h,0);var g=[],m=[],y=0,_;$(p,function(x,S){var b=x.existing,w=x.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var A=h==="series",T=ut.getClass(h,x.keyInfo.subType,!A);if(!T)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===T)b.name=x.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var C=_e({componentIndex:S},x.keyInfo);b=new T(w,this,this,C),_e(b,C),x.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[h]=g,n.set(h,m),o.set(h,y),h==="series"&&qf(this)}this._seriesIndices||qf(this)},t.prototype.getOption=function(){var e=Ye(this.option);return $(e,function(a,i){if(ut.hasClass(i)){for(var n=Nt(a),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!dh(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,e[i]=n}}),delete e[QL],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var i=this._componentsMap.get(e);if(i){var n=i[a||0];if(n)return n;if(a==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var i=e.index,n=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return i!=null?(l=[],$(Nt(i),function(u){s[u]&&l.push(s[u])})):n!=null?l=jL("id",n,s):o!=null?l=jL("name",o,s):l=Ct(s,function(u){return!!u}),JL(l,e)},t.prototype.findComponents=function(e){var a=e.query,i=e.mainType,n=s(a),o=n?this.queryComponents(n):Ct(this._componentsMap.get(i),function(u){return!!u});return l(JL(o,e));function s(u){var v=i+"Index",h=i+"Id",f=i+"Name";return u&&(u[v]!=null||u[h]!=null||u[f]!=null)?{mainType:i,index:u[v],id:u[h],name:u[f]}:null}function l(u){return e.filter?Ct(u,e.filter):u}},t.prototype.eachComponent=function(e,a,i){var n=this._componentsMap;if(He(e)){var o=a,s=e;n.each(function(h,f){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,f,d,d.componentIndex)}})}else for(var l=Re(e)?n.get(e):$e(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var v=l[u];v&&a.call(i,v,v.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=_r(e,null);return Ct(this._componentsMap.get("series"),function(i){return!!i&&a!=null&&i.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ct(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Ct(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Hu(this),$(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];e.call(a,n,i)},this)},t.prototype.eachRawSeries=function(e,a){$(this._componentsMap.get("series"),function(i){i&&e.call(a,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,i){Hu(this),$(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===e&&a.call(i,o,n)},this)},t.prototype.eachRawSeriesByType=function(e,a,i){return $(this.getSeriesByType(e),a,i)},t.prototype.isSeriesFiltered=function(e){return Hu(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Hu(this);var i=[];$(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];e.call(a,o,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=Ge(i)},t.prototype.restoreData=function(e){qf(this);var a=this._componentsMap,i=[];a.each(function(n,o){ut.hasClass(o)&&i.push(o)}),ut.topologicalTravel(i,ut.getAllClassMainTypes(),function(n){$(a.get(n),function(o){o&&(n!=="series"||!GQ(o,e))&&o.restoreData()})})},t.internalField=(function(){qf=function(e){var a=e._seriesIndices=[];$(e._componentsMap.get("series"),function(i){i&&a.push(i.componentIndex)}),e._seriesIndicesMap=Ge(a)},Hu=function(e){},KL=function(e,a){e.option={},e.option[QL]=VQ,e._componentsMap=Ge({series:[]}),e._componentsCount=Ge();var i=a.aria;$e(i)&&i.enabled==null&&(i.enabled=!0),FQ(a,e._theme.option),tt(a,PQ,!1),e._mergeOption(a,null)}})(),t})(Mt);function GQ(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||i!=null&&r.name!==i}}function FQ(r,t){var e=r.color&&!r.colorLayer;$(t,function(a,i){i==="colorLayer"&&e||ut.hasClass(i)||(typeof a=="object"?r[i]=r[i]?tt(r[i],a,!1):Ye(a):r[i]==null&&(r[i]=a))})}function jL(r,t,e){if(Se(t)){var a=Ge();return $(t,function(n){if(n!=null){var o=_r(n,null);o!=null&&a.set(n,!0)}}),Ct(e,function(n){return n&&a.get(n[r])})}else{var i=_r(t,null);return Ct(e,function(n){return n&&i!=null&&n[r]===i})}}function JL(r,t){return t.hasOwnProperty("subType")?Ct(r,function(e){return e&&e.subType===t.subType}):r}function eI(r){var t=Ge();return r&&$(Nt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nr(SC,xC);var HQ=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kW=(function(){function r(t){$(HQ,function(e){this[e]=Ne(t[e],t)},this)}return r})(),pm={},pu=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];$(pm,function(i,n){var o=i.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){$(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){pm[t]=e},r.get=function(t){return pm[t]},r})(),qQ=/^(min|max)?(.+)$/,WQ=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&($(Nt(t.series),function(o){o&&o.data&&ua(o.data)&&sh(o.data)}),$(Nt(t.dataset),function(o){o&&o.source&&ua(o.source)&&sh(o.source)})),t=Ye(t);var i=this._optionBackup,n=UQ(t,e,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Ye(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var i=t.getComponent("timeline");i&&(e=Ye(a[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!i.length&&!n)return s;for(var l=0,u=i.length;l<u;l++)$Q(i[l].query,e,a)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!ZQ(o,this._currentMediaIndices)&&(s=we(o,function(v){return Ye(v===-1?n.option:i[v].option)})),this._currentMediaIndices=o,s},r})();function UQ(r,t,e){var a=[],i,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,v=!!r.media,h=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((h||v)&&(r.options=r.media=null),n=r),v&&Se(u)&&$(u,function(c){c&&c.option&&(c.query?a.push(c):i||(i=c))}),f(n),$(l,function(c){return f(c)}),$(a,function(c){return f(c.option)});function f(c){$(t,function(d){d(c,e)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:i,mediaList:a}}function $Q(r,t,e){var a={width:t,height:e,aspectratio:t/e},i=!0;return $(r,function(n,o){var s=o.match(qQ);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();YQ(a[u],n,l)||(i=!1)}}),i}function YQ(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function ZQ(r,t){return r.join(",")===t.join(",")}var ri=$,xh=$e,tI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gm(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=tI.length;e<a;e++){var i=tI[e],n=t.normal,o=t.emphasis;n&&n[i]&&(r[i]=r[i]||{},r[i].normal?tt(r[i].normal,n[i]):r[i].normal=n[i],n[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?tt(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Yr(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,i=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,Ue(r[t],a)):r[t]=a),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function kv(r){Yr(r,"itemStyle"),Yr(r,"lineStyle"),Yr(r,"areaStyle"),Yr(r,"label"),Yr(r,"labelLine"),Yr(r,"upperLabel"),Yr(r,"edgeLabel")}function fr(r,t){var e=xh(r)&&r[t],a=xh(e)&&e.textStyle;if(a)for(var i=0,n=sL.length;i<n;i++){var o=sL[i];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Va(r){r&&(kv(r),fr(r,"label"),r.emphasis&&fr(r.emphasis,"label"))}function XQ(r){if(xh(r)){gm(r),kv(r),fr(r,"label"),fr(r,"upperLabel"),fr(r,"edgeLabel"),r.emphasis&&(fr(r.emphasis,"label"),fr(r.emphasis,"upperLabel"),fr(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(gm(t),Va(t));var e=r.markLine;e&&(gm(e),Va(e));var a=r.markArea;a&&Va(a);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var n=r.links||r.edges;if(n&&!ua(n))for(var o=0;o<n.length;o++)Va(n[o]);$(r.categories,function(u){kv(u)})}if(i&&!ua(i))for(var o=0;o<i.length;o++)Va(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Va(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Se(l[o])?(Va(l[o][0]),Va(l[o][1])):Va(l[o]);r.type==="gauge"?(fr(r,"axisLabel"),fr(r,"title"),fr(r,"detail")):r.type==="treemap"?(Yr(r.breadcrumb,"itemStyle"),$(r.levels,function(u){kv(u)})):r.type==="tree"&&kv(r.leaves)}}function on(r){return Se(r)?r:r?[r]:[]}function rI(r){return(Se(r)?r[0]:r)||{}}function KQ(r,t){ri(on(r.series),function(a){xh(a)&&XQ(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ri(e,function(a){ri(on(r[a]),function(i){i&&(fr(i,"axisLabel"),fr(i.axisPointer,"label"))})}),ri(on(r.parallel),function(a){var i=a&&a.parallelAxisDefault;fr(i,"axisLabel"),fr(i&&i.axisPointer,"label")}),ri(on(r.calendar),function(a){Yr(a,"itemStyle"),fr(a,"dayLabel"),fr(a,"monthLabel"),fr(a,"yearLabel")}),ri(on(r.radar),function(a){fr(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),ri(on(r.geo),function(a){xh(a)&&(Va(a),ri(on(a.regions),function(i){Va(i)}))}),ri(on(r.timeline),function(a){Va(a),Yr(a,"label"),Yr(a,"itemStyle"),Yr(a,"controlStyle",!0);var i=a.data;Se(i)&&$(i,function(n){$e(n)&&(Yr(n,"label"),Yr(n,"itemStyle"))})}),ri(on(r.toolbox),function(a){Yr(a,"iconStyle"),ri(a.feature,function(i){Yr(i,"iconStyle")})}),fr(rI(r.axisPointer),"label"),fr(rI(r.tooltip).axisPointer,"label")}function QQ(r,t){for(var e=t.split(","),a=r,i=0;i<e.length&&(a=a&&a[e[i]],a!=null);i++);return a}function jQ(r,t,e,a){for(var i=t.split(","),n=r,o,s=0;s<i.length-1;s++)o=i[s],n[o]==null&&(n[o]={}),n=n[o];n[i[s]]==null&&(n[i[s]]=e)}function aI(r){r&&$(JQ,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var JQ=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ej=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],mm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function qu(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<mm.length;e++){var a=mm[e][1],i=mm[e][0];t[a]!=null&&(t[i]=t[a])}}function iI(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function nI(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function tj(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function OW(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&OW(r[e].children,t)}function NW(r,t){KQ(r,t),r.series=Nt(r.series),$(r.series,function(e){if($e(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),iI(e.label);var i=e.data;if(i&&!ua(i))for(var n=0;n<i.length;n++)iI(i[n]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=QQ(e,"pointer.color");o!=null&&jQ(e,"itemStyle.color",o)}else if(a==="bar"){qu(e),qu(e.backgroundStyle),qu(e.emphasis);var i=e.data;if(i&&!ua(i))for(var n=0;n<i.length;n++)typeof i[n]=="object"&&(qu(i[n]),qu(i[n]&&i[n].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),nI(e),OW(e.data,nI)}else a==="graph"||a==="sankey"?tj(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Ue(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),aI(e)}}),r.dataRange&&(r.visualMap=r.dataRange),$(ej,function(e){var a=r[e];a&&(Se(a)||(a=[a]),$(a,function(i){aI(i)}))})}function rj(r){var t=Ge();r.eachSeries(function(e){var a=e.get("stack");if(a){var i=t.get(a)||t.set(a,[]),n=e.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(aj)}function aj(r){$(r,function(t,e){var a=[],i=[NaN,NaN],n=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,v,h){var f=o.get(t.stackedDimension,h);if(isNaN(f))return i;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=rX(f,y),p=y;break}}}return a[0]=f,a[1]=p,a})})}var Hp=(function(){function r(t){this.data=t.data||(t.sourceFormat===Ki?{}:[]),this.sourceFormat=t.sourceFormat||DW,this.seriesLayoutBy=t.seriesLayoutBy||Ui,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var i=e[a];i.type==null&&PW(this,a)===zr.Must&&(i.type="ordinal")}}return r})();function bC(r){return r instanceof Hp}function xT(r,t,e){e=e||zW(r);var a=t.seriesLayoutBy,i=nj(r,e,a,t.sourceHeader,t.dimensions),n=new Hp({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ye(t)});return n}function wC(r){return new Hp({data:r,sourceFormat:ua(r)?ao:Qa})}function ij(r){return new Hp({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Ye(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function zW(r){var t=DW;if(ua(r))t=ao;else if(Se(r)){r.length===0&&(t=Jr);for(var e=0,a=r.length;e<a;e++){var i=r[e];if(i!=null){if(Se(i)||ua(i)){t=Jr;break}else if($e(i)){t=ja;break}}}}else if($e(r)){for(var n in r)if(Be(r,n)&&Br(r[n])){t=Ki;break}}return t}function nj(r,t,e,a,i){var n,o;if(!r)return{dimensionsDefine:oI(i),startIndex:o,dimensionsDetectedCount:n};if(t===Jr){var s=r;a==="auto"||a==null?sI(function(u){u!=null&&u!=="-"&&(Re(u)?o==null&&(o=1):o=0)},e,s,10):o=bt(a)?a:a?1:0,!i&&o===1&&(i=[],sI(function(u,v){i[v]=u!=null?u+"":""},e,s,1/0)),n=i?i.length:e===du?s.length:s[0]?s[0].length:null}else if(t===ja)i||(i=oj(r));else if(t===Ki)i||(i=[],$(r,function(u,v){i.push(v)}));else if(t===Qa){var l=iu(r[0]);n=Se(l)&&l.length||1}return{startIndex:o,dimensionsDefine:oI(i),dimensionsDetectedCount:n}}function oj(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return ft(e)}function oI(r){if(r){var t=Ge();return we(r,function(e,a){e=$e(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var n=t.get(i.name);return n?i.name+="-"+n.count++:t.set(i.name,{count:1}),i})}}function sI(r,t,e,a){if(t===du)for(var i=0;i<e.length&&i<a;i++)r(e[i]?e[i][0]:null,i);else for(var n=e[0]||[],i=0;i<n.length&&i<a;i++)r(n[i],i)}function BW(r){var t=r.sourceFormat;return t===ja||t===Ki}var Ho,qo,Wo,lI,uI,VW=(function(){function r(t,e){var a=bC(t)?t:wC(t);this._source=a;var i=this._data=a.data;a.sourceFormat===ao&&(this._offset=0,this._dimSize=e,this._data=i),uI(this,i,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;uI=function(o,s,l){var u=l.sourceFormat,v=l.seriesLayoutBy,h=l.startIndex,f=l.dimensionsDefine,c=lI[TC(u,v)];if(_e(o,c),u===ao)o.getItem=e,o.count=i,o.fillStorage=a;else{var d=GW(u,v);o.getItem=Ne(d,null,s,h,f);var p=FW(u,v);o.count=Ne(p,null,s,h,f)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,v=u*o,h=0;h<u;h++)s[h]=l[v+h];return s},a=function(o,s,l,u){for(var v=this._data,h=this._dimSize,f=0;f<h;f++){for(var c=u[f],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,m=l[f],y=0;y<g;y++){var _=v[y*h+f];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};lI=(t={},t[Jr+"_"+Ui]={pure:!0,appendData:n},t[Jr+"_"+du]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ja]={pure:!0,appendData:n},t[Ki]={pure:!0,appendData:function(o){var s=this._data;$(o,function(l,u){for(var v=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)v.push(l[h])})}},t[Qa]={appendData:n},t[ao]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),vI=function(r,t,e,a){return r[a]},sj=(Ho={},Ho[Jr+"_"+Ui]=function(r,t,e,a){return r[a+t]},Ho[Jr+"_"+du]=function(r,t,e,a,i){a+=t;for(var n=i||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[a]:null}return n},Ho[ja]=vI,Ho[Ki]=function(r,t,e,a,i){for(var n=i||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];n[o]=l?l[a]:null}return n},Ho[Qa]=vI,Ho);function GW(r,t){var e=sj[TC(r,t)];return e}var hI=function(r,t,e){return r.length},lj=(qo={},qo[Jr+"_"+Ui]=function(r,t,e){return Math.max(0,r.length-t)},qo[Jr+"_"+du]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},qo[ja]=hI,qo[Ki]=function(r,t,e){var a=e[0].name,i=r[a];return i?i.length:0},qo[Qa]=hI,qo);function FW(r,t){var e=lj[TC(r,t)];return e}var ym=function(r,t,e){return r[t]},uj=(Wo={},Wo[Jr]=ym,Wo[ja]=function(r,t,e){return r[e]},Wo[Ki]=ym,Wo[Qa]=function(r,t,e){var a=iu(r);return a instanceof Array?a[t]:a},Wo[ao]=ym,Wo);function HW(r){var t=uj[r];return t}function TC(r,t){return r===Jr?r+"_"+t:r}function Kl(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var i=r.getStore(),n=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return HW(n)(a,o,s)}else{var l=a;return n===Qa&&(l=iu(a)),l}}}}var vj=/\{@(.+?)\}/g,qp=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),i=this.getRawValue(t,e),n=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],v=l&&l.stroke,h=this.mainType,f=h==="series",c=a.userOutput&&a.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:n,data:s,dataType:e,value:i,color:u,borderColor:v,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,i,n,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),i!=null&&Se(l.value)&&(l.value=l.value[i]),!n){var u=s.getItemModel(t);n=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(He(n))return l.status=e,l.dimensionIndex=i,n(l);if(Re(n)){var v=gC(n,l);return v.replace(vj,function(h,f){var c=f.length,d=f;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=Kl(s,t,d);if(o&&Se(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Kl(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function fI(r){var t,e;return $e(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Jv(r){return new hj(r)}var hj=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!a&&(n=this._plan(this.context));var o=v(this._modBy),s=this._modDataCount||0,l=v(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(n="reset");function v(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||n==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!a&&(h||c<d)){var p=this._progress;if(Se(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,i,n){cI.reset(e,a,i,n),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:cI.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),Se(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),cI=(function(){var r,t,e,a,i,n={reset:function(l,u,v,h){t=l,r=u,e=v,a=h,i=Math.ceil(a/e),n.next=e>1&&a>0?s:o}};return n;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<a?l:t;return t++,u}})();function io(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!bt(r)&&r!=null&&r!=="-"&&(r=+Ma(r)),r==null||r===""?NaN:Number(r))}var fj=Ge({number:function(r){return parseFloat(r)},time:function(r){return+Ma(r)},trim:function(r){return Re(r)?Ua(r):r}});function qW(r){return fj.get(r)}var WW={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},cj=(function(){function r(t,e){if(!bt(e)){var a="";Rt(a)}this._opFn=WW[t],this._rvalFloat=Yi(e)}return r.prototype.evaluate=function(t){return bt(t)?this._opFn(t,this._rvalFloat):this._opFn(Yi(t),this._rvalFloat)},r})(),UW=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=bt(t)?t:Yi(t),i=bt(e)?e:Yi(e),n=isNaN(a),o=isNaN(i);if(n&&(a=this._incomparable),o&&(i=this._incomparable),n&&o){var s=Re(t),l=Re(e);s&&(a=l?t:0),l&&(i=s?e:0)}return a<i?this._resultLT:a>i?-this._resultLT:0},r})(),dj=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Yi(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=Yi(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function pj(r,t){return r==="eq"||r==="ne"?new dj(r==="eq",t):Be(WW,r)?new cj(r,t):null}var gj=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return io(t,e)},r})();function mj(r,t){var e=new gj,a=r.data,i=e.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Ui&&Rt(o);var s=[],l={},u=r.dimensionsDefine;if(u)$(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Be(l,m)&&Rt(_),l[m]=y}});else for(var v=0;v<r.dimensionsDetectedCount;v++)s.push({index:v});var h=GW(i,Ui);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(a,n,s,p)},e.getRawData=Ne(yj,null,r)),e.cloneRawData=Ne(_j,null,r);var f=FW(i,Ui);e.count=Ne(f,null,a,n,s);var c=HW(i);e.retrieveValue=function(p,g){var m=h(a,n,s,p);return d(m,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return c(p,g,m.name)}};return e.getDimensionInfo=Ne(xj,null,s,l),e.cloneAllDimensionInfo=Ne(Sj,null,s),e}function yj(r){var t=r.sourceFormat;if(!AC(t)){var e="";Rt(e)}return r.data}function _j(r){var t=r.sourceFormat,e=r.data;if(!AC(t)){var a="";Rt(a)}if(t===Jr){for(var i=[],n=0,o=e.length;n<o;n++)i.push(e[n].slice());return i}else if(t===ja){for(var i=[],n=0,o=e.length;n<o;n++)i.push(_e({},e[n]));return i}}function xj(r,t,e){if(e!=null){if(bt(e)||!isNaN(e)&&!Be(t,e))return r[e];if(Be(t,e))return t[e]}}function Sj(r){return Ye(r)}var $W=Ge();function bj(r){r=Ye(r);var t=r.type,e="";t||Rt(e);var a=t.split(":");a.length!==2&&Rt(e);var i=!1;a[0]==="echarts"&&(t=a[1],i=!0),r.__isBuiltIn=i,$W.set(t,r)}function wj(r,t,e){var a=Nt(r),i=a.length,n="";i||Rt(n);for(var o=0,s=i;o<s;o++){var l=a[o];t=Tj(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Tj(r,t,e,a){var i="";t.length||Rt(i),$e(r)||Rt(i);var n=r.type,o=$W.get(n);o||Rt(i);var s=we(t,function(u){return mj(u,o)}),l=Nt(o.transform({upstream:s[0],upstreamList:s,config:Ye(r.config)}));return we(l,function(u,v){var h="";$e(u)||Rt(h),u.data||Rt(h);var f=zW(u.data);AC(f)||Rt(h);var c,d=t[0];if(d&&v===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:Ui,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Ui,sourceHeader:0,dimensions:u.dimensions};return xT(u.data,c,null)})}function AC(r){return r===Jr||r===ja}var Wp="undefined",Aj=typeof Uint32Array===Wp?Array:Uint32Array,Cj=typeof Uint16Array===Wp?Array:Uint16Array,YW=typeof Int32Array===Wp?Array:Int32Array,dI=typeof Float64Array===Wp?Array:Float64Array,ZW={float:dI,int:YW,ordinal:Array,number:Array,time:dI},_m;function ll(r){return r>65535?Aj:Cj}function ul(){return[1/0,-1/0]}function Mj(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function pI(r,t,e,a,i){var n=ZW[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new n(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new n(a)}var ST=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ge()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),n=this.defaultDimValueGetter=_m[i.sourceFormat];this._dimValueGetter=a||n,this._rawExtent=[],BW(i),this._dimensions=we(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,i=this._dimensions,n=a.get(t);if(n!=null){if(i[n].type===e)return n}else n=i.length;return i[n]={type:e},a.set(t,n),this._chunks[n]=new ZW[e||"float"](this._rawCount),this._rawExtent[n]=ul(),n},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],i=this._dimensions[t],n=this._rawExtent,o=i.ordinalOffset||0,s=a.length;o===0&&(n[t]=ul());for(var l=n[t],u=o;u<s;u++){var v=a[u]=e.parseAndCollect(a[u]);isNaN(v)||(l[0]=Math.min(v,l[0]),l[1]=Math.max(v,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=a),a<i&&this._initDataFromProvider(a,i,!0),[a,i]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,i=this._dimensions,n=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<n;u++){var v=i[u];pI(a,u,v.type,l,!0)}for(var h=[],f=s;f<l;f++)for(var c=f-s,d=0;d<n;d++){var v=i[d],p=_m.arrayRows.call(this,t[c]||h,v.property,c,d);a[d][f]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var i=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=we(o,function(y){return y.property}),v=0;v<s;v++){var h=o[v];l[v]||(l[v]=ul()),pI(n,v,h.type,e,a)}if(i.fillStorage)i.fillStorage(t,e,n,l);else for(var f=[],c=t;c<e;c++){f=i.getItem(c,f);for(var d=0;d<s;d++){var p=n[d],g=this._dimValueGetter(f,u[d],c,d);p[c]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],i=[];if(e==null){e=t,t=[];for(var n=0;n<this._dimensions.length;n++)i.push(n)}else i=t;for(var n=0,o=i.length;n<o;n++)a.push(this.get(i[n],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var i=0,n=this.count();i<n;i++){var o=this.get(t,i);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(n){isNaN(n)||e.push(n)});var a=e.sort(function(n,o){return n-o}),i=this.count();return i===0?0:i%2===1?a[(i-1)/2]:(a[i/2]+a[i/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var i=0,n=this._count-1;i<=n;){var o=(i+n)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var i=this._chunks,n=i[t],o=[];if(!n)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,v=0,h=this.count();v<h;v++){var f=this.getRawIndex(v),c=e-n[f],d=Math.abs(c);d<=a&&((d<s||d===s&&c>=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=v))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,i=this._count;if(a===Array){t=new a(i);for(var n=0;n<i;n++)t[n]=e[n]}else t=new a(e.buffer,0,i)}else{var a=ll(this._rawCount);t=new a(this.count());for(var n=0;n<t.length;n++)t[n]=n}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),i=a.count(),n=ll(a._rawCount),o=new n(i),s=[],l=t.length,u=0,v=t[0],h=a._chunks,f=0;f<i;f++){var c=void 0,d=a.getRawIndex(f);if(l===0)c=e(f);else if(l===1){var p=h[v][d];c=e(p,f)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=f,c=e.apply(null,s)}c&&(o[u++]=d)}return u<i&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var i=ft(t),n=i.length;if(!n)return this;var o=e.count(),s=ll(e._rawCount),l=new s(o),u=0,v=i[0],h=t[v][0],f=t[v][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(n===1){for(var g=c[i[0]],m=0;m<a;m++){var y=g[m];(y>=h&&y<=f||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(n===2){for(var g=c[i[0]],_=c[i[1]],x=t[i[1]][0],S=t[i[1]][1],m=0;m<a;m++){var y=g[m],b=_[m];(y>=h&&y<=f||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(n===1)for(var m=0;m<o;m++){var w=e.getRawIndex(m),y=c[i[0]][w];(y>=h&&y<=f||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var A=!0,w=e.getRawIndex(m),T=0;T<n;T++){var C=i[T],y=c[C][w];(y<t[C][0]||y>t[C][1])&&(A=!1)}A&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var i=t._chunks,n=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,v=0;v<e.length;v++)u[e[v]]=ul();for(var h=0;h<s;h++){for(var f=t.getRawIndex(h),c=0;c<o;c++)l[c]=i[e[c]][f];l[o]=h;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(n[0]=d,d=n);for(var v=0;v<d.length;v++){var p=e[v],g=d[v],m=u[p],y=i[p];y&&(y[f]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),i=a._chunks,n=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),v,h,f,c=new(ll(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var x=this.getRawIndex(_),S=n[x];isNaN(S)||(y+=S)}y/=g-p;var b=d,w=Math.min(d+l,o),A=d-1,T=n[u];v=-1,f=b;for(var C=-1,M=0,_=b;_<w;_++){var x=this.getRawIndex(_),S=n[x];if(isNaN(S)){M++,C<0&&(C=x);continue}h=Math.abs((A-m)*(S-T)-(A-_)*(y-T)),h>v&&(v=h,f=x)}M>0&&M<w-b&&(c[s++]=Math.min(C,f),f=Math.max(C,f)),c[s++]=f,u=f}return c[s++]=this.getRawIndex(o-1),a._count=s,a._indices=c,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),i=a._chunks,n=Math.floor(1/e),o=i[t],s=this.count(),l=new(ll(this._rawCount))(Math.ceil(s/n)*2),u=0,v=0;v<s;v+=n){var h=v,f=o[this.getRawIndex(h)],c=v,d=o[this.getRawIndex(c)],p=n;v+n>s&&(p=s-v);for(var g=0;g<p;g++){var m=this.getRawIndex(v+g),y=o[m];y<f&&(f=y,h=v+g),y>d&&(d=y,c=v+g)}var _=this.getRawIndex(h),x=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,i){for(var n=this.clone([t],!0),o=n._chunks,s=[],l=Math.floor(1/e),u=o[t],v=this.count(),h=n._rawExtent[t]=ul(),f=new(ll(this._rawCount))(Math.ceil(v/l)),c=0,d=0;d<v;d+=l){l>v-d&&(l=v-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=a(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,v-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),f[c++]=y}return n._count=c,n._indices=f,n._updateGetRawIdx(),n},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,i=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(a){case 0:e(n);break;case 1:e(i[t[0]][s],n);break;case 2:e(i[t[0]][s],i[t[1]][s],n);break;default:for(var l=0,u=[];l<a;l++)u[l]=i[t[l]][s];u[l]=n,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=ul();if(!e)return a;var i=this.count(),n=!this._indices,o;if(n)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<i;u++){var v=this.getRawIndex(u),h=e[v];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],i=this._chunks,n=0;n<i.length;n++)a.push(i[n][e]);return a},r.prototype.clone=function(t,e){var a=new r,i=this._chunks,n=t&&Ya(t,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<i.length;o++)a._chunks[o]=n[o]?Mj(i[o]):i[o];else a._chunks=i;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Ye(this._extent),t._rawExtent=Ye(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var i=0;i<a;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,i,n){return io(e[n],this._dimensions[n])}_m={arrayRows:t,objectRows:function(e,a,i,n){return io(e[a],this._dimensions[n])},keyedColumns:t,original:function(e,a,i,n){var o=e&&(e.value==null?e:e.value);return io(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(e,a,i,n){return e[n]}}})(),r})(),XW=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,i,n;if(Wf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var v=e[0];v.prepareSource(),u=v.getSource(),s=u.data,l=u.sourceFormat,n=[v._getVersionSign()]}else s=o.get("data",!0),l=ua(s)?ao:Qa,n=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},c=Je(h.seriesLayoutBy,f.seriesLayoutBy)||null,d=Je(h.sourceHeader,f.sourceHeader),p=Je(h.dimensions,f.dimensions),g=c!==f.seriesLayoutBy||!!d!=!!f.sourceHeader||p;i=g?[xT(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(a){var y=this._applyTransform(e);i=y.sourceList,n=y.upstreamSignList}else{var _=m.get("source",!0);i=[xT(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(i,n)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var n="";t.length!==1&&mI(n)}var o,s=[],l=[];return $(t,function(u){u.prepareSource();var v=u.getSource(i||0),h="";i!=null&&!v&&mI(h),s.push(v),l.push(u._getVersionSign())}),a?o=wj(a,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[ij(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var i=0,n=this._storeList,o=n[i];o||(o=n[i]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Wf(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new ST,s.initData(new VW(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Wf(t)){var e=_C(t);return e?[e.getSourceManager()]:[]}else return we(EQ(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,i;if(Wf(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=t;e=n.get("seriesLayoutBy",!0),a=n.get("sourceHeader",!0),i=n.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:i}},r})();function gI(r){var t=r.option.transform;t&&sh(r.option.transform)}function Wf(r){return r.mainType==="series"}function mI(r){throw new Error(r)}var Dj="line-height:1";function KW(r){var t=r.lineHeight;return t==null?Dj:"line-height:"+Zr(t+"")+"px"}function QW(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,i=r.fontWeight||"400",n=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Zr(a+"")+"px;color:"+Zr(e)+";font-weight:"+Zr(i+""),valueStyle:"font-size:"+Zr(o+"")+"px;color:"+Zr(n)+";font-weight:"+Zr(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var Lj=[0,10,20,30],Ij=["","\n","\n\n","\n\n\n"];function Mr(r,t){return t.type=r,t}function bT(r){return r.type==="section"}function jW(r){return bT(r)?Pj:Rj}function JW(r){if(bT(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return $(r.blocks,function(i){var n=JW(i);n>=t&&(t=n+ +(a&&(!n||bT(i)&&!i.noHeader)))}),t}return 0}function Pj(r,t,e,a){var i=t.noHeader,n=Ej(JW(t)),o=[],s=t.blocks||[];Kr(!s||Se(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Be(u,l)){var v=new UW(u[l],null);s.sort(function(p,g){return v.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}$(s,function(p,g){var m=t.valueFormatter,y=jW(p)(m?_e(_e({},r),{valueFormatter:m}):r,p,g>0?n.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(n.richText):wT(a,o.join(""),i?e:n.html);if(i)return h;var f=mT(t.header,"ordinal",r.useUTC),c=QW(a,r.renderMode).nameStyle,d=KW(a);return r.renderMode==="richText"?eU(r,f,c)+n.richText+h:wT(a,'<div style="'+c+";"+d+';">'+Zr(f)+"</div>"+h,e)}function Rj(r,t,e,a){var i=r.renderMode,n=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,v=t.valueFormatter||r.valueFormatter||function(x){return x=Se(x)?x:[x],we(x,function(S,b){return mT(S,Se(c)?c[b]:c,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=n?"":mT(l,"ordinal",u),c=t.valueType,d=o?[]:v(t.value,t.dataIndex),p=!s||!n,g=!s&&n,m=QW(a,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(n?"":eU(r,f,y))+(o?"":Nj(r,d,p,g,_)):wT(a,(s?"":h)+(n?"":kj(f,!s,y))+(o?"":Oj(d,p,g,_)),e)}}function yI(r,t,e,a,i,n){if(r){var o=jW(r),s={useUTC:i,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function Ej(r){return{html:Lj[r],richText:Ij[r]}}function wT(r,t,e){var a='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",n=KW(r);return'<div style="'+i+";"+n+';">'+t+a+"</div>"}function kj(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Zr(r)+"</span>"}function Oj(r,t,e,a){var i=e?"10px":"20px",n=t?"float:right;margin-left:"+i:"";return r=Se(r)?r:[r],'<span style="'+n+";"+a+'">'+we(r,function(o){return Zr(o)}).join("&nbsp;&nbsp;")+"</span>"}function eU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Nj(r,t,e,a,i){var n=[i],o=a?10:20;return e&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Se(t)?t.join(" "):t,n)}function tU(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Ps(a)}function rU(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var xm=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=_q()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var i=a==="richText"?this._generateStyleName():null,n=wW({color:e,type:t,renderMode:a,markerId:i});return Re(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};Se(e)?$(e,function(n){return _e(a,n)}):_e(a,e);var i=this._generateStyleName();return this.richTextStyles[i]=a,"{"+i+"|"+t+"}"},r})();function aU(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,i=t.getData(),n=i.mapDimensionsAll("defaultedTooltip"),o=n.length,s=t.getRawValue(e),l=Se(s),u=tU(t,e),v,h,f,c;if(o>1||l&&!o){var d=zj(s,t,e,n,u);v=d.inlineValues,h=d.inlineValueTypes,f=d.blocks,c=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(n[0]);c=v=Kl(i,e,n[0]),h=p.type}else c=v=l?s[0]:s;var g=UA(t),m=g&&t.name||"",y=i.getName(e),_=a?m:y;return Mr("section",{header:m,noHeader:a||!g,sortParam:c,blocks:[Mr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ua(_),value:v,valueType:h,dataIndex:e})].concat(f||[])})}function zj(r,t,e,a,i){var n=t.getData(),o=Ya(r,function(h,f,c){var d=n.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?$(a,function(h){v(Kl(n,e,h),h)}):$(r,v);function v(h,f){var c=n.getDimensionInfo(f);!c||c.otherDims.tooltip===!1||(o?u.push(Mr("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var En=yt();function Uf(r,t){return r.getName(t)||r.getId(t)}var od="__universalTransitionEnabled",zt=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,i){this.seriesIndex=this.componentIndex,this.dataTask=Jv({count:Vj,reset:Gj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var n=En(this).sourceManager=new XW(this);n.prepareSource();var o=this.getInitialData(e,i);xI(o,this),this.dataTask.context.data=o,En(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var i=_h(this),n=i?cu(e):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),tt(e,a.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),Ms(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&uo(e,n,i)},t.prototype.mergeOption=function(e,a){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=_h(this);i&&uo(this.option,e,i);var n=En(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(e,a);xI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,En(this).dataBeforeProcessed=o,_I(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ua(e))for(var a=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Ms(e[i],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=TT(this);if(a){var i=a.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return En(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=TT(this);if(a){var i=a.context;i.outputData=e,a!==this.dataTask&&(i.data=e)}En(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Ge(e)},t.prototype.getSourceManager=function(){return En(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return En(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,i){return aU({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(vt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,i){var n=this.ecModel,o=xC.prototype.getColorFromPalette.call(this,e,a,i);return o||(o=n.getColorFromPalette(e,a,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(a);if(n==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Uf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var i=[],n=0;n<e.length;n++)i[0]=e[n],this.isSelected(e[n],a)?this.unselect(i,a):this.select(i,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=ft(e),i=[],n=0;n<a.length;n++){var o=e[a[n]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,a){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(a);return(i==="all"||i[Uf(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[od])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var i,n,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$e(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,v=0;v<l;v++){var h=a[v],f=Uf(e,h);u[f]=!0,this._selectedDataIndicesMap[f]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=a[l-1],f=Uf(e,c);o.selectedMap=(i={},i[f]=!0,i),this._selectedDataIndicesMap=(n={},n[f]=e.getRawIndex(c),n)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(i){var n=e.getRawDataItem(i);n&&n.selected&&a.push(i)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return ut.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(ut);nr(zt,qp);nr(zt,xC);Dq(zt,ut);function _I(r){var t=r.name;UA(r)||(r.name=Bj(r)||t)}function Bj(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return $(e,function(i){var n=t.getDimensionInfo(i);n.displayName&&a.push(n.displayName)}),a.join(" ")}function Vj(r){return r.model.getRawData().count()}function Gj(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Fj}function Fj(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xI(r,t){$($l(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,et(Hj,t))})}function Hj(r,t){var e=TT(r);return e&&e.setOutputEnd((t||this).count()),t}function TT(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var i=a.agentStubMap;i&&(a=i.get(r.uid))}return a}}var Wt=(function(){function r(){this.group=new Ze,this.uid=fu("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,i){},r.prototype.updateLayout=function(t,e,a,i){},r.prototype.updateVisual=function(t,e,a,i){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();YA(Wt);Mp(Wt);function gu(){var r=yt();return function(t){var e=r(t),a=t.pipelineContext,i=!!e.large,n=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(i!==o||n!==s)&&"reset"}}var iU=yt(),qj=gu(),kt=(function(){function r(){this.group=new Ze,this.uid=fu("viewChart"),this.renderTask=Jv({plan:Wj,reset:Uj}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,i){},r.prototype.highlight=function(t,e,a,i){var n=t.getData(i&&i.dataType);n&&bI(n,i,"emphasis")},r.prototype.downplay=function(t,e,a,i){var n=t.getData(i&&i.dataType);n&&bI(n,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,i){this.render(t,e,a,i)},r.prototype.updateLayout=function(t,e,a,i){this.render(t,e,a,i)},r.prototype.updateVisual=function(t,e,a,i){this.render(t,e,a,i)},r.prototype.eachRendered=function(t){po(this.group,t)},r.markUpdateMethod=function(t,e){iU(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function SI(r,t,e){r&&gh(r)&&(t==="emphasis"?xn:Sn)(r,e)}function bI(r,t,e){var a=Ds(r,t),i=t&&t.highlightKey!=null?DK(t.highlightKey):null;a!=null?$(Nt(a),function(n){SI(r.getItemGraphicEl(n),e,i)}):r.eachItemGraphicEl(function(n){SI(n,e,i)})}YA(kt);Mp(kt);function Wj(r){return qj(r.model)}function Uj(r){var t=r.model,e=r.ecModel,a=r.api,i=r.payload,n=t.pipelineContext.progressiveRender,o=r.view,s=i&&iU(i).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,i),$j[l]}var $j={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Nd="\0__throttleOriginMethod",wI="\0__throttleRate",TI="\0__throttleType";function Up(r,t,e){var a,i=0,n=0,o=null,s,l,u,v;t=t||0;function h(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var f=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];a=new Date().getTime(),l=this,u=c;var p=v||t,g=v||e;v=null,s=a-(g?i:n)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(c){v=c},f}function mu(r,t,e,a){var i=r[t];if(i){var n=i[Nd]||i,o=i[TI],s=i[wI];if(s!==e||o!==a){if(e==null||!a)return r[t]=n;i=r[t]=Up(n,e,a==="debounce"),i[Nd]=n,i[TI]=a,i[wI]=e}return i}}function Sh(r,t){var e=r[t];e&&e[Nd]&&(e.clear&&e.clear(),r[t]=e[Nd])}var AI=yt(),CI={itemStyle:Ls(cW,!0),lineStyle:Ls(fW,!0)},Yj={lineStyle:"stroke",itemStyle:"fill"};function nU(r,t){var e=r.visualStyleMapper||CI[t];return e||(console.warn("Unknown style type '"+t+"'."),CI.itemStyle)}function oU(r,t){var e=r.visualDrawType||Yj[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Zj={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=r.getModel(a),n=nU(r,a),o=n(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=oU(r,a),u=o[l],v=He(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||v||h){var f=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=f,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||He(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||He(o.stroke)?f:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&v)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=_e({},o);g[l]=v(p),c.setItemVisual(d,"style",g)}}}},Wu=new Mt,Xj={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=nU(r,a),n=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Wu.option=l[a];var u=i(Wu),v=o.ensureUniqueItemVisual(s,"style");_e(v,u),Wu.option.decal&&(o.setItemVisual(s,"decal",Wu.option.decal),Wu.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Kj={performRawSeries:!0,overallReset:function(r){var t=Ge();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+a,n=t.get(i);n||(n={},t.set(i,n)),AI(e).scope=n}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),i={},n=e.getData(),o=AI(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=oU(e,s);n.each(function(u){var v=n.getRawIndex(u);i[v]=u}),a.each(function(u){var v=i[u],h=n.getItemVisual(v,"colorFromPalette");if(h){var f=n.ensureUniqueItemVisual(v,"style"),c=a.getName(u)||u+"",d=a.count();f[l]=e.getColorFromPalette(c,o,d)}})}})}},$f=Math.PI;function Qj(r,t){t=t||{},Ue(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Ze,a=new gt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var i=new pt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),n=new gt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(n);var o;return t.showSpinner&&(o=new Uh({shape:{startAngle:-$f/2,endAngle:-$f/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:$f*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:$f*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),v=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:v}),n.setShape({x:u-l,y:v-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var sU=(function(){function r(t,e,a,i){this._stageTaskMap=Ge(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=a.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var i=a.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),i=a.context,n=!e&&a.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=n?a.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),i=t.getData(),n=i.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&n>=a.threshold,s=t.get("large")&&n>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?n:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=Ge();t.eachSeries(function(i){var n=i.getProgressive(),o=i.uid;a.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:n&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;$(this._allHandlers,function(i){var n=t.get(i.uid)||t.set(i.uid,{}),o="";Kr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,n,e,a),i.overallReset&&this._createOverallStageTask(i,n,e,a)},this)},r.prototype.prepareView=function(t,e,a,i){var n=t.renderTask,o=n.context;o.model=e,o.ecModel=a,o.api=i,n.__block=!t.incrementalPrepareRender,this._pipe(e,n)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,i){i=i||{};var n=!1,o=this;$(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var v=o._stageTaskMap.get(l.uid),h=v.seriesTaskMap,f=v.overallTask;if(f){var c,d=f.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&f.dirty(),o.updatePayload(f,a);var p=o.getPerformArgs(f,i.block);d.each(function(g){g.perform(p)}),f.perform(p)&&(n=!0)}else h&&h.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,i){var n=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(v):l?a.eachRawSeriesByType(l,v):u&&u(a,i).each(v);function v(h){var f=h.uid,c=s.set(f,o&&o.get(f)||Jv({plan:rJ,reset:aJ,count:nJ}));c.context={model:h,ecModel:a,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:n},n._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,a,i){var n=this,o=e.overallTask=e.overallTask||Jv({reset:jj});o.context={ecModel:a,api:i,overallReset:t.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Ge(),u=t.seriesType,v=t.getTargetSeries,h=!0,f=!1,c="";Kr(!t.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):v?v(a,i).each(d):(h=!1,$(a.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(f=!0,Jv({reset:Jj,onDirty:tJ})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,n._pipe(p,m)}f&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,i=this._pipelineMap.get(a);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return He(t)&&(t={overallReset:t,seriesType:oJ(t)}),t.uid=fu("stageHandler"),e&&(t.visualType=e),t},r})();function jj(r){r.overallReset(r.ecModel,r.api,r.payload)}function Jj(r){return r.overallProgress&&eJ}function eJ(){this.agent.dirty(),this.getDownstream().dirty()}function tJ(){this.agent&&this.agent.dirty()}function rJ(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function aJ(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Nt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?we(t,function(e,a){return lU(a)}):iJ}var iJ=lU(0);function lU(r){return function(t,e){var a=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var n=t.start;n<t.end;n++)i.dataEach(a,n);else i&&i.progress&&i.progress(t,a)}}function nJ(r){return r.data.count()}function oJ(r){zd=null;try{r(bh,uU)}catch(t){}return zd}var bh={},uU={},zd;vU(bh,SC);vU(uU,kW);bh.eachSeriesByType=bh.eachRawSeriesByType=function(r){zd=r};bh.eachComponent=function(r){r.mainType==="series"&&r.subType&&(zd=r.subType)};function vU(r,t){for(var e in t.prototype)r[e]=ir}var MI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const sJ={color:MI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],MI]};var Ur="#B9B8CE",DI="#100C2A",Yf=function(){return{axisLine:{lineStyle:{color:Ur}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},LI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hU={darkMode:!0,color:LI,backgroundColor:DI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ur},pageTextStyle:{color:Ur}},textStyle:{color:Ur},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ur}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ur},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:Ur}},timeline:{lineStyle:{color:Ur},label:{color:Ur},controlStyle:{color:Ur,borderColor:Ur}},calendar:{itemStyle:{color:DI},dayLabel:{color:Ur},monthLabel:{color:Ur},yearLabel:{color:Ur}},timeAxis:Yf(),logAxis:Yf(),valueAxis:Yf(),categoryAxis:Yf(),line:{symbol:"circle"},graph:{color:LI},gauge:{title:{color:Ur},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ur},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hU.categoryAxis.splitLine.show=!1;var lJ=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},i={};if(Re(t)){var n=Gi(t);e.mainType=n.main||null,e.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};$(t,function(l,u){for(var v=!1,h=0;h<o.length;h++){var f=o[h],c=u.lastIndexOf(f);if(c>0&&c===u.length-f.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[f.toLowerCase()]=l,v=!0)}}s.hasOwnProperty(u)&&(a[u]=l,v=!0),v||(i[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:i}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var i=a.targetEl,n=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return v(l,o,"mainType")&&v(l,o,"subType")&&v(l,o,"index","componentIndex")&&v(l,o,"name")&&v(l,o,"id")&&v(u,n,"name")&&v(u,n,"dataIndex")&&v(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,n));function v(h,f,c,d){return h[c]==null||f[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),AT=["symbol","symbolSize","symbolRotate","symbolOffset"],II=AT.concat(["symbolKeepAspect"]),uJ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},i={},n=!1,o=0;o<AT.length;o++){var s=AT[o],l=r.get(s);He(l)?(n=!0,i[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(_e({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=ft(i);function v(h,f){for(var c=r.getRawValue(f),d=r.getDataParams(f),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(f,g,i[g](c,d))}}return{dataEach:n?v:null}}},vJ={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(i,n){for(var o=i.getItemModel(n),s=0;s<II.length;s++){var l=II[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(n,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function CC(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Xh(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function fU(r,t,e,a){switch(e){case"color":var i=r.ensureUniqueItemVisual(t,"style");i[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function cU(r,t){function e(a,i){var n=[];return a.eachComponent({mainType:"series",subType:r,query:i},function(o){n.push(o.seriesIndex)}),n}$([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(i,n,o){i=_e({},i),o.dispatchAction(_e(i,{type:a[1],seriesIndex:e(n,i)}))})})}function vl(r,t,e,a,i){var n=r+t;e.isSilent(n)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,v=0;v<u.length;v++)if(u[v].seriesIndex===s){var h=o.getData(),f=Ds(h,i.fromActionPayload);e.trigger(n,{type:n,seriesId:o.id,name:Se(f)?h.getName(f[0]):h.getName(f),selected:Re(l)?l:_e({},l)})}})}function hJ(r,t,e){r.on("selectchanged",function(a){var i=e.getModel();a.isFromClick?(vl("map","selectchanged",t,i,a),vl("pie","selectchanged",t,i,a)):a.fromAction==="select"?(vl("map","selected",t,i,a),vl("pie","selected",t,i,a)):a.fromAction==="unselect"&&(vl("map","unselected",t,i,a),vl("pie","unselected",t,i,a))})}function ps(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var fJ=Math.round(Math.random()*9),cJ=typeof Object.defineProperty=="function",dJ=(function(){function r(){this._id="__ec_inner_"+fJ++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var a=this._guard(t);return cJ?Object.defineProperty(a,this._id,{value:e,enumerable:!1,configurable:!0}):a[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),pJ=ht.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,i=t.width/2,n=t.height/2;r.moveTo(e,a-n),r.lineTo(e+i,a+n),r.lineTo(e-i,a+n),r.closePath()}}),gJ=ht.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,i=t.width/2,n=t.height/2;r.moveTo(e,a-n),r.lineTo(e+i,a),r.lineTo(e,a+n),r.lineTo(e-i,a),r.closePath()}}),mJ=ht.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,i=t.width/5*3,n=Math.max(i,t.height),o=i/2,s=o*o/(n-o),l=a-n+o+s,u=Math.asin(s/o),v=Math.cos(u)*o,h=Math.sin(u),f=Math.cos(u),c=o*.6,d=o*.7;r.moveTo(e-v,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+v-h*c,l+s+f*c,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-v+h*c,l+s+f*c,e-v,l+s),r.closePath()}}),yJ=ht.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,i=t.x,n=t.y,o=a/3*2;r.moveTo(i,n),r.lineTo(i+o,n+e),r.lineTo(i,n+e/4*3),r.lineTo(i-o,n+e),r.lineTo(i,n),r.closePath()}}),_J={line:xr,rect:gt,roundRect:gt,square:gt,circle:Xi,diamond:gJ,pin:mJ,arrow:yJ,triangle:pJ},xJ={line:function(r,t,e,a,i){i.x1=r,i.y1=t+a/2,i.x2=r+e,i.y2=t+a/2},rect:function(r,t,e,a,i){i.x=r,i.y=t,i.width=e,i.height=a},roundRect:function(r,t,e,a,i){i.x=r,i.y=t,i.width=e,i.height=a,i.r=Math.min(e,a)/4},square:function(r,t,e,a,i){var n=Math.min(e,a);i.x=r,i.y=t,i.width=n,i.height=n},circle:function(r,t,e,a,i){i.cx=r+e/2,i.cy=t+a/2,i.r=Math.min(e,a)/2},diamond:function(r,t,e,a,i){i.cx=r+e/2,i.cy=t+a/2,i.width=e,i.height=a},pin:function(r,t,e,a,i){i.x=r+e/2,i.y=t+a/2,i.width=e,i.height=a},arrow:function(r,t,e,a,i){i.x=r+e/2,i.y=t+a/2,i.width=e,i.height=a},triangle:function(r,t,e,a,i){i.cx=r+e/2,i.cy=t+a/2,i.width=e,i.height=a}},Bd={};$(_J,function(r,t){Bd[t]=new r});var SJ=ht.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Md(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var i=Bd[a];i||(a="rect",i=Bd[a]),xJ[a](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function bJ(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function lr(r,t,e,a,i,n,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=iC(r.slice(8),new at(t,e,a,i),o?"center":"cover"):r.indexOf("path://")===0?l=$h(r.slice(7),{},new at(t,e,a,i),o?"center":"cover"):l=new SJ({shape:{symbolType:r,x:t,y:e,width:a,height:i}}),l.__isEmptyBrush=s,l.setColor=bJ,n&&l.setColor(n),l}function yu(r){return Se(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Gs(r,t){if(r!=null)return Se(r)||(r=[r,r]),[Ie(r[0],t[0])||0,Ie(Je(r[1],r[0]),t[1])||0]}function gs(r){return isFinite(r)}function wJ(r,t,e){var a=t.x==null?0:t.x,i=t.x2==null?1:t.x2,n=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(a=a*e.width+e.x,i=i*e.width+e.x,n=n*e.height+e.y,o=o*e.height+e.y),a=gs(a)?a:0,i=gs(i)?i:1,n=gs(n)?n:0,o=gs(o)?o:0;var s=r.createLinearGradient(a,n,i,o);return s}function TJ(r,t,e){var a=e.width,i=e.height,n=Math.min(a,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*a+e.x,s=s*i+e.y,l=l*n),o=gs(o)?o:.5,s=gs(s)?s:.5,l=l>=0&&gs(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function CT(r,t,e){for(var a=t.type==="radial"?TJ(r,t,e):wJ(r,t,e),i=t.colorStops,n=0;n<i.length;n++)a.addColorStop(i[n].offset,i[n].color);return a}function AJ(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Zf(r){return parseInt(r,10)}function Ol(r,t,e){var a=["width","height"][t],i=["clientWidth","clientHeight"][t],n=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[a]!=null&&e[a]!=="auto")return parseFloat(e[a]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Zf(s[a])||Zf(r.style[a]))-(Zf(s[n])||0)-(Zf(s[o])||0)|0}function CJ(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:bt(r)?[r]:Se(r)?r:null}function MC(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&CJ(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=we(e,function(n){return n/i}),a/=i)}return[e,a]}var MJ=new Zi(!0);function Vd(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function PI(r){return typeof r=="string"&&r!=="none"}function Gd(r){var t=r.fill;return t!=null&&t!=="none"}function RI(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function EI(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function MT(r,t,e){var a=ZA(t.image,t.__image,e);if(Dp(a)){var i=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var n=new DOMMatrix;n.translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*Fv),n.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(n)}return i}}function DJ(r,t,e,a){var i,n=Vd(e),o=Gd(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var v=t.path||MJ,h=t.__dirty;if(!a){var f=e.fill,c=e.stroke,d=o&&!!f.colorStops,p=n&&!!c.colorStops,g=o&&!!f.image,m=n&&!!c.image,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(y=h?CT(r,f,b):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=h?CT(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(x=h||!t.__canvasFillPattern?MT(r,f,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(S=h||!t.__canvasStrokePattern?MT(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=y:g&&(x?r.fillStyle=x:o=!1),p?r.strokeStyle=_:m&&(S?r.strokeStyle=S:n=!1)}var w=t.getGlobalScale();v.setScale(w[0],w[1],t.segmentIgnoreThreshold);var A,T;r.setLineDash&&e.lineDash&&(i=MC(t),A=i[0],T=i[1]);var C=!0;(u||h&Dl)&&(v.setDPR(r.dpr),l?v.setContext(null):(v.setContext(r),C=!1),v.reset(),t.buildPath(v,t.shape,a),v.toStatic(),t.pathUpdated()),C&&v.rebuildPath(r,l?s:1),A&&(r.setLineDash(A),r.lineDashOffset=T),a||(e.strokeFirst?(n&&EI(r,e),o&&RI(r,e)):(o&&RI(r,e),n&&EI(r,e))),A&&r.setLineDash([])}function LJ(r,t,e){var a=t.__image=ZA(e.image,t.__image,t,t.onload);if(!(!a||!Dp(a))){var i=e.x||0,n=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,v=e.sy||0;r.drawImage(a,u,v,e.sWidth,e.sHeight,i,n,o,s)}else if(e.sx&&e.sy){var u=e.sx,v=e.sy,h=o-u,f=s-v;r.drawImage(a,u,v,h,f,i,n,o,s)}else r.drawImage(a,i,n,o,s)}}function IJ(r,t,e){var a,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||oo,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=MC(t),n=a[0],o=a[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),e.strokeFirst?(Vd(e)&&r.strokeText(i,e.x,e.y),Gd(e)&&r.fillText(i,e.x,e.y)):(Gd(e)&&r.fillText(i,e.x,e.y),Vd(e)&&r.strokeText(i,e.x,e.y)),n&&r.setLineDash([])}}var kI=["shadowBlur","shadowOffsetX","shadowOffsetY"],OI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dU(r,t,e,a,i){var n=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){_a(r,i),n=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?xs.opacity:o}(a||t.blend!==e.blend)&&(n||(_a(r,i),n=!0),r.globalCompositeOperation=t.blend||xs.blend);for(var s=0;s<kI.length;s++){var l=kI[s];(a||t[l]!==e[l])&&(n||(_a(r,i),n=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(n||(_a(r,i),n=!0),r.shadowColor=t.shadowColor||xs.shadowColor),n}function NI(r,t,e,a,i){var n=wh(t,i.inHover),o=a?null:e&&wh(e,i.inHover)||{};if(n===o)return!1;var s=dU(r,n,o,a,i);if((a||n.fill!==o.fill)&&(s||(_a(r,i),s=!0),PI(n.fill)&&(r.fillStyle=n.fill)),(a||n.stroke!==o.stroke)&&(s||(_a(r,i),s=!0),PI(n.stroke)&&(r.strokeStyle=n.stroke)),(a||n.opacity!==o.opacity)&&(s||(_a(r,i),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),t.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(_a(r,i),s=!0),r.lineWidth=u)}for(var v=0;v<OI.length;v++){var h=OI[v],f=h[0];(a||n[f]!==o[f])&&(s||(_a(r,i),s=!0),r[f]=n[f]||h[1])}return s}function PJ(r,t,e,a,i){return dU(r,wh(t,i.inHover),e&&wh(e,i.inHover),a,i)}function pU(r,t){var e=t.transform,a=r.dpr||1;e?r.setTransform(a*e[0],a*e[1],a*e[2],a*e[3],a*e[4],a*e[5]):r.setTransform(a,0,0,a,0,0)}function RJ(r,t,e){for(var a=!1,i=0;i<r.length;i++){var n=r[i];a=a||n.isZeroArea(),pU(t,n),t.beginPath(),n.buildPath(t,n.shape),t.clip()}e.allClipped=a}function EJ(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var zI=1,BI=2,VI=3,GI=4;function kJ(r){var t=Gd(r),e=Vd(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function _a(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function wh(r,t){return t&&r.__hoverStyle||r.style}function DC(r,t){ms(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ms(r,t,e,a){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ba,t.__isRendered=!1;return}var n=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||AJ(n,o))&&(o&&o.length&&(_a(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(_a(r,e),r.save(),RJ(n,r,e),s=!0),e.prevElClipPaths=n),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var v=t instanceof ht&&t.autoBatch&&kJ(t.style);s||EJ(i,u.transform)?(_a(r,e),pU(r,t)):v||_a(r,e);var h=wh(t,e.inHover);t instanceof ht?(e.lastDrawType!==zI&&(l=!0,e.lastDrawType=zI),NI(r,t,u,l,e),(!v||!e.batchFill&&!e.batchStroke)&&r.beginPath(),DJ(r,t,h,v),v&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Zl?(e.lastDrawType!==VI&&(l=!0,e.lastDrawType=VI),NI(r,t,u,l,e),IJ(r,t,h)):t instanceof Dr?(e.lastDrawType!==BI&&(l=!0,e.lastDrawType=BI),PJ(r,t,u,l,e),LJ(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==GI&&(l=!0,e.lastDrawType=GI),OJ(r,t,e)),v&&a&&_a(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function OJ(r,t,e){var a=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ms(r,l,n,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}for(var u=0,v=i.length;u<v;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ms(r,l,n,u===v-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Sm=new dJ,FI=new Gh(100),HI=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ql(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),i=a.painter.type==="svg";r.dirty&&Sm.delete(r);var n=Sm.get(r);if(n)return n;var o=Ue(r,{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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,Sm.set(r,s),r.dirty=!1,s;function l(u){for(var v=[e],h=!0,f=0;f<HI.length;++f){var c=o[HI[f]];if(c!=null&&!Se(c)&&!Re(c)&&!bt(c)&&typeof c!="boolean"){h=!1;break}v.push(c)}var d;if(h){d=v.join(",")+(i?"-svg":"");var p=FI.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=mU(o.dashArrayX),m=NJ(o.dashArrayY),y=gU(o.symbol),_=zJ(g),x=yU(m),S=!i&&mi.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),A;S&&(S.width=w.width*e,S.height=w.height*e,A=S.getContext("2d")),C(),h&&FI.put(d,S||b),u.image=S,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function T(){for(var M=1,L=0,D=_.length;L<D;++L)M=nL(M,_[L]);for(var P=1,L=0,D=y.length;L<D;++L)P=nL(P,y[L].length);M*=P;var I=x*_.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function C(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var M=0,L=0;L<m.length;++L)M+=m[L];if(M<=0)return;for(var D=-x,P=0,I=0,R=0;D<w.height;){if(P%2===0){for(var E=I/2%y.length,k=0,B=0,F=0;k<w.width*2;){for(var V=0,L=0;L<g[R].length;++L)V+=g[R][L];if(V<=0)break;if(B%2===0){var N=(1-o.symbolSize)*.5,O=k+g[R][B]*N,z=D+m[P]*N,G=g[R][B]*o.symbolSize,q=m[P]*o.symbolSize,H=F/2%y[E].length;U(O,z,G,q,y[E][H])}k+=g[R][B],++F,++B,B===g[R].length&&(B=0)}++R,R===g.length&&(R=0)}D+=m[P],++I,++P,P===m.length&&(P=0)}function U(W,Y,X,K,Q){var j=i?1:e,te=lr(Q,W*j,Y*j,X*j,K*j,o.color,o.symbolKeepAspect);if(i){var Z=a.painter.renderOneToVNode(te);Z&&b.children.push(Z)}else DC(A,te)}}}}function gU(r){if(!r||r.length===0)return[["rect"]];if(Re(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!Re(r[e])){t=!1;break}if(t)return gU([r]);for(var a=[],e=0;e<r.length;++e)Re(r[e])?a.push([r[e]]):a.push(r[e]);return a}function mU(r){if(!r||r.length===0)return[[0,0]];if(bt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!bt(r[a])){e=!1;break}if(e)return mU([r]);for(var i=[],a=0;a<r.length;++a)if(bt(r[a])){var t=Math.ceil(r[a]);i.push([t,t])}else{var t=we(r[a],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function NJ(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(bt(r)){var t=Math.ceil(r);return[t,t]}var e=we(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function zJ(r){return we(r,function(t){return yU(t)})}function yU(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function BJ(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Ql(s,t)}});var i=a.getVisual("decal");if(i){var n=a.getVisual("style");n.decal=Ql(i,t)}}})}var ui=new Xa,_U={};function VJ(r,t){_U[r]=t}function xU(r){return _U[r]}var GJ="5.6.0",FJ={zrender:"5.6.1"},HJ=1,qJ=800,WJ=900,UJ=1e3,$J=2e3,YJ=5e3,SU=1e3,ZJ=1100,LC=2e3,bU=3e3,XJ=4e3,$p=4500,KJ=4600,QJ=5e3,jJ=6e3,wU=7e3,TU={PROCESSOR:{FILTER:UJ,SERIES_FILTER:qJ,STATISTIC:YJ},VISUAL:{LAYOUT:SU,PROGRESSIVE_LAYOUT:ZJ,GLOBAL:LC,CHART:bU,POST_CHART_LAYOUT:KJ,COMPONENT:XJ,BRUSH:QJ,CHART_ITEM:$p,ARIA:jJ,DECAL:wU}},qr="__flagInMainProcess",da="__pendingUpdate",bm="__needsUpdateStatus",qI=/^[a-zA-Z0-9_]+$/,wm="__connectUpdateStatus",WI=0,JJ=1,eee=2;function AU(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return MU(this,r,t)}}function CU(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return MU(this,r,t)}}function MU(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Xa.prototype[t].apply(r,e)}var DU=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Xa),LU=DU.prototype;LU.on=CU("on");LU.off=CU("off");var hl,Tm,Xf,kn,Am,Cm,Mm,Uu,$u,UI,$I,Dm,YI,Kf,ZI,IU,Pa,XI,Fd=(function(r){he(t,r);function t(e,a,i){var n=r.call(this,new lJ)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],i=i||{},Re(a)&&(a=PU[a]),n._dom=e;var o="canvas",s="auto",l=!1;i.ssr&&dq(function(f){var c=Xe(f),d=c.dataIndex;if(d!=null){var p=Ge();return p.set("series_index",c.seriesIndex),p.set("data_index",d),c.ssrType&&p.set("ssr_type",c.ssrType),p}});var u=n._zr=eT(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Je(i.useDirtyRect,l),useCoarsePointer:Je(i.useCoarsePointer,s),pointerSize:i.pointerSize});n._ssr=i.ssr,n._throttledZrFlush=Up(Ne(u.flush,u),17),a=Ye(a),a&&NW(a,!0),n._theme=a,n._locale=mQ(i.locale||dW),n._coordSysMgr=new pu;var v=n._api=ZI(n);function h(f,c){return f.__prio-c.__prio}return Xc(qd,h),Xc(DT,h),n._scheduler=new sU(n,v,DT,qd),n._messageCenter=new DU,n._initEvents(),n.resize=Ne(n.resize,n),u.animation.on("frame",n._onframe,n),UI(u,n),$I(u,n),sh(n),n}return t.prototype._onframe=function(){if(!this._disposed){XI(this);var e=this._scheduler;if(this[da]){var a=this[da].silent;this[qr]=!0;try{hl(this),kn.update.call(this,null,this[da].updateParams)}catch(l){throw this[qr]=!1,this[da]=null,l}this._zr.flush(),this[qr]=!1,this[da]=null,Uu.call(this,a),$u.call(this,a)}else if(e.unfinished){var i=HJ,n=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),Cm(this,n),e.performVisualTasks(n),Kf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,i){if(!this[qr]){if(this._disposed){this.id;return}var n,o,s;if($e(a)&&(i=a.lazyUpdate,n=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[qr]=!0,!this._model||a){var l=new WQ(this._api),u=this._theme,v=this._model=new SC;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},LT);var h={seriesTransition:s,optionChanged:!0};if(i)this[da]={silent:n,updateParams:h},this[qr]=!1,this.getZr().wakeUp();else{try{hl(this),kn.update.call(this,null,h)}catch(f){throw this[da]=null,this[qr]=!1,f}this._ssr||this._zr.flush(),this[da]=null,this[qr]=!1,Uu.call(this,n),$u.call(this,n)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(vt.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return $(a,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,i=this._model,n=[],o=this;$(a,function(l){i.eachComponent({mainType:l},function(u){var v=o._componentsMap[u.__viewId];v.group.ignore||(n.push(v),v.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return $(n,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",i=this.group,n=Math.min,o=Math.max,s=1/0;if(Wd[i]){var l=s,u=s,v=-s,h=-s,f=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();$(ws,function(_,x){if(_.group===i){var S=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ye(e)),b=_.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),v=o(b.right,v),h=o(b.bottom,h),f.push({dom:S,left:b.left,top:b.top})}}),l*=c,u*=c,v*=c,h*=c;var d=v-l,p=h-u,g=mi.createCanvas(),m=eT(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var y="";return $(f,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new gt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),$(f,function(_){var x=new Dr({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return Am(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return Am(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var i=this._model,n,o=Zv(i,e);return $(o,function(s,l){l.indexOf("Models")>=0&&$(s,function(u){var v=u.coordinateSystem;if(v&&v.containPoint)n=n||!!v.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(n=n||h.containPoint(a,u))}},this)},this),!!n},t.prototype.getVisual=function(e,a){var i=this._model,n=Zv(i,e,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?CC(s,l,a):Xh(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;$(tee,function(a){var i=function(n){var o=e.getModel(),s=n.target,l,u=a==="globalout";if(u?l={}:s&&ps(s,function(d){var p=Xe(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=_e({},p.eventData),!0},!0),l){var v=l.componentType,h=l.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",h=l.seriesIndex);var f=v&&h!=null&&o.getComponent(v,h),c=f&&e[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=n,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:c},e.trigger(a,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(a,i,e)}),$(eh,function(a,i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),$(["selectchanged"],function(a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),hJ(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Aq(this.getDom(),PC,"");var a=this,i=a._api,n=a._model;$(a._componentsViews,function(o){o.dispose(n,i)}),$(a._chartsViews,function(o){o.dispose(n,i)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete ws[a.id]},t.prototype.resize=function(e){if(!this[qr]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var i=a.resetOption("media"),n=e&&e.silent;this[da]&&(n==null&&(n=this[da].silent),i=!0,this[da]=null),this[qr]=!0;try{i&&hl(this),kn.update.call(this,{type:"resize",animation:_e({duration:0},e&&e.animation)})}catch(o){throw this[qr]=!1,o}this[qr]=!1,Uu.call(this,n),$u.call(this,n)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if($e(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!IT[e]){var i=IT[e](this._api,a),n=this._zr;this._loadingFX=i,n.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=_e({},e);return a.type=eh[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if($e(a)||(a={silent:!!a}),!!Hd[e.type]&&this._model){if(this[qr]){this._pendingActions.push(e);return}var i=a.silent;Mm.call(this,e,i);var n=a.flush;n?this._zr.flush():n!==!1&&vt.browser.weChat&&this._throttledZrFlush(),Uu.call(this,i),$u.call(this,i)}},t.prototype.updateLabelLayout=function(){ui.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(a);n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){hl=function(h){var f=h._scheduler;f.restorePipelines(h._model),f.prepareStageTasks(),Tm(h,!0),Tm(h,!1),f.plan()},Tm=function(h,f){for(var c=h._model,d=h._scheduler,p=f?h._componentsViews:h._chartsViews,g=f?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<p.length;_++)p[_].__alive=!1;f?c.eachComponent(function(b,w){b!=="series"&&x(w)}):c.eachSeries(x);function x(b){var w=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,T=!w&&g[A];if(!T){var C=Gi(b.type),M=f?Wt.getClass(C.main,C.sub):kt.getClass(C.sub);T=new M,T.init(c,y),g[A]=T,p.push(T),m.add(T.group)}b.__viewId=T.__id=A,T.__alive=!0,T.__model=b,T.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!f&&d.prepareView(T,b,c,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!f&&S.renderTask.dispose(),m.remove(S.group),S.dispose(c,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Xf=function(h,f,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){$([].concat(h._componentsViews).concat(h._chartsViews),S);return}var m={};m[d+"Id"]=c[d+"Id"],m[d+"Index"]=c[d+"Index"],m[d+"Name"]=c[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=c.excludeSeriesId,x;_!=null&&(x=Ge(),$(Nt(_),function(b){var w=_r(b,null);w!=null&&x.set(w,!0)})),g&&g.eachComponent(y,function(b){var w=x&&x.get(b.id)!=null;if(!w)if(PL(c))if(b instanceof zt)c.type===Ss&&!c.notBlur&&!b.get(["emphasis","disabled"])&&xK(b,c,h._api);else{var A=eC(b.mainType,b.componentIndex,c.name,h._api),T=A.focusSelf,C=A.dispatchers;c.type===Ss&&T&&!c.notBlur&&vT(b.mainType,b.componentIndex,h._api),C&&$(C,function(M){c.type===Ss?xn(M):Sn(M)})}else fT(c)&&b instanceof zt&&(wK(b,c,h._api),LL(b),Pa(h))},h),g&&g.eachComponent(y,function(b){var w=x&&x.get(b.id)!=null;w||S(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function S(b){b&&b.__alive&&b[f]&&b[f](b.__model,g,h._api,c)}},kn={prepareAndUpdate:function(h){hl(this),kn.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,f){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(c){c.setUpdatePayload(h),m.restoreData(c,h),m.performSeriesTasks(c),g.create(c,d),m.performDataProcessorTasks(c,h),Cm(this,c),g.update(c,d),e(c),m.performVisualTasks(c,h),Dm(this,c,d,h,f);var y=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),ui.trigger("afterupdate",c,d)}},updateTransform:function(h){var f=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(m,y){if(m!=="series"){var _=f.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,c,d,h);x&&x.update&&p.push(_)}else p.push(_)}});var g=Ge();c.eachSeries(function(m){var y=f._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,c,d,h);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Kf(this,c,d,h,{},g),ui.trigger("afterupdate",c,d)}},updateView:function(h){var f=this._model;f&&(f.setUpdatePayload(h),kt.markUpdateMethod(h,"updateView"),e(f),this._scheduler.performVisualTasks(f,h,{setDirty:!0}),Dm(this,f,this._api,h,{}),ui.trigger("afterupdate",f,this._api))},updateVisual:function(h){var f=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),kt.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=f.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,f._api,h)}}),c.eachSeries(function(d){var p=f._chartsMap[d.__viewId];p.updateVisual(d,c,f._api,h)}),ui.trigger("afterupdate",c,this._api))},updateLayout:function(h){kn.update.call(this,h)}},Am=function(h,f,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),m,y=Zv(p,c),_=0;_<g.length;_++){var x=g[_];if(x[f]&&(m=x[f](p,y,d))!=null)return m}},Cm=function(h,f){var c=h._chartsMap,d=h._scheduler;f.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},Mm=function(h,f){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,m=Hd[p],y=m.actionInfo,_=(y.update||"update").split(":"),x=_.pop(),S=_[0]!=null&&Gi(_[0]);this[qr]=!0;var b=[h],w=!1;h.batch&&(w=!0,b=we(h.batch,function(P){return P=Ue(_e({},P),h),P.batch=null,P}));var A=[],T,C=fT(h),M=PL(h);if(M&&Yq(this._api),$(b,function(P){if(T=m.action(P,c._model,c._api),T=T||_e({},P),T.type=y.event||T.type,A.push(T),M){var I=$A(h),R=I.queryOptionMap,E=I.mainTypeSpecified,k=E?R.keys()[0]:"series";Xf(c,x,P,k),Pa(c)}else C?(Xf(c,x,P,"series"),Pa(c)):S&&Xf(c,x,P,S.main,S.sub)}),x!=="none"&&!M&&!C&&!S)try{this[da]?(hl(this),kn.update.call(this,h),this[da]=null):kn[x].call(this,h)}catch(P){throw this[qr]=!1,P}if(w?T={type:y.event||p,escapeConnect:g,batch:A}:T=A[0],this[qr]=!1,!f){var L=this._messageCenter;if(L.trigger(T.type,T),C){var D={type:"selectchanged",escapeConnect:g,selected:TK(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(D.type,D)}}},Uu=function(h){for(var f=this._pendingActions;f.length;){var c=f.shift();Mm.call(this,c,h)}},$u=function(h){!h&&this.trigger("updated")},UI=function(h,f){h.on("rendered",function(c){f.trigger("rendered",c),h.animation.isFinished()&&!f[da]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},$I=function(h,f){h.on("mouseover",function(c){var d=c.target,p=ps(d,gh);p&&(SK(p,c,f._api),Pa(f))}).on("mouseout",function(c){var d=c.target,p=ps(d,gh);p&&(bK(p,c,f._api),Pa(f))}).on("click",function(c){var d=c.target,p=ps(d,function(y){return Xe(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Xe(p);f._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(f){f.clearColorPalette()})}function a(h){var f=[],c=[],d=!1;if(h.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?c:f).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),d){var p=f.concat(c),g,m;Xc(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),$(p,function(y){var _=h.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;g!=null&&(x=Math.max(g,x)),S?(x===g&&S!==m&&x++,m=S):m&&(x===g&&x++,m=""),g=x,_.setZLevel(x)})}}Dm=function(h,f,c,d,p){a(f),YI(h,f,c,d,p),$(h._chartsViews,function(g){g.__alive=!1}),Kf(h,f,c,d,p),$(h._chartsViews,function(g){g.__alive||g.remove(f,c)})},YI=function(h,f,c,d,p,g){$(g||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,f,c,d),s(y,m),v(y,m)})},Kf=function(h,f,c,d,p,g){var m=h._scheduler;p=_e(p||{},{updatedSeries:f.getSeries()}),ui.trigger("series:beforeupdate",f,c,p);var y=!1;f.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,d),u(_,x),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),o(_,x),LL(_)}),m.unfinished=y||m.unfinished,ui.trigger("series:layoutlabels",f,c,p),ui.trigger("series:transition",f,c,p),f.eachSeries(function(_){var x=h._chartsMap[_.__viewId];s(_,x),v(_,x)}),n(h,f),ui.trigger("series:afterupdate",f,c,p)},Pa=function(h){h[bm]=!0,h.getZr().wakeUp()},XI=function(h){h[bm]&&(h.getZr().storage.traverse(function(f){Gl(f)||i(f)}),h[bm]=!1)};function i(h){for(var f=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||f.push(p)}h.selected&&h.states.select&&f.push("select"),h.hoverState===Pp&&h.states.emphasis?f.push("emphasis"):h.hoverState===qh&&h.states.blur&&f.push("blur"),h.useStates(f)}function n(h,f){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>f.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=h._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,f){var c=h.get("blendMode")||null;f.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,f){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;f.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,f,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],f,c,d),d);else h.z=f,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=f,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var x=h.textGuideLineConfig;g.z=f,g.zlevel=c,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function u(h,f){f.eachRendered(function(c){if(!Gl(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function v(h,f){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;f.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Gl(m))return;if(m instanceof ht&&LK(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&i(m)}})}ZI=function(h){return new((function(f){he(c,f);function c(){return f!==null&&f.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){xn(d,p),Pa(h)},c.prototype.leaveEmphasis=function(d,p){Sn(d,p),Pa(h)},c.prototype.enterBlur=function(d){qq(d),Pa(h)},c.prototype.leaveBlur=function(d){JA(d),Pa(h)},c.prototype.enterSelect=function(d){Wq(d),Pa(h)},c.prototype.leaveSelect=function(d){Uq(d),Pa(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c})(kW))(h)},IU=function(h){function f(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[wm]=d}}$(eh,function(c,d){h._messageCenter.on(d,function(p){if(Wd[h.group]&&h[wm]!==WI){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),m=[];$(ws,function(y){y!==h&&y.group===h.group&&m.push(y)}),f(m,WI),$(m,function(y){y[wm]!==JJ&&y.dispatchAction(g)}),f(m,eee)}})})}})(),t})(Xa),IC=Fd.prototype;IC.on=AU("on");IC.off=AU("off");IC.one=function(r,t,e){var a=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),a.off(r,i)}this.on.call(this,r,i,e)};var tee=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Hd={},eh={},DT=[],LT=[],qd=[],PU={},IT={},ws={},Wd={},ree=+new Date-0,aee=+new Date-0,PC="_echarts_instance_";function iee(r,t,e){var a=!(e&&e.ssr);if(a){var i=RC(r);if(i)return i}var n=new Fd(r,t,e);return n.id="ec_"+ree++,ws[n.id]=n,a&&Aq(r,PC,n.id),IU(n),ui.trigger("afterinit",n),n}function nee(r){if(Se(r)){var t=r;r=null,$(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+aee++,$(t,function(e){e.group=r})}return Wd[r]=!0,r}function RU(r){Wd[r]=!1}var oee=RU;function see(r){Re(r)?r=ws[r]:r instanceof Fd||(r=RC(r)),r instanceof Fd&&!r.isDisposed()&&r.dispose()}function RC(r){return ws[mX(r,PC)]}function lee(r){return ws[r]}function EC(r,t){PU[r]=t}function kC(r){nt(LT,r)<0&&LT.push(r)}function OC(r,t){NC(DT,r,t,$J)}function EU(r){Yp("afterinit",r)}function kU(r){Yp("afterupdate",r)}function Yp(r,t){ui.on(r,t)}function Si(r,t,e){He(t)&&(e=t,t="");var a=$e(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!eh[t]&&(Kr(qI.test(a)&&qI.test(t)),Hd[a]||(Hd[a]={action:e,actionInfo:r}),eh[t]=a)}function OU(r,t){pu.register(r,t)}function uee(r){var t=pu.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function NU(r,t){NC(qd,r,t,SU,"layout")}function mo(r,t){NC(qd,r,t,bU,"visual")}var KI=[];function NC(r,t,e,a,i){if((He(t)||$e(t))&&(e=t,t=a),!(nt(KI,e)>=0)){KI.push(e);var n=sU.wrapStageHandler(e,i);n.__prio=t,n.__raw=e,r.push(n)}}function zC(r,t){IT[r]=t}function vee(r){I4({createCanvas:r})}function zU(r,t,e){var a=xU("registerMap");a&&a(r,t,e)}function hee(r){var t=xU("getMap");return t&&t(r)}var BU=bj;mo(LC,Zj);mo($p,Xj);mo($p,Kj);mo(LC,uJ);mo($p,vJ);mo(wU,BJ);kC(NW);OC(WJ,rj);zC("default",Qj);Si({type:Ss,event:Ss,update:Ss},ir);Si({type:td,event:td,update:td},ir);Si({type:Xv,event:Xv,update:Xv},ir);Si({type:rd,event:rd,update:rd},ir);Si({type:Kv,event:Kv,update:Kv},ir);EC("light",sJ);EC("dark",hU);var fee={};function Yu(r){return r==null?0:r.length||1}function QI(r){return r}var bn=(function(){function r(t,e,a,i,n,o){this._old=t,this._new=e,this._oldKeyGetter=a||QI,this._newKeyGetter=i||QI,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},i=new Array(t.length),n=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,a,n,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=a[s],u=Yu(l);if(u>1){var v=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(v,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},i={},n=[],o=[];this._initIndexMap(t,a,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=a[l],v=i[l],h=Yu(u),f=Yu(v);if(h>1&&f===1)this._updateManyToOne&&this._updateManyToOne(v,u),i[l]=null;else if(h===1&&f>1)this._updateOneToMany&&this._updateOneToMany(v,u),i[l]=null;else if(h===1&&f===1)this._update&&this._update(v,u),i[l]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(v,u),i[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var i=t[a],n=e[i],o=Yu(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);e[i]=null}},r.prototype._initIndexMap=function(t,e,a,i){for(var n=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(n||(a[o]=s),!!e){var l=e[s],u=Yu(l);u===0?(e[s]=o,n&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),cee=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function dee(r,t){var e={},a=e.encode={},i=Ge(),n=[],o=[],s={};$(r.dimensions,function(f){var c=r.getDimensionInfo(f),d=c.coordDim;if(d){var p=c.coordDimIndex;Lm(a,d)[p]=f,c.isExtraCoord||(i.set(d,1),pee(c.type)&&(n[0]=f),Lm(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(f)}MW.each(function(g,m){var y=Lm(a,m),_=c.otherDims[m];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};i.each(function(f,c){var d=a[c];u[c]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=we(l,function(f){return r.getDimensionInfo(f).storeDimIndex}),e.encodeFirstDimNotExtra=u;var v=a.label;v&&v.length&&(n=v.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=n.slice()),a.defaultedLabel=n,a.defaultedTooltip=o,e.userOutput=new cee(s,t),e}function Lm(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Ud(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function pee(r){return!(r==="ordinal"||r==="time")}var sd=(function(){function r(t){this.otherDims={},t!=null&&_e(this,t)}return r})(),gee=yt(),mee={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},VU=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=HU(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Je(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=BW(this.source),a=!qU(t),i="",n=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,v=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,v=h.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=e?f.name:null,u=f.type)}n.push({property:l,type:u,ordinalMeta:v}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=mee[u]||"f",v&&(i+=v.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:n,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var i=void 0,n=this.dimensions[a];if(n&&n.storeDimIndex===e)n.isCalculationCoord||(i=n.name),a++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function GU(r){return r instanceof VU}function FU(r){for(var t=Ge(),e=0;e<(r||[]).length;e++){var a=r[e],i=$e(a)?a.name:a;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function HU(r){var t=gee(r);return t.dimNameMap||(t.dimNameMap=FU(r.dimensionsDefine))}function qU(r){return r>30}var Zu=$e,On=we,yee=typeof Int32Array>"u"?Array:Int32Array,_ee="e\0\0",jI=-1,xee=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],See=["_approximateExtent"],JI,Qf,Xu,Ku,Im,Qu,Pm,Xr=(function(){function r(t,e){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,i=!1;GU(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,a=t),a=a||["x","y"];for(var n={},o=[],s={},l=!1,u={},v=0;v<a.length;v++){var h=a[v],f=Re(h)?new sd({name:h}):h instanceof sd?h:new sd(h),c=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=c,f.coordDimIndex=0);var d=f.otherDims=f.otherDims||{};o.push(c),n[c]=f,u[c]!=null&&(l=!0),f.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=v),d.itemId===0&&(this._idDimIdx=v),i&&(f.storeDimIndex=v)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ge();$(o,function(g){p.set(n[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var i=a.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var i=this,n;if(t instanceof ST&&(n=t),!n){var o=this.dimensions,s=bC(t)||Br(t)?new VW(t,o.length):t;n=new ST;var l=On(o,function(u){return{type:i._dimInfos[u].type,property:u}});n.initData(s,l,a)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=dee(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),i=a.start,n=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<n;s++){var l=s-i;this._nameList[s]=e[l],o&&Pm(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var i=this._dimInfos[e[a]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ao&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,i=a.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Qa;if(l&&!i.pure)for(var u=[],v=t;v<e;v++){var h=i.getItem(v,u);if(!this.hasItemOption&&iX(h)&&(this.hasItemOption=!0),h){var f=h.name;n[v]==null&&f!=null&&(n[v]=_r(f,null));var c=h.id;o[v]==null&&c!=null&&(o[v]=_r(c,null))}}if(this._shouldMakeIdFromName())for(var v=t;v<e;v++)Pm(this,v);JI(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Zu(t)?_e(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Xu(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[a]:a},r.prototype.getId=function(t){return Qf(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,i=this._dimInfos[t];if(i)return a.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,i=this._dimInfos[t];if(i)return a.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,i=this._store;return Se(t)?i.getValues(On(t,function(n){return a._getStoreDimIndex(n)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,i=e.length;a<i;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],i=a&&a[e];return i==null||isNaN(i)?jI:i},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){He(t)&&(a=e,e=t,t=[]);var i=a||this,n=On(Ku(t),this._getStoreDimIndex,this);this._store.each(n,i?Ne(e,i):e)},r.prototype.filterSelf=function(t,e,a){He(t)&&(a=e,e=t,t=[]);var i=a||this,n=On(Ku(t),this._getStoreDimIndex,this);return this._store=this._store.filter(n,i?Ne(e,i):e),this},r.prototype.selectRange=function(t){var e=this,a={},i=ft(t);return $(i,function(n){var o=e._getStoreDimIndex(n);a[o]=t[n]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){He(t)&&(a=e,e=t,t=[]),a=a||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},a),i},r.prototype.map=function(t,e,a,i){var n=a||i||this,o=On(Ku(t),this._getStoreDimIndex,this),s=Qu(this);return s._store=this._store.map(o,n?Ne(e,n):e),s},r.prototype.modify=function(t,e,a,i){var n=a||i||this,o=On(Ku(t),this._getStoreDimIndex,this);this._store.modify(o,n?Ne(e,n):e)},r.prototype.downSample=function(t,e,a,i){var n=Qu(this);return n._store=this._store.downSample(this._getStoreDimIndex(t),e,a,i),n},r.prototype.minmaxDownSample=function(t,e){var a=Qu(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=Qu(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new Mt(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new bn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Qf(t,a)},function(a){return Qf(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Zu(t)?_e(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],i=a&&a[e];return i==null?this.getVisual(e):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,i=a[t];i||(i=a[t]={});var n=i[e];return n==null&&(n=this.getVisual(e),Se(n)?n=n.slice():Zu(n)&&(n=_e({},n)),i[e]=n),n},r.prototype.setItemVisual=function(t,e,a){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Zu(e)?_e(i,e):i[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Zu(t)?_e(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?_e(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;lT(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){$(this._graphicEls,function(a,i){a&&t&&t.call(e,a,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:On(this.dimensions,this._getDimInfo,this),this.hostModel)),Im(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];He(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=a.apply(this,arguments);return e.apply(this,[i].concat(_p(arguments)))})},r.internalField=(function(){JI=function(t){var e=t._invertedIndicesMap;$(e,function(a,i){var n=t._dimInfos[i],o=n.ordinalMeta,s=t._store;if(o){a=e[i]=new yee(o.categories.length);for(var l=0;l<a.length;l++)a[l]=jI;for(var l=0;l<s.count();l++)a[s.get(n.storeDimIndex,l)]=l}})},Xu=function(t,e,a){return _r(t._getCategory(e,a),null)},Qf=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Xu(t,t._idDimIdx,e)),a==null&&(a=_ee+e),a},Ku=function(t){return Se(t)||(t=t!=null?[t]:[]),t},Qu=function(t){var e=new r(t._schema?t._schema:On(t.dimensions,t._getDimInfo,t),t.hostModel);return Im(e,t),e},Im=function(t,e){$(xee.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,$(See,function(a){t[a]=Ye(e[a])}),t._calculationInfo=_e({},e._calculationInfo)},Pm=function(t,e){var a=t._nameList,i=t._idList,n=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=i[e];if(s==null&&n!=null&&(a[e]=s=Xu(t,n,e)),l==null&&o!=null&&(i[e]=l=Xu(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,v=u[s]=(u[s]||0)+1;l=s,v>1&&(l+="__ec__"+v),i[e]=l}}})(),r})();function bee(r,t){return _u(r,t).dimensions}function _u(r,t){bC(r)||(r=wC(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],i=Ge(),n=[],o=Tee(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&qU(o),l=a===r.dimensionsDefine,u=l?HU(r):FU(a),v=t.encodeDefine;!v&&t.encodeDefaulter&&(v=t.encodeDefaulter(r,o));for(var h=Ge(v),f=new YW(o),c=0;c<f.length;c++)f[c]=-1;function d(T){var C=f[T];if(C<0){var M=a[T],L=$e(M)?M:{name:M},D=new sd,P=L.name;P!=null&&u.get(P)!=null&&(D.name=D.displayName=P),L.type!=null&&(D.type=L.type),L.displayName!=null&&(D.displayName=L.displayName);var I=n.length;return f[T]=I,D.storeDimIndex=T,n.push(D),D}return n[C]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(T,C){var M=Nt(T).slice();if(M.length===1&&!Re(M[0])&&M[0]<0){h.set(C,!1);return}var L=h.set(C,[]);$(M,function(D,P){var I=Re(D)?u.get(D):D;I!=null&&I<o&&(L[P]=I,g(d(I),C,P))})});var p=0;$(e,function(T){var C,M,L,D;if(Re(T))C=T,D={};else{D=T,C=D.name;var P=D.ordinalMeta;D.ordinalMeta=null,D=_e({},D),D.ordinalMeta=P,M=D.dimsDef,L=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var I=h.get(C);if(I!==!1){if(I=Nt(I),!I.length)for(var R=0;R<(M&&M.length||1);R++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}$(I,function(E,k){var B=d(E);if(l&&D.type!=null&&(B.type=D.type),g(Ue(B,D),C,k),B.name==null&&M){var F=M[k];!$e(F)&&(F={name:F}),B.name=B.displayName=F.name,B.defaultTooltip=F.defaultTooltip}L&&Ue(B.otherDims,L)})}});function g(T,C,M){MW.get(C)!=null?T.otherDims[C]=M:(T.coordDim=C,T.coordDimIndex=M,i.set(C,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)$(n,function(T){S(T)}),n.sort(function(T,C){return T.storeDimIndex-C.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),A=w.coordDim;A==null&&(w.coordDim=Aee(x,i,_),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(PW(r,b)===zr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return wee(n),new VU({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function wee(r){for(var t=Ge(),e=0;e<r.length;e++){var a=r[e],i=a.name,n=t.get(i)||0;n>0&&(a.name=i+(n-1)),n++,t.set(i,n)}}function Tee(r,t,e,a){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return $(t,function(n){var o;$e(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function Aee(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Cee=(function(){function r(t){this.coordSysDims=[],this.axisMap=Ge(),this.categoryAxisMap=Ge(),this.coordSysName=t}return r})();function Mee(r){var t=r.get("coordinateSystem"),e=new Cee(t),a=Dee[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Dee={cartesian2d:function(r,t,e,a){var i=r.getReferringComponents("xAxis",cr).models[0],n=r.getReferringComponents("yAxis",cr).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",n),fl(i)&&(a.set("x",i),t.firstCategoryDimIndex=0),fl(n)&&(a.set("y",n),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var i=r.getReferringComponents("singleAxis",cr).models[0];t.coordSysDims=["single"],e.set("single",i),fl(i)&&(a.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var i=r.getReferringComponents("polar",cr).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",n),e.set("angle",o),fl(n)&&(a.set("radius",n),t.firstCategoryDimIndex=0),fl(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=n.dimensions.slice();$(n.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),v=o[l];e.set(v,u),fl(u)&&(a.set(v,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function fl(r){return r.get("type")==="category"}function WU(r,t,e){e=e||{};var a=e.byIndex,i=e.stackedCoordDimension,n,o,s;Lee(t)?n=t:(o=t.schema,n=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,v,h,f;if($(n,function(y,_){Re(y)&&(n[_]=y={name:y}),l&&!y.isExtraCoord&&(!a&&!u&&y.ordinalMeta&&(u=y),!v&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(v=y))}),v&&!a&&!u&&(a=!0),v){h="__\0ecstackresult_"+r.id,f="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=v.coordDim,d=v.type,p=0;$(n,function(y){y.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},m={name:f,coordDim:f,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(n.push(g),n.push(m))}return{stackedDimension:v&&v.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:h}}function Lee(r){return!GU(r.schema)}function wn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function BC(r,t){return wn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Iee(r,t){var e=r.get("coordinateSystem"),a=pu.get(e),i;return t&&t.coordSysDims&&(i=we(t.coordSysDims,function(n){var o={name:n},s=t.axisMap.get(n);if(s){var l=s.get("type");o.type=Ud(l)}return o})),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),i}function Pee(r,t,e){var a,i;return e&&$(r,function(n,o){var s=n.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),n.ordinalMeta=l.getOrdinalMeta(),t&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&a!=null&&(r[a].otherDims.itemName=0),a}function Qi(r,t,e){e=e||{};var a=t.getSourceManager(),i,n=!1;r?(n=!0,i=wC(r)):(i=a.getSource(),n=i.sourceFormat===Qa);var o=Mee(t),s=Iee(t,o),l=e.useEncodeDefaulter,u=He(l)?l:l?et(IW,s,t):null,v={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=_u(i,v),f=Pee(h.dimensions,e.createInvertedIndices,o),c=n?null:a.getSharedDataStore(h),d=WU(t,{schema:h,store:c}),p=new Xr(h,t);p.setCalculationInfo(d);var g=f!=null&&Ree(i)?function(m,y,_,x){return x===f?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(n?i:c,null,g),p}function Ree(r){if(r.sourceFormat===Qa){var t=Eee(r.data||[]);return!Se(iu(t))}}function Eee(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var ji=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();Mp(ji);var kee=0,PT=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++kee}return r.createByAxisModel=function(t){var e=t.option,a=e.data,i=a&&we(a,Oee);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Re(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Ge(this.categories))},r})();function Oee(r){return $e(r)&&r.value!=null?r.value:r+""}function RT(r){return r.type==="interval"||r.type==="log"}function Nee(r,t,e,a){var i={},n=r[1]-r[0],o=i.interval=qA(n/t,!0);e!=null&&o<e&&(o=i.interval=e),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=UU(o),l=i.niceTickExtent=[ar(Math.ceil(r[0]/o)*o,s),ar(Math.floor(r[1]/o)*o,s)];return zee(l,r),i}function Rm(r){var t=Math.pow(10,Cp(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ar(e*t)}function UU(r){return hi(r)+2}function e2(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function zee(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),e2(r,0,t),e2(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Zp(r,t){return r>=t[0]&&r<=t[1]}function Xp(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Kp(r,t){return r*(t[1]-t[0])+t[0]}var Qp=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var i=a.getSetting("ordinalMeta");return i||(i=new PT({})),Se(i)&&(i=new PT({categories:we(i,function(n){return $e(n)?n.value:n})})),a._ordinalMeta=i,a._extent=a.getSetting("extent")||[0,i.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:Re(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Zp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Xp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Kp(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,i=a[0];i<=a[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];i[o]=u,n[u]=o}for(var v=0;o<s;++o){for(;n[v]!=null;)v++;i.push(v),n[v]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[a];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(ji);ji.registerClass(Qp);var Uo=ar,Tn=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Zp(e,this._extent)},t.prototype.normalize=function(e){return Xp(e,this._extent)},t.prototype.scale=function(e){return Kp(e,this._extent)},t.prototype.setExtent=function(e,a){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(a)||(i[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=UU(e)},t.prototype.getTicks=function(e){var a=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;i[0]<n[0]&&(e?s.push({value:Uo(n[0]-a,o)}):s.push({value:i[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=Uo(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var v=s.length?s[s.length-1].value:n[1];return i[1]>v&&(e?s.push({value:Uo(v+a,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,v=[],h=s.value-l.value,f=h/e;u<e-1;){var c=Uo(l.value+(u+1)*f);c>n[0]&&c<n[1]&&v.push(c),u++}i.push(v)}return i},t.prototype.getLabel=function(e,a){if(e==null)return"";var i=a&&a.precision;i==null?i=hi(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var n=Uo(e.value,i,!0);return dC(n)},t.prototype.calcNiceTicks=function(e,a,i){e=e||5;var n=this._extent,o=n[1]-n[0];if(isFinite(o)){o<0&&(o=-o,n.reverse());var s=Nee(n,e,a,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=Math.abs(a[0]);e.fixMax||(a[1]+=i/2),a[0]-=i/2}else a[1]=1;var n=a[1]-a[0];isFinite(n)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=Uo(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=Uo(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t})(ji);ji.registerClass(Tn);var $U=typeof Float32Array<"u",Bee=$U?Float32Array:Array;function Fi(r){return Se(r)?$U?new Float32Array(r):r:new Bee(r)}var ET="__ec_stack_";function YU(r){return r.get("stack")||ET+r.seriesIndex}function VC(r){return r.dim+r.index}function Vee(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),n=0;n<r.count;n++)t.push(Ue({bandWidth:i,axisKey:a,stackId:ET+n},r));for(var o=KU(t),s=[],n=0;n<r.count;n++){var l=o[a][ET+n];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ZU(r,t){var e=[];return t.eachSeriesByType(r,function(a){JU(a)&&e.push(a)}),e}function Gee(r){var t={};$(r,function(l){var u=l.coordinateSystem,v=u.getBaseAxis();if(!(v.type!=="time"&&v.type!=="value"))for(var h=l.getData(),f=v.dim+"_"+v.index,c=h.getDimensionIndex(h.mapDimension(v.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(c,p);t[f]?t[f].push(m):t[f]=[m]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var i=t[a];if(i){i.sort(function(l,u){return l-u});for(var n=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(n=n===null?s:Math.min(n,s))}e[a]=n}}return e}function XU(r){var t=Gee(r),e=[];return $(r,function(a){var i=a.coordinateSystem,n=i.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=t[l],v=Math.abs(o[1]-o[0]),h=n.scale.getExtent(),f=Math.abs(h[1]-h[0]);s=u?v/f*u:v}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Ie(a.get("barWidth"),s),p=Ie(a.get("barMaxWidth"),s),g=Ie(a.get("barMinWidth")||(e6(a)?.5:1),s),m=a.get("barGap"),y=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:VC(n),stackId:YU(a)})}),KU(e)}function KU(r){var t={};$(r,function(a,i){var n=a.axisKey,o=a.bandWidth,s=t[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[n]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var v=a.barWidth;v&&!l[u].width&&(l[u].width=v,v=Math.min(s.remainedWidth,v),s.remainedWidth-=v);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var f=a.barMinWidth;f&&(l[u].minWidth=f);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return $(t,function(a,i){e[i]={};var n=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=ft(n).length;s=Math.max(35-l*4,15)+"%"}var u=Ie(s,o),v=Ie(a.gap,1),h=a.remainedWidth,f=a.autoWidthCount,c=(h-u)/(f+(f-1)*v);c=Math.max(c,0),$(n,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,h-=x+v*x,f--}else{var x=c;y&&y<x&&(x=Math.min(y,h)),_&&_>x&&(x=_),x!==c&&(m.width=x,h-=x+v*x,f--)}}),c=(h-u)/(f+(f-1)*v),c=Math.max(c,0);var d=0,p;$(n,function(m,y){m.width||(m.width=c),p=m,d+=m.width*(1+v)}),p&&(d-=p.width*v);var g=-d/2;$(n,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+v)})}),e}function Fee(r,t,e){if(r&&t){var a=r[VC(t)];return a}}function QU(r,t){var e=ZU(r,t),a=XU(e);$(e,function(i){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=YU(i),u=a[VC(s)][l],v=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:v,size:h})})}function jU(r){return{seriesType:r,plan:gu(),reset:function(t){if(JU(t)){var e=t.getData(),a=t.coordinateSystem,i=a.getBaseAxis(),n=a.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(n.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(n.dim),v=e.getCalculationInfo("stackResultDimension"),h=wn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),f=n.isHorizontal(),c=Hee(i,n),d=e6(t),p=t.get("barMinHeight")||0,g=v&&e.getDimensionIndex(v),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=d&&Fi(S*3),w=d&&l&&Fi(S*3),A=d&&Fi(S),T=a.master.getRect(),C=f?T.width:T.height,M,L=x.getStore(),D=0;(M=_.next())!=null;){var P=L.get(h?g:o,M),I=L.get(s,M),R=c,E=void 0;h&&(E=+P-L.get(o,M));var k=void 0,B=void 0,F=void 0,V=void 0;if(f){var N=a.dataToPoint([P,I]);if(h){var O=a.dataToPoint([E,I]);R=O[0]}k=R,B=N[1]+y,F=N[0]-R,V=m,Math.abs(F)<p&&(F=(F<0?-1:1)*p)}else{var N=a.dataToPoint([I,P]);if(h){var O=a.dataToPoint([I,E]);R=O[1]}k=N[0]+y,B=R,F=m,V=N[1]-R,Math.abs(V)<p&&(V=(V<=0?-1:1)*p)}d?(b[D]=k,b[D+1]=B,b[D+2]=f?F:V,w&&(w[D]=f?T.x:k,w[D+1]=f?B:T.y,w[D+2]=C),A[M]=M):x.setItemLayout(M,{x:k,y:B,width:F,height:V}),D+=3}d&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:f})}}}}}}function JU(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function e6(r){return r.pipelineContext&&r.pipelineContext.large}function Hee(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var qee=function(r,t,e,a){for(;e<a;){var i=e+a>>>1;r[i][1]<t?e=i+1:a=i}return e},GC=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return Zh(e.value,$L[xQ(Hl(this._minLevelUnit))]||$L.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale");return SQ(e,a,i,o,n)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,i=[];if(!e)return i;i.push({value:a[0],level:0});var n=this.getSetting("useUTC"),o=Kee(this._minLevelUnit,this._approxInterval,n,a);return i=i.concat(o),i.push({value:a[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Wa,a[1]+=Wa),a[1]===-1/0&&a[0]===1/0){var i=new Date;a[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),a[0]=a[1]-Wa}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,i){e=e||10;var n=this._extent,o=n[1]-n[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=jf.length,l=Math.min(qee(jf,this._approxInterval,0,s),s-1);this._interval=jf[l][1],this._minLevelUnit=jf[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return bt(e)?e:+Ma(e)},t.prototype.contain=function(e){return Zp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Xp(this.parse(e),this._extent)},t.prototype.scale=function(e){return Kp(e,this._extent)},t.type="time",t})(Tn),jf=[["second",hC],["minute",fC],["hour",jv],["quarter-day",jv*6],["half-day",jv*12],["day",Wa*1.2],["half-week",Wa*3.5],["week",Wa*7],["month",Wa*31],["quarter",Wa*95],["half-year",UL/2],["year",UL]];function Wee(r,t,e,a){var i=Ma(t),n=Ma(e),o=function(d){return YL(i,d,a)===YL(n,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},v=function(){return u()&&o("hour")},h=function(){return v()&&o("minute")},f=function(){return h()&&o("second")},c=function(){return f()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return v();case"minute":return h();case"second":return f();case"millisecond":return c()}}function Uee(r,t){return r/=Wa,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function $ee(r){var t=30*Wa;return r/=t,r>6?6:r>3?3:r>2?2:1}function Yee(r){return r/=jv,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function t2(r,t){return r/=t?fC:hC,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Zee(r){return qA(r,!0)}function Xee(r,t,e){var a=new Date(r);switch(Hl(t)){case"year":case"month":a[mW(e)](0);case"day":a[yW(e)](1);case"hour":a[_W(e)](0);case"minute":a[xW(e)](0);case"second":a[SW(e)](0),a[bW(e)](0)}return a.getTime()}function Kee(r,t,e,a){var i=1e4,n=pW,o=0;function s(C,M,L,D,P,I,R){for(var E=new Date(M),k=M,B=E[D]();k<L&&k<=a[1];)R.push({value:k}),B+=C,E[P](B),k=E.getTime();R.push({value:k,notAdd:!0})}function l(C,M,L){var D=[],P=!M.length;if(!Wee(Hl(C),a[0],a[1],e)){P&&(M=[{value:Xee(new Date(a[0]),C,e)},{value:a[1]}]);for(var I=0;I<M.length-1;I++){var R=M[I].value,E=M[I+1].value;if(R!==E){var k=void 0,B=void 0,F=void 0,V=!1;switch(C){case"year":k=Math.max(1,Math.round(t/Wa/365)),B=cC(e),F=bQ(e);break;case"half-year":case"quarter":case"month":k=$ee(t),B=ql(e),F=mW(e);break;case"week":case"half-week":case"day":k=Uee(t),B=zp(e),F=yW(e),V=!0;break;case"half-day":case"quarter-day":case"hour":k=Yee(t),B=yh(e),F=_W(e);break;case"minute":k=t2(t,!0),B=Bp(e),F=xW(e);break;case"second":k=t2(t,!1),B=Vp(e),F=SW(e);break;case"millisecond":k=Zee(t),B=Gp(e),F=bW(e);break}s(k,R,E,B,F,V,D),C==="year"&&L.length>1&&I===0&&L.unshift({value:L[0].value-k})}}for(var I=0;I<D.length;I++)L.push(D[I]);return D}}for(var u=[],v=[],h=0,f=0,c=0;c<n.length&&o++<i;++c){var d=Hl(n[c]);if(_Q(n[c])){l(n[c],u[u.length-1]||[],v);var p=n[c+1]?Hl(n[c+1]):null;if(d!==p){if(v.length){f=h,v.sort(function(C,M){return C.value-M.value});for(var g=[],m=0;m<v.length;++m){var y=v[m].value;(m===0||v[m-1].value!==y)&&(g.push(v[m]),y>=a[0]&&y<=a[1]&&h++)}var _=(a[1]-a[0])/t;if(h>_*1.5&&f>_/1.5||(u.push(g),h>_||r===n[c]))break}v=[]}}}for(var x=Ct(we(u,function(C){return Ct(C,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(C){return C.length>0}),S=[],b=x.length-1,c=0;c<x.length;++c)for(var w=x[c],A=0;A<w.length;++A)S.push({value:w[A].value,level:b-c});S.sort(function(C,M){return C.value-M.value});for(var T=[],c=0;c<S.length;++c)(c===0||S[c].value!==S[c-1].value)&&T.push(S[c]);return T}ji.registerClass(GC);var r2=ji.prototype,th=Tn.prototype,Qee=ar,jee=Math.floor,Jee=Math.ceil,Jf=Math.pow,ai=Math.log,FC=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Tn,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,i=this._extent,n=a.getExtent(),o=th.getTicks.call(this,e);return we(o,function(s){var l=s.value,u=ar(Jf(this.base,l));return u=l===i[0]&&this._fixMin?ec(u,n[0]):u,u=l===i[1]&&this._fixMax?ec(u,n[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var i=ai(this.base);e=ai(Math.max(0,e))/i,a=ai(Math.max(0,a))/i,th.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=r2.getExtent.call(this);a[0]=Jf(e,a[0]),a[1]=Jf(e,a[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(a[0]=ec(a[0],n[0])),this._fixMax&&(a[1]=ec(a[1],n[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=ai(e[0])/ai(a),e[1]=ai(e[1])/ai(a),r2.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,i=a[1]-a[0];if(!(i===1/0||i<=0)){var n=yq(i),o=e/i*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[ar(Jee(a[0]/n)*n),ar(jee(a[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){th.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ai(e)/ai(this.base),Zp(e,this._extent)},t.prototype.normalize=function(e){return e=ai(e)/ai(this.base),Xp(e,this._extent)},t.prototype.scale=function(e){return e=Kp(e,this._extent),Jf(this.base,e)},t.type="log",t})(ji),t6=FC.prototype;t6.getMinorTicks=th.getMinorTicks;t6.getLabel=th.getLabel;function ec(r,t){return Qee(r,hi(t))}ji.registerClass(FC);var ete=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var n=e.get("min",!0);n==null&&(n=e.get("startValue",!0));var o=this._modelMinRaw=n;He(o)?this._modelMinNum=tc(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=tc(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(He(s)?this._modelMaxNum=tc(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=tc(t,s)),i)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=Se(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[_i(u[0],1),_i(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,i=this._axisDataLen,n=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,v=l!=null;s==null&&(s=t?i?0:NaN:e-n[0]*o),l==null&&(l=t?i?i-1:NaN:a+n[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ul(s)||Ul(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!v&&(l=0));var f=this._determinedMin,c=this._determinedMax;return f!=null&&(s=f,u=!0),c!=null&&(l=c,v=!0),{min:s,max:l,minFixed:u,maxFixed:v,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[rte[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=tte[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),tte={min:"_determinedMin",max:"_determinedMax"},rte={min:"_dataMin",max:"_dataMax"};function r6(r,t,e){var a=r.rawExtentInfo;return a||(a=new ete(r,t,e),r.rawExtentInfo=a,a)}function tc(r,t){return t==null?null:Ul(t)?NaN:r.parse(t)}function a6(r,t){var e=r.type,a=r6(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var i=a.min,n=a.max,o=t.ecModel;if(o&&e==="time"){var s=ZU("bar",o),l=!1;if($(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=XU(s),v=ate(i,n,t,u);i=v.min,n=v.max}}return{extent:[i,n],fixMin:a.minFixed,fixMax:a.maxFixed}}function ate(r,t,e,a){var i=e.axis.getExtent(),n=Math.abs(i[1]-i[0]),o=Fee(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;$(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;$(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,v=t-r,h=1-(s+l)/n,f=v/h-v;return t+=f*(l/u),r-=f*(s/u),{min:r,max:t}}function Rs(r,t){var e=t,a=a6(r,e),i=a.extent,n=e.get("splitNumber");r instanceof FC&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:n,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Kh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new GC({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ji.getClass(t)||Tn)}}function ite(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function xu(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(i,n){return r.scale.getFormattedLabel(i,n,a)}})(t):Re(t)?(function(a){return function(i){var n=r.scale.getLabel(i),o=a.replace("{value}",n!=null?n:"");return o}})(t):He(t)?(function(a){return function(i,n){return e!=null&&(n=i.value-e),a(HC(r,i),n,i.level!=null?{level:i.level}:null)}})(t):function(a){return r.scale.getLabel(a)}}function HC(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function nte(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,i,n=e.getExtent();e instanceof Qp?i=e.count():(a=e.getTicks(),i=a.length);var o=r.getLabelModel(),s=xu(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var v=0;v<i;v+=u){var h=a?a[v]:{value:n[0]+v},f=s(h,v),c=o.getTextRect(f),d=ote(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function ote(r,t){var e=t*Math.PI/180,a=r.width,i=r.height,n=a*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new at(r.x,r.y,n,o);return s}function qC(r){var t=r.get("interval");return t==null?"auto":t}function i6(r){return r.type==="category"&&qC(r.getLabelModel())===0}function $d(r,t){var e={};return $(r.mapDimensionsAll(t),function(a){e[BC(r,a)]=!0}),ft(e)}function ste(r,t,e){t&&$($d(t,e),function(a){var i=t.getApproximateExtent(a);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var Su=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function lte(r){return Qi(null,r)}var ute={isDimensionStacked:wn,enableDataStack:WU,getStackedDimension:BC};function vte(r,t){var e=t;t instanceof Mt||(e=new Mt(t));var a=Kh(e);return a.setExtent(r[0],r[1]),Rs(a,e),a}function hte(r){nr(r,Su)}function fte(r,t){return t=t||{},Ht(r,null,null,t.state!=="normal")}const cte=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:bee,createList:lte,createScale:vte,createSymbol:lr,createTextStyle:fte,dataStack:ute,enableHoverEmphasis:to,getECData:Xe,getLayoutRect:dr,mixinAxisModelCommonMethods:hte},Symbol.toStringTag,{value:"Module"}));var a2=[],dte={registerPreprocessor:kC,registerProcessor:OC,registerPostInit:EU,registerPostUpdate:kU,registerUpdateLifecycle:Yp,registerAction:Si,registerCoordinateSystem:OU,registerLayout:NU,registerVisual:mo,registerTransform:BU,registerLoading:zC,registerMap:zU,registerImpl:VJ,PRIORITY:TU,ComponentModel:ut,ComponentView:Wt,SeriesModel:zt,ChartView:kt,registerComponentModel:function(r){ut.registerClass(r)},registerComponentView:function(r){Wt.registerClass(r)},registerSeriesModel:function(r){zt.registerClass(r)},registerChartView:function(r){kt.registerClass(r)},registerSubTypeDefaulter:function(r,t){ut.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){fq(r,t)}};function ot(r){if(Se(r)){$(r,function(t){ot(t)});return}nt(a2,r)>=0||(a2.push(r),He(r)&&(r={install:r}),r.install(dte))}var pte=1e-8;function i2(r,t){return Math.abs(r-t)<pte}function ss(r,t,e){var a=0,i=r[0];if(!i)return!1;for(var n=1;n<r.length;n++){var o=r[n];a+=vn(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!i2(i[0],s[0])||!i2(i[1],s[1]))&&(a+=vn(i[0],i[1],s[0],s[1],t,e)),a!==0}var gte=[];function Em(r,t){for(var e=0;e<r.length;e++)Or(r[e],r[e],t)}function n2(r,t,e,a){for(var i=0;i<r.length;i++){var n=r[i];a&&(n=a.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(cn(t,t,n),dn(e,e,n))}}function mte(r){for(var t=0,e=0,a=0,i=r.length,n=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],v=n*u-l*o;t+=v,e+=(n+l)*v,a+=(o+u)*v,n=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var n6=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})(),o2=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})(),s2=(function(){function r(t){this.type="linestring",this.points=t}return r})(),o6=(function(r){he(t,r);function t(e,a,i){var n=r.call(this,e)||this;return n.type="geoJSON",n.geometries=a,n._center=i&&[i[0],i[1]],n}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,i=0,n=0;n<e.length;n++){var o=e[n],s=o.exterior,l=s&&s.length;l>i&&(a=o,i=l)}if(a)return mte(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var i=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return $(o,function(s){s.type==="polygon"?n2(s.exterior,i,n,e):$(s.points,function(l){n2(l,i,n,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),a=new at(i[0],i[1],n[0]-i[0],n[1]-i[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),i=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var n=0,o=i.length;n<o;n++){var s=i[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ss(l,e[0],e[1])){for(var v=0;v<(u?u.length:0);v++)if(ss(u[v],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,a,i,n){var o=this.getBoundingRect(),s=o.width/o.height;i?n||(n=i/s):i=s*n;for(var l=new at(e,a,i,n),u=o.calculateTransform(l),v=this.geometries,h=0;h<v.length;h++){var f=v[h];f.type==="polygon"?(Em(f.exterior,u),$(f.interiors,function(c){Em(c,u)})):$(f.points,function(c){Em(c,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t})(n6),yte=(function(r){he(t,r);function t(e,a){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=a,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),i=[a.x+a.width/2,a.y+a.height/2],n=Vh(gte),o=e;o&&!o.isGeoSVGGraphicRoot;)Wi(n,o.getLocalTransform(),n),o=o.parent;return Ns(n,n),Or(i,i,n),i},t})(n6);function _te(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return $(a,function(i){var n=i.geometry,o=n.encodeOffsets,s=n.coordinates;if(o)switch(n.type){case"LineString":n.coordinates=s6(s,o,e);break;case"Polygon":km(s,o,e);break;case"MultiLineString":km(s,o,e);break;case"MultiPolygon":$(s,function(l,u){return km(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function km(r,t,e){for(var a=0;a<r.length;a++)r[a]=s6(r[a],t[a],e)}function s6(r,t,e){for(var a=[],i=t[0],n=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,a.push([s/e,l/e])}return a}function kT(r,t){return r=_te(r),we(Ct(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,i=e.geometry,n=[];switch(i.type){case"Polygon":var o=i.coordinates;n.push(new o2(o[0],o.slice(1)));break;case"MultiPolygon":$(i.coordinates,function(l){l[0]&&n.push(new o2(l[0],l.slice(1)))});break;case"LineString":n.push(new s2([i.coordinates]));break;case"MultiLineString":n.push(new s2(i.coordinates))}var s=new o6(a[t||"name"],n,a.cp);return s.properties=a,s})}const xte=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:rT,asc:Ta,getPercentWithPrecision:tX,getPixelPrecision:FA,getPrecision:hi,getPrecisionSafe:gq,isNumeric:WA,isRadianAroundZero:Yl,linearMap:Pt,nice:qA,numericToNumber:Yi,parseDate:Ma,quantile:ed,quantity:yq,quantityExponent:Cp,reformIntervals:aT,remRadian:HA,round:ar},Symbol.toStringTag,{value:"Module"})),Ste=Object.freeze(Object.defineProperty({__proto__:null,format:Zh,parse:Ma},Symbol.toStringTag,{value:"Module"})),bte=Object.freeze(Object.defineProperty({__proto__:null,Arc:Uh,BezierCurve:su,BoundingRect:at,Circle:Xi,CompoundPath:Ep,Ellipse:Wh,Group:Ze,Image:Dr,IncrementalDisplayable:rW,Line:xr,LinearGradient:lu,Polygon:jr,Polyline:ea,RadialGradient:rC,Rect:gt,Ring:ou,Sector:Qr,Text:pt,clipPointsByRect:oC,clipRectByRect:sW,createIcon:vu,extendPath:nW,extendShape:iW,getShapeClass:kp,getTransform:ro,initProps:$t,makeImage:iC,makePath:$h,mergePath:wa,registerShape:Ka,resizePath:nC,updateProps:wt},Symbol.toStringTag,{value:"Module"})),wte=Object.freeze(Object.defineProperty({__proto__:null,addCommas:dC,capitalFirst:CQ,encodeHTML:Zr,formatTime:AQ,formatTpl:gC,getTextRect:wQ,getTooltipMarker:wW,normalizeCssArray:Vs,toCamelCase:pC,truncateText:PX},Symbol.toStringTag,{value:"Module"})),Tte=Object.freeze(Object.defineProperty({__proto__:null,bind:Ne,clone:Ye,curry:et,defaults:Ue,each:$,extend:_e,filter:Ct,indexOf:nt,inherits:EA,isArray:Se,isFunction:He,isObject:$e,isString:Re,map:we,merge:tt,reduce:Ya},Symbol.toStringTag,{value:"Module"}));var Th=yt();function l6(r,t){var e=we(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Ate(r){var t=r.getLabelModel().get("customValues");if(t){var e=xu(r),a=r.scale.getExtent(),i=l6(r,t),n=Ct(i,function(o){return o>=a[0]&&o<=a[1]});return{labels:we(n,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?Mte(r):Lte(r)}function Cte(r,t){var e=r.getTickModel().get("customValues");if(e){var a=r.scale.getExtent(),i=l6(r,e);return{ticks:Ct(i,function(n){return n>=a[0]&&n<=a[1]})}}return r.type==="category"?Dte(r,t):{ticks:we(r.scale.getTicks(),function(n){return n.value})}}function Mte(r){var t=r.getLabelModel(),e=u6(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function u6(r,t){var e=v6(r,"labels"),a=qC(t),i=h6(e,a);if(i)return i;var n,o;return He(a)?n=d6(r,a):(o=a==="auto"?Ite(r):a,n=c6(r,o)),f6(e,a,{labels:n,labelCategoryInterval:o})}function Dte(r,t){var e=v6(r,"ticks"),a=qC(t),i=h6(e,a);if(i)return i;var n,o;if((!t.get("show")||r.scale.isBlank())&&(n=[]),He(a))n=d6(r,a,!0);else if(a==="auto"){var s=u6(r,r.getLabelModel());o=s.labelCategoryInterval,n=we(s.labels,function(l){return l.tickValue})}else o=a,n=c6(r,o,!0);return f6(e,a,{ticks:n,tickCategoryInterval:o})}function Lte(r){var t=r.scale.getTicks(),e=xu(r);return{labels:we(t,function(a,i){return{level:a.level,formattedLabel:e(a,i),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function v6(r,t){return Th(r)[t]||(Th(r)[t]=[])}function h6(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function f6(r,t,e){return r.push({key:t,value:e}),e}function Ite(r){var t=Th(r).autoInterval;return t!=null?t:Th(r).autoInterval=r.calculateCategoryInterval()}function Pte(r){var t=Rte(r),e=xu(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),v=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),f=0,c=0;l<=n[1];l+=s){var d=0,p=0,g=Fh(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,f=Math.max(f,d,7),c=Math.max(c,p,7)}var m=f/v,y=c/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=Th(r.model),S=r.getExtent(),b=x.lastAutoInterval,w=x.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&x.axisExtent0===S[0]&&x.axisExtent1===S[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=S[0],x.axisExtent1=S[1]),_}function Rte(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function c6(r,t,e){var a=xu(r),i=r.scale,n=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=n[0],v=i.count();u!==0&&l>1&&v/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=i6(r),f=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;f&&u!==n[0]&&p(n[0]);for(var d=u;d<=n[1];d+=l)p(d);c&&d-l!==n[1]&&p(n[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:a(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function d6(r,t,e){var a=r.scale,i=xu(r),n=[];return $(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&n.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),n}var l2=[0,1],Ja=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=a&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return FA(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(a=a.slice(),u2(a,i.count())),Pt(t,l2,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(a=a.slice(),u2(a,i.count()));var n=Pt(t,a,l2,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=Cte(this,e),i=a.ticks,n=we(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Ete(this,n,o,t.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),i=we(a,function(n){return we(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return Ate(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/a},r.prototype.calculateCategoryInterval=function(){return Pte(this)},r})();function u2(r,t){var e=r[1]-r[0],a=t,i=e/a/2;r[0]+=i,r[1]-=i}function Ete(r,t,e,a){var i=t.length;if(!r.onBand||e||!i)return;var n=r.getExtent(),o,s;if(i===1)t[0].coord=n[0],o=t[1]={coord:n[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;$(t,function(c){c.coord-=u/2});var v=r.scale.getExtent();s=1+v[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:v[1]+1},t.push(o)}var h=n[0]>n[1];f(t[0].coord,n[0])&&(a?t[0].coord=n[0]:t.shift()),a&&f(n[0],t[0].coord)&&t.unshift({coord:n[0]}),f(n[1],o.coord)&&(a?o.coord=n[1]:t.pop()),a&&f(o.coord,n[1])&&t.push({coord:n[1]});function f(c,d){return c=ar(c),d=ar(d),h?c>d:c<d}}function kte(r){var t=ut.extend(r);return ut.registerClass(t),t}function Ote(r){var t=Wt.extend(r);return Wt.registerClass(t),t}function Nte(r){var t=zt.extend(r);return zt.registerClass(t),t}function zte(r){var t=kt.extend(r);return kt.registerClass(t),t}var ju=Math.PI*2,$o=Zi.CMD,Bte=["top","right","bottom","left"];function Vte(r,t,e,a,i){var n=e.width,o=e.height;switch(r){case"top":a.set(e.x+n/2,e.y-t),i.set(0,-1);break;case"bottom":a.set(e.x+n/2,e.y+o+t),i.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":a.set(e.x+n+t,e.y+o/2),i.set(1,0);break}}function Gte(r,t,e,a,i,n,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var v=o*e+r,h=s*e+t;if(Math.abs(a-i)%ju<1e-4)return l[0]=v,l[1]=h,u-e;if(n){var f=a;a=Aa(i),i=Aa(f)}else a=Aa(a),i=Aa(i);a>i&&(i+=ju);var c=Math.atan2(s,o);if(c<0&&(c+=ju),c>=a&&c<=i||c+ju>=a&&c+ju<=i)return l[0]=v,l[1]=h,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(i)+r,m=e*Math.sin(i)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Yd(r,t,e,a,i,n,o,s){var l=i-r,u=n-t,v=e-r,h=a-t,f=Math.sqrt(v*v+h*h);v/=f,h/=f;var c=l*v+u*h,d=c/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var p=o[0]=r+d*v,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-n)*(g-n))}function p6(r,t,e,a,i,n,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(i,r),s),v=o[1]=Math.min(Math.max(n,t),l);return Math.sqrt((u-i)*(u-i)+(v-n)*(v-n))}var vi=[];function Fte(r,t,e){var a=p6(t.x,t.y,t.width,t.height,r.x,r.y,vi);return e.set(vi[0],vi[1]),a}function Hte(r,t,e){for(var a=0,i=0,n=0,o=0,s,l,u=1/0,v=t.data,h=r.x,f=r.y,c=0;c<v.length;){var d=v[c++];c===1&&(a=v[c],i=v[c+1],n=a,o=i);var p=u;switch(d){case $o.M:n=v[c++],o=v[c++],a=n,i=o;break;case $o.L:p=Yd(a,i,v[c],v[c+1],h,f,vi,!0),a=v[c++],i=v[c++];break;case $o.C:p=K4(a,i,v[c++],v[c++],v[c++],v[c++],v[c],v[c+1],h,f,vi),a=v[c++],i=v[c++];break;case $o.Q:p=j4(a,i,v[c++],v[c++],v[c],v[c+1],h,f,vi),a=v[c++],i=v[c++];break;case $o.A:var g=v[c++],m=v[c++],y=v[c++],_=v[c++],x=v[c++],S=v[c++];c+=1;var b=!!(1-v[c++]);s=Math.cos(x)*y+g,l=Math.sin(x)*_+m,c<=1&&(n=s,o=l);var w=(h-g)*_/y+g;p=Gte(g,m,_,x,x+S,b,w,f,vi),a=Math.cos(x+S)*y+g,i=Math.sin(x+S)*_+m;break;case $o.R:n=a=v[c++],o=i=v[c++];var A=v[c++],T=v[c++];p=p6(n,o,A,T,h,f,vi);break;case $o.Z:p=Yd(a,i,n,o,h,f,vi,!0),a=n,i=o;break}p<u&&(u=p,e.set(vi[0],vi[1]))}return u}var fi=new rt,qt=new rt,sr=new rt,Hi=new rt,Vi=new rt;function v2(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var i=r.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=i.candidates||Bte,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=i.anchor,v=r.getComputedTransform(),h=v&&Ns([],v),f=t.get("length2")||0;u&&sr.copy(u);for(var c=0;c<o.length;c++){var d=o[c];Vte(d,0,s,fi,Hi),rt.scaleAndAdd(qt,fi,Hi,f),qt.transform(h);var p=r.getBoundingRect(),g=u?u.distance(qt):r instanceof ht?Hte(qt,r.path,sr):Fte(qt,p,sr);g<l&&(l=g,qt.transform(v),sr.transform(v),sr.toArray(n[0]),qt.toArray(n[1]),fi.toArray(n[2]))}g6(n,t.get("minTurnAngle")),e.setShape({points:n})}}}var Zd=[],oa=new rt;function g6(r,t){if(t<=180&&t>0){t=t/180*Math.PI,fi.fromArray(r[0]),qt.fromArray(r[1]),sr.fromArray(r[2]),rt.sub(Hi,fi,qt),rt.sub(Vi,sr,qt);var e=Hi.len(),a=Vi.len();if(!(e<.001||a<.001)){Hi.scale(1/e),Vi.scale(1/a);var i=Hi.dot(Vi),n=Math.cos(t);if(n<i){var o=Yd(qt.x,qt.y,sr.x,sr.y,fi.x,fi.y,Zd,!1);oa.fromArray(Zd),oa.scaleAndAdd(Vi,o/Math.tan(Math.PI-t));var s=sr.x!==qt.x?(oa.x-qt.x)/(sr.x-qt.x):(oa.y-qt.y)/(sr.y-qt.y);if(isNaN(s))return;s<0?rt.copy(oa,qt):s>1&&rt.copy(oa,sr),oa.toArray(r[1])}}}}function qte(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,fi.fromArray(r[0]),qt.fromArray(r[1]),sr.fromArray(r[2]),rt.sub(Hi,qt,fi),rt.sub(Vi,sr,qt);var a=Hi.len(),i=Vi.len();if(!(a<.001||i<.001)){Hi.scale(1/a),Vi.scale(1/i);var n=Hi.dot(t),o=Math.cos(e);if(n<o){var s=Yd(qt.x,qt.y,sr.x,sr.y,fi.x,fi.y,Zd,!1);oa.fromArray(Zd);var l=Math.PI/2,u=Math.acos(Vi.dot(t)),v=l+u-e;if(v>=l)rt.copy(oa,sr);else{oa.scaleAndAdd(Vi,s/Math.tan(Math.PI/2-v));var h=sr.x!==qt.x?(oa.x-qt.x)/(sr.x-qt.x):(oa.y-qt.y)/(sr.y-qt.y);if(isNaN(h))return;h<0?rt.copy(oa,qt):h>1&&rt.copy(oa,sr)}oa.toArray(r[1])}}}}function Om(r,t,e,a){var i=e==="normal",n=i?r:r.ensureState(e);n.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();i?r.useStyle(s):n.style=s}function Wte(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var i=fn(a[0],a[1]),n=fn(a[1],a[2]);if(!i||!n){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(i,n)*e,s=qv([],a[1],a[0],o/i),l=qv([],a[1],a[2],o/n),u=qv([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var v=1;v<a.length;v++)r.lineTo(a[v][0],a[v][1])}function WC(r,t,e){var a=r.getTextGuideLine(),i=r.getTextContent();if(!i){a&&r.removeTextGuideLine();return}for(var n=t.normal,o=n.get("show"),s=i.ignore,l=0;l<ph.length;l++){var u=ph[l],v=t[u],h=u==="normal";if(v){var f=v.get("show"),c=h?s:Je(i.states[u]&&i.states[u].ignore,s);if(c||!Je(f,o)){var d=h?a:a&&a.states[u];d&&(d.ignore=!0),a&&Om(a,!0,u,v);continue}a||(a=new ea,r.setTextGuideLine(a),!h&&(s||!o)&&Om(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Om(a,!1,u,v)}}if(a){Ue(a.style,e),a.style.fill=null;var p=n.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=Wte}}function UC(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<va.length;a++){var i=va[a];e[i]=r.getModel([i,t])}return e}function m6(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var i=a.label,n=i.getComputedTransform(),o=i.getBoundingRect(),s=!n||n[1]<1e-5&&n[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(n),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var v=s?new Id(o,n):null;t.push({label:i,labelLine:a.labelLine,rect:u,localRect:o,obb:v,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:n})}}return t}function y6(r,t,e,a,i,n){var o=r.length;if(o<2)return;r.sort(function(b,w){return b.rect[t]-w.rect[t]});for(var s=0,l,u=!1,v=0;v<o;v++){var h=r[v],f=h.rect;l=f[t]-s,l<0&&(f[t]-=l,h.label[t]-=l,u=!0),s=f[t]+f[e]}var c=r[0],d=r[o-1],p,g;m(),p<0&&x(-p,.8),g<0&&x(g,.8),m(),y(p,g,1),y(g,p,-1),m(),p<0&&S(-p),g<0&&S(g);function m(){p=c.rect[t]-a,g=i-d.rect[t]-d.rect[e]}function y(b,w,A){if(b<0){var T=Math.min(w,-b);if(T>0){_(T*A,0,o);var C=T+b;C<0&&x(-C*A,1)}else x(-b*A,1)}}function _(b,w,A){b!==0&&(u=!0);for(var T=w;T<A;T++){var C=r[T],M=C.rect;M[t]+=b,C.label[t]+=b}}function x(b,w){for(var A=[],T=0,C=1;C<o;C++){var M=r[C-1].rect,L=Math.max(r[C].rect[t]-M[t]-M[e],0);A.push(L),T+=L}if(T){var D=Math.min(Math.abs(b)/T,w);if(b>0)for(var C=0;C<o-1;C++){var P=A[C]*D;_(P,0,C+1)}else for(var C=o-1;C>0;C--){var P=A[C-1]*D;_(-P,C,o)}}}function S(b){var w=b<0?-1:1;b=Math.abs(b);for(var A=Math.ceil(b/(o-1)),T=0;T<o-1;T++)if(w>0?_(A,0,T+1):_(-A,o-T-1,o),b-=A,b<=0)return}return u}function Ute(r,t,e,a){return y6(r,"x","width",t,e)}function _6(r,t,e,a){return y6(r,"y","height",t,e)}function x6(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new at(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var n=r[i],o=n.axisAligned,s=n.localRect,l=n.transform,u=n.label,v=n.labelLine;e.copy(n.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=n.obb,f=!1,c=0;c<t.length;c++){var d=t[c];if(e.intersect(d.rect)){if(o&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new Id(d.localRect,d.transform)),h||(h=new Id(s,l)),h.intersect(d.obb)){f=!0;break}}}f?(a(u),v&&a(v)):(u.attr("ignore",n.defaultAttr.ignore),v&&v.attr("ignore",n.defaultAttr.labelGuideIgnore),t.push(n))}}function $te(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Yte(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:$te(a&&a.shape.points)}}var h2=["align","verticalAlign","width","height","fontSize"],ra=new pn,Nm=yt(),Zte=yt();function rc(r,t,e){for(var a=0;a<e.length;a++){var i=e[a];t[i]!=null&&(r[i]=t[i])}}var ac=["x","y","rotation"],Xte=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,i,n){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),v=i.getBoundingRect().plain();at.applyTransform(v,v,u),u?ra.setLocalTransform(u):(ra.x=ra.y=ra.rotation=ra.originX=ra.originY=0,ra.scaleX=ra.scaleY=1),ra.rotation=Aa(ra.rotation);var h=i.__hostTarget,f;if(h){f=h.getBoundingRect().plain();var c=h.getComputedTransform();at.applyTransform(f,f,c)}var d=f&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOption:n,computedLayoutOption:null,rect:v,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ra.x,y:ra.y,scaleX:ra.scaleX,scaleY:ra.scaleY,rotation:ra.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,i=a.get("labelLayout");(He(i)||ft(i).length)&&t.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=Xe(n);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function i(_,x){return function(){v2(_,x)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,v=void 0;He(o.layoutOption)?v=o.layoutOption(Yte(o,l)):v=o.layoutOption,v=v||{},o.computedLayoutOption=v;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:v.x!=null||v.y!=null?null:u.attachedPos,rotation:v.rotate!=null?v.rotate*h:u.attachedRot,offset:[v.dx||0,v.dy||0]});var f=!1;if(v.x!=null?(s.x=Ie(v.x,e),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),v.y!=null?(s.y=Ie(v.y,a),s.setStyle("y",0),f=!0):(s.y=u.y,s.setStyle("y",u.style.y)),v.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:v.labelLinePoints}),f=!1)}var d=Nm(s);d.needsUpdateLabelLine=f,s.rotation=v.rotate!=null?v.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<h2.length;p++){var g=h2[p];s.setStyle(g,v[g]!=null?v[g]:u.style[g])}if(v.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),i=m6(this._labelList),n=Ct(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ct(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});Ute(n,0,e),_6(o,0,a);var s=Ct(i,function(l){return l.layoutOption.hideOverlap});x6(s)},r.prototype.processLabelsOverall=function(){var t=this;$(this._chartViewList,function(e){var a=e.__model,i=e.ignoreLabelLineUpdate,n=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Nm(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),n&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),i=Xe(t),n=i.dataIndex;if(a&&n!=null){var o=e.getData(i.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style");if(u){var v=o.getVisual("drawType");l.stroke=u[v]}var h=s.getModel("labelLine");WC(t,UC(s),l),v2(t,h)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),i=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Gl(t))){var n=Nm(a),o=n.oldLayout,s=Xe(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},v=e.getData(s.dataType);if(o){a.attr(o);var f=t.prevStates;f&&(nt(f,"select")>=0&&a.attr(n.oldLayoutSelect),nt(f,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),wt(a,u,e,l)}else if(a.attr(u),!hu(a).valueAnimation){var h=Je(a.style.opacity,1);a.style.opacity=0,$t(a,{style:{opacity:h}},e,l)}if(n.oldLayout=u,a.states.select){var c=n.oldLayoutSelect={};rc(c,u,ac),rc(c,a.states.select,ac)}if(a.states.emphasis){var d=n.oldLayoutEmphasis={};rc(d,u,ac),rc(d,a.states.emphasis,ac)}hW(a,l,v,e,e)}if(i&&!i.ignore&&!i.invisible){var n=Zte(i),o=n.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),wt(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,$t(i,{style:{strokePercent:1}},e)),n.oldLayout=p}},r})(),zm=yt();function S6(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var i=zm(e).labelManager;i||(i=zm(e).labelManager=new Xte),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var i=zm(e).labelManager;a.updatedSeries.forEach(function(n){i.addLabelsOfSeries(e.getViewOfSeriesModel(n))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}const S1e=Object.freeze(Object.defineProperty({__proto__:null,Axis:Ja,ChartView:kt,ComponentModel:ut,ComponentView:Wt,List:Xr,Model:Mt,PRIORITY:TU,SeriesModel:zt,color:yZ,connect:nee,dataTool:fee,dependencies:FJ,disConnect:oee,disconnect:RU,dispose:see,env:vt,extendChartView:zte,extendComponentModel:kte,extendComponentView:Ote,extendSeriesModel:Nte,format:wte,getCoordinateSystemDimensions:uee,getInstanceByDom:RC,getInstanceById:lee,getMap:hee,graphic:bte,helper:cte,init:iee,innerDrawElementOnCanvas:DC,matrix:KY,number:xte,parseGeoJSON:kT,parseGeoJson:kT,registerAction:Si,registerCoordinateSystem:OU,registerLayout:NU,registerLoading:zC,registerLocale:vC,registerMap:zU,registerPostInit:EU,registerPostUpdate:kU,registerPreprocessor:kC,registerProcessor:OC,registerTheme:EC,registerTransform:BU,registerUpdateLifecycle:Yp,registerVisual:mo,setCanvasCreator:vee,setPlatformAPI:I4,throttle:Up,time:Ste,use:ot,util:Tte,vector:NY,version:GJ,zrUtil:LY,zrender:JZ},Symbol.toStringTag,{value:"Module"}));var Kte=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Ze,i=lr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(i),i.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=e.itemHeight*.8,u=lr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var v=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=v*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(zt);function jl(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var i=Kl(r,t,e[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o<e.length;o++)n.push(Kl(r,t,e[o]));return n.join(" ")}}function b6(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!Se(t))return t+"";for(var a=[],i=0;i<e.length;i++){var n=r.getDimensionIndex(e[i]);n>=0&&a.push(t[n])}return a.join(" ")}var Qh=(function(r){he(t,r);function t(e,a,i,n){var o=r.call(this)||this;return o.updateData(e,a,i,n),o}return t.prototype._createSymbol=function(e,a,i,n,o){this.removeAll();var s=lr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Qte,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){xn(this.childAt(0))},t.prototype.downplay=function(){Sn(this.childAt(0))},t.prototype.setZ=function(e,a){var i=this.childAt(0);i.zlevel=e,i.z=a},t.prototype.setDraggable=function(e,a){var i=this.childAt(0);i.draggable=e,i.cursor=!a&&e?"move":i.cursor},t.prototype.updateData=function(e,a,i,n){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,v=n&&n.disableAnimation;if(u){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,h)}else{var f=this.childAt(0);f.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};v?f.attr(c):wt(f,c,s,a),xi(f)}if(this._updateCommon(e,a,l,i,n),u){var f=this.childAt(0);if(!v){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,$t(f,c,s,a)}}v&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,i,n,o){var s=this.childAt(0),l=e.hostModel,u,v,h,f,c,d,p,g,m;if(n&&(u=n.emphasisItemStyle,v=n.blurItemStyle,h=n.selectItemStyle,f=n.focus,c=n.blurScope,p=n.labelStatesModels,g=n.hoverScale,m=n.cursorStyle,d=n.emphasisDisabled),!n||e.hasItemOption){var y=n&&n.itemModel?n.itemModel:e.getItemModel(a),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),v=y.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Cr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Gs(e.getItemVisual(a,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof Dr){var A=s.style;s.useStyle(_e({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(_e({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(a,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var M=o&&o.useNameLabel;Gr(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(I){return M?e.getName(I):jl(e,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=v;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;D.scaleX=this._sizeX*P,D.scaleY=this._sizeY*P,this.setSymbolScale(1),tr(this,f,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,i){var n=this.childAt(0),o=Xe(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&lo(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();lo(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return yu(e.getItemVisual(a,"symbolSize"))},t})(Ze);function Qte(r,t){this.parent.drift(r,t)}function Bm(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function f2(r){return r!=null&&!$e(r)&&(r={isIgnore:r}),r||{}}function c2(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Cr(t),cursorStyle:t.get("cursor")}}var jh=(function(){function r(t){this.group=new Ze,this._SymbolCtor=t||Qh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=f2(e);var a=this.group,i=t.hostModel,n=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=c2(t),u={disableAnimation:s},v=e.getSymbolPoint||function(h){return t.getItemLayout(h)};n||a.removeAll(),t.diff(n).add(function(h){var f=v(h);if(Bm(t,f,h,e)){var c=new o(t,h,l,u);c.setPosition(f),t.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,f){var c=n.getItemGraphicEl(f),d=v(h);if(!Bm(t,d,h,e)){a.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var m={x:d[0],y:d[1]};s?c.attr(m):wt(c,m,i)}a.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var f=n.getItemGraphicEl(h);f&&f.fadeOut(function(){a.remove(f)},i)}).execute(),this._getSymbolPoint=v,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,i){var n=t._getSymbolPoint(i);a.setPosition(n),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=c2(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=f2(a);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var o=e.getItemLayout(n);if(Bm(e,o,n,a)){var s=new this._SymbolCtor(e,n,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){po(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},a.hostModel)}):e.removeAll()},r})();function w6(r,t,e){var a=r.getBaseAxis(),i=r.getOtherAxis(a),n=jte(i,e),o=a.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),v=s==="x"||s==="radius"?1:0,h=we(r.dimensions,function(d){return t.mapDimension(d)}),f=!1,c=t.getCalculationInfo("stackResultDimension");return wn(t,h[0])&&(f=!0,h[0]=c),wn(t,h[1])&&(f=!0,h[1]=c),{dataDimsForPoint:h,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:v,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function jte(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:bt(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function T6(r,t,e,a){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=e.get(r.baseDim,a),o[1-n]=i,t.dataToPoint(o)}function Jte(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,i){e.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function ere(r,t,e,a,i,n,o,s){for(var l=Jte(r,t),u=[],v=[],h=[],f=[],c=[],d=[],p=[],g=w6(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=x.idx*2,w=x.idx1*2;var A=m[b],T=m[b+1],C=y[w],M=y[w+1];(isNaN(A)||isNaN(T))&&(A=C,T=M),u.push(A,T),v.push(C,M),h.push(e[b],e[b+1]),f.push(a[w],a[w+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var L=x.idx,D=g.dataDimsForPoint,P=i.dataToPoint([t.get(D[0],L),t.get(D[1],L)]);w=L*2,u.push(P[0],P[1]),v.push(y[w],y[w+1]);var I=T6(g,i,t,L);h.push(I[0],I[1]),f.push(a[w],a[w+1]),p.push(t.getRawIndex(L));break;case"-":S=!1}S&&(c.push(x),d.push(d.length))}d.sort(function(G,q){return p[G]-p[q]});for(var R=u.length,E=Fi(R),k=Fi(R),B=Fi(R),F=Fi(R),V=[],_=0;_<d.length;_++){var N=d[_],O=_*2,z=N*2;E[O]=u[z],E[O+1]=u[z+1],k[O]=v[z],k[O+1]=v[z+1],B[O]=h[z],B[O+1]=h[z+1],F[O]=f[z],F[O+1]=f[z+1],V[_]=c[N]}return{current:E,next:k,stackedOnCurrent:B,stackedOnNext:F,status:V}}var Nn=Math.min,zn=Math.max;function Ts(r,t){return isNaN(r)||isNaN(t)}function OT(r,t,e,a,i,n,o,s,l){for(var u,v,h,f,c,d,p=e,g=0;g<a;g++){var m=t[p*2],y=t[p*2+1];if(p>=i||p<0)break;if(Ts(m,y)){if(l){p+=n;continue}break}if(p===e)r[n>0?"moveTo":"lineTo"](m,y),h=m,f=y;else{var _=m-u,x=y-v;if(_*_+x*x<.5){p+=n;continue}if(o>0){for(var S=p+n,b=t[S*2],w=t[S*2+1];b===m&&w===y&&g<a;)g++,S+=n,p+=n,b=t[S*2],w=t[S*2+1],m=t[p*2],y=t[p*2+1],_=m-u,x=y-v;var A=g+1;if(l)for(;Ts(b,w)&&A<a;)A++,S+=n,b=t[S*2],w=t[S*2+1];var T=.5,C=0,M=0,L=void 0,D=void 0;if(A>=a||Ts(b,w))c=m,d=y;else{C=b-u,M=w-v;var P=m-u,I=b-m,R=y-v,E=w-y,k=void 0,B=void 0;if(s==="x"){k=Math.abs(P),B=Math.abs(I);var F=C>0?1:-1;c=m-F*k*o,d=y,L=m+F*B*o,D=y}else if(s==="y"){k=Math.abs(R),B=Math.abs(E);var V=M>0?1:-1;c=m,d=y-V*k*o,L=m,D=y+V*B*o}else k=Math.sqrt(P*P+R*R),B=Math.sqrt(I*I+E*E),T=B/(B+k),c=m-C*o*(1-T),d=y-M*o*(1-T),L=m+C*o*T,D=y+M*o*T,L=Nn(L,zn(b,m)),D=Nn(D,zn(w,y)),L=zn(L,Nn(b,m)),D=zn(D,Nn(w,y)),C=L-m,M=D-y,c=m-C*k/B,d=y-M*k/B,c=Nn(c,zn(u,m)),d=Nn(d,zn(v,y)),c=zn(c,Nn(u,m)),d=zn(d,Nn(v,y)),C=m-c,M=y-d,L=m+C*B/k,D=y+M*B/k}r.bezierCurveTo(h,f,c,d,m,y),h=L,f=D}else r.lineTo(m,y)}u=m,v=y,p+=n}return g}var A6=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),tre=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A6},t.prototype.buildPath=function(e,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&Ts(i[o*2-2],i[o*2-1]);o--);for(;n<o&&Ts(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=OT(e,i,n,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,n=i.data,o=Zi.CMD,s,l,u=a==="x",v=[],h=0;h<n.length;){var f=n[h++],c=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(f){case o.M:s=n[h++],l=n[h++];break;case o.L:if(c=n[h++],d=n[h++],_=u?(e-s)/(c-s):(e-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(c-s)*_+s;return u?[e,x]:[x,e]}s=c,l=d;break;case o.C:c=n[h++],d=n[h++],p=n[h++],g=n[h++],m=n[h++],y=n[h++];var S=u?bd(s,c,p,m,e,v):bd(l,d,g,y,e,v);if(S>0)for(var b=0;b<S;b++){var w=v[b];if(w<=1&&w>=0){var x=u?br(l,d,g,y,w):br(s,c,p,m,w);return u?[e,x]:[x,e]}}s=m,l=y;break}}},t})(ht),rre=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(A6),C6=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new rre},t.prototype.buildPath=function(e,a){var i=a.points,n=a.stackedOnPoints,o=0,s=i.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Ts(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Ts(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=OT(e,i,o,s,s,1,a.smooth,l,a.connectNulls);OT(e,n,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t})(ht);function M6(r,t,e,a,i){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,v=e.get(["lineStyle","width"])||0;o-=v/2,s-=v/2,l+=v,u+=v,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new gt({shape:{x:o,y:s,width:l,height:u}});if(t){var f=r.getBaseAxis(),c=f.isHorizontal(),d=f.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=He(i)?function(g){i(g,h)}:null;$t(h,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return h}function D6(r,t,e){var a=r.getArea(),i=ar(a.r0,1),n=ar(a.r,1),o=new Qr({shape:{cx:ar(r.cx,1),cy:ar(r.cy,1),r0:i,r:n,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=i,$t(o,{shape:{endAngle:a.endAngle,r:n}},e)}return o}function Jh(r,t,e,a,i){if(r){if(r.type==="polar")return D6(r,t,e);if(r.type==="cartesian2d")return M6(r,t,e,a,i)}else return null;return null}function Fs(r,t){return r.type===t}function d2(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function p2(r){for(var t=1/0,e=1/0,a=-1/0,i=-1/0,n=0;n<r.length;){var o=r[n++],s=r[n++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[a,i]]}function g2(r,t){var e=p2(r),a=e[0],i=e[1],n=p2(t),o=n[0],s=n[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function m2(r){return bt(r)?r:r?.5:0}function are(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),i=Fi(a*2),n=0;n<a;n++){var o=T6(e,r,t,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function Bn(r,t,e,a,i){var n=e.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],v=[],h=[],f=[];if(i){for(l=0;l<r.length;l+=2){var c=t||r;!isNaN(c[l])&&!isNaN(c[l+1])&&f.push(r[l],r[l+1])}r=f}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],v[0]=r[l],v[1]=r[l+1],s.push(v[0],v[1]),a){case"end":u[o]=h[o],u[1-o]=v[1-o],s.push(u[0],u[1]);break;case"middle":var d=(v[o]+h[o])/2,p=[];u[o]=p[o]=d,u[1-o]=v[1-o],p[1-o]=h[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=v[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function ire(r,t){var e=[],a=r.length,i,n;function o(v,h,f){var c=v.coord,d=(f-c)/(h.coord-c),p=BA(d,[v.color,h.color]);return{coord:f,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){n?e.push(o(n,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),n=l}return e}function nre(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var i,n,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=a[o];break}}if(n){var l=t.getAxis(i),u=we(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),v=u.length,h=n.outerColors.slice();v&&u[0].coord>u[v-1].coord&&(u.reverse(),h.reverse());var f=ire(u,i==="x"?e.getWidth():e.getHeight()),c=f.length;if(!c&&v)return u[0].coord<0?h[1]?h[1]:u[v-1].color:h[0]?h[0]:u[0].color;var d=10,p=f[0].coord-d,g=f[c-1].coord+d,m=g-p;if(m<.001)return"transparent";$(f,function(_){_.offset=(_.coord-p)/m}),f.push({offset:c?f[c-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:c?f[0].offset:.5,color:h[0]||"transparent"});var y=new lu(0,0,0,0,f,!0);return y[i]=p,y[i+"2"]=g,y}}}function ore(r,t,e){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(i&&sre(n,t))){var o=t.mapDimension(n.dim),s={};return $(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function sre(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(Qh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function lre(r,t){return isNaN(r)||isNaN(t)}function ure(r){for(var t=r.length/2;t>0&&lre(r[t*2-2],r[t*2-1]);t--);return t-1}function y2(r,t){return[r[t*2],r[t*2+1]]}function vre(r,t,e){for(var a=r.length/2,i=e==="x"?0:1,n,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){l=u;break}s=u,n=o}return{range:[s,l],t:(t-n)/(o-n)}}function L6(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<va.length;t++)if(r.get([va[t],"endLabel","show"]))return!0;return!1}function Vm(r,t,e,a){if(Fs(t,"cartesian2d")){var i=a.getModel("endLabel"),n=i.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=L6(a)?function(c,d){r._endLabelOnDuring(c,d,o,s,n,i,t)}:null,u=t.getBaseAxis().isHorizontal(),v=M6(t,e,a,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var h=v.shape,f=Math.max(h.width,h.height);u?(h.y-=f,h.height+=f*2):(h.x-=f,h.width+=f*2)}return l&&l(1,v),v}else return D6(t,e,a)}function hre(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),i=e.inverse,n=a?i?"right":"left":"center",o=a?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var fre=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Ze,a=new jh;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=Ne(this._changePolyState,this)},t.prototype.render=function(e,a,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),v=s.getLayout("points")||[],h=n.type==="polar",f=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!a.ssr&&e.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=w6(n,s,_),S=y&&are(n,s,x),b=e.get("showSymbol"),w=e.get("connectNulls"),A=b&&!h&&ore(e,s,n),T=this._data;T&&T.eachItemGraphicEl(function(G,q){G.__temp&&(o.remove(G),T.setItemGraphicEl(q,null))}),b||c.remove(),o.add(g);var C=h?!1:e.get("step"),M;n&&n.getArea&&e.get("clip",!0)&&(M=n.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var L=nre(s,n,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&f.type===n.type&&C===this._step))b&&c.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(G){return[v[G*2],v[G*2+1]]}}),m&&this._initSymbolLabelAnimation(s,n,M),C&&(S&&(S=Bn(S,v,n,C,w)),v=Bn(v,null,n,C,w)),d=this._newPolyline(v),y?p=this._newPolygon(v,S):p&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,n,Ps(L)),g.setClipPath(Vm(this,n,!0,e));else{y&&!p?p=this._newPolygon(v,S):p&&!y&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,n,Ps(L));var D=g.getClipPath();if(D){var P=Vm(this,n,!1,e);$t(D,{shape:P.shape},e)}else g.setClipPath(Vm(this,n,!0,e));b&&c.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(G){return[v[G*2],v[G*2+1]]}}),(!d2(this._stackedOnPoints,S)||!d2(this._points,v))&&(m?this._doUpdateAnimation(s,S,n,i,C,_,w):(C&&(S&&(S=Bn(S,v,n,C,w)),v=Bn(v,null,n,C,w)),d.setShape({points:v}),p&&p.setShape({points:v,stackedOnPoints:S})))}var I=e.getModel("emphasis"),R=I.get("focus"),E=I.get("blurScope"),k=I.get("disabled");if(d.useStyle(Ue(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Vr(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}Xe(d).seriesIndex=e.seriesIndex,tr(d,R,E,k);var F=m2(e.get("smooth")),V=e.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:V,connectNulls:w}),p){var N=s.getCalculationInfo("stackedOnSeries"),O=0;p.useStyle(Ue(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),N&&(O=m2(N.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:O,smoothMonotone:V,connectNulls:w}),Vr(p,e,"areaStyle"),Xe(p).seriesIndex=e.seriesIndex,tr(p,R,E,k)}var z=this._changePolyState;s.eachItemGraphicEl(function(G){G&&(G.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=n,this._stackedOnPoints=S,this._points=v,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){Xe(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,i,n){var o=e.getData(),s=Ds(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var v=l[s*2],h=l[s*2+1];if(isNaN(v)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(v,h))return;var f=e.get("zlevel")||0,c=e.get("z")||0;u=new Qh(o,s),u.x=v,u.y=h,u.setZ(f,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=f,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else kt.prototype.highlight.call(this,e,a,i,n)},t.prototype.downplay=function(e,a,i,n){var o=e.getData(),s=Ds(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else kt.prototype.downplay.call(this,e,a,i,n)},t.prototype._changePolyState=function(e){var a=this._polygon;Ld(this._polyline,e),a&&Ld(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new tre({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new C6({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,a,i){var n,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):a.type==="polar"&&(n=s.dim==="angle",o=!0);var u=e.hostModel,v=u.get("animationDuration");He(v)&&(v=v(null));var h=u.get("animationDelay")||0,f=He(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var x=i,S=a.pointToCoord(g);n?(m=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(m=x.r0,y=x.r,_=S[0])}else{var b=i;n?(m=b.x,y=b.x+b.width,_=c.x):(m=b.y+b.height,y=b.y,_=c.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var A=He(h)?h(d):v*w+f,T=p.getSymbolPath(),C=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,i){var n=e.getModel("endLabel");if(L6(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var v=ure(l);v>=0&&(Gr(s,Cr(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:v,defaultText:function(h,f,c){return c!=null?b6(o,c):jl(o,h)},enableTextSetter:!0},hre(n,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,i,n,o,s,l){var u=this._endLabel,v=this._polyline;if(u){e<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=i.getLayout("points"),f=i.hostModel,c=f.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=a.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),b=(m?0:-p)*(y?-1:1),w=m?"x":"y",A=vre(h,x,w),T=A.range,C=T[1]-T[0],M=void 0;if(C>=1){if(C>1&&!c){var L=y2(h,T[0]);u.attr({x:L[0]+S,y:L[1]+b}),o&&(M=f.getRawValue(T[0]))}else{var L=v.getPointOn(x,w);L&&u.attr({x:L[0]+S,y:L[1]+b});var D=f.getRawValue(T[0]),P=f.getRawValue(T[1]);o&&(M=Cq(i,d,D,P,A.t))}n.lastFrameIndex=T[0]}else{var I=e===1||n.lastFrameIndex>0?T[0]:0,L=y2(h,I);o&&(M=f.getRawValue(I)),u.attr({x:L[0]+S,y:L[1]+b})}if(o){var R=hu(u);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,i,n,o,s,l){var u=this._polyline,v=this._polygon,h=e.hostModel,f=ere(this._data,e,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin),c=f.current,d=f.stackedOnCurrent,p=f.next,g=f.stackedOnNext;if(o&&(d=Bn(f.stackedOnCurrent,f.current,i,o,l),c=Bn(f.current,null,i,o,l),g=Bn(f.stackedOnNext,f.next,i,o,l),p=Bn(f.next,null,i,o,l)),g2(c,p)>3e3||v&&g2(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),v&&(v.stopAnimation(),v.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=c;var m={shape:{points:p}};f.current!==c&&(m.shape.__points=f.next),u.stopAnimation(),wt(u,m,h),v&&(v.setShape({points:c,stackedOnPoints:d}),v.stopAnimation(),wt(v,{shape:{stackedOnPoints:g}},h),u.shape.points!==v.shape.points&&(v.shape.points=u.shape.points));for(var y=[],_=f.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=e.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){v&&v.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var T=y[A].el,C=y[A].ptIdx*2;T.x=w[C],T.y=w[C+1],T.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(a.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(kt);function ef(r,t){return{seriesType:r,plan:gu(),reset:function(e){var a=e.getData(),i=e.coordinateSystem,n=e.pipelineContext,o=t||n.large;if(i){var s=we(i.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");wn(a,s[0])&&(s[0]=u),wn(a,s[1])&&(s[1]=u);var v=a.getStore(),h=a.getDimensionIndex(s[0]),f=a.getDimensionIndex(s[1]);return l&&{progress:function(c,d){for(var p=c.end-c.start,g=o&&Fi(p*l),m=[],y=[],_=c.start,x=0;_<c.end;_++){var S=void 0;if(l===1){var b=v.get(h,_);S=i.dataToPoint(b,null,y)}else m[0]=v.get(h,_),m[1]=v.get(f,_),S=i.dataToPoint(m,null,y);o?(g[x++]=S[0],g[x++]=S[1]):d.setItemLayout(_,S.slice())}o&&d.setLayout("points",g)}}}}}}var cre={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},dre=function(r){return Math.round(r.length/2)};function I6(r){return{seriesType:r,reset:function(t,e,a){var i=t.getData(),n=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),v=l.getExtent(),h=a.getDevicePixelRatio(),f=Math.abs(v[1]-v[0])*(h||1),c=Math.round(s/f);if(isFinite(c)&&c>1){n==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):n==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var d=void 0;Re(n)?d=cre[n]:He(n)&&(d=n),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,dre))}}}}}function pre(r){r.registerChartView(fre),r.registerSeriesModel(Kte),r.registerLayout(ef("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,I6("line"))}var Ah=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(i)$(n.getAxes(),function(f,c){if(f.type==="category"&&a!=null){var d=f.getTicksCoords(),p=f.getTickModel().get("alignWithLabel"),g=o[c],m=a[c]==="x1"||a[c]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var b=d[S].coord,w=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(w===g){_=b;break}else if(w<g)y=b;else if(y!=null&&w>g){_=(b+y)/2;break}S===1&&(x=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=f.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),v=l.getLayout("size"),h=n.getBaseAxis().isHorizontal()?0:1;s[h]+=u+v/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(zt);zt.registerClass(Ah);var gre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Qi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,i){return i.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=go(Ah.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Ah),mre=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Xd=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new mre},t.prototype.buildPath=function(e,a){var i=a.cx,n=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,v=a.startAngle,h=a.endAngle,f=a.clockwise,c=Math.PI*2,d=f?h-v<c:v-h<c;d||(v=h-(f?c:-c));var p=Math.cos(v),g=Math.sin(v),m=Math.cos(h),y=Math.sin(h);d?(e.moveTo(p*o+i,g*o+n),e.arc(p*u+i,g*u+n,l,-Math.PI+v,v,!f)):e.moveTo(p*s+i,g*s+n),e.arc(i,n,s,v,h,!f),e.arc(m*u+i,y*u+n,l,h-Math.PI*2,h-Math.PI,!f),o!==0&&e.arc(i,n,o,h,v,f)},t})(ht);function yre(r,t){t=t||{};var e=t.isRoundCap;return function(a,i,n){var o=i.position;if(!o||o instanceof Array)return Md(a,i,n);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,v=u.cx,h=u.cy,f=u.r,c=u.r0,d=(f+c)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=e?Math.abs(f-c)/2:0,_=Math.cos,x=Math.sin,S=v+f*_(p),b=h+f*x(p),w="left",A="top";switch(s){case"startArc":S=v+(c-l)*_(m),b=h+(c-l)*x(m),w="center",A="top";break;case"insideStartArc":S=v+(c+l)*_(m),b=h+(c+l)*x(m),w="center",A="bottom";break;case"startAngle":S=v+d*_(p)+ic(p,l+y,!1),b=h+d*x(p)+nc(p,l+y,!1),w="right",A="middle";break;case"insideStartAngle":S=v+d*_(p)+ic(p,-l+y,!1),b=h+d*x(p)+nc(p,-l+y,!1),w="left",A="middle";break;case"middle":S=v+d*_(m),b=h+d*x(m),w="center",A="middle";break;case"endArc":S=v+(f+l)*_(m),b=h+(f+l)*x(m),w="center",A="bottom";break;case"insideEndArc":S=v+(f-l)*_(m),b=h+(f-l)*x(m),w="center",A="top";break;case"endAngle":S=v+d*_(g)+ic(g,l+y,!0),b=h+d*x(g)+nc(g,l+y,!0),w="left",A="middle";break;case"insideEndAngle":S=v+d*_(g)+ic(g,-l+y,!0),b=h+d*x(g)+nc(g,-l+y,!0),w="right",A="middle";break;default:return Md(a,i,n)}return a=a||{},a.x=S,a.y=b,a.align=w,a.verticalAlign=A,a}}function _re(r,t,e,a){if(bt(a)){r.setTextConfig({rotation:a});return}else if(Se(t)){r.setTextConfig({rotation:0});return}var i=r.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(n+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var v=Math.PI*1.5-l;u==="middle"&&v>Math.PI/2&&v<Math.PI*1.5&&(v-=Math.PI),r.setTextConfig({rotation:v})}function ic(r,t,e){return t*Math.sin(r)*(e?-1:1)}function nc(r,t,e){return t*Math.cos(r)*(e?1:-1)}function ys(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;Se(a)||(a=[a,a,a,a]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:we(a,function(n){return _i(n,i)})}}var Gm=Math.max,Fm=Math.min;function xre(r,t){var e=r.getArea&&r.getArea();if(Fs(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var i=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var Sre=(function(r){he(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,i,n){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,i):this._renderNormal(e,a,i,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){po(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,i,n){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,v=u.getBaseAxis(),h;u.type==="cartesian2d"?h=v.isHorizontal():u.type==="polar"&&(h=v.dim==="angle");var f=e.isAnimationEnabled()?e:null,c=bre(e,u);c&&this._enableRealtimeSort(c,s,i);var d=e.get("clip",!0)||c,p=xre(u,s);o.removeClipPath();var g=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function A(M){var L=oc[u.type](s,M),D=Lre(u,h,L);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),x[M]=D,D}s.diff(l).add(function(M){var L=s.getItemModel(M),D=oc[u.type](s,M,L);if(m&&A(M),!(!s.hasValue(M)||!w2[u.type](D))){var P=!1;d&&(P=_2[u.type](p,D));var I=x2[u.type](e,s,M,D,h,f,v.model,!1,g);c&&(I.forceLabelAnimation=!0),T2(I,s,M,L,D,e,h,u.type==="polar"),b?I.attr({shape:D}):c?S2(c,f,I,D,M,h,!1,!1):$t(I,{shape:D},e,M),s.setItemGraphicEl(M,I),o.add(I),I.ignore=P}}).update(function(M,L){var D=s.getItemModel(M),P=oc[u.type](s,M,D);if(m){var I=void 0;S.length===0?I=A(L):(I=S[L],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),x[M]=I);var R=oc[u.type](s,M),E=R6(h,R,u);wt(I,{shape:E},f,M)}var k=l.getItemGraphicEl(L);if(!s.hasValue(M)||!w2[u.type](P)){o.remove(k);return}var B=!1;if(d&&(B=_2[u.type](p,P),B&&o.remove(k)),k?xi(k):k=x2[u.type](e,s,M,P,h,f,v.model,!!k,g),c&&(k.forceLabelAnimation=!0),w){var F=k.getTextContent();if(F){var V=hu(F);V.prevValue!=null&&(V.prevValue=V.value)}}else T2(k,s,M,D,P,e,h,u.type==="polar");b?k.attr({shape:P}):c?S2(c,f,k,P,M,h,!0,w):wt(k,{shape:P},e,M,null),s.setItemGraphicEl(M,k),k.ignore=B,o.add(k)}).remove(function(M){var L=l.getItemGraphicEl(M);L&&mh(L,e,M)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Ze);T.removeAll();for(var C=0;C<x.length;++C)T.add(x[C]);o.add(T),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,i){this._clear(),C2(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),C2(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Jh(e.coordinateSystem,!1,e),i=this.group;a?i.setClipPath(a):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,i){var n=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),v=u&&u.shape;return v&&Math.abs(o.isHorizontal()?v.height:v.width)||0};this._onRendered=function(){n._updateSortWithinSameData(a,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,i){var n=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=i(s);l=l==null?NaN:l,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:we(n,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,i){for(var n=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var v=e.rawIndexOf(o,n.getRawOrdinalNumber(l)),h=v<0?Number.MIN_VALUE:a(e.indexOfRawIndex(v));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var i=a.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,i,n){if(this._isOrderChangedWithinSameData(e,a,i)){var o=this._dataSort(e,i,a);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,i){var n=a.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){mh(n,e,Xe(n).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(kt),_2={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,n=r.y+r.height,o=Gm(t.x,r.x),s=Fm(t.x+t.width,i),l=Gm(t.y,r.y),u=Fm(t.y+t.height,n),v=s<o,h=u<l;return t.x=v&&o>i?s:o,t.y=h&&l>n?u:l,t.width=v?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),v||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var i=Fm(t.r,r.r),n=Gm(t.r0,r.r0);t.r=i,t.r0=n;var o=i-n<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},x2={cartesian2d:function(r,t,e,a,i,n,o,s,l){var u=new gt({shape:_e({},a),z2:1});if(u.__dataIndex=e,u.name="item",n){var v=u.shape,h=i?"height":"width";v[h]=0}return u},polar:function(r,t,e,a,i,n,o,s,l){var u=!i&&l?Xd:Qr,v=new u({shape:a,z2:1});v.name="item";var h=P6(i);if(v.calculateTextPosition=yre(h,{isRoundCap:u===Xd}),n){var f=v.shape,c=i?"r":"endAngle",d={};f[c]=i?a.r0:a.startAngle,d[c]=a[c],(s?wt:$t)(v,{shape:d},n)}return v}};function bre(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function S2(r,t,e,a,i,n,o,s){var l,u;n?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?wt:$t)(e,{shape:l},t,i,null);var v=t?r.baseAxis.model:null;(o?wt:$t)(e,{shape:u},v,i)}function b2(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var wre=["x","y","width","height"],Tre=["cx","cy","r","startAngle","endAngle"],w2={cartesian2d:function(r){return!b2(r,wre)},polar:function(r){return!b2(r,Tre)}},oc={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),i=e?Cre(e,a):0,n=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function Are(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function P6(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function T2(r,t,e,a,i,n,o,s){var l=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var v=r.shape,h=ys(a.getModel("itemStyle"),v,!0);_e(v,h),r.setShape(v)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var f=a.getShallow("cursor");f&&r.attr("cursor",f);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Cr(a);Gr(r,d,{labelFetcher:n,labelDataIndex:e,defaultText:jl(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,_re(r,g==="outside"?c:g,P6(o),a.get(["label","rotate"]))}vW(p,d,n.getRawValue(e),function(y){return b6(t,y)});var m=a.getModel(["emphasis"]);tr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Vr(r,a),Are(i)&&(r.style.fill="none",r.style.stroke="none",$(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Cre(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,i,n)}var Mre=(function(){function r(){}return r})(),A2=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new Mre},t.prototype.buildPath=function(e,a){for(var i=a.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,v=0;v<i.length;v+=3)l[n]=u,l[o]=i[v+2],s[n]=i[v+n],s[o]=i[v+o],e.rect(s[0],s[1],l[0],l[1])},t})(ht);function C2(r,t,e,a){var i=r.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var v=new A2({shape:{points:u},incremental:!!a,silent:!0,z2:0});v.baseDimIdx=n,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),t.add(v),e&&e.push(v)}var h=new A2({shape:{points:i.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,Xe(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",M2),h.on("mousemove",M2)),e&&e.push(h)}var M2=Up(function(r){var t=this,e=Dre(t,r.offsetX,r.offsetY);Xe(t).dataIndex=e>=0?e:null},30,!1);function Dre(r,t,e){for(var a=r.baseDimIdx,i=1-a,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,v=0,h=n.length/3;v<h;v++){var f=v*3;if(l[a]=u,l[i]=n[f+2],s[a]=n[f+a],s[i]=n[f+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[v]}return-1}function R6(r,t,e){if(Fs(e,"cartesian2d")){var a=t,i=e.getArea();return{x:r?a.x:i.x,y:r?i.y:a.y,width:r?a.width:i.width,height:r?i.height:a.height}}else{var i=e.getArea(),n=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function Lre(r,t,e){var a=r.type==="polar"?Qr:gt;return new a({shape:R6(t,e,r),silent:!0,z2:0})}function Ire(r){r.registerChartView(Sre),r.registerSeriesModel(gre),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(QU,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jU("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,I6("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var D2=Math.PI*2,sc=Math.PI/180;function E6(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k6(r,t){var e=E6(r,t),a=r.get("center"),i=r.get("radius");Se(i)||(i=[0,i]);var n=Ie(e.width,t.getWidth()),o=Ie(e.height,t.getHeight()),s=Math.min(n,o),l=Ie(i[0],s/2),u=Ie(i[1],s/2),v,h,f=r.coordinateSystem;if(f){var c=f.dataToPoint(a);v=c[0]||0,h=c[1]||0}else Se(a)||(a=[a,a]),v=Ie(a[0],n)+e.x,h=Ie(a[1],o)+e.y;return{cx:v,cy:h,r0:l,r:u}}function Pre(r,t,e){t.eachSeriesByType(r,function(a){var i=a.getData(),n=i.mapDimension("value"),o=E6(a,e),s=k6(a,e),l=s.cx,u=s.cy,v=s.r,h=s.r0,f=-a.get("startAngle")*sc,c=a.get("endAngle"),d=a.get("padAngle")*sc;c=c==="auto"?f-D2:-c*sc;var p=a.get("minAngle")*sc,g=p+d,m=0;i.each(n,function(E){!isNaN(E)&&m++});var y=i.getSum(n),_=Math.PI/(y||m)*2,x=a.get("clockwise"),S=a.get("roseType"),b=a.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var A=x?1:-1,T=[f,c],C=A*d/2;XA(T,!x),f=T[0],c=T[1];var M=O6(a);M.startAngle=f,M.endAngle=c,M.clockwise=x;var L=Math.abs(c-f),D=L,P=0,I=f;if(i.setLayout({viewRect:o,r:v}),i.each(n,function(E,k){var B;if(isNaN(E)){i.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:h,r:S?NaN:v});return}S!=="area"?B=y===0&&b?_:E*_:B=L/m,B<g?(B=g,D-=g):P+=E;var F=I+A*B,V=0,N=0;d>B?(V=I+A*B/2,N=V):(V=I+C,N=F-C),i.setItemLayout(k,{angle:B,startAngle:V,endAngle:N,clockwise:x,cx:l,cy:u,r0:h,r:S?Pt(E,w,[h,v]):v}),I=F}),D<D2&&m)if(D<=.001){var R=L/m;i.each(n,function(E,k){if(!isNaN(E)){var B=i.getItemLayout(k);B.angle=R;var F=0,V=0;R<d?(F=f+A*(k+1/2)*R,V=F):(F=f+A*k*R+C,V=f+A*(k+1)*R-C),B.startAngle=F,B.endAngle=V}})}else _=D/P,I=f,i.each(n,function(E,k){if(!isNaN(E)){var B=i.getItemLayout(k),F=B.angle===g?g:E*_,V=0,N=0;F<d?(V=I+A*F/2,N=V):(V=I+C,N=I+A*F-C),B.startAngle=V,B.endAngle=N,I+=A*F}})})}var O6=yt();function tf(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var i=t.getData();i.filterSelf(function(n){for(var o=i.getName(n),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var Rre=Math.PI/180;function L2(r,t,e,a,i,n,o,s,l,u){if(r.length<2)return;function v(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],x=Math.abs(_.label.y-e),S=a+_.len,b=S*S,w=Math.sqrt(Math.abs((1-x*x/m)*b)),A=t+(w+_.len2)*i,T=A-_.label.x,C=_.targetTextWidth-T*i;N6(_,C,!0),_.label.x=A}}function h(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],x=_.label.y>e?m:g,S=Math.abs(_.label.y-e);if(S>=x.maxY){var b=_.label.x-t-_.len2*i,w=a+_.len,A=Math.abs(b)<w?Math.sqrt(S*S/(1-b*b/w/w)):w;x.rB=A,x.maxY=S}x.list.push(_)}v(g),v(m)}for(var f=r.length,c=0;c<f;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var d=r[c].label.x-u;r[c].linePoints[1][0]+=d,r[c].label.x=u}_6(r,l,l+o)&&h(r)}function Ere(r,t,e,a,i,n,o,s){for(var l=[],u=[],v=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<r.length;f++){var c=r[f].label;Hm(r[f])||(c.x<t?(v=Math.min(v,c.x),l.push(r[f])):(h=Math.max(h,c.x),u.push(r[f])))}for(var f=0;f<r.length;f++){var d=r[f];if(!Hm(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?c.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<t?g=v-o-d.bleedMargin:g=o+i-h-d.bleedMargin:c.x<t?g=c.x-o-d.bleedMargin:g=o+i-c.x-d.bleedMargin,d.targetTextWidth=g,N6(d,g)}}L2(u,t,e,a,1,i,n,o,s,h),L2(l,t,e,a,-1,i,n,o,s,v);for(var f=0;f<r.length;f++){var d=r[f];if(!Hm(d)&&d.linePoints){var c=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,x=c.style.backgroundColor?0:_,S=d.rect.width+x,b=p[1][0]-p[2][0];m?c.x<t?p[2][0]=o+d.edgeDistance+S+d.labelDistance:p[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(c.x<t?p[2][0]=c.x+d.labelDistance:p[2][0]=c.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=c.y}}}function N6(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,i=a.style,n=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,v=n.width+(o?0:l);if(t<v||e){var h=n.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var f=a.getBoundingRect();a.setStyle("width",Math.ceil(f.width)),a.setStyle("backgroundColor",o)}else{var c=t-l,d=t<v?c:e?c>r.unconstrainedWidth?null:c:null;a.setStyle("width",d)}var p=a.getBoundingRect();n.width=p.width;var g=(a.style.margin||0)+2.1;n.height=p.height+g,n.y-=(n.height-h)/2}}}function Hm(r){return r.position==="center"}function kre(r){var t=r.getData(),e=[],a,i,n=!1,o=(r.get("minShowLabelAngle")||0)*Rre,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,v=s.x,h=s.y,f=s.height;function c(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),A=w.shape,T=w.getTextContent(),C=w.getTextGuideLine(),M=t.getItemModel(b),L=M.getModel("label"),D=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),I=L.get("alignTo"),R=Ie(L.get("edgeDistance"),u),E=L.get("bleedMargin"),k=M.getModel("labelLine"),B=k.get("length");B=Ie(B,u);var F=k.get("length2");if(F=Ie(F,u),Math.abs(A.endAngle-A.startAngle)<o){$(T.states,c),T.ignore=!0,C&&($(C.states,c),C.ignore=!0);return}if(d(T)){var V=(A.startAngle+A.endAngle)/2,N=Math.cos(V),O=Math.sin(V),z,G,q,H;a=A.cx,i=A.cy;var U=D==="inside"||D==="inner";if(D==="center")z=A.cx,G=A.cy,H="center";else{var W=(U?(A.r+A.r0)/2*N:A.r*N)+a,Y=(U?(A.r+A.r0)/2*O:A.r*O)+i;if(z=W+N*3,G=Y+O*3,!U){var X=W+N*(B+l-A.r),K=Y+O*(B+l-A.r),Q=X+(N<0?-1:1)*F,j=K;I==="edge"?z=N<0?v+R:v+u-R:z=Q+(N<0?-P:P),G=j,q=[[W,Y],[X,K],[Q,j]]}H=U?"center":I==="edge"?N>0?"right":"left":N>0?"left":"right"}var te=Math.PI,Z=0,ee=L.get("rotate");if(bt(ee))Z=ee*(te/180);else if(D==="center")Z=0;else if(ee==="radial"||ee===!0){var le=N<0?-V+te:-V;Z=le}else if(ee==="tangential"&&D!=="outside"&&D!=="outer"){var oe=Math.atan2(N,O);oe<0&&(oe=te*2+oe);var fe=O>0;fe&&(oe=te+oe),Z=oe-te}if(n=!!Z,T.x=z,T.y=G,T.rotation=Z,T.setStyle({verticalAlign:"middle"}),U){T.setStyle({align:H});var ye=T.states.select;ye&&(ye.x+=T.x,ye.y+=T.y)}else{var se=T.getBoundingRect().clone();se.applyTransform(T.getComputedTransform());var ve=(T.style.margin||0)+2.1;se.y-=ve/2,se.height+=ve,e.push({label:T,labelLine:C,position:D,len:B,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new rt(N,O),linePoints:q,textAlign:H,labelDistance:P,labelAlignTo:I,edgeDistance:R,bleedMargin:E,rect:se,unconstrainedWidth:se.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:U})}}),!n&&r.get("avoidLabelOverlap")&&Ere(e,a,i,l,u,f,v,h);for(var p=0;p<e.length;p++){var g=e[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&($(m.states,c),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(y){var S=g.linePoints;_||!S?($(y.states,c),y.ignore=!0):(g6(S,g.minTurnAngle),qte(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new rt(S[0][0],S[0][1])})}}}var Ore=(function(r){he(t,r);function t(e,a,i){var n=r.call(this)||this;n.z2=2;var o=new pt;return n.setTextContent(o),n.updateData(e,a,i,!0),n}return t.prototype.updateData=function(e,a,i,n){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),v=e.getItemLayout(a),h=_e(ys(l.getModel("itemStyle"),v,!0),v);if(isNaN(h.startAngle)){o.setShape(h);return}if(n){o.setShape(h);var f=s.getShallow("animationType");s.ecModel.ssr?($t(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):f==="scale"?(o.shape.r=v.r0,$t(o,{shape:{r:v.r}},s,a)):i!=null?(o.setShape({startAngle:i,endAngle:i}),$t(o,{shape:{startAngle:v.startAngle,endAngle:v.endAngle}},s,a)):(o.shape.endAngle=v.startAngle,wt(o,{shape:{endAngle:v.endAngle}},s,a))}else xi(o),wt(o,{shape:h},s,a);o.useStyle(e.getItemVisual(a,"style")),Vr(o,l);var c=(v.startAngle+v.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(c)*d,g=Math.sin(c)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=_e({r:v.r+(u.get("scale")&&u.get("scaleSize")||0)},ys(u.getModel("itemStyle"),v)),_e(o.ensureState("select"),{x:p,y:g,shape:ys(l.getModel(["select","itemStyle"]),v)}),_e(o.ensureState("blur"),{shape:ys(l.getModel(["blur","itemStyle"]),v)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&_e(y.ensureState("select"),{x:p,y:g}),_e(_.ensureState("select"),{x:p,y:g}),tr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,i){var n=this,o=a.getItemModel(i),s=o.getModel("labelLine"),l=a.getItemVisual(i,"style"),u=l&&l.fill,v=l&&l.opacity;Gr(n,Cr(o),{labelFetcher:a.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:v,defaultText:e.getFormattedLabel(i,"normal")||a.getName(i)});var h=n.getTextContent();n.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var f=e.get(["label","position"]);if(f!=="outside"&&f!=="outer")n.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new ea,this.setTextGuideLine(c)),WC(this,UC(o),{stroke:u,opacity:ci(s.get(["lineStyle","opacity"]),v,1)})}},t})(Qr),Nre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,i,n){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var v=o.getItemLayout(0),h=1;isNaN(v&&v.startAngle)&&h<o.count();++h)v=o.getItemLayout(h);v&&(u=v.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var f=O6(e),c=new Qr({shape:_e(k6(e,i),f)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(d){var p=new Ore(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);mh(p,e,d)}).execute(),kre(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=e[0]-n.cx,s=e[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},t.type="pie",t})(kt);function bu(r,t,e){t=Se(t)&&{coordDimensions:t}||_e({encodeDefine:r.getEncode()},t);var a=r.getSource(),i=_u(a,t).dimensions,n=new Xr(i,r);return n.initData(a,e),n}var rf=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),zre=yt(),Bre=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new rf(Ne(this.getData,this),Ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return bu(this,{coordDimensions:["value"],encodeDefaulter:et(yC,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),i=zre(a),n=i.seats;if(!n){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),n=i.seats=mq(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=n[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ms(e,"labelLine",["show"]);var a=e.labelLine,i=e.emphasis.labelLine;a.show=a.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(zt);function Vre(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(i){var n=a.mapDimension("value"),o=a.get(n,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function Gre(r){r.registerChartView(Nre),r.registerSeriesModel(Bre),cU("pie",r.registerAction),r.registerLayout(et(Pre,"pie")),r.registerProcessor(tf("pie")),r.registerProcessor(Vre("pie"))}var Fre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,a,i){return i.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t})(zt),z6=4,Hre=(function(){function r(){}return r})(),qre=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new Hre},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var i=a.points,n=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&n[0]<z6,v=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var f=i[h++],c=i[h++];isNaN(f)||isNaN(c)||v&&!v.contain(f,c)||(s.x=f-n[0]/2,s.y=c-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,i=e.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var i=this.shape,n=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var v=u*2,h=n[v]-s/2,f=n[v+1]-l/2;if(e>=h&&a>=f&&e<=h+s&&a<=f+l)return u}return-1},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();if(e=i[0],a=i[1],n.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,i=a.points,n=a.size,o=n[0],s=n[1],l=1/0,u=1/0,v=-1/0,h=-1/0,f=0;f<i.length;){var c=i[f++],d=i[f++];l=Math.min(c,l),v=Math.max(c,v),u=Math.min(d,u),h=Math.max(d,h)}e=this._rect=new at(l-o/2,u-s/2,v-l+o,h-u+s)}return e},t})(ht),Wre=(function(){function r(){this.group=new Ze}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,n=a.startIndex*4*2;e=new Float32Array(e.buffer,n,i)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var i=this._newAdded[0],n=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:n}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new qre({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var i=e.hostModel;a=a||{};var n=e.getVisual("symbolSize");t.setShape("size",n instanceof Array?n:[n,n]),t.softClipShape=a.clipShape||null,t.symbolProxy=lr(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<z6;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Xe(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(v){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Ure=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,i){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,i){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ef("").reset(e,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var i=this._symbolDraw,n=a.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Wre:new jh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(kt),$re=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ut),NT=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cr).models[0]},t.type="cartesian2dAxis",t})(ut);nr(NT,Su);var B6={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,showMinLine:!0,showMaxLine:!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)"]}}},Yre=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},B6),$C=tt({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}}},B6),Zre=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$C),Xre=Ue({logBase:10},$C);const V6={category:Yre,value:$C,time:Zre,log:Xre};var Kre={value:1,category:1,time:1,log:1};function Jl(r,t,e,a){$(Kre,function(i,n){var o=tt(tt({},V6[n],!0),a,!0),s=(function(l){he(u,l);function u(){var v=l!==null&&l.apply(this,arguments)||this;return v.type=t+"Axis."+n,v}return u.prototype.mergeDefaultAndTheme=function(v,h){var f=_h(this),c=f?cu(v):{},d=h.getTheme();tt(v,d.get(n+"Axis")),tt(v,this.getDefaultOption()),v.type=I2(v),f&&uo(v,c,f)},u.prototype.optionUpdated=function(){var v=this.option;v.type==="category"&&(this.__ordinalMeta=PT.createByAxisModel(this))},u.prototype.getCategories=function(v){var h=this.option;if(h.type==="category")return v?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+n,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",I2)}function I2(r){return r.type||(r.data?"category":"value")}var Qre=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return we(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),zT=["x","y"];function P2(r){return r.type==="interval"||r.type==="time"}var jre=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=zT,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!P2(e)||!P2(a))){var i=e.getExtent(),n=a.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var v=(s[0]-o[0])/l,h=(s[1]-o[1])/u,f=o[0]-i[0]*v,c=o[1]-n[0]*h,d=this._transform=[v,0,0,h,f,c];this._invTransform=Ns([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var i=this.dataToPoint(e),n=this.dataToPoint(a),o=this.getArea(),s=new at(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,i){i=i||[];var n=e[0],o=e[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Or(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},t.prototype.clampData=function(e,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(e[0]),u=n.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var i=[];if(this._invTransform)return Or(i,e,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(e[0]),a),i[1]=o.coordToData(o.toLocalCoord(e[1]),a),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(a[0],a[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(a[0],a[1])-n+e,l=Math.max(i[0],i[1])-o+e;return new at(n,o,s,l)},t})(Qre),Jre=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Ja);function BT(r,t,e){e=e||{};var a=r.coordinateSystem,i=t.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,v=a.getRect(),h=[v.x,v.x+v.width,v.y,v.y+v.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[f.onZero]=Math.max(Math.min(p,d[1]),d[0])}n.position=[u==="y"?d[f[l]]:h[0],u==="x"?d[f[l]]:h[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?d[f[s]]-d[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),wr(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var m=t.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-m:m,n.z2=1,n}function R2(r){return r.get("coordinateSystem")==="cartesian2d"}function E2(r){var t={xAxisModel:null,yAxisModel:null};return $(t,function(e,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,cr).models[0];t[a]=n}),t}var qm=Math.log;function G6(r,t,e){var a=Tn.prototype,i=a.getTicks.call(e),n=a.getTicks.call(e,!0),o=i.length-1,s=a.getInterval.call(e),l=a6(r,t),u=l.extent,v=l.fixMin,h=l.fixMax;if(r.type==="log"){var f=qm(r.base);u=[qm(u[0])/f,qm(u[1])/f]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:v,fixMax:h});var c=a.getExtent.call(r);v&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(v&&h)d=(g-p)/o;else if(v)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Rm(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Rm(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Rm(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=ar(g-y),p<0&&u[0]>=0?(p=0,g=ar(y)):g>0&&u[1]<=0&&(g=0,p=-ar(y))}var _=(i[0].value-n[0].value)/s,x=(i[o].value-n[o].value)/s;a.setExtent.call(r,p+d*_,g+d*x),a.setInterval.call(r,d),(_||x)&&a.setNiceExtent.call(r,p+d,g-d)}var eae=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zT,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=ft(o),u=l.length;if(u){for(var v=[],h=u-1;h>=0;h--){var f=+l[h],c=o[f],d=c.model,p=c.scale;RT(p)&&d.get("alignTicks")&&d.get("interval")==null?v.push(c):(Rs(p,d),RT(p)&&(s=c))}v.length&&(s||(s=v.pop(),Rs(s.scale,s.model)),$(v,function(g){G6(g.scale,g.model,s.scale)}))}}i(a.x),i(a.y);var n={};$(a.x,function(o){k2(a,"y",o,n)}),$(a.y,function(o){k2(a,"x",o,n)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var i=t.getBoxLayoutParams(),n=!a&&t.get("containLabel"),o=dr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),n&&($(s,function(u){if(!u.model.get(["axisLabel","inside"])){var v=nte(u);if(v){var h=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[h]-=v[h]+f,u.position==="top"?o.y+=v.height+f:u.position==="left"&&(o.x+=v.width+f)}}}),l()),$(this._coordsList,function(u){u.calcAffineTransform()});function l(){$(s,function(u){var v=u.isHorizontal(),h=v?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(h[f],h[1-f]),tae(u,v?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}$e(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===t||n[i].getAxis("y").index===e)return n[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(a):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(a):i.axis?i.axis.coordToData(i.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",cr).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",cr).models[0],n=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,nt(o,s)<0&&(s=null);else if(a&&i)s=this.getCartesian(a.componentIndex,i.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var i=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,$(s.x,function(v,h){$(s.y,function(f,c){var d="x"+h+"y"+c,p=new jre(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(v),p.addAxis(f)})});function u(v){return function(h,f){if(Wm(h,t)){var c=h.get("position");v==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new Jre(v,Kh(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=n,d.index=f,n._axesList.push(d),s[v][f]=d,l[v]++}}}},r.prototype._updateScale=function(t,e){$(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var n=i.model.get("categorySortInfo");i.scale.setSortInfo(n)}}),t.eachSeries(function(i){if(R2(i)){var n=E2(i),o=n.xAxisModel,s=n.yAxisModel;if(!Wm(o,e)||!Wm(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),v=l.getAxis("x"),h=l.getAxis("y");a(u,v),a(u,h)}},this);function a(i,n){$($d(i,n.dim),function(o){n.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return $(this.getCartesians(),function(i){var n=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(n);nt(e,n)<0&&e.push(n),nt(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(i,n){var o=new r(i,t,e);o.name="grid_"+n,o.resize(i,e,!0),i.coordinateSystem=o,a.push(o)}),t.eachSeries(function(i){if(R2(i)){var n=E2(i),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=zT,r})();function Wm(r,t){return r.getCoordSysModel()===t}function k2(r,t,e,a){e.getAxesOnZeroOf=function(){return n?[n]:[]};var i=r[t],n,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)O2(i[l])&&(n=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&O2(i[u])&&!a[v(i[u])]){n=i[u];break}n&&(a[v(n)]=!0);function v(h){return h.dim+"_"+h.index}}function O2(r){return r&&r.type!=="category"&&r.type!=="time"&&ite(r)}function tae(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return a-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return a-i+t}}var Kn=Math.PI,la=(function(){function r(t,e){this.group=new Ze,this.opt=e,this.axisModel=t,Ue(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Ze({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!N2[t]},r.prototype.add=function(t){N2[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var i=HA(e-t),n,o;return Yl(i)?(o=a>0?"top":"bottom",n="center"):Yl(i-Kn)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i<Kn?n=a>0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),N2={axisLine:function(r,t,e,a){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var n=t.axis.getExtent(),o=a.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(Or(s,s,o),Or(l,l,o));var v=_e({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new xr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:v,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Xl(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var f=t.get(["axisLine","symbol"]);if(f!=null){var c=t.get(["axisLine","symbolSize"]);Re(f)&&(f=[f,f]),(Re(c)||bt(c))&&(c=[c,c]);var d=Gs(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];$([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(f[y]!=="none"&&f[y]!=null){var _=lr(f[y],-p/2,-g/2,p,g,v.stroke,!0),x=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+x*Math.cos(r.rotation),y:S[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,a){var i=iae(e,a,t,r),n=oae(e,a,t,r);if(aae(t,n,i),nae(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=m6(we(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));x6(o)}},axisName:function(r,t,e,a){var i=wr(r.axisName,t.get("name"));if(i){var n=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),v=u[0]>u[1]?-1:1,h=[n==="start"?u[0]-v*l:n==="end"?u[1]+v*l:(u[0]+u[1])/2,B2(n)?r.labelOffset+o*l:0],f,c=t.get("nameRotate");c!=null&&(c=c*Kn/180);var d;B2(n)?f=la.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(f=rae(r.rotation,n,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(f.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=wr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new pt({x:h[0],y:h[1],rotation:f.rotation,silent:la.isLabelSilent(t),style:Ht(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(zs({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var x=la.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Xe(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function rae(r,t,e,a){var i=HA(e-r),n,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Yl(i-Kn/2)?(o=l?"bottom":"top",n="center"):Yl(i-Kn*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<Kn*1.5&&i>Kn/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function aae(r,t,e){if(!i6(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var n=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],v=e[1],h=e[e.length-1],f=e[e.length-2];a===!1?(Ra(n),Ra(u)):z2(n,o)&&(a?(Ra(o),Ra(v)):(Ra(n),Ra(u))),i===!1?(Ra(s),Ra(h)):z2(l,s)&&(i?(Ra(l),Ra(f)):(Ra(s),Ra(h)))}}function Ra(r){r&&(r.ignore=!0)}function z2(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var i=Vh([]);return co(i,i,-r.rotation),e.applyTransform(Wi([],i,r.getLocalTransform())),a.applyTransform(Wi([],i,t.getLocalTransform())),e.intersect(a)}}function B2(r){return r==="middle"||r==="center"}function F6(r,t,e,a,i){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Or(o,o,t),Or(s,s,t));var v=new xr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Xl(v.shape,v.style.lineWidth),v.anid=i+"_"+r[l].tickValue,n.push(v)}return n}function iae(r,t,e,a){var i=e.axis,n=e.getModel("axisTick"),o=n.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=n.getModel("lineStyle"),l=a.tickDirection*n.get("length"),u=i.getTicksCoords(),v=F6(u,t.transform,l,Ue(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<v.length;h++)r.add(v[h]);return v}}function nae(r,t,e,a){var i=e.axis,n=e.getModel("minorTick");if(!(!n.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=n.getModel("lineStyle"),l=a*n.get("length"),u=Ue(s.getLineStyle(),Ue(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),v=0;v<o.length;v++)for(var h=F6(o[v],t.transform,l,u,"minorticks_"+v),f=0;f<h.length;f++)r.add(h[f])}}function oae(r,t,e,a){var i=e.axis,n=wr(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!n||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(wr(a.labelRotate,o.get("rotate"))||0)*Kn/180,v=la.innerTextLayout(a.rotation,u,a.labelDirection),h=e.getCategories&&e.getCategories(!0),f=[],c=la.isLabelSilent(e),d=e.get("triggerEvent");return $(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,x=o;if(h&&h[m]){var S=h[m];$e(S)&&S.textStyle&&(x=new Mt(S.textStyle,o,e.ecModel))}var b=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(m),A=x.getShallow("align",!0)||v.textAlign,T=Je(x.getShallow("alignMinLabel",!0),A),C=Je(x.getShallow("alignMaxLabel",!0),A),M=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||v.textVerticalAlign,L=Je(x.getShallow("verticalAlignMinLabel",!0),M),D=Je(x.getShallow("verticalAlignMaxLabel",!0),M),P=new pt({x:w,y:a.labelOffset+a.labelDirection*s,rotation:v.rotation,silent:c,z2:10+(p.level||0),style:Ht(x,{text:y,align:g===0?T:g===l.length-1?C:A,verticalAlign:g===0?L:g===l.length-1?D:M,fill:He(b)?b(i.type==="category"?_:i.type==="value"?m+"":m,g):b})});if(P.anid="label_"+m,zs({el:P,componentModel:e,itemName:y,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:g}}),d){var I=la.makeAxisEventDataBase(e);I.targetType="axisLabel",I.value=_,I.tickIndex=g,i.type==="category"&&(I.dataIndex=m),Xe(P).eventData=I}t.add(P),P.updateTransform(),f.push(P),r.add(P),P.decomposeTransform()}),f}}function sae(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lae(e,r,t),e.seriesInvolved&&vae(e,r),e}function lae(r,t,e){var a=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];$(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ch(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var v=s.model,h=v.getModel("tooltip",a);if($(s.getAxes(),et(p,!1,null)),s.getTooltipAxes&&a&&h.get("show")){var f=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(f||c)&&$(d.baseAxes,et(p,c?"cross":!0,f)),c&&$(d.otherAxes,et(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!VT(_))){m==null&&(m=_.get("triggerTooltip")),_=g?uae(y,h,i,t,g,m):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),w=Ch(y.model),A=m||S||y.type==="category",T=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:VT(_),seriesModels:[],linkGroup:null};u[w]=T,r.seriesInvolved=r.seriesInvolved||A;var C=hae(n,y);if(C!=null){var M=o[C]||(o[C]={axesInfo:{}});M.axesInfo[w]=T,M.mapper=n[C].mapper,T.linkGroup=M}}}})}function uae(r,t,e,a,i,n){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};$(s,function(f){l[f]=Ye(o.get(f))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var v=o.get(["label","show"]);if(u.show=v!=null?v:!0,!n){var h=l.lineStyle=o.get("crossStyle");h&&Ue(u,h.textStyle)}}return r.model.getModel("axisPointer",new Mt(l,e,a))}function vae(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),n=e.get(["tooltip","show"],!0);!a||i==="none"||i===!1||i==="item"||n===!1||e.get(["axisPointer","show"],!0)===!1||$(r.coordSysAxesInfo[Ch(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function hae(r,t){for(var e=t.model,a=t.dim,i=0;i<r.length;i++){var n=r[i]||{};if(Um(n[a+"AxisId"],e.id)||Um(n[a+"AxisIndex"],e.componentIndex)||Um(n[a+"AxisName"],e.name))return i}}function Um(r,t){return r==="all"||Se(r)&&nt(r,t)>=0||r===t}function fae(r){var t=YC(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,i=e.option,n=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=VT(e);n==null&&(i.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function YC(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ch(r)]}function cae(r){var t=YC(r);return t&&t.axisPointerModel}function VT(r){return!!r.get(["handle","show"])}function Ch(r){return r.type+"||"+r.id}var V2={},Hs=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){this.axisPointerClass&&fae(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,a,i,n){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,a){var i=this._axisPointer;i&&i.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,i){var n=t.getAxisPointerClass(this.axisPointerClass);if(n){var o=cae(e);o?(this._axisPointer||(this._axisPointer=new n)).render(e,o,a,i):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){V2[e]=a},t.getAxisPointerClass=function(e){return e&&V2[e]},t.type="axis",t})(Wt),GT=yt();function H6(r,t,e,a){var i=e.axis;if(!i.scale.isBlank()){var n=e.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:n,clamp:!0});if(u.length){var v=s.length,h=GT(r).splitAreaColors,f=Ge(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(v-1)*d)%v;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Se(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,S=void 0,b=void 0;i.isHorizontal()?(_=g,x=l.y,S=y-_,b=l.height,g=_+S):(_=l.x,x=g,S=l.width,b=y-x,g=x+b);var w=u[d-1].tickValue;w!=null&&f.set(w,c),t.add(new gt({anid:w!=null?"area_"+w:null,shape:{x:_,y:x,width:S,height:b},style:Ue({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%v}GT(r).splitAreaColors=f}}}function q6(r){GT(r).splitAreaColors=null}var dae=["axisLine","axisTickLabel","axisName"],pae=["splitArea","splitLine","minorSplitLine"],W6=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ze,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=BT(s,e),u=new la(e,_e({handleAutoShown:function(h){for(var f=s.coordinateSystem.getCartesians(),c=0;c<f.length;c++)if(RT(f[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));$(dae,u.add,u),this._axisGroup.add(u.getGroup()),$(pae,function(h){e.get([h,"show"])&&gae[h](this,this._axisGroup,e,s)},this);var v=n&&n.type==="changeAxisOrder"&&n.isInitSort;v||Yh(o,this._axisGroup,e),r.prototype.render.call(this,e,a,i,n)}},t.prototype.remove=function(){q6(this)},t.type="cartesianAxis",t})(Hs),gae={splitLine:function(r,t,e,a){var i=e.axis;if(!i.scale.isBlank()){var n=e.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color"),l=n.get("showMinLine")!==!1,u=n.get("showMaxLine")!==!1;s=Se(s)?s:[s];for(var v=a.coordinateSystem.getRect(),h=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:n}),d=[],p=[],g=o.getLineStyle(),m=0;m<c.length;m++){var y=i.toGlobalCoord(c[m].coord);if(!(m===0&&!l||m===c.length-1&&!u)){var _=c[m].tickValue;h?(d[0]=y,d[1]=v.y,p[0]=y,p[1]=v.y+v.height):(d[0]=v.x,d[1]=y,p[0]=v.x+v.width,p[1]=y);var x=f++%s.length,S=new xr({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Ue({stroke:s[x]},g),silent:!0});Xl(S.shape,g.lineWidth),t.add(S)}}}},minorSplitLine:function(r,t,e,a){var i=e.axis,n=e.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var v=[],h=[],f=o.getLineStyle(),c=0;c<u.length;c++)for(var d=0;d<u[c].length;d++){var p=i.toGlobalCoord(u[c][d].coord);l?(v[0]=p,v[1]=s.y,h[0]=p,h[1]=s.y+s.height):(v[0]=s.x,v[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new xr({anid:"minor_line_"+u[c][d].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:f,silent:!0});Xl(g.shape,f.lineWidth),t.add(g)}},splitArea:function(r,t,e,a){H6(r,t,e,a)}},U6=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(W6),mae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=U6.type,e}return t.type="yAxis",t})(W6),yae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new gt({shape:e.coordinateSystem.getRect(),style:Ue({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Wt),G2={offset:0};function $6(r){r.registerComponentView(yae),r.registerComponentModel($re),r.registerCoordinateSystem("cartesian2d",eae),Jl(r,"x",NT,G2),Jl(r,"y",NT,G2),r.registerComponentView(U6),r.registerComponentView(mae),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function _ae(r){ot($6),r.registerSeriesModel(Fre),r.registerChartView(Ure),r.registerLayout(ef("scatter"))}function xae(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],i=t.coordinateSystem;if(i){var n=i.getIndicatorAxes();$(n,function(o,s){e.each(e.mapDimension(n[s].dim),function(l,u){a[u]=a[u]||[];var v=i.dataToPoint(l,s);a[u][s]=F2(v)?v:H2(i)})}),e.each(function(o){var s=E4(a[o],function(l){return F2(l)})||H2(i);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function F2(r){return!isNaN(r[0])&&!isNaN(r[1])}function H2(r){return[r.cx,r.cy]}function Sae(r){var t=r.polar;if(t){Se(t)||(t=[t]);var e=[];$(t,function(a,i){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],Se(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}$(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var bae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(f,c){var d=f.getItemVisual(c,"symbol")||"circle";if(d!=="none"){var p=yu(f.getItemVisual(c,"symbolSize")),g=lr(d,-1,-1,2,2),m=f.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function v(f,c,d,p,g,m){d.removeAll();for(var y=0;y<c.length-1;y++){var _=u(p,g);_&&(_.__dimIdx=y,f[y]?(_.setPosition(f[y]),Bs[m?"initProps":"updateProps"](_,{x:c[y][0],y:c[y][1]},e,g)):_.setPosition(c[y]),d.add(_))}}function h(f){return we(f,function(c){return[n.cx,n.cy]})}s.diff(l).add(function(f){var c=s.getItemLayout(f);if(c){var d=new jr,p=new ea,g={shape:{points:c}};d.shape.points=h(c),p.shape.points=h(c),$t(d,g,e,f),$t(p,g,e,f);var m=new Ze,y=new Ze;m.add(p),m.add(d),m.add(y),v(p.shape.points,c,y,s,f,!0),s.setItemGraphicEl(f,m)}}).update(function(f,c){var d=l.getItemGraphicEl(c),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(f)}};y.shape.points&&(v(p.shape.points,y.shape.points,m,s,f,!1),xi(g),xi(p),wt(p,y,e),wt(g,y,e),s.setItemGraphicEl(f,d))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,c){var d=s.getItemModel(c),p=f.childAt(0),g=f.childAt(1),m=f.childAt(2),y=s.getItemVisual(c,"style"),_=y.fill;o.add(f),p.useStyle(Ue(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Vr(p,d,"lineStyle"),Vr(g,d,"areaStyle");var x=d.getModel("areaStyle"),S=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=S,$(["emphasis","select","blur"],function(A){var T=d.getModel([A,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(A).ignore=C&&S}),g.useStyle(Ue(x.getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var b=d.getModel("emphasis"),w=b.getModel("itemStyle").getItemStyle();m.eachChild(function(A){if(A instanceof Dr){var T=A.style;A.useStyle(_e({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else A.useStyle(y),A.setColor(_),A.style.strokeNoScale=!0;var C=A.ensureState("emphasis");C.style=Ye(w);var M=s.getStore().get(s.getDimensionIndex(A.__dimIdx),c);(M==null||isNaN(M))&&(M=""),Gr(A,Cr(d),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:A.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:y.opacity})}),tr(f,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(kt),wae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new rf(Ne(this.getData,this),Ne(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return bu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,v=tU(this,e);return Mr("section",{header:u,sortBlocks:!0,blocks:we(s,function(h){var f=n.get(n.mapDimension(h.dim),e);return Mr("nameValue",{markerType:"subItem",markerColor:v,name:h.name,value:f,sortParam:f})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),i=this.coordinateSystem,n=a.getValues(we(i.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(n[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(zt),Ju=V6.value;function lc(r,t){return Ue({show:t},r)}var Tae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),f=this.get("triggerEvent"),c=we(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Ue({color:d.color},l));var g=tt(Ye(d),{boundaryGap:e,splitNumber:a,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:f},!1);if(Re(v)){var m=g.name;g.name=v.replace("{value}",m!=null?m:"")}else He(v)&&(g.name=v(g.name,g));var y=new Mt(g,null,this.ecModel);return nr(y,Su.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=c},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.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:tt({lineStyle:{color:"#bbb"}},Ju.axisLine),axisLabel:lc(Ju.axisLabel,!1),axisTick:lc(Ju.axisTick,!1),splitLine:lc(Ju.splitLine,!0),splitArea:lc(Ju.splitArea,!0),indicator:[]},t})(ut),Aae=["axisLine","axisTickLabel","axisName"],Cae=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,i=a.getIndicatorAxes(),n=we(i,function(o){var s=o.model.get("showName")?o.name:"",l=new la(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});$(n,function(o){$(Aae,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,i=a.getIndicatorAxes();if(!i.length)return;var n=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),v=o.get("show"),h=s.get("show"),f=l.get("color"),c=u.get("color"),d=Se(f)?f:[f],p=Se(c)?c:[c],g=[],m=[];function y(I,R,E){var k=E%R.length;return I[k]=I[k]||[],k}if(n==="circle")for(var _=i[0].getTicksCoords(),x=a.cx,S=a.cy,b=0;b<_.length;b++){if(v){var w=y(g,d,b);g[w].push(new Xi({shape:{cx:x,cy:S,r:_[b].coord}}))}if(h&&b<_.length-1){var w=y(m,p,b);m[w].push(new ou({shape:{cx:x,cy:S,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var A,T=we(i,function(I,R){var E=I.getTicksCoords();return A=A==null?E.length-1:Math.min(E.length-1,A),we(E,function(k){return a.coordToPoint(k.coord,R)})}),C=[],b=0;b<=A;b++){for(var M=[],L=0;L<i.length;L++)M.push(T[L][b]);if(M[0]&&M.push(M[0].slice()),v){var w=y(g,d,b);g[w].push(new ea({shape:{points:M}}))}if(h&&C){var w=y(m,p,b-1);m[w].push(new jr({shape:{points:M.concat(C)}}))}C=M.slice().reverse()}var D=l.getLineStyle(),P=u.getAreaStyle();$(m,function(I,R){this.group.add(wa(I,{style:Ue({stroke:"none",fill:p[R%p.length]},P),silent:!0}))},this),$(g,function(I,R){this.group.add(wa(I,{style:Ue({fill:"none",stroke:d[R%d.length]},D),silent:!0}))},this)},t.type="radar",t})(Wt),Mae=(function(r){he(t,r);function t(e,a,i){var n=r.call(this,e,a,i)||this;return n.type="value",n.angle=0,n.name="",n}return t})(Ja),Dae=(function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=we(t.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new Mae(o,new Tn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],i=a.angle,n=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[n,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,i=Math.sqrt(e*e+a*a);e/=i,a/=i;for(var n=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var v=this._indicatorAxes[u],h=Math.abs(n-v.angle);h<o&&(s=v,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var a=t.get("center"),i=e.getWidth(),n=e.getHeight(),o=Math.min(i,n)/2;this.cx=Ie(a[0],i),this.cy=Ie(a[1],n),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Re(s)||bt(s))&&(s=[0,s]),this.r0=Ie(s[0],o),this.r=Ie(s[1],o),$(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var v=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),l.angle=v},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,i=this._model;$(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();$(a,function(v){v.scale.unionExtentFromData(u,u.mapDimension(v.dim))})}},this);var n=i.get("splitNumber"),o=new Tn;o.setExtent(0,n),o.setInterval(1),$(a,function(s,l){G6(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(i){var n=new r(i,t,e);a.push(n),i.coordinateSystem=n}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=a[i.get("radarIndex")||0])}),a},r.dimensions=[],r})();function Lae(r){r.registerCoordinateSystem("radar",Dae),r.registerComponentModel(Tae),r.registerComponentView(Cae),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function Iae(r){ot(Lae),r.registerChartView(bae),r.registerSeriesModel(wae),r.registerLayout(xae),r.registerProcessor(tf("radar")),r.registerPreprocessor(Sae)}var q2="\0_ec_interaction_mutex";function Pae(r,t,e){var a=ZC(r);a[t]=e}function Rae(r,t,e){var a=ZC(r),i=a[t];i===e&&(a[t]=null)}function W2(r,t){return!!ZC(r)[t]}function ZC(r){return r[q2]||(r[q2]={})}Si({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ir);var af=(function(r){he(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var i=Ne(a._mousedownHandler,a),n=Ne(a._mousemoveHandler,a),o=Ne(a._mouseupHandler,a),s=Ne(a._mousewheelHandler,a),l=Ne(a._pinchHandler,a);return a.enable=function(u,v){this.disable(),this._opt=Ue(Ye(v)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",n),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",i),e.off("mousemove",n),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!ND(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var i=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!ld("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||W2(this._zr,"globalPan"))){var a=e.offsetX,i=e.offsetY,n=this._x,o=this._y,s=a-n,l=i-o;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&_n(e.event),Y6(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:n,oldY:o,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ND(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=ld("zoomOnMouseWheel",e,this._opt),i=ld("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,o=Math.abs(n),s=e.offsetX,l=e.offsetY;if(!(n===0||!a&&!i)){if(a){var u=o>3?1.4:o>1?1.2:1.1,v=n>0?u:1/u;$m(this,"zoom","zoomOnMouseWheel",e,{scale:v,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(n),f=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);$m(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!W2(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;$m(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t})(Xa);function $m(r,t,e,a,i){r.pointerChecker&&r.pointerChecker(a,i.originX,i.originY)&&(_n(a.event),Y6(r,t,e,a,i))}function Y6(r,t,e,a,i){i.isAvailableBehavior=Ne(ld,null,e,a),r.trigger(t,i)}function ld(r,t,e){var a=e[r];return!r||a&&(!Re(a)||t.event[a+"Key"])}function XC(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function KC(r,t,e,a){var i=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(a-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Eae={axisPointer:1,tooltip:1,brush:1};function jp(r,t,e){var a=t.getComponentByElement(r.topTarget),i=a&&a.coordinateSystem;return a&&a!==e&&!Eae.hasOwnProperty(a.mainType)&&i&&i.model!==e}function Z6(r){if(Re(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Ym,Kd={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},U2=ft(Kd),Qd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},$2=ft(Qd),kae=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=Z6(t);this._defsUsePending=[];var i=new Ze;this._root=i;var n=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sa(a,i,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;zae(this._defs,this._defsUsePending),this._defsUsePending=[];var v,h;if(o){var f=Jp(o);f.length>=4&&(v={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(v&&s!=null&&l!=null&&(h=K6(v,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=i;i=new Ze,i.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new gt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:v,viewBoxTransform:h,named:n}},r.prototype._parseNode=function(t,e,a,i,n,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!n){var v=Ym[s];if(v&&Be(Ym,s)){l=v.call(this,t,e);var h=t.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(f),s==="g"&&(u=f)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var c=Y2[s];if(c&&Be(Y2,s)){var d=c.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new Zl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),Oae(a,e);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=(function(){Ym={g:function(t,e){var a=new Ze;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new gt;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Xi;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new xr;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Wh;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),i;a&&(i=K2(a));var n=new jr({shape:{points:i||[]},silent:!0});return Ea(e,n),Sa(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var a=t.getAttribute("points"),i;a&&(i=K2(a));var n=new ea({shape:{points:i||[]},silent:!0});return Ea(e,n),Sa(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var a=new Dr;return Ea(e,a),Sa(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new Ze;return Ea(e,s),Sa(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),i=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ze;return Ea(e,s),Sa(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",i=jq(a);return Ea(e,i),Sa(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),r})(),Y2={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new lu(t,e,a,i);return Z2(r,n),X2(r,n),n},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new rC(t,e,a);return Z2(r,i),X2(r,i),i}};function Z2(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function X2(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};X6(e,n,n);var o=n.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Ea(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ue(t.__inheritedStyle,r.__inheritedStyle))}function K2(r){for(var t=Jp(r),e=[],a=0;a<t.length;a+=2){var i=parseFloat(t[a]),n=parseFloat(t[a+1]);e.push([i,n])}return e}function Sa(r,t,e,a,i){var n=t,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(Gae(r,t),X6(r,o,s),a||Fae(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=Q2(n,"fill",o.fill,e)),o.stroke!=null&&(n.style.stroke=Q2(n,"stroke",o.stroke,e)),$(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),$(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),i&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=we(Jp(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function Oae(r,t){var e=t.__selfStyle;if(e){var a=e.textBaseline,i=a;!a||a==="auto"||a==="baseline"?i="alphabetic":a==="before-edge"||a==="text-before-edge"?i="top":a==="after-edge"||a==="text-after-edge"?i="bottom":(a==="central"||a==="mathematical")&&(i="middle"),r.style.textBaseline=i}var n=t.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Nae=/^url\(\s*#(.*?)\)/;function Q2(r,t,e,a){var i=e&&e.match(Nae);if(i){var n=Ua(i[1]);a.push([r,t,n]);return}return e==="none"&&(e=null),e}function zae(r,t){for(var e=0;e<t.length;e++){var a=t[e];a[0].style[a[1]]=r[a[2]]}}var Bae=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jp(r){return r.match(Bae)||[]}var Vae=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Zm=Math.PI/180;function Gae(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var a=[],i=null;e.replace(Vae,function(h,f,c){return a.push(f,c),""});for(var n=a.length-1;n>0;n-=2){var o=a[n],s=a[n-1],l=Jp(o);switch(i=i||xa(),s){case"translate":yi(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":bp(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":co(i,i,-parseFloat(l[0])*Zm,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Zm);Wi(i,[1,0,u,1,0,0],i);break;case"skewY":var v=Math.tan(parseFloat(l[0])*Zm);Wi(i,[1,v,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var j2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function X6(r,t,e){var a=r.getAttribute("style");if(a){j2.lastIndex=0;for(var i;(i=j2.exec(a))!=null;){var n=i[1],o=Be(Kd,n)?Kd[n]:null;o&&(t[o]=i[2]);var s=Be(Qd,n)?Qd[n]:null;s&&(e[s]=i[2])}}}function Fae(r,t,e){for(var a=0;a<U2.length;a++){var i=U2[a],n=r.getAttribute(i);n!=null&&(t[Kd[i]]=n)}for(var a=0;a<$2.length;a++){var i=$2[a],n=r.getAttribute(i);n!=null&&(e[Qd[i]]=n)}}function K6(r,t){var e=t.width/r.width,a=t.height/r.height,i=Math.min(e,a);return{scale:i,x:-(r.x+r.width/2)*i+(t.x+t.width/2),y:-(r.y+r.height/2)*i+(t.y+t.height/2)}}function Hae(r,t){var e=new kae;return e.parse(r,t)}var qae=Ge(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Wae=(function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=Ge(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Z6(e)}return r.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=$ae(t.named),a=e.regions,i=e.regionsMap;this._regions=a,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&Hae(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,Kr(a!=null)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new Ze;i.add(a),i.isGeoSVGGraphicRoot=!0;var n=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,v=void 0,h=void 0,f=void 0;if(n!=null?(u=0,h=n):s&&(u=s.x,h=s.width),o!=null?(v=0,f=o):s&&(v=s.y,f=s.height),u==null||v==null){var c=a.getBoundingRect();u==null&&(u=c.x,h=c.width),v==null&&(v=c.y,f=c.height)}l=this._boundingRect=new at(u,v,h,f)}if(s){var d=K6(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}i.setClipPath(new gt({shape:l.plain()}));var p=[];return $(e.named,function(g){qae.get(g.svgNodeTagLower)!=null&&(p.push(g),Uae(g.el))}),{root:i,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r})();function Uae(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function $ae(r){var t=[],e=Ge();return $(r,function(a){if(a.namedFrom==null){var i=new yte(a.name,a.el);t.push(i),e.set(a.name,i)}}),{regions:t,regionsMap:e}}var FT=[126,25],J2="南海诸岛",ts=[[[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]]];for(var Yo=0;Yo<ts.length;Yo++)for(var cl=0;cl<ts[Yo].length;cl++)ts[Yo][cl][0]/=10.5,ts[Yo][cl][1]/=-10.5/.75,ts[Yo][cl][0]+=FT[0],ts[Yo][cl][1]+=FT[1];function Yae(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===J2)return;t.push(new o6(J2,we(ts,function(a){return{type:"polygon",exterior:a}}),FT))}}var Zae={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Xae(r,t){if(r==="china"){var e=Zae[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var Kae=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Qae(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Kae[0]})}var jae="name",Jae=(function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=Ge(),this._mapName=t,this._specialAreas=a,this._geoJSON=tie(e)}return r.prototype.load=function(t,e){e=e||jae;var a=this._parsedMap.get(e);if(!a){var i=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:i,boundingRect:eie(i)})}var n=Ge(),o=[];return $(a.regions,function(s){var l=s.name;t&&Be(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new at(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,i;try{i=a?kT(a,t):[]}catch(n){throw new Error("Invalid geoJson format\n"+n.message)}return Yae(e,i),$(i,function(n){var o=n.name;Xae(e,n),Qae(e,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function eie(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function tie(r){return Re(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ev=Ge();const An={registerMap:function(r,t,e){if(t.svg){var a=new Wae(r,t.svg);ev.set(r,a)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?e=t.specialAreas:i=t;var a=new Jae(r,i,e);ev.set(r,a)}},getGeoResource:function(r){return ev.get(r)},getMapForUser:function(r){var t=ev.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=ev.get(r);if(a)return a.load(t,e)}};var QC=["rect","circle","line","ellipse","polygon","polyline","path"],rie=Ge(QC),aie=Ge(QC.concat(["g"])),iie=Ge(QC.concat(["g"])),Q6=yt();function uc(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function eP(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var j6=(function(){function r(t){var e=new Ze;this.uid=fu("ec_map_draw"),this._controller=new af(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Ze),e.add(this._svgGroup=new Ze)}return r.prototype.draw=function(t,e,a,i,n){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,v=this.group,h=l.getTransformInfo(),f=h.raw,c=h.roam,d=!u.childAt(0)||n;d?(v.x=c.x,v.y=c.y,v.scaleX=c.scaleX,v.scaleY=c.scaleY,v.dirty()):wt(v,c,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Ge(),a=Ge(),i=this._regionsGroup,n=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function v(c,d){return d&&(c=d(c)),c&&[c[0]*n.scaleX+n.x,c[1]*n.scaleY+n.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g<c.length;++g){var m=v(c[g],p);m&&d.push(m)}return d}function f(c){return{shape:{points:h(c)}}}i.removeAll(),$(t.geo.regions,function(c){var d=c.name,p=e.get(d),g=a.get(d)||{},m=g.dataIdx,y=g.regionModel;if(!p){p=e.set(d,new Ze),i.add(p),m=s?s.indexOfName(d):null,y=t.isGeo?o.getRegionModel(d):s?s.getItemModel(m):null;var _=y.get("silent",!0);_!=null&&(p.silent=_),a.set(d,{dataIdx:m,regionModel:y})}var x=[],S=[];$(c.geometries,function(A){if(A.type==="polygon"){var T=[A.exterior].concat(A.interiors||[]);u&&(T=oP(T,u)),$(T,function(M){x.push(new jr(f(M)))})}else{var C=A.points;u&&(C=oP(C,u,!0)),$(C,function(M){S.push(new ea(f(M)))})}});var b=v(c.getCenter(),l&&l.project);function w(A,T){if(A.length){var C=new Ep({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});p.add(C),tP(t,C,m,y),rP(t,C,d,y,o,m,b),T&&(eP(C),$(C.states,eP))}}w(x),w(S,!0)}),e.each(function(c,d){var p=a.get(d),g=p.dataIdx,m=p.regionModel;aP(t,c,d,m,o,g),iP(t,c,d,m,o),nP(t,c,d,m,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=Ge(),n=!1;$(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,v=o.svgNodeTagLower,h=o.el,f=u?u.indexOfName(s):null,c=l.getRegionModel(s);rie.get(v)!=null&&h instanceof Za&&tP(t,h,f,c),h instanceof Za&&(h.culling=!0);var d=c.get("silent",!0);if(d!=null&&(h.silent=d),h.z2EmphasisLift=0,!o.namedFrom&&(iie.get(v)!=null&&rP(t,h,s,c,l,f,null),aP(t,h,s,c,l,f),iP(t,h,s,c,l),aie.get(v)!=null)){var p=nP(t,h,s,c,l);p==="self"&&(n=!0);var g=i.get(s)||i.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(n,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=a.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Is(n);var o=n.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),n.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var n=i.get(t);return n?[n]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=An.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=An.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a){var i=t.coordinateSystem,n=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),n.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}n.off("pan").on("pan",function(u){this._mouseDownFlag=!1,XC(o,u.dx,u.dy),a.dispatchAction(_e(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,KC(o,u.scale,u.originX,u.originY),a.dispatchAction(_e(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),n.setPointerChecker(function(u,v,h){return i.containPoint([v,h])&&!jp(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=Q6(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,i){var n=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){n._mouseDownFlag=!0}),e.on("click",function(o){n._mouseDownFlag&&(n._mouseDownFlag=!1)}))},r})();function tP(r,t,e,a){var i=a.getModel("itemStyle"),n=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=uc(i),u=uc(n),v=uc(s),h=uc(o),f=r.data;if(f){var c=f.getItemVisual(e,"style"),d=f.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),d&&(l.decal=Ql(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=v,t.ensureState("blur").style=h,Is(t)}function rP(r,t,e,a,i,n,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),v=s&&s.getItemLayout(n);if(l||u||v&&v.showLabel){var h=l?e:n,f=void 0;(!s||n>=0)&&(f=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Gr(t,Cr(a),{labelFetcher:f,labelDataIndex:h,defaultText:e},c);var d=t.getTextContent();if(d&&(Q6(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function aP(r,t,e,a,i,n){r.data?r.data.setItemGraphicEl(n,t):Xe(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:a&&a.option||{}}}function iP(r,t,e,a,i){r.data||zs({el:t,componentModel:i,itemName:e,itemTooltipOption:a.get("tooltip")})}function nP(r,t,e,a,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var n=a.getModel("emphasis"),o=n.get("focus");return tr(t,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&MK(t,i,e),o}function oP(r,t,e){var a=[],i;function n(){i=[]}function o(){i.length&&(a.push(i),i=[])}var s=t({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),$(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}var nie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new j6(i);o.add(s.group),s.draw(e,a,i,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var v=u.point,h=u.offset,f=new Xi({style:{fill:e.getData().getVisual("style").fill},shape:{cx:v[0]+h*9,cy:v[1],r:3},silent:!0,z2:8+(h?0:nu+1)});if(!h){var c=e.mainSeries.getData(),d=n.getName(l),p=c.indexOfName(d),g=n.getItemModel(l),m=g.getModel("label"),y=c.getItemGraphicEl(p);Gr(f,Cr(g),{labelFetcher:{getFormattedLabel:function(_,x){return e.getFormattedLabel(p,x)}},defaultText:d}),f.disableLabelAnimation=!0,m.get("position")||f.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(_){Ld(f,_)}}o.add(f)}}})},t.type="map",t})(kt),oie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var i=this.getData().getName(a),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=bu(this,{coordDimensions:["value"],encodeDefaulter:et(yC,this)}),i=Ge(),n=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);i.set(l,o)}var u=An.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return $(u.regions,function(v){var h=v.name,f=i.get(h),c=v.properties&&v.properties.echartsStyle,d;f==null?(d={name:h},n.push(d)):d=a.getRawDataItem(f),c&&tt(d,c)}),a.appendData(n),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,i){for(var n=this.getData(),o=this.getRawValue(e),s=n.getName(e),l=this.seriesGroup,u=[],v=0;v<l.length;v++){var h=l[v].originalData.indexOfName(s),f=n.mapDimension("value");isNaN(l[v].originalData.get(f,h))||u.push(l[v].name)}return Mr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Mr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",i=lr(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",a.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(zt);function sie(r,t){var e={};return $(r,function(a){a.each(a.mapDimension("value"),function(i,n){var o="ec-"+a.getName(n);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(a,i){for(var n="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[n].length,v=0;v<u;v++)s=Math.min(s,e[n][v]),l=Math.max(l,e[n][v]),o+=e[n][v];var h;return t==="min"?h=s:t==="max"?h=l:t==="average"?h=o/u:h=o,u===0?NaN:h})}function lie(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),i=a?"o"+a.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),$(t,function(e,a){for(var i=sie(we(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),n=0;n<e.length;n++)e[n].originalData=e[n].getData();for(var n=0;n<e.length;n++)e[n].seriesGroup=e,e[n].needsDrawMap=n===0&&!e[n].getHostGeoModel(),e[n].setData(i.cloneShallow()),e[n].mainSeries=e[0]})}function uie(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var i={};$(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,v){var h=l.getName(v),f=s.getRegion(h);if(!(!f||isNaN(u))){var c=i[h]||0,d=s.dataToPoint(f.getCenter());i[h]=c+1,l.setItemLayout(v,{point:d,offset:c})}})});var n=e.getData();n.each(function(o){var s=n.getName(o),l=n.getItemLayout(o)||{};l.showLabel=!i[s],n.setItemLayout(o,l)}),t[a]=!0}})}var sP=Or,nf=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new pn,a._rawTransformable=new pn,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,i,n){return this._rect=new at(e,a,i,n),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,i,n){this._transformTo(e,a,i,n),this._viewRect=new at(e,a,i,n)},t.prototype._transformTo=function(e,a,i,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new at(e,a,i,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){e&&(this._center=[Ie(e[0],a.getWidth()),Ie(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,i=e.y+e.height/2;return[a,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=Or([],n,e),i=Or([],i,e),a.originX=n[0],a.originY=n[1],a.x=i[0]-n[0],a.y=i[1]-n[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),Sp(this.transform||(this.transform=[]),a.transform||xa()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Ns(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,i=new pn;return i.transform=a.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,i){var n=a?this._rawTransform:this.transform;return i=i||[],n?sP(i,e,n):$r(i,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?sP([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,i){var n=lP(a);return n===this?n.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,a,i){var n=lP(a);return n===this?n.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t})(pn);function lP(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var vie={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},J6=["lng","lat"],HT=(function(r){he(t,r);function t(e,a,i){var n=r.call(this,e)||this;n.dimensions=J6,n.type="geo",n._nameCoordMap=Ge(),n.map=a;var o=i.projection,s=An.load(a,i.nameMap,i.nameProperty),l=An.getGeoResource(a);n.resourceType=l?l.type:null;var u=n.regions=s.regions,v=vie[l.type];n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var h;if(o)for(var f=0;f<u.length;f++){var c=u[f].getBoundingRect(o);h=h||c.clone(),h.union(c)}else h=s.boundingRect;return n.setBoundingRect(h.x,h.y,h.width,h.height),n.aspectScale=o?1:Je(i.aspectScale,v.aspectScale),n._invertLongitute=o?!1:v.invertLongitute,n}return t.prototype._transformTo=function(e,a,i,n){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new at(e,a,i,n));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,i=0;i<a.length;i++){var n=a[i];if(n.type==="geoJSON"&&n.contain(e))return a[i]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,i){if(Re(e)&&(e=this.getGeoCoord(e)),e){var n=this.projection;return n&&(e=n.project(e)),e&&this.projectedToPoint(e,a,i)}},t.prototype.pointToData=function(e){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,a,i){return r.prototype.dataToPoint.call(this,e,a,i)},t.prototype.convertToPixel=function(e,a,i){var n=uP(a);return n===this?n.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,a,i){var n=uP(a);return n===this?n.pointToData(i):null},t})(nf);nr(HT,nf);function uP(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",cr).models[0]||{}).coordinateSystem:null}function vP(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],i=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var n=this.projection;if(n){var o=a[0],s=a[1],l=i[0],u=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var v=function(b,w,A,T){for(var C=A-b,M=T-w,L=0;L<=100;L++){var D=L/100,P=n.project([b+C*D,w+M*D]);cn(a,a,P),dn(i,i,P)}};v(o,s,l,s),v(l,s,l,u),v(l,u,o,u),v(o,u,l,s)}this.setBoundingRect(a[0],a[1],i[0]-a[0],i[1]-a[1])}}var h=this.getBoundingRect(),f=r.get("layoutCenter"),c=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=h.width/h.height*this.aspectScale,m=!1,y,_;f&&c&&(y=[Ie(f[0],d),Ie(f[1],p)],_=Ie(c,Math.min(d,p)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(_)&&(m=!0));var x;if(m)x={},g>1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=y[1]-x.height/2,x.x=y[0]-x.width/2;else{var S=r.getBoxLayoutParams();S.aspect=g,x=dr(S,{width:d,height:p})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function hie(r,t){$(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var fie=(function(){function r(){this.dimensions=J6}return r.prototype.create=function(t,e){var a=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new HT(l+s,l,_e({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=vP,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var n={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),$(n,function(o,s){var l=we(o,function(v){return v.get("nameMap")}),u=new HT(s,s,_e({nameMap:yp(l)},i(o[0])));u.zoomLimit=wr.apply(null,we(o,function(v){return v.get("scaleLimit")})),a.push(u),u.resize=vP,u.resize(o[0],e),$(o,function(v){v.coordinateSystem=u,hie(u,v)})}),a},r.prototype.getFilledRegions=function(t,e,a,i){for(var n=(t||[]).slice(),o=Ge(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=An.load(e,a,i);return $(l.regions,function(u){var v=u.name,h=o.get(v),f=u.properties&&u.properties.echartsStyle;h||(h={name:v},n.push(h)),f&&tt(h,f)}),n},r})(),e8=new fie,cie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,i){var n=An.getGeoResource(e.map);if(n&&n.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,i),Ms(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=e8.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var i={};this._optionModelMap=Ya(a.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Mt(o,e,e.ecModel)),o.selected&&(i[s]=!0)),n},Ge()),a.selectedMap||(a.selectedMap=i)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Mt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var i=this.getRegionModel(e),n=a==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:e};if(He(n))return o.status=a,n(o);if(Re(n))return n.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,i=a.selectedMode;if(i){i!=="multiple"&&(a.selectedMap=null);var n=a.selectedMap||(a.selectedMap={});n[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t})(ut);function hP(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function jC(r,t,e,a){var i=r.getZoom(),n=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(hP(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var v=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=v,r.y-=h,r.updateTransform(),r.setCenter(hP(r,s),a),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var die=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,i,n){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new j6(i));var o=this._mapDraw;o.draw(e,a,i,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,i)},t.prototype._handleRegionClick=function(e){var a;ps(e.target,function(i){return(a=Xe(i).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,i){var n=this;this._mapDraw.group.traverse(function(o){var s=Xe(o).eventData;if(s)return n._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t})(Wt);function pie(r,t,e){An.registerMap(r,t,e)}function t8(r){r.registerCoordinateSystem("geo",e8),r.registerComponentModel(cie),r.registerComponentView(die),r.registerImpl("registerMap",pie),r.registerImpl("getMap",function(e){return An.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(i,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:i},function(l){l[e](i.name);var u=l.coordinateSystem;$(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var v=[];$(o,function(h,f){o[f]&&v.push(f)}),s.push({geoIndex:l.componentIndex,name:v})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,i){var n=e.componentType||"series";a.eachComponent({mainType:n,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=jC(s,e,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),n==="series"&&$(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function gie(r){ot(t8),r.registerChartView(nie),r.registerSeriesModel(oie),r.registerLayout(uie),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lie),cU("map",r.registerAction)}function mie(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,i;a=e.pop();)if(i=a.children,a.isExpand&&i.length)for(var n=i.length,o=n-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function yie(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,i=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){Sie(r);var n=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=bie(r,i,r.parentNode.hierNode.defaultAncestor||a[0],t)}function _ie(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function fP(r){return arguments.length?r:Aie}function Ov(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function xie(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Sie(r){for(var t=r.children,e=t.length,a=0,i=0;--e>=0;){var n=t[e];n.hierNode.prelim+=a,n.hierNode.modifier+=a,i+=n.hierNode.change,a+=n.hierNode.shift+i}}function bie(r,t,e,a){if(t){for(var i=r,n=r,o=n.parentNode.children[0],s=t,l=i.hierNode.modifier,u=n.hierNode.modifier,v=o.hierNode.modifier,h=s.hierNode.modifier;s=Xm(s),n=Km(n),s&&n;){i=Xm(i),o=Km(o),i.hierNode.ancestor=r;var f=s.hierNode.prelim+h-n.hierNode.prelim-u+a(s,n);f>0&&(Tie(wie(s,r,e),r,f),u+=f,l+=f),h+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,v+=o.hierNode.modifier}s&&!Xm(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),n&&!Km(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-v,e=r)}return e}function Xm(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Km(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function wie(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Tie(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function Aie(r,t){return r.parentNode===t.parentNode?1:2}var Cie=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),Mie=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cie},t.prototype.buildPath=function(e,a){var i=a.childPoints,n=i.length,o=a.parentPoint,s=i[0],l=i[n-1];if(n===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,v=u==="TB"||u==="BT"?0:1,h=1-v,f=Ie(a.forkPosition,1),c=[];c[v]=o[v],c[h]=o[h]+(l[h]-o[h])*f,e.moveTo(o[0],o[1]),e.lineTo(c[0],c[1]),e.moveTo(s[0],s[1]),c[v]=s[v],e.lineTo(c[0],c[1]),c[v]=l[v],e.lineTo(c[0],c[1]),e.lineTo(l[0],l[1]);for(var d=1;d<n-1;d++){var p=i[d];e.moveTo(p[0],p[1]),c[v]=p[v],e.lineTo(c[0],c[1])}},t})(ht),Die=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new Ze,e}return t.prototype.init=function(e,a){this._controller=new af(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,i){var n=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,i),this._updateController(e,a,i);var u=this._data;n.diff(u).add(function(v){cP(n,v)&&dP(n,v,null,s,e)}).update(function(v,h){var f=u.getItemGraphicEl(h);if(!cP(n,v)){f&&gP(u,h,f,s,e);return}dP(n,v,f,s,e)}).remove(function(v){var h=u.getItemGraphicEl(v);h&&gP(u,v,h,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(v,h){v.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:h})})}),this._data=n},t.prototype._updateViewCoordSys=function(e,a){var i=e.getData(),n=[];i.each(function(h){var f=i.getItemLayout(h);f&&!isNaN(f.x)&&!isNaN(f.y)&&n.push([+f.x,+f.y])});var o=[],s=[];Ip(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var v=e.coordinateSystem=new nf;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),v.setCenter(e.get("center"),a),v.setZoom(e.get("zoom")),this.group.attr({x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,v,h){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(v,h)&&!jp(u,i,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){XC(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){KC(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(e),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),i=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(n,o){n.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var i=this._nodeScaleRatio,n=a.scaleX||1,o=a.getZoom(),s=(o-1)*i+1;return s/n},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(kt);function cP(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function dP(r,t,e,a,i){var n=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",v=r.tree.root,h=o.parentNode===v?o:o.parentNode||o,f=r.getItemGraphicEl(h.dataIndex),c=h.getLayout(),d=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:c,p=o.getLayout();n?(e=new Qh(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,wt(e,{x:p.x,y:p.y},i);var g=e.getSymbolPath();if(i.get("layout")==="radial"){var m=v.children[0],y=m.getLayout(),_=m.children.length,x=void 0,S=void 0;if(p.x===y.x&&o.isExpand===!0&&m.children.length){var b={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};x=Math.atan2(b.y-y.y,b.x-y.x),x<0&&(x=Math.PI*2+x),S=b.x<y.x,S&&(x=x-Math.PI)}else x=Math.atan2(p.y-y.y,p.x-y.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=p.x<y.x,S&&(x=x-Math.PI)):(S=p.x>y.x,S||(x=x-Math.PI));var w=S?"left":"right",A=s.getModel("label"),T=A.get("rotate"),C=T*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:A.get("position")||w,rotation:T==null?-x:C,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),D=L==="relative"?$l(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;D&&(Xe(e).focus=D),Lie(i,o,v,e,d,c,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var I=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);I&&I.hoverState===qh||Ld(e.__edge,P)}})}function Lie(r,t,e,a,i,n,o,s){var l=t.getModel(),u=r.get("edgeShape"),v=r.get("layout"),h=r.getOrient(),f=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new su({shape:qT(v,h,f,i,i)})),wt(p,{shape:qT(v,h,f,n,o)},r));else if(u==="polyline"&&v==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;y<g.length;y++){var _=g[y].getLayout();m.push([_.x,_.y])}p||(p=a.__edge=new Mie({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:c}})),wt(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(Ue({strokeNoScale:!0,fill:null},d)),Vr(p,l,"lineStyle"),Is(p),s.add(p))}function pP(r,t,e,a,i){var n=t.tree.root,o=r8(n,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var v=t.getItemGraphicEl(s.dataIndex),h=v.__edge,f=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),c=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);f&&(c==="curve"?lo(f,{shape:qT(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){e.remove(f)},removeOpt:i}):c==="polyline"&&a.get("layout")==="orthogonal"&&lo(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(f)},removeOpt:i}))}}function r8(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function gP(r,t,e,a,i){var n=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=r8(o,n).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};lo(e,{x:s.x+1,y:s.y+1},i,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),n.children.forEach(function(u){pP(u,r,a,i,l)}),pP(n,r,a,i,l)}function qT(r,t,e,a,i){var n,o,s,l,u,v,h,f;if(r==="radial"){u=a.rawX,h=a.rawY,v=i.rawX,f=i.rawY;var c=Ov(u,h),d=Ov(u,h+(f-h)*e),p=Ov(v,f+(h-f)*e),g=Ov(v,f);return{x1:c.x||0,y1:c.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,h=a.y,v=i.x,f=i.y,(t==="LR"||t==="RL")&&(n=u+(v-u)*e,o=h,s=v+(u-v)*e,l=f),(t==="TB"||t==="BT")&&(n=u,o=h+(f-h)*e,s=v,l=f+(h-f)*e);return{x1:u,y1:h,x2:v,y2:f,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}var $a=yt();function a8(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,i8(t,e,r),$(e,function(a){$(t.TRANSFERABLE_METHODS,function(i){a.wrapMethod(i,et(Iie,r))})}),t.wrapMethod("cloneShallow",et(Rie,r)),$(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,et(Pie,r))}),Kr(e[t.dataType]===t)}function Iie(r,t){if(Oie(this)){var e=_e({},$a(this).datas);e[this.dataType]=t,i8(t,e,r)}else JC(t,this.dataType,$a(this).mainData,r);return t}function Pie(r,t){return r.struct&&r.struct.update(),t}function Rie(r,t){return $($a(t).datas,function(e,a){e!==t&&JC(e.cloneShallow(),a,t,r)}),t}function Eie(r){var t=$a(this).mainData;return r==null||t==null?t:$a(t).datas[r]}function kie(){var r=$a(this).mainData;return r==null?[{data:r}]:we(ft($a(r).datas),function(t){return{type:t,data:$a(r).datas[t]}})}function Oie(r){return $a(r).mainData===r}function i8(r,t,e){$a(r).datas={},$(t,function(a,i){JC(a,i,r,e)})}function JC(r,t,e,a){$a(e).datas[t]=r,$a(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=Eie,r.getLinkedDataAll=kie}var Nie=(function(){function r(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 r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){He(t)&&(a=e,e=t,t=null),t=t||{},Re(t)&&(t={order:t});var i=t.order||"preorder",n=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(t,e,a);i==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var i=this.children[a];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,i=a.length;e<i;e++){var n=a[e].getNodeById(t);if(n)return n}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,i=a.length;e<i;e++){var n=a[e].contains(t);if(n)return n}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.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},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r})(),eM=(function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,i=e.length;a<i;a++)e[a].dataIndex=-1;for(var a=0,i=t.count();a<i;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var i=new r(e),n=[],o=1;s(t);function s(v,h){var f=v.value;o=Math.max(o,Se(f)?f.length:1),n.push(v);var c=new Nie(_r(v.name,""),i);h?zie(c,h):i.root=c,i._nodes.push(c);var d=v.children;if(d)for(var p=0;p<d.length;p++)s(d[p],c)}i.root.updateDepthAndHeight(0);var l=_u(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Xr(l,e);return u.initData(n),a&&a(u),a8({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r})();function zie(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Mh(r,t,e){if(r&&nt(t,r.type)>=0){var a=e.getData().tree.root,i=r.targetNode;if(Re(i)&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=a.getNodeById(n)))return{node:i}}}function n8(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function tM(r,t){var e=n8(r);return nt(e,t)>=0}function eg(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var Bie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},i=e.leaves||{},n=new Mt(i,this,this.ecModel),o=eM.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(f,c){var d=o.getNodeByDataIndex(c);return d&&d.children.length&&d.isExpand||(f.parentModel=n),f})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=e.expandAndCollapse,v=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var f=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=f&&f.collapsed!=null?!f.collapsed:h.depth<=v}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Mr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=eg(i,this),a.collapsed=!i.isExpand,a},t.type="series.tree",t.layoutMode="box",t.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},t})(zt);function Vie(r,t,e){for(var a=[r],i=[],n;n=a.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;n=i.pop();)t(n,e)}function tv(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var i=a.children;if(i.length)for(var n=i.length-1;n>=0;n--)e.push(i[n])}}function Gie(r,t){r.eachSeriesByType("tree",function(e){Fie(e,t)})}function Fie(r,t){var e=xie(r,t);r.layoutInfo=e;var a=r.get("layout"),i=0,n=0,o=null;a==="radial"?(i=2*Math.PI,n=Math.min(e.height,e.width)/2,o=fP(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(i=e.width,n=e.height,o=fP());var s=r.getData().tree.root,l=s.children[0];if(l){mie(s),Vie(l,yie,o),s.hierNode.modifier=-l.hierNode.prelim,tv(l,_ie);var u=l,v=l,h=l;tv(l,function(_){var x=_.getLayout().x;x<u.getLayout().x&&(u=_),x>v.getLayout().x&&(v=_),_.depth>h.depth&&(h=_)});var f=u===v?1:o(u,v)/2,c=f-u.getLayout().x,d=0,p=0,g=0,m=0;if(a==="radial")d=i/(v.getLayout().x+f+c),p=n/(h.depth-1||1),tv(l,function(_){g=(_.getLayout().x+c)*d,m=(_.depth-1)*p;var x=Ov(g,m);_.setLayout({x:x.x,y:x.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(p=n/(v.getLayout().x+f+c),d=i/(h.depth-1||1),tv(l,function(_){m=(_.getLayout().x+c)*p,g=y==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(d=i/(v.getLayout().x+f+c),p=n/(h.depth-1||1),tv(l,function(_){g=(_.getLayout().x+c)*d,m=y==="TB"?(_.depth-1)*p:n-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function Hie(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");_e(s,o)})})}function qie(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=t.dataIndex,n=a.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var n=i.coordinateSystem,o=jC(n,t,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Wie(r){r.registerChartView(Die),r.registerSeriesModel(Bie),r.registerLayout(Gie),r.registerVisual(Hie),qie(r)}var mP=["treemapZoomToNode","treemapRender","treemapMove"];function Uie(r){for(var t=0;t<mP.length;t++)r.registerAction({type:mP[t],update:"updateView"},ir);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Mh(e,s,n);if(l){var u=n.getViewRoot();u&&(e.direction=tM(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function o8(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(i){for(var n=i;n&&n.depth>1;)n=n.parentNode;var o=_T(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var $ie=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var i={name:e.name,children:e.data};s8(i);var n=e.levels||[],o=this.designatedVisualItemStyle={},s=new Mt({itemStyle:o},this,a);n=e.levels=Yie(n,a);var l=we(n||[],function(h){return new Mt(h,s,a)},this),u=eM.createTree(i,this,v);function v(h){h.wrapMethod("getItemModel",function(f,c){var d=u.getNodeByDataIndex(c),p=d?l[d.depth]:null;return f.parentModel=p||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.getRawValue(e),s=n.getName(e);return Mr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=eg(i,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},_e(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=Ge(),this._idIndexMapCount=0);var i=a.get(e);return i==null&&a.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){o8(this)},t.type="series.treemap",t.layoutMode="box",t.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:.32*.32,scaleLimit:null,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:[]},t})(zt);function s8(r){var t=0;$(r.children,function(a){s8(a);var i=a.value;Se(i)&&(i=i[0]),t+=i});var e=r.value;Se(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Se(r.value)?r.value[0]=e:r.value=e}function Yie(r,t){var e=Nt(t.get("color")),a=Nt(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,n;$(r,function(s){var l=new Mt(s),u=l.get("color"),v=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||v&&v!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!n&&a&&(o.decal=a.slice()),r}}var Zie=8,yP=8,Qm=5,Xie=(function(){function r(t){this.group=new Ze,t.add(this.group)}return r.prototype.render=function(t,e,a,i){var n=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!a)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),v=l.getModel(["itemStyle","textStyle"]),h={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(t,h,s,l,u,v,i),Fp(o,h.pos,h.box)}},r.prototype._prepare=function(t,e,a){for(var i=t;i;i=i.parentNode){var n=_r(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+Zie*2,e.emptyItemWidth);e.totalWidth+=s+yP,e.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(t,e,a,i,n,o,s){for(var l=0,u=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),h=MQ(e.pos,e.box),f=e.totalWidth,c=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=c.length-1;p>=0;p--){var g=c[p],m=g.node,y=g.width,_=g.text;f>h.width&&(f-=y-u,y=u,_=null);var x=new jr({shape:{points:Kie(l,0,y,v,p===c.length-1,p===0)},style:Ue(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new pt({style:Ht(n,{text:_})}),textConfig:{position:"inside"},z2:nu*1e4,onclick:et(s,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Ht(o,{text:_}),x.ensureState("emphasis").style=d,tr(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Qie(x,t,m),l+=y+yP}},r.prototype.remove=function(){this.group.removeAll()},r})();function Kie(r,t,e,a,i,n){var o=[[i?r:r-Qm,t],[r+e,t],[r+e,t+a],[i?r:r-Qm,t+a]];return!n&&o.splice(2,0,[r+e+Qm,t+a/2]),!i&&o.push([r,t+a/2]),o}function Qie(r,t,e){Xe(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&eg(e,t)}}var jie=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,i,n){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:i,easing:n}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,n=this._storage.length;i<n;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function Jie(){return new jie}var WT=Ze,_P=gt,xP=3,SP="label",bP="upperLabel",ene=nu*10,tne=nu*2,rne=nu*3,rs=Ls([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),wP=function(r){var t=rs(r);return t.stroke=t.fill=t.lineWidth=null,t},jd=yt(),ane=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=rv(),e}return t.prototype.render=function(e,a,i,n){var o=a.findComponents({mainType:"series",subType:"treemap",query:n});if(!(nt(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Mh(n,s,e),u=n&&n.type,v=e.layoutInfo,h=!this._oldTree,f=this._storage,c=u==="treemapRootToNode"&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,d=this._giveContainerGroup(v),p=e.get("animation"),g=this._doRender(d,e,c);p&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,c):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new WT,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,i){var n=a.getData().tree,o=this._oldTree,s=rv(),l=rv(),u=this._storage,v=[];function h(y,_,x,S){return ine(a,l,u,i,s,v,y,_,x,S)}p(n.root?[n.root]:[],o&&o.root?[o.root]:[],e,n===o||!o,0);var f=g(u);if(this._oldTree=n,this._storage=l,this._controllerHost){var c=this.seriesModel.layoutInfo,d=n.root.getLayout();d.width===c.width&&d.height===c.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:f,renderFinally:m};function p(y,_,x,S,b){S?(_=y,$(y,function(T,C){!T.isRemoved()&&A(C,C)})):new bn(_,y,w,w).add(A).update(A).remove(et(A,null)).execute();function w(T){return T.getId()}function A(T,C){var M=T!=null?y[T]:null,L=C!=null?_[C]:null,D=h(M,L,x,b);D&&p(M&&M.viewChildren||[],L&&L.viewChildren||[],D,S,b+1)}}function g(y){var _=rv();return y&&$(y,function(x,S){var b=_[S];$(x,function(w){w&&(b.push(w),jd(w).willDelete=!0)})}),_}function m(){$(f,function(y){$(y,function(_){_.parent&&_.parent.remove(_)})}),$(v,function(y){y.invisible=!0,y.dirty()})}},t.prototype._doAnimation=function(e,a,i,n){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(He(o)?0:o)||0,u=(He(s)?null:s)||"cubicOut",v=Jie();$(a.willDeleteEls,function(h,f){$(h,function(c,d){if(!c.invisible){var p=c.parent,g,m=jd(p);if(n&&n.direction==="drillDown")g=p===n.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,_=0;m.willDelete||(y=m.nodeWidth/2,_=m.nodeHeight/2),g=f==="nodeGroup"?{x:y,y:_,style:{opacity:0}}:{shape:{x:y,y:_,width:0,height:0},style:{opacity:0}}}g&&v.add(c,g,l,0,u)}})}),$(this._storage,function(h,f){$(h,function(c,d){var p=a.lastsForAnimation[f][d],g={};p&&(c instanceof Ze?p.oldX!=null&&(g.x=c.x,g.y=c.y,c.x=p.oldX,c.y=p.oldY):(p.oldShape&&(g.shape=_e({},c.shape),c.setShape(p.oldShape)),p.fadein?(c.setStyle("opacity",0),g.style={opacity:1}):c.style.opacity!==1&&(g.style={opacity:1})),v.add(c,g,l,0,u))})},this),this._state="animating",v.finished(Ne(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),a||(a=this._controller=new af(e.getZr()),a.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),a.on("pan",Ne(this._onPan,this)),a.on("zoom",Ne(this._onZoom,this)));var n=new at(0,0,e.getWidth(),e.getHeight());a.setPointerChecker(function(o,s,l){return n.contain(s,l)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>xP||Math.abs(e.dy)>xP)){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var a=e.originX,i=e.originY,n=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,v=this._controllerHost;u=v.zoomLimit;var h=v.zoom=v.zoom||1;if(h*=n,u){var f=u.min||0,c=u.max||1/0;h=Math.max(Math.min(c,h),f)}var d=h/v.zoom;v.zoom=h;var p=this.seriesModel.layoutInfo;a-=p.x,i-=p.y;var g=xa();yi(g,g,[-a,-i]),bp(g,g,[d,d]),yi(g,g,[a,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(i){if(a._state==="ready"){var n=a.seriesModel.get("nodeClick",!0);if(n){var o=a.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(n==="zoomToNode")a._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),v=l.get("target",!0)||"blank";u&&Od(u,v)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,i){var n=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Xie(this.group))).render(e,a,i.node,function(o){n._state!=="animating"&&(tM(e.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rv(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t})(kt);function rv(){return{nodeGroup:[],background:[],content:[]}}function ine(r,t,e,a,i,n,o,s,l,u){if(!o)return;var v=o.getLayout(),h=r.getData(),f=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!v||!v.isInView)return;var c=v.width,d=v.height,p=v.borderWidth,g=v.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,x=v.upperHeight,S=_&&_.length,b=f.getModel("itemStyle"),w=f.getModel(["emphasis","itemStyle"]),A=f.getModel(["blur","itemStyle"]),T=f.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,M=G("nodeGroup",WT);if(!M)return;if(l.add(M),M.x=v.x||0,M.y=v.y||0,M.markRedraw(),jd(M).nodeWidth=c,jd(M).nodeHeight=d,v.isAboveViewRoot)return M;var L=G("background",_P,u,tne);L&&F(M,L,S&&v.upperLabelHeight);var D=f.getModel("emphasis"),P=D.get("focus"),I=D.get("blurScope"),R=D.get("disabled"),E=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(S)gh(M)&&cs(M,!1),L&&(cs(L,!R),h.setItemGraphicEl(o.dataIndex,L),hT(L,E,I));else{var k=G("content",_P,u,rne);k&&V(M,k),L.disableMorphing=!0,L&&gh(L)&&cs(L,!1),cs(M,!R),h.setItemGraphicEl(o.dataIndex,M);var B=f.getShallow("cursor");B&&k.attr("cursor",B),hT(M,E,I)}return M;function F(U,W,Y){var X=Xe(W);if(X.dataIndex=o.dataIndex,X.seriesIndex=r.seriesIndex,W.setShape({x:0,y:0,width:c,height:d,r:C}),g)N(W);else{W.invisible=!1;var K=o.getVisual("style"),Q=K.stroke,j=wP(b);j.fill=Q;var te=rs(w);te.fill=w.get("borderColor");var Z=rs(A);Z.fill=A.get("borderColor");var ee=rs(T);if(ee.fill=T.get("borderColor"),Y){var le=c-2*p;O(W,Q,K.opacity,{x:p,y:0,width:le,height:x})}else W.removeTextContent();W.setStyle(j),W.ensureState("emphasis").style=te,W.ensureState("blur").style=Z,W.ensureState("select").style=ee,Is(W)}U.add(W)}function V(U,W){var Y=Xe(W);Y.dataIndex=o.dataIndex,Y.seriesIndex=r.seriesIndex;var X=Math.max(c-2*p,0),K=Math.max(d-2*p,0);if(W.culling=!0,W.setShape({x:p,y:p,width:X,height:K,r:C}),g)N(W);else{W.invisible=!1;var Q=o.getVisual("style"),j=Q.fill,te=wP(b);te.fill=j,te.decal=Q.decal;var Z=rs(w),ee=rs(A),le=rs(T);O(W,j,Q.opacity,null),W.setStyle(te),W.ensureState("emphasis").style=Z,W.ensureState("blur").style=ee,W.ensureState("select").style=le,Is(W)}U.add(W)}function N(U){!U.invisible&&n.push(U)}function O(U,W,Y,X){var K=f.getModel(X?bP:SP),Q=_r(f.get("name"),null),j=K.getShallow("show");Gr(U,Cr(f,X?bP:SP),{defaultText:j?Q:null,inheritColor:W,defaultOpacity:Y,labelFetcher:r,labelDataIndex:o.dataIndex});var te=U.getTextContent();if(te){var Z=te.style,ee=xp(Z.padding||0);X&&(U.setTextConfig({layoutRect:X}),te.disableLabelLayout=!0),te.beforeUpdate=function(){var oe=Math.max((X?X.width:U.shape.width)-ee[1]-ee[3],0),fe=Math.max((X?X.height:U.shape.height)-ee[0]-ee[2],0);(Z.width!==oe||Z.height!==fe)&&te.setStyle({width:oe,height:fe})},Z.truncateMinChar=2,Z.lineOverflow="truncate",z(Z,X,v);var le=te.getState("emphasis");z(le?le.style:null,X,v)}}function z(U,W,Y){var X=U?U.text:null;if(!W&&Y.isLeafRoot&&X!=null){var K=r.get("drillDownIcon",!0);U.text=K?K+" "+X:X}}function G(U,W,Y,X){var K=y!=null&&e[U][y],Q=i[U];return K?(e[U][y]=null,q(Q,K)):g||(K=new W,K instanceof Za&&(K.z2=nne(Y,X)),H(Q,K)),t[U][m]=K}function q(U,W){var Y=U[m]={};W instanceof WT?(Y.oldX=W.x,Y.oldY=W.y):Y.oldShape=_e({},W.shape)}function H(U,W){var Y=U[m]={},X=o.parentNode,K=W instanceof Ze;if(X&&(!a||a.direction==="drillDown")){var Q=0,j=0,te=i.background[X.getRawIndex()];!a&&te&&te.oldShape&&(Q=te.oldShape.width,j=te.oldShape.height),K?(Y.oldX=0,Y.oldY=j):Y.oldShape={x:Q,y:j,width:0,height:0}}Y.fadein=!K}}function nne(r,t){return r*ene+t}var Dh=$,one=$e,Jd=-1,Ar=(function(){function r(t){var e=t.mappingMethod,a=t.type,i=this.option=Ye(t);this.type=a,this.mappingMethod=e,this._normalizeData=une[e];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(jm(i),sne(i)):e==="category"?i.categories?lne(i):jm(i,!0):(Kr(e!=="linear"||i.dataExtent),jm(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Ne(this._normalizeData,this)},r.listVisualTypes=function(){return ft(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){$e(t)?$(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var i,n=Se(t)?[]:$e(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(t){var e={},a;return t&&Dh(r.visualHandlers,function(i,n){t.hasOwnProperty(n)&&(e[n]=t[n],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(Se(t))t=t.slice();else if(one(t)){var e=[];Dh(t,function(a,i){e.push(i)}),t=e}else return[];return t.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var i,n=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||Re(l)&&l===t+"")return o;a&&f(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],v=u.interval,h=u.close;if(v){if(v[0]===-1/0){if(hc(h[1],t,v[1]))return o}else if(v[1]===1/0){if(hc(h[0],v[0],t))return o}else if(hc(h[0],v[0],t)&&hc(h[1],t,v[1]))return o;a&&f(v[0],o),a&&f(v[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:i;function f(c,d){var p=Math.abs(c-t);p<n&&(n=p,i=d)}},r.visualHandlers={color:{applyVisual:av("color"),getColorMapper:function(){var t=this.option;return Ne(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),Nv.call(this,e)}:function(e,a,i){var n=!!i;return!a&&(e=this._normalizeData(e)),i=Uv(e,t.parsedVisual,i),n?i:pi(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return pi(Uv(t,this.option.parsedVisual),"rgba")},category:Nv,piecewise:function(t,e){var a=$T.call(this,e);return a==null&&(a=pi(Uv(t,this.option.parsedVisual),"rgba")),a},fixed:as}},colorHue:vc(function(t,e){return Vl(t,e)}),colorSaturation:vc(function(t,e){return Vl(t,null,e)}),colorLightness:vc(function(t,e){return Vl(t,null,null,e)}),colorAlpha:vc(function(t,e){return hh(t,e)}),decal:{applyVisual:av("decal"),_normalizedToVisual:{linear:null,category:Nv,piecewise:null,fixed:null}},opacity:{applyVisual:av("opacity"),_normalizedToVisual:UT([0,1])},liftZ:{applyVisual:av("liftZ"),_normalizedToVisual:{linear:as,category:as,piecewise:as,fixed:as}},symbol:{applyVisual:function(t,e,a){var i=this.mapValueToVisual(t);a("symbol",i)},_normalizedToVisual:{linear:TP,category:Nv,piecewise:function(t,e){var a=$T.call(this,e);return a==null&&(a=TP.call(this,t)),a},fixed:as}},symbolSize:{applyVisual:av("symbolSize"),_normalizedToVisual:UT([0,1])}},r})();function sne(r){var t=r.pieceList;r.hasSpecialVisual=!1,$(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function lne(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Dh(t,function(o,s){e[o]=s}),!Se(a)){var i=[];$e(a)?Dh(a,function(o,s){var l=e[s];i[l!=null?l:Jd]=o}):i[Jd]=a,a=l8(r,i)}for(var n=t.length-1;n>=0;n--)a[n]==null&&(delete e[t[n]],t.pop())}function jm(r,t){var e=r.visual,a=[];$e(e)?Dh(e,function(n){a.push(n)}):e!=null&&a.push(e);var i={color:1,symbol:1};!t&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),l8(r,a)}function vc(r){return{applyVisual:function(t,e,a){var i=this.mapValueToVisual(t);a("color",r(e("color"),i))},_normalizedToVisual:UT([0,1])}}function TP(r){var t=this.option.visual;return t[Math.round(Pt(r,[0,1],[0,t.length-1],!0))]||{}}function av(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Nv(r){var t=this.option.visual;return t[this.option.loop&&r!==Jd?r%t.length:r]}function as(){return this.option.visual[0]}function UT(r){return{linear:function(t){return Pt(t,r,this.option.visual,!0)},category:Nv,piecewise:function(t,e){var a=$T.call(this,e);return a==null&&(a=Pt(t,r,this.option.visual,!0)),a},fixed:as}}function $T(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Ar.findPieceIndex(r,e),i=e[a];if(i&&i.visual)return i.visual[this.type]}}function l8(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=we(t,function(e){var a=sa(e);return a||[0,0,0,1]})),t}var une={linear:function(r){return Pt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ar.findPieceIndex(r,t,!0);if(e!=null)return Pt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?Jd:t},fixed:ir};function hc(r,t,e){return r?t<=e:t<e}var vne="itemStyle",u8=yt();const hne={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||v8(e,{},r.getViewRoot().getAncestors(),r)}};function v8(r,t,e,a){var i=r.getModel(),n=r.getLayout(),o=r.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=i.getModel(vne),l=fne(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),v=s.get("borderColor"),h=s.get("borderColorSaturation"),f;h!=null&&(f=AP(l),v=cne(h,f)),u.stroke=v;var c=r.viewChildren;if(!c||!c.length)f=AP(l),u.fill=f;else{var d=dne(r,i,n,s,l,c);$(c,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var m=pne(i,l,p,g,d,a);v8(p,m,e,a)}})}}}function fne(r,t,e){var a=_e({},t),i=e.designatedVisualItemStyle;return $(["color","colorAlpha","colorSaturation"],function(n){i[n]=t[n];var o=r.get(n);i[n]=null,o!=null&&(a[n]=o)}),a}function AP(r){var t=Jm(r,"color");if(t){var e=Jm(r,"colorAlpha"),a=Jm(r,"colorSaturation");return a&&(t=Vl(t,null,null,a)),e&&(t=hh(t,e)),t}}function cne(r,t){return t!=null?Vl(t,null,null,r):null}function Jm(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function dne(r,t,e,a,i,n){if(!(!n||!n.length)){var o=ey(t,"color")||i.color!=null&&i.color!=="none"&&(ey(t,"colorAlpha")||ey(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var v=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(v==="index"||v==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var f=new Ar(h);return u8(f).drColorMappingBy=v,f}}}function ey(r,t){var e=r.get(t);return Se(e)&&e.length?{name:t,range:e}:null}function pne(r,t,e,a,i,n){var o=_e({},t);if(i){var s=i.type,l=s==="color"&&u8(i).drColorMappingBy,u=l==="index"?a:l==="id"?n.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Lh=Math.max,ep=Math.min,CP=wr,rM=$,h8=["itemStyle","borderWidth"],gne=["itemStyle","gapWidth"],mne=["upperLabel","show"],yne=["upperLabel","height"];const _ne={seriesType:"treemap",reset:function(r,t,e,a){var i=e.getWidth(),n=e.getHeight(),o=r.option,s=dr(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=Ie(CP(s.width,l[0]),i),v=Ie(CP(s.height,l[1]),n),h=a&&a.type,f=["treemapZoomToNode","treemapRootToNode"],c=Mh(a,f,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=n8(p);if(h!=="treemapMove"){var m=h==="treemapZoomToNode"?Ane(r,c,p,u,v):d?[d.width,d.height]:[u,v],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(x),f8(p,_,!1,0),x=p.getLayout(),rM(g,function(b,w){var A=(g[w+1]||p).getValue();b.setLayout(_e({dataExtent:[A,A],borderWidth:0,upperHeight:0},x))})}var S=r.getData().tree.root;S.setLayout(Cne(s,d,c),!0),r.setLayoutInfo(s),c8(S,new at(-s.x,-s.y,i,n),g,p,0)}};function f8(r,t,e,a){var i,n;if(!r.isRemoved()){var o=r.getLayout();i=o.width,n=o.height;var s=r.getModel(),l=s.get(h8),u=s.get(gne)/2,v=d8(s),h=Math.max(l,v),f=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:v},!0),i=Lh(i-2*f,0),n=Lh(n-f-c,0);var d=i*n,p=xne(r,s,d,t,e,a);if(p.length){var g={x:f,y:c,width:i,height:n},m=ep(i,n),y=1/0,_=[];_.area=0;for(var x=0,S=p.length;x<S;){var b=p[x];_.push(b),_.area+=b.getLayout().area;var w=Tne(_,m,t.squareRatio);w<=y?(x++,y=w):(_.area-=_.pop().getLayout().area,MP(_,m,g,u,!1),m=ep(g.width,g.height),_.length=_.area=0,y=1/0)}if(_.length&&MP(_,m,g,u,!0),!e){var A=s.get("childrenVisibleMin");A!=null&&d<A&&(e=!0)}for(var x=0,S=p.length;x<S;x++)f8(p[x],t,e,a+1)}}}function xne(r,t,e,a,i,n){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=n;if(i&&!l)return r.viewChildren=[];o=Ct(o,function(c){return!c.isRemoved()}),bne(o,s);var u=wne(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Sne(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var v=0,h=o.length;v<h;v++){var f=o[v].getValue()/u.sum*e;o[v].setLayout({area:f})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Sne(r,t,e,a,i){if(!a)return e;for(var n=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[a==="asc"?o-l-1:l].getValue();u/e*t<n&&(s=l,e-=u)}return a==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function bne(r,t){return t&&r.sort(function(e,a){var i=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:i}),r}function wne(r,t,e){for(var a=0,i=0,n=t.length;i<n;i++)a+=t[i].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],rM(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function Tne(r,t,e){for(var a=0,i=1/0,n=0,o=void 0,s=r.length;n<s;n++)o=r[n].getLayout().area,o&&(o<i&&(i=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Lh(u*a/l,l/(u*i)):1/0}function MP(r,t,e,a,i){var n=t===e.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=e[s[n]],v=t?r.area/t:0;(i||v>e[l[o]])&&(v=e[l[o]]);for(var h=0,f=r.length;h<f;h++){var c=r[h],d={},p=v?c.getLayout().area/v:0,g=d[l[o]]=Lh(v-2*a,0),m=e[s[n]]+e[l[n]]-u,y=h===f-1||m<p?m:p,_=d[l[n]]=Lh(y-2*a,0);d[s[o]]=e[s[o]]+ep(a,g/2),d[s[n]]=u+ep(a,_/2),u+=y,c.setLayout(d,!0)}e[s[o]]+=v,e[l[o]]-=v}function Ane(r,t,e,a,i){var n=(t||{}).node,o=[a,i];if(!n||n===e)return o;for(var s,l=a*i,u=l*r.option.zoomToNodeRatio;s=n.parentNode;){for(var v=0,h=s.children,f=0,c=h.length;f<c;f++)v+=h[f].getValue();var d=n.getValue();if(d===0)return o;u*=v/d;var p=s.getModel(),g=p.get(h8),m=Math.max(g,d8(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>rT&&(u=rT),n=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[a*y,i*y]}function Cne(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var i=e.node,n=i.getLayout();if(!n)return a;for(var o=[n.width/2,n.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function c8(r,t,e,a,i){var n=r.getLayout(),o=e[i],s=o&&o===r;if(!(o&&!s||i===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(n),isAboveViewRoot:s},!0);var l=new at(t.x-n.x,t.y-n.y,t.width,t.height);rM(r.viewChildren||[],function(u){c8(u,l,e,a,i+1)})}}function d8(r){return r.get(mne)?r.get(yne):0}function Mne(r){r.registerSeriesModel($ie),r.registerChartView(ane),r.registerVisual(hne),r.registerLayout(_ne),Uie(r)}function Dne(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),i=e.getGraph(),n=i.data,o=a.mapArray(a.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){bt(u)&&(u=o[u]);for(var v=0;v<t.length;v++)if(!t[v].isSelected(u))return!1}return!0})})}function Lne(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),i=e.getData(),n={};a.each(function(o){var s=a.getName(o);n["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var v=["symbol","symbolSize","symbolKeepAspect"],h=0;h<v.length;h++){var f=l.getShallow(v[h],!0);f!=null&&a.setItemVisual(o,v[h],f)}}),a.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){Re(l)&&(l=n["ec-"+l]);var u=a.getItemVisual(l,"style"),v=i.ensureUniqueItemVisual(o,"style");_e(v,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],f=0;f<h.length;f++)i.setItemVisual(o,h[f],a.getItemVisual(l,h[f]))}})})}function fc(r){return r instanceof Array||(r=[r,r]),r}function Ine(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),i=fc(t.get("edgeSymbol")),n=fc(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",i&&i[0]),a.setVisual("toSymbol",i&&i[1]),a.setVisual("fromSymbolSize",n&&n[0]),a.setVisual("toSymbolSize",n&&n[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=fc(s.getShallow("symbol",!0)),v=fc(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),f=a.ensureUniqueItemVisual(o,"style");switch(_e(f,h),f.stroke){case"source":{var c=l.node1.getVisual("style");f.stroke=c&&c.fill;break}case"target":{var c=l.node2.getVisual("style");f.stroke=c&&c.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),v[0]&&l.setVisual("fromSymbolSize",v[0]),v[1]&&l.setVisual("toSymbolSize",v[1])})})}var YT="-->",tg=function(r){return r.get("autoCurveness")||null},p8=function(r,t){var e=tg(r),a=20,i=[];if(bt(e))a=e;else if(Se(e)){r.__curvenessList=e;return}t>a&&(a=t);var n=a%2?a+2:a+3;i=[];for(var o=0;o<n;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},Ih=function(r,t,e){var a=[r.id,r.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,a,i].join(YT)},g8=function(r){var t=r.split(YT);return[t[0],t[2],t[1]].join(YT)},Pne=function(r,t){var e=Ih(r.node1,r.node2,t);return t.__edgeMap[e]},Rne=function(r,t){var e=ZT(Ih(r.node1,r.node2,t),t),a=ZT(Ih(r.node2,r.node1,t),t);return e+a},ZT=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function Ene(r){tg(r)&&(r.__curvenessList=[],r.__edgeMap={},p8(r))}function kne(r,t,e,a){if(tg(e)){var i=Ih(r,t,e),n=e.__edgeMap,o=n[g8(i)];n[i]&&!o?n[i].isForward=!0:o&&n[i]&&(o.isForward=!0,n[i].isForward=!1),n[i]=n[i]||[],n[i].push(a)}}function aM(r,t,e,a){var i=tg(t),n=Se(i);if(!i)return null;var o=Pne(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=Rne(r,t);p8(t,u),r.lineStyle=r.lineStyle||{};var v=Ih(r.node1,r.node2,t),h=t.__curvenessList,f=n||u%2?0:1;if(o.isForward)return h[f+s];var c=g8(v),d=ZT(c,t),p=h[s+d+f];return a?n?i&&i[0]===0?(d+f)%2?p:-p:((d%2?0:1)+f)%2?p:-p:(d+f)%2?p:-p:h[s+d+f]}function m8(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var i=a.getModel();a.setLayout([+i.get("x"),+i.get("y")])}),iM(e,r)}}function iM(r,t){r.eachEdge(function(e,a){var i=ci(e.getModel().get(["lineStyle","curveness"]),-aM(e,t,a,!0),0),n=qi(e.node1.getLayout()),o=qi(e.node2.getLayout()),s=[n,o];+i&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*i,(n[1]+o[1])/2-(o[0]-n[0])*i]),e.setLayout(s)})}function One(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var n=e.getData(),o=[];$(i.dimensions,function(f){o=o.concat(n.mapDimensionsAll(f))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,v=0;v<o.length;v++){var h=n.get(o[v],s);isNaN(h)||(u=!0),l.push(h)}u?n.setItemLayout(s,i.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}iM(n.graph,e)}else(!a||a==="none")&&m8(e)})}function zv(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,i=t.getZoom(),n=(i-1)*e+1;return n/a}function Bv(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var DP=Math.PI,ty=[];function nM(r,t,e,a){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var n=i.getBoundingRect(),o=r.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,v=Math.min(n.width,n.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(e){var f=i.pointToData(a),c=f[0],d=f[1],p=[c-l,d-u];Os(p,p),Hv(p,p,v),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);y8(e,g,l,u)}Nne[t](r,s,o,v,l,u,h),s.eachEdge(function(m,y){var _=ci(m.getModel().get(["lineStyle","curveness"]),aM(m,r,y),0),x=qi(m.node1.getLayout()),S=qi(m.node2.getLayout()),b,w=(x[0]+S[0])/2,A=(x[1]+S[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+A*(1-_)]),m.setLayout([x,S,b])})}}}var Nne={value:function(r,t,e,a,i,n,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(v){var h=v.getValue("value"),f=u*(l?h:1)/2;s+=f,v.setLayout([a*Math.cos(s)+i,a*Math.sin(s)+n]),s+=f})},symbolSize:function(r,t,e,a,i,n,o){var s=0;ty.length=o;var l=zv(r);t.eachNode(function(h){var f=Bv(h);isNaN(f)&&(f=2),f<0&&(f=0),f*=l;var c=Math.asin(f/2/a);isNaN(c)&&(c=DP/2),ty[h.dataIndex]=c,s+=c*2});var u=(2*DP-s)/o/2,v=0;t.eachNode(function(h){var f=u+ty[h.dataIndex];v+=f,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(v)+i,a*Math.sin(v)+n]),v+=f})}};function y8(r,t,e,a){var i=r.getGraphicEl();if(i){var n=r.getModel(),o=n.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var v=l[0]<e;v&&(u=u-Math.PI);var h=v?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var f=s.ensureState("emphasis");_e(f.textConfig||(f.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function zne(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&nM(t,"symbolSize")})}var dl=yd;function Bne(r,t,e){for(var a=r,i=t,n=e.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=e.gravity==null?.1:e.gravity,v=0;v<a.length;v++){var h=a[v];h.p||(h.p=fo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=qi(h.p),h.edges=null}var f=e.friction==null?.6:e.friction,c=f,d,p;return{warmUp:function(){c=f*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,i);for(var m=[],y=a.length,_=0;_<i.length;_++){var x=i[_];if(!x.ignoreForceLayout){var S=x.n1,b=x.n2;$n(m,b.p,S.p);var w=lh(m)-x.d,A=b.w/(S.w+b.w);isNaN(A)&&(A=0),Os(m,m),!S.fixed&&dl(S.p,S.p,m,A*w*c),!b.fixed&&dl(b.p,b.p,m,-(1-A)*w*c)}}for(var _=0;_<y;_++){var T=a[_];T.fixed||($n(m,l,T.p),dl(T.p,T.p,m,u*c))}for(var _=0;_<y;_++)for(var S=a[_],C=_+1;C<y;C++){var b=a[C];$n(m,b.p,S.p);var w=lh(m);w===0&&(V4(m,Math.random()-.5,Math.random()-.5),w=1);var M=(S.rep+b.rep)/w/w;!S.fixed&&dl(S.pp,S.pp,m,M),!b.fixed&&dl(b.pp,b.pp,m,-M)}for(var L=[],_=0;_<y;_++){var T=a[_];T.fixed||($n(L,T.p,T.pp),dl(T.p,T.p,L,c),$r(T.pp,T.p))}c=c*.992;var D=c<.01;p&&p(a,i,D),g&&g(D)}}}function Vne(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},i=t.getGraph(),n=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?n.each(function(_){var x=n.getId(_);n.setItemLayout(_,a[x]||[NaN,NaN])}):!l||l==="none"?m8(t):l==="circular"&&nM(t,"value");var u=n.getDataExtent("value"),v=o.getDataExtent("value"),h=s.get("repulsion"),f=s.get("edgeLength"),c=Se(h)?h:[h,h],d=Se(f)?f:[f,f];d=[d[1],d[0]];var p=n.mapArray("value",function(_,x){var S=n.getItemLayout(x),b=Pt(_,u,c);return isNaN(b)&&(b=(c[0]+c[1])/2),{w:b,rep:b,fixed:n.getItemModel(x).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),g=o.mapArray("value",function(_,x){var S=i.getEdgeByIndex(x),b=Pt(_,v,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=S.getModel(),A=ci(S.getModel().get(["lineStyle","curveness"]),-aM(S,t,x,!0),0);return{n1:p[S.node1.dataIndex],n2:p[S.node2.dataIndex],d:b,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),m=e.getBoundingRect(),y=Bne(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(_,x){for(var S=0,b=_.length;S<b;S++)_[S].fixed&&$r(_[S].p,i.getNodeByIndex(S).getLayout())}),y.afterStep(function(_,x,S){for(var b=0,w=_.length;b<w;b++)_[b].fixed||i.getNodeByIndex(b).setLayout(_[b].p),a[n.getId(b)]=_[b].p;for(var b=0,w=x.length;b<w;b++){var A=x[b],T=i.getEdgeByIndex(b),C=A.n1.p,M=A.n2.p,L=T.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],$r(L[0],C),$r(L[1],M),+A.curveness&&(L[2]=[(C[0]+M[0])/2-(C[1]-M[1])*A.curveness,(C[1]+M[1])/2-(M[0]-C[0])*A.curveness]),T.setLayout(L)}}),t.forceLayout=y,t.preservedPoints=a,y.step()}else t.forceLayout=null})}function Gne(r,t,e){var a=_e(r.getBoxLayoutParams(),{aspect:e});return dr(a,{width:t.getWidth(),height:t.getHeight()})}function Fne(r,t){var e=[];return r.eachSeriesByType("graph",function(a){var i=a.get("coordinateSystem");if(!i||i==="view"){var n=a.getData(),o=n.mapArray(function(g){var m=n.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];Ip(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),v=Gne(a,t,u);isNaN(u)&&(s=[v.x,v.y],l=[v.x+v.width,v.y+v.height]);var h=l[0]-s[0],f=l[1]-s[1],c=v.width,d=v.height,p=a.coordinateSystem=new nf;p.zoomLimit=a.get("scaleLimit"),p.setBoundingRect(s[0],s[1],h,f),p.setViewRect(v.x,v.y,c,d),p.setCenter(a.get("center"),t),p.setZoom(a.get("zoom")),e.push(p)}}),e}var LP=xr.prototype,ry=su.prototype,_8=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(_8);function ay(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Hne=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _8},t.prototype.buildPath=function(e,a){ay(a)?LP.buildPath.call(this,e,a):ry.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return ay(this.shape)?LP.pointAt.call(this,e):ry.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,i=ay(a)?[a.x2-a.x1,a.y2-a.y1]:ry.tangentAt.call(this,e);return Os(i,i)},t})(ht),iy=["fromSymbol","toSymbol"];function IP(r){return"_"+r+"Type"}function PP(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var i=t.getItemVisual(e,r+"Size"),n=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=yu(i),u=Gs(o||0,l);return a+l+u+(n||"")+(s||"")}function RP(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var i=t.getItemVisual(e,r+"Size"),n=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=yu(i),u=Gs(o||0,l),v=lr(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return v.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,v.name=r,v}}function qne(r){var t=new Hne({name:"line",subPixelOptimize:!0});return XT(t.shape,r),t}function XT(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var oM=(function(r){he(t,r);function t(e,a,i){var n=r.call(this)||this;return n._createLine(e,a,i),n}return t.prototype._createLine=function(e,a,i){var n=e.hostModel,o=e.getItemLayout(a),s=qne(o);s.shape.percent=0,$t(s,{shape:{percent:1}},n,a),this.add(s),$(iy,function(l){var u=RP(l,e,a);this.add(u),this[IP(l)]=PP(l,e,a)},this),this._updateCommonStl(e,a,i)},t.prototype.updateData=function(e,a,i){var n=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};XT(l.shape,s),wt(o,l,n,a),$(iy,function(u){var v=PP(u,e,a),h=IP(u);if(this[h]!==v){this.remove(this.childOfName(u));var f=RP(u,e,a);this.add(f)}this[h]=v},this),this._updateCommonStl(e,a,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,i){var n=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,v=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,f=i&&i.focus,c=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),f=p.get("focus"),c=p.get("blurScope"),v=Cr(d)}var g=e.getItemVisual(a,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,$(iy,function(b){var w=this.childOfName(b);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var A=0;A<va.length;A++){var T=va[A],C=o.getState(T);if(C){var M=C.style||{},L=w.ensureState(T),D=L.style||(L.style={});M.stroke!=null&&(D[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(D.opacity=M.opacity)}}w.markRedraw()}},this);var y=n.getRawValue(a);Gr(this,v,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,w){return n.getFormattedLabel(b,w,e.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?e.getName(a):isFinite(y)?ar(y):y)+""});var _=this.getTextContent();if(_){var x=v.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");Se(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),tr(this,f,c,h)},t.prototype.highlight=function(){xn(this)},t.prototype.downplay=function(){Sn(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");XT(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),n=e.getTextContent();if(!a&&!i&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,v=l.pointAt(0),h=l.pointAt(u),f=$n([],h,v);Os(f,f);function c(C,M){var L=C.__specifiedRotation;if(L==null){var D=l.tangentAt(M);C.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else C.attr("rotation",L)}if(a&&(a.setPosition(v),c(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&(i.setPosition(h),c(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var d=void 0,p=void 0,g=n.__labelDistance,m=g[0]*o,y=g[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],b=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w=x[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var A=-Math.atan2(x[1],x[0]);h[0]<v[0]&&(A=Math.PI+A),n.rotation=A}var T=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=y,p="top";break;default:T=0,p="middle"}switch(n.__position){case"end":n.x=f[0]*m+h[0],n.y=f[1]*y+h[1],d=f[0]>.8?"left":f[0]<-.8?"right":"center",p=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":n.x=-f[0]*m+v[0],n.y=-f[1]*y+v[1],d=f[0]>.8?"right":f[0]<-.8?"left":"center",p=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=m*w+v[0],n.y=v[1]+T,d=x[0]<0?"right":"left",n.originX=-m*w,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+T,d="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-m*w+h[0],n.y=h[1]+T,d=x[0]>=0?"right":"left",n.originX=m*w,n.originY=-T;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||p,align:n.__align||d})}},t})(Ze),sM=(function(){function r(t){this.group=new Ze,this._LineCtor=t||oM}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=t,n||i.removeAll();var o=EP(t);t.diff(n).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(n,t,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=EP(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!Wne(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var n=e.getItemLayout(i);if(ny(n)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){po(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var i=t.getItemLayout(e);if(ny(i)){var n=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,n),this.group.add(n)}},r.prototype._doUpdate=function(t,e,a,i,n){var o=t.getItemGraphicEl(a);if(!ny(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,n):o=new this._LineCtor(e,i,n),e.setItemGraphicEl(i,o),this.group.add(o)},r})();function Wne(r){return r.animators&&r.animators.length>0}function EP(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Cr(t)}}function kP(r){return isNaN(r[0])||isNaN(r[1])}function ny(r){return r&&!kP(r[0])&&!kP(r[1])}var oy=[],sy=[],ly=[],pl=kr,uy=Jn,OP=Math.abs;function NP(r,t,e){for(var a=r[0],i=r[1],n=r[2],o=1/0,s,l=e*e,u=.1,v=.1;v<=.9;v+=.1){oy[0]=pl(a[0],i[0],n[0],v),oy[1]=pl(a[1],i[1],n[1],v);var h=OP(uy(oy,t)-l);h<o&&(o=h,s=v)}for(var f=0;f<32;f++){var c=s+u;sy[0]=pl(a[0],i[0],n[0],s),sy[1]=pl(a[1],i[1],n[1],s),ly[0]=pl(a[0],i[0],n[0],c),ly[1]=pl(a[1],i[1],n[1],c);var h=uy(sy,t)-l;if(OP(h)<.01)break;var d=uy(ly,t)-l;u/=2,h<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function vy(r,t){var e=[],a=uh,i=[[],[],[]],n=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),v=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[qi(u[0]),qi(u[1])],u[2]&&u.__original.push(qi(u[2])));var f=u.__original;if(u[2]!=null){if($r(i[0],f[0]),$r(i[1],f[2]),$r(i[2],f[1]),v&&v!=="none"){var c=Bv(s.node1),d=NP(i,f[0],c*t);a(i[0][0],i[1][0],i[2][0],d,e),i[0][0]=e[3],i[1][0]=e[4],a(i[0][1],i[1][1],i[2][1],d,e),i[0][1]=e[3],i[1][1]=e[4]}if(h&&h!=="none"){var c=Bv(s.node2),d=NP(i,f[1],c*t);a(i[0][0],i[1][0],i[2][0],d,e),i[1][0]=e[1],i[2][0]=e[2],a(i[0][1],i[1][1],i[2][1],d,e),i[1][1]=e[1],i[2][1]=e[2]}$r(u[0],i[0]),$r(u[1],i[2]),$r(u[2],i[1])}else{if($r(n[0],f[0]),$r(n[1],f[1]),$n(o,n[1],n[0]),Os(o,o),v&&v!=="none"){var c=Bv(s.node1);yd(n[0],n[0],o,c*t)}if(h&&h!=="none"){var c=Bv(s.node2);yd(n[1],n[1],o,-c*t)}$r(u[0],n[0]),$r(u[1],n[1])}})}function zP(r){return r.type==="view"}var Une=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var i=new jh,n=new sM,o=this.group;this._controller=new af(a.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},t.prototype.render=function(e,a,i){var n=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(zP(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(v):wt(u,v,e)}vy(e.getGraph(),zv(e));var h=e.getData();s.updateData(h);var f=e.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(e,a,i),clearTimeout(this._layoutTimeout);var c=e.forceLayout,d=e.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=e.get("layout");h.graph.eachNode(function(_){var x=_.dataIndex,S=_.getGraphicEl(),b=_.getModel();if(S){S.off("drag").off("dragend");var w=b.get("draggable");w&&S.on("drag",function(T){switch(p){case"force":c.warmUp(),!n._layouting&&n._startForceLayoutIteration(c,d),c.setFixed(x),h.setItemLayout(x,[S.x,S.y]);break;case"circular":h.setItemLayout(x,[S.x,S.y]),_.setLayout({fixed:!0},!0),nM(e,"symbolSize",_,[T.offsetX,T.offsetY]),n.updateLayout(e);break;default:h.setItemLayout(x,[S.x,S.y]),iM(e.getGraph(),e),n.updateLayout(e);break}}).on("dragend",function(){c&&c.setUnfixed(x)}),S.setDraggable(w,!!b.get("cursor"));var A=b.get(["emphasis","focus"]);A==="adjacency"&&(Xe(S).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var x=_.getGraphicEl(),S=_.getModel().get(["emphasis","focus"]);x&&S==="adjacency"&&(Xe(x).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=h.getLayout("cx"),y=h.getLayout("cy");h.graph.eachNode(function(_){y8(_,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a){var i=this;(function n(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(a?i._layoutTimeout=setTimeout(n,16):n())})})()},t.prototype._updateController=function(e,a,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,v,h){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(v,h)&&!jp(u,i,e)}),!zP(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){XC(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){KC(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),vy(e.getGraph(),zv(e)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),i=zv(e);a.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},t.prototype.updateLayout=function(e){vy(e.getGraph(),zv(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(kt);function gl(r){return"_EC_"+r}var $ne=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[gl(t)]){var i=new is(t,e);return i.hostGraph=this,this.nodes.push(i),a[gl(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[gl(t)]},r.prototype.addEdge=function(t,e,a){var i=this._nodesMap,n=this._edgesMap;if(bt(t)&&(t=this.nodes[t]),bt(e)&&(e=this.nodes[e]),t instanceof is||(t=i[gl(t)]),e instanceof is||(e=i[gl(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new x8(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof is&&(t=t.id),e instanceof is&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,i=a.length,n=0;n<i;n++)a[n].dataIndex>=0&&t.call(e,a[n],n)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,i=a.length,n=0;n<i;n++)a[n].dataIndex>=0&&a[n].node1.dataIndex>=0&&a[n].node2.dataIndex>=0&&t.call(e,a[n],n)},r.prototype.breadthFirstTraverse=function(t,e,a,i){if(e instanceof is||(e=this._nodesMap[gl(e)]),!!e){for(var n=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[n],o=0;o<u.length;o++){var v=u[o],h=v.node1===l?v.node2:v.node1;if(!h.__visited){if(t.call(i,h,l))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,i=this.edges,n=0,o=a.length;n<o;n++)a[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)a[t.getRawIndex(n)].dataIndex=n;e.filterSelf(function(s){var l=i[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n<o;n++)i[n].dataIndex=-1;for(var n=0,o=e.count();n<o;n++)i[e.getRawIndex(n)].dataIndex=n},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<a.length;i++){var n=a[i];t.addEdge(n.node1.id,n.node2.id,n.dataIndex)}return t},r})(),is=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=e==null?-1:e}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=Ge(),e=Ge(),a=0;a<this.edges.length;a++){var i=this.edges[a];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var n=[i.node1],o=[i.node2],s=0;s<n.length;){var l=n[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),n.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var v=o[s];s++,e.set(v.dataIndex,!0);for(var u=0;u<v.outEdges.length;u++)t.set(v.outEdges[u].dataIndex,!0),o.push(v.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r})(),x8=(function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a==null?-1:a}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=Ge(),e=Ge();t.set(this.dataIndex,!0);for(var a=[this.node1],i=[this.node2],n=0;n<a.length;){var o=a[n];n++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(n=0;n<i.length;){var l=i[n];n++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r})();function S8(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}nr(is,S8("hostGraph","data"));nr(x8,S8("hostGraph","edgeData"));function b8(r,t,e,a,i){for(var n=new $ne(a),o=0;o<r.length;o++)n.addNode(wr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var v=t[o],h=v.source,f=v.target;n.addEdge(h,f,u)&&(l.push(v),s.push(wr(_r(v.id,null),h+" > "+f)),u++)}var c=e.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=Qi(r,e);else{var p=pu.get(c),g=p?p.dimensions||[]:[];nt(g,"value")<0&&g.concat(["value"]);var m=_u(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Xr(m,e),d.initData(r)}var y=new Xr(["value"],e);return y.initData(l,s),i&&i(d,y),a8({mainData:d,struct:n,structAttr:"graph",datas:{node:d,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var Yne=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function i(){return a._categoriesData}this.legendVisualProvider=new rf(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ms(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var i=e.edges||e.links||[],n=e.data||e.nodes||[],o=this;if(n&&i){Ene(this);var s=b8(n,i,this,!0,l);return $(s.edges,function(u){kne(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,v){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),m=p[g];return m&&(m.parentModel=d.parentModel,d.parentModel=m),d});var h=Mt.prototype.getModel;function f(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}v.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=f,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(e,i),s=n.graph.getEdgeByIndex(e),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Mr("nameValue",{name:v.join(" > "),value:o.value,noValue:o.value==null})}var h=aU({series:this,dataIndex:e,multipleSeries:a});return h},t.prototype._updateCategoriesData=function(){var e=we(this.option.categories||[],function(i){return i.value!=null?i:_e({value:0},i)}),a=new Xr(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(i){return a.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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},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"}}},t})(zt),Zne={type:"graphRoam",event:"graphRoam",update:"none"};function Xne(r){r.registerChartView(Une),r.registerSeriesModel(Yne),r.registerProcessor(Dne),r.registerVisual(Lne),r.registerVisual(Ine),r.registerLayout(One),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,zne),r.registerLayout(Vne),r.registerCoordinateSystem("graphView",{dimensions:nf.dimensions,create:Fne}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ir),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ir),r.registerAction(Zne,function(t,e,a){e.eachComponent({mainType:"series",query:t},function(i){var n=i.coordinateSystem,o=jC(n,t,void 0,a);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Kne=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),Qne=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new Kne},t.prototype.buildPath=function(e,a){var i=Math.cos,n=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-i(l)*s*(s>=o/3?1:2),v=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,v),e.lineTo(a.x+i(l)*s,a.y+n(l)*s),e.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),e.lineTo(a.x-i(l)*s,a.y-n(l)*s),e.lineTo(u,v)},t})(ht);function jne(r,t){var e=r.get("center"),a=t.getWidth(),i=t.getHeight(),n=Math.min(a,i),o=Ie(e[0],t.getWidth()),s=Ie(e[1],t.getHeight()),l=Ie(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function cc(r,t){var e=r==null?"":r+"";return t&&(Re(t)?e=t.replace("{value}",e):He(t)&&(e=t(r))),e}var Jne=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){this.group.removeAll();var n=e.get(["axisLine","lineStyle","color"]),o=jne(e,i);this._renderMain(e,a,i,n,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,i,n,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,v=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),f=h.get("roundCap"),c=f?Xd:Qr,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),m=[u,v];XA(m,!l),u=m[0],v=m[1];for(var y=v-u,_=u,x=[],S=0;d&&S<n.length;S++){var b=Math.min(Math.max(n[S][0],0),1);v=u+y*b;var w=new c({shape:{startAngle:_,endAngle:v,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:n[S][1]}),w.setStyle(p.getLineStyle(["color","width"])),x.push(w),_=v}x.reverse(),$(x,function(T){return s.add(T)});var A=function(T){if(T<=0)return n[0][1];var C;for(C=0;C<n.length;C++)if(n[C][0]>=T&&(C===0?0:n[C-1][0])<T)return n[C][1];return n[C-1][1]};this._renderTicks(e,a,i,A,o,u,v,l,g),this._renderTitleAndDetail(e,a,i,A,o),this._renderAnchor(e,o),this._renderPointer(e,a,i,A,o,u,v,l,g)},t.prototype._renderTicks=function(e,a,i,n,o,s,l,u,v){for(var h=this.group,f=o.cx,c=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),m=e.getModel("splitLine"),y=e.getModel("axisTick"),_=e.getModel("axisLabel"),x=e.get("splitNumber"),S=y.get("splitNumber"),b=Ie(m.get("length"),d),w=Ie(y.get("length"),d),A=s,T=(l-s)/x,C=T/S,M=m.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),D=m.get("distance"),P,I,R=0;R<=x;R++){if(P=Math.cos(A),I=Math.sin(A),m.get("show")){var E=D?D+v:v,k=new xr({shape:{x1:P*(d-E)+f,y1:I*(d-E)+c,x2:P*(d-b-E)+f,y2:I*(d-b-E)+c},style:M,silent:!0});M.stroke==="auto"&&k.setStyle({stroke:n(R/x)}),h.add(k)}if(_.get("show")){var E=_.get("distance")+D,B=cc(ar(R/x*(g-p)+p),_.get("formatter")),F=n(R/x),V=P*(d-b-E)+f,N=I*(d-b-E)+c,O=_.get("rotate"),z=0;O==="radial"?(z=-A+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):O==="tangential"?z=-A-Math.PI/2:bt(O)&&(z=O*Math.PI/180),z===0?h.add(new pt({style:Ht(_,{text:B,x:V,y:N,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new pt({style:Ht(_,{text:B,x:V,y:N,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:V,originY:N,rotation:z}))}if(y.get("show")&&R!==x){var E=y.get("distance");E=E?E+v:v;for(var G=0;G<=S;G++){P=Math.cos(A),I=Math.sin(A);var q=new xr({shape:{x1:P*(d-E)+f,y1:I*(d-E)+c,x2:P*(d-w-E)+f,y2:I*(d-w-E)+c},silent:!0,style:L});L.stroke==="auto"&&q.setStyle({stroke:n((R+G/S)/x)}),h.add(q),A+=C}A-=C}else A+=T}},t.prototype._renderPointer=function(e,a,i,n,o,s,l,u,v){var h=this.group,f=this._data,c=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),y=e.getData(),_=y.mapDimension("value"),x=+e.get("min"),S=+e.get("max"),b=[x,S],w=[s,l];function A(C,M){var L=y.getItemModel(C),D=L.getModel("pointer"),P=Ie(D.get("width"),o.r),I=Ie(D.get("length"),o.r),R=e.get(["pointer","icon"]),E=D.get("offsetCenter"),k=Ie(E[0],o.r),B=Ie(E[1],o.r),F=D.get("keepAspect"),V;return R?V=lr(R,k-P/2,B-I,P,I,null,F):V=new Qne({shape:{angle:-Math.PI/2,width:P,r:I,x:k,y:B}}),V.rotation=-(M+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function T(C,M){var L=g.get("roundCap"),D=L?Xd:Qr,P=g.get("overlap"),I=P?g.get("width"):v/y.count(),R=P?o.r-I:o.r-(C+1)*I,E=P?o.r:o.r-C*I,k=new D({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:E}});return P&&(k.z2=Pt(y.get(_,C),[x,S],[100,0],!0)),k}(m||p)&&(y.diff(f).add(function(C){var M=y.get(_,C);if(p){var L=A(C,s);$t(L,{rotation:-((isNaN(+M)?w[0]:Pt(M,b,w,!0))+Math.PI/2)},e),h.add(L),y.setItemGraphicEl(C,L)}if(m){var D=T(C,s),P=g.get("clip");$t(D,{shape:{endAngle:Pt(M,b,w,P)}},e),h.add(D),lT(e.seriesIndex,y.dataType,C,D),d[C]=D}}).update(function(C,M){var L=y.get(_,C);if(p){var D=f.getItemGraphicEl(M),P=D?D.rotation:s,I=A(C,P);I.rotation=P,wt(I,{rotation:-((isNaN(+L)?w[0]:Pt(L,b,w,!0))+Math.PI/2)},e),h.add(I),y.setItemGraphicEl(C,I)}if(m){var R=c[M],E=R?R.shape.endAngle:s,k=T(C,E),B=g.get("clip");wt(k,{shape:{endAngle:Pt(L,b,w,B)}},e),h.add(k),lT(e.seriesIndex,y.dataType,C,k),d[C]=k}}).execute(),y.each(function(C){var M=y.getItemModel(C),L=M.getModel("emphasis"),D=L.get("focus"),P=L.get("blurScope"),I=L.get("disabled");if(p){var R=y.getItemGraphicEl(C),E=y.getItemVisual(C,"style"),k=E.fill;if(R instanceof Dr){var B=R.style;R.useStyle(_e({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},E))}else R.useStyle(E),R.type!=="pointer"&&R.setColor(k);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",n(Pt(y.get(_,C),b,[0,1],!0))),R.z2EmphasisLift=0,Vr(R,M),tr(R,D,P,I)}if(m){var F=d[C];F.useStyle(y.getItemVisual(C,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,Vr(F,M),tr(F,D,P,I)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var i=e.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),v=lr(s,a.cx-o/2+Ie(l[0],a.r),a.cy-o/2+Ie(l[1],a.r),o,o,null,u);v.z2=i.get("showAbove")?1:0,v.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(v)}},t.prototype._renderTitleAndDetail=function(e,a,i,n,o){var s=this,l=e.getData(),u=l.mapDimension("value"),v=+e.get("min"),h=+e.get("max"),f=new Ze,c=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){c[m]=new pt({silent:!0}),d[m]=new pt({silent:!0})}).update(function(m,y){c[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),x=new Ze,S=n(Pt(_,[v,h],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),A=o.cx+Ie(w[0],o.r),T=o.cy+Ie(w[1],o.r),C=c[m];C.attr({z2:g?0:2,style:Ht(b,{x:A,y:T,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var M=y.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),D=o.cx+Ie(L[0],o.r),P=o.cy+Ie(L[1],o.r),I=Ie(M.get("width"),o.r),R=Ie(M.get("height"),o.r),E=e.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,C=d[m],k=M.get("formatter");C.attr({z2:g?0:2,style:Ht(M,{x:D,y:P,text:cc(_,k),width:isNaN(I)?null:I,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:E})}),vW(C,{normal:M},_,function(F){return cc(F,k)}),p&&hW(C,m,l,e,{getFormattedLabel:function(F,V,N,O,z,G){return cc(G?G.interpolatedValue:_,k)}}),x.add(C)}f.add(x)}),this.group.add(f),this._titleEls=c,this._detailEls=d},t.type="gauge",t})(kt),eoe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return bu(this,["value"])},t.type="series.gauge",t.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}},t})(zt);function toe(r){r.registerChartView(Jne),r.registerSeriesModel(eoe)}var roe=["itemStyle","opacity"],aoe=(function(r){he(t,r);function t(e,a){var i=r.call(this)||this,n=i,o=new ea,s=new pt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,a,!0),i}return t.prototype.updateData=function(e,a,i){var n=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),v=s.get(roe);v=v==null?1:v,i||xi(n),n.useStyle(e.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,$t(n,{style:{opacity:v}},o,a)):wt(n,{style:{opacity:v},shape:{points:l.points}},o,a),Vr(n,s),this._updateLabel(e,a),tr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),v=u.label,h=e.getItemVisual(a,"style"),f=h.fill;Gr(o,Cr(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:e.getName(a)},{normal:{align:v.textAlign,verticalAlign:v.verticalAlign}}),i.setTextConfig({local:!0,inside:!!v.inside,insideStroke:f,outsideFill:f});var c=v.linePoints;n.setShape({points:c}),i.textGuideLineConfig={anchor:c?new rt(c[0][0],c[0][1]):null},wt(o,{style:{x:v.x,y:v.y}},s,a),o.attr({rotation:v.rotation,originX:v.x,originY:v.y,z2:10}),WC(i,UC(l),{stroke:f})},t})(jr),ioe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new aoe(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var v=o.getItemGraphicEl(u);v.updateData(n,l),s.add(v),n.setItemGraphicEl(l,v)}).remove(function(l){var u=o.getItemGraphicEl(l);mh(u,e,l)}).execute(),this._data=n},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(kt),noe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new rf(Ne(this.getData,this),Ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return bu(this,{coordDimensions:["value"],encodeDefaulter:et(yC,this)})},t.prototype._defaultLabelLine=function(e){Ms(e,"labelLine",["show"]);var a=e.labelLine,i=e.emphasis.labelLine;a.show=a.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),i=r.prototype.getDataParams.call(this,e),n=a.mapDimension("value"),o=a.getSum(n);return i.percent=o?+(a.get(n,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.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"}}},t})(zt);function ooe(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function soe(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),i=[],n=t==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return He(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return n?a[l]-a[u]:a[u]-a[l]}),i}function loe(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var i=r.getItemModel(a),n=i.getModel("label"),o=n.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,v=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,f,c,d;if(v)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,c=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,c=(u[1][1]+u[2][1])/2,h="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,c=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),d=[[f,c],[f,c]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,f=m-5,h="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,f=m+5,h="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-_,c=y-5,h="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+_,c=y+5,h="center"):o==="rightTop"?(p=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(y=g-_,c=y-5,h="center"):(m=p+_,f=m+5,h="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e==="horizontal"?(y=g+_,c=y+5,h="center"):(m=p+_,f=m+5,h="bottom")):o==="leftTop"?(p=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(y=g-_,c=y-5,h="center"):(m=p-_,f=m-5,h="right")):o==="leftBottom"?(p=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(y=g+_,c=y+5,h="center"):(m=p-_,f=m-5,h="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(y=g+_,c=y+5,h="center"):(m=p+_,f=m+5,h="left")),e==="horizontal"?(m=p,f=m):(y=g,c=y),d=[[p,g],[m,y]]}l.label={linePoints:d,x:f,y:c,verticalAlign:"middle",textAlign:h,inside:v}})}function uoe(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),i=a.mapDimension("value"),n=e.get("sort"),o=ooe(e,t),s=e.get("orient"),l=o.width,u=o.height,v=soe(a,n),h=o.x,f=o.y,c=s==="horizontal"?[Ie(e.get("minSize"),u),Ie(e.get("maxSize"),u)]:[Ie(e.get("minSize"),l),Ie(e.get("maxSize"),l)],d=a.getDataExtent(i),p=e.get("min"),g=e.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var m=e.get("funnelAlign"),y=e.get("gap"),_=s==="horizontal"?l:u,x=(_-y*(a.count()-1))/a.count(),S=function(P,I){if(s==="horizontal"){var R=a.get(i,P)||0,E=Pt(R,[p,g],c,!0),k=void 0;switch(m){case"top":k=f;break;case"center":k=f+(u-E)/2;break;case"bottom":k=f+(u-E);break}return[[I,k],[I,k+E]]}var B=a.get(i,P)||0,F=Pt(B,[p,g],c,!0),V;switch(m){case"left":V=h;break;case"center":V=h+(l-F)/2;break;case"right":V=h+l-F;break}return[[V,I],[V+F,I]]};n==="ascending"&&(x=-x,y=-y,s==="horizontal"?h+=l:f+=u,v=v.reverse());for(var b=0;b<v.length;b++){var w=v[b],A=v[b+1],T=a.getItemModel(w);if(s==="horizontal"){var C=T.get(["itemStyle","width"]);C==null?C=x:(C=Ie(C,l),n==="ascending"&&(C=-C));var M=S(w,h),L=S(A,h+C);h+=C+y,a.setItemLayout(w,{points:M.concat(L.slice().reverse())})}else{var D=T.get(["itemStyle","height"]);D==null?D=x:(D=Ie(D,u),n==="ascending"&&(D=-D));var M=S(w,f),L=S(A,f+D);f+=D+y,a.setItemLayout(w,{points:M.concat(L.slice().reverse())})}}loe(a)})}function voe(r){r.registerChartView(ioe),r.registerSeriesModel(noe),r.registerLayout(uoe),r.registerProcessor(tf("funnel"))}var hoe=.3,foe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new Ze,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,i,n){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,v=u.dimensions,h=VP(e);s.diff(l).add(f).update(c).remove(d).execute();function f(g){var m=BP(s,o,g,v,u);hy(m,s,g,h)}function c(g,m){var y=l.getItemGraphicEl(m),_=w8(s,g,v,u);s.setItemGraphicEl(g,y),wt(y,{shape:{points:_}},e,g),xi(y),hy(y,s,g,h)}function d(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=coe(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,i){for(var n=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=VP(a),u=this._progressiveEls=[],v=e.start;v<e.end;v++){var h=BP(n,this._dataGroup,v,s,o);h.incremental=!0,hy(h,n,v,l),u.push(h)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})(kt);function coe(r,t,e){var a=r.model,i=r.getRect(),n=new gt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=a.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),$t(n,{shape:{width:i.width,height:i.height}},t,e),n}function w8(r,t,e,a){for(var i=[],n=0;n<e.length;n++){var o=e[n],s=r.get(r.mapDimension(o),t);doe(s,a.getAxis(o).type)||i.push(a.dataToPoint(s,o))}return i}function BP(r,t,e,a,i){var n=w8(r,e,a,i),o=new ea({shape:{points:n},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function VP(r){var t=r.get("smooth",!0);return t===!0&&(t=hoe),t=Yi(t),Ul(t)&&(t=0),{smooth:t}}function hy(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var i=t.getItemModel(e),n=i.getModel("emphasis");Vr(r,i,"lineStyle"),tr(r,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function doe(r,t){return t==="category"?r==null:r==null||isNaN(r)}var poe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{useEncodeDefaulter:Ne(goe,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,i=this.getData(),n=[];return a.eachActiveState(i,function(o,s){e===o&&n.push(i.getRawIndex(s))}),n},t.type="series.parallel",t.dependencies=["parallel"],t.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"},t})(zt);function goe(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return $(t.dimensions,function(a){var i=moe(a);e[a]=i}),e}}function moe(r){return+r.replace("dim","")}var yoe=["lineStyle","opacity"],_oe={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(i,n){e.eachActiveState(n,function(o,s){var l=a[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(yoe,!0);u!=null&&(l=u)}var v=n.ensureUniqueItemVisual(s,"style");v.opacity=l},i.start,i.end)}}}};function xoe(r){Soe(r),boe(r)}function Soe(r){if(!r.parallel){var t=!1;$(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function boe(r){var t=Nt(r.parallelAxis);$(t,function(e){if($e(e)){var a=e.parallelIndex||0,i=Nt(r.parallel)[a];i&&i.parallelAxisDefault&&tt(e,i.parallelAxisDefault,!1)}})}var woe=5,Toe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){this._model=e,this._api=i,this._handlers||(this._handlers={},$(Aoe,function(n,o){i.getZr().on(o,this._handlers[o]=Ne(n,this))},this)),mu(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){Sh(this,"_throttledDispatchExpand"),$(this._handlers,function(i,n){a.getZr().off(n,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(_e({type:"parallelAxisExpand"},e))},t.type="parallel",t})(Wt),Aoe={mousedown:function(r){fy(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(fy(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>woe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!fy(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function fy(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var Coe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&tt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var i=e.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){$(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],i=Ct(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);$(i,function(n){e.push("dim"+n.get("dim")),a.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t})(ut),Moe=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(Ja);function qs(r,t,e,a,i,n){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=ml(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=ml(s,[0,o]),i=n=ml(s,[i,n]),a=0}t[0]=ml(t[0],e),t[1]=ml(t[1],e);var l=cy(t,a);t[a]+=r;var u=i||0,v=e.slice();l.sign<0?v[0]+=u:v[1]-=u,t[a]=ml(t[a],v);var h;return h=cy(t,a),i!=null&&(h.sign!==l.sign||h.span<i)&&(t[1-a]=t[a]+l.sign*i),h=cy(t,a),n!=null&&h.span>n&&(t[1-a]=t[a]+h.sign*n),t}function cy(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ml(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var dy=$,T8=Math.min,A8=Math.max,GP=Math.floor,Doe=Math.ceil,FP=ar,Loe=Math.PI,Ioe=(function(){function r(t,e,a){this.type="parallel",this._axesMap=Ge(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var i=t.dimensions,n=t.parallelAxisIndex;dy(i,function(o,s){var l=n[s],u=e.getComponent("parallelAxis",l),v=this._axesMap.set(o,new Moe(o,Kh(u),[0,0],u.get("type"),l)),h=v.type==="category";v.onBand=h&&u.get("boundaryGap"),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,i=e.layoutBase,n=e.pixelDimIndex,o=t[1-n],s=t[n];return o>=a&&o<=a+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var i=a.getData();dy(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Rs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=dr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],i=["width","height"],n=t.get("layout"),o=n==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,v=dc(t.get("axisExpandWidth"),l),h=dc(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>h&&h>1&&v>0&&s>0,c=t.get("axisExpandWindow"),d;if(c)d=dc(c[1]-c[0],l),c[1]=c[0]+d;else{d=dc(v*(h-1),l);var p=t.get("axisExpandCenter")||GP(u/2);c=[v*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var m=[GP(FP(c[0]/v,1))+1,Doe(FP(c[1]/v,1))-1],y=g/v*c[0];return{layout:n,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[i[1-o]],axisExpandable:f,axisExpandWidth:v,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),dy(a,function(o,s){var l=(i.axisExpandable?Roe:Poe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},v={horizontal:Loe/2,vertical:0},h=[u[n].x+t.x,u[n].y+t.y],f=v[n],c=xa();co(c,c,f),yi(c,c,h),this._axesLayout[o]={position:h,rotation:f,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,i){a==null&&(a=0),i==null&&(i=t.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];$(o,function(g){s.push(t.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),v=a;v<i;v++){var h=void 0;if(!u)h="normal";else{h="active";for(var f=t.getValues(s,v),c=0,d=o.length;c<d;c++){var p=l[c].getActiveState(f[c]);if(p==="inactive"){h="inactive";break}}}e(h,v)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,i=0,n=t.length;i<n;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return gi([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return Ye(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,i=e.axisExpandWindow.slice(),n=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",v=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),f=h[0]!=null;if(v)f&&v&&s<n*h[0]?(u="jump",l=s-n*h[2]):f&&v&&s>n*(1-h[0])?(u="jump",l=s-n*(1-h[2])):(l=s-n*h[1])>=0&&(l=s-n*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/v,l?qs(l,i,o,"all"):u="none";else{var c=i[1]-i[0],d=o[1]*s/c;i=[A8(0,d-c/2)],i[1]=T8(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r})();function dc(r,t){return T8(A8(r,t[0]),t[1])}function Poe(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function Roe(r,t){var e=t.layoutLength,a=t.axisExpandWidth,i=t.axisCount,n=t.axisCollapseWidth,o=t.winInnerIndices,s,l=n,u=!1,v;return r<o[0]?(s=r*n,v=n):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(i-1-r)*n,v=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:v}}function Eoe(r,t){var e=[];return r.eachComponent("parallel",function(a,i){var n=new Ioe(a,r,t);n.name="parallel_"+i,n.resize(a,t),a.coordinateSystem=n,n.model=a,e.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var i=a.getReferringComponents("parallel",cr).models[0];a.coordinateSystem=i.coordinateSystem}}),e}var koe={create:Eoe},KT=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Ls([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=Ye(e);if(a)for(var i=a.length-1;i>=0;i--)Ta(a[i])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,o=a.length;n<o;n++)if(a[n][0]<=e&&e<=a[n][1])return"active";return"inactive"},t})(ut);nr(KT,Su);var Es=!0,Ph=Math.min,eu=Math.max,Ooe=Math.pow,Noe=1e4,zoe=6,Boe=6,HP="globalPan",Voe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Goe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},qP={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Foe=0,lM=(function(r){he(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new Ze,a._uid="brushController_"+Foe++,$(Zoe,function(i,n){this._handlers[n]=Ne(i,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||Pae(a,HP,this._uid),$(this._handlers,function(i,n){a.on(n,i)}),this._brushType=e.brushType,this._brushOption=tt(Ye(qP),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Rae(e,HP,this._uid),$(this._handlers,function(a,i){e.off(i,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};$(e,function(i){a[i.panelId]=Ye(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=we(e,function(f){return tt(Ye(qP),f,!0)});var a="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new bn(i,e,u,l).add(v).update(v).remove(h).execute(),this;function l(f,c){return(f.id!=null?f.id:a+c)+"-"+f.brushType}function u(f,c){return l(f.__brushOption,c)}function v(f,c){var d=e[f];if(c!=null&&i[c]===s)n[f]=i[c];else{var p=n[f]=c!=null?(i[c].__brushOption=d,i[c]):M8(o,C8(o,d));uM(o,p)}}function h(f){i[f]!==s&&o.group.remove(i[f])}},t.prototype.unmount=function(){return this.enableBrush(!1),QT(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Xa);function C8(r,t){var e=rg[t.brushType].createCover(r,t);return e.__brushOption=t,L8(e,t),r.group.add(e),e}function M8(r,t){var e=vM(t);return e.endCreating&&(e.endCreating(r,t),L8(t,t.__brushOption)),t}function D8(r,t){var e=t.__brushOption;vM(t).updateCoverShape(r,t,e.range,e)}function L8(r,t){var e=t.z;e==null&&(e=Noe),r.traverse(function(a){a.z=e,a.z2=e})}function uM(r,t){vM(t).updateCommon(r,t),D8(r,t)}function vM(r){return rg[r.__brushOption.brushType]}function hM(r,t,e){var a=r._panels;if(!a)return Es;var i,n=r._transform;return $(a,function(o){o.isTargetByCursor(t,e,n)&&(i=o)}),i}function I8(r,t){var e=r._panels;if(!e)return Es;var a=t.__brushOption.panelId;return a!=null?e[a]:Es}function QT(r){var t=r._covers,e=t.length;return $(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function ks(r,t){var e=we(r._covers,function(a){var i=a.__brushOption,n=Ye(i.range);return{brushType:i.brushType,panelId:i.panelId,range:n}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Hoe(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],i=e[0]-a[0],n=e[1]-a[1],o=Ooe(i*i+n*n,.5);return o>zoe}function P8(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function R8(r,t,e,a){var i=new Ze;return i.add(new gt({name:"main",style:fM(e),silent:!0,draggable:!0,cursor:"move",drift:et(WP,r,t,i,["n","s","w","e"]),ondragend:et(ks,t,{isEnd:!0})})),$(a,function(n){i.add(new gt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:et(WP,r,t,i,n),ondragend:et(ks,t,{isEnd:!0})}))}),i}function E8(r,t,e,a){var i=a.brushStyle.lineWidth||0,n=eu(i,Boe),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,v=e[0][1],h=e[1][1],f=v-n+i/2,c=h-n+i/2,d=v-o,p=h-s,g=d+i,m=p+i;sn(r,t,"main",o,s,d,p),a.transformable&&(sn(r,t,"w",l,u,n,m),sn(r,t,"e",f,u,n,m),sn(r,t,"n",l,u,g,n),sn(r,t,"s",l,c,g,n),sn(r,t,"nw",l,u,n,n),sn(r,t,"ne",f,u,n,n),sn(r,t,"sw",l,c,n,n),sn(r,t,"se",f,c,n,n))}function jT(r,t){var e=t.__brushOption,a=e.transformable,i=t.childAt(0);i.useStyle(fM(e)),i.attr({silent:!a,cursor:a?"move":"default"}),$([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=t.childOfName(n.join("")),s=n.length===1?JT(r,n[0]):Woe(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?Goe[s]+"-resize":null})})}function sn(r,t,e,a,i,n,o){var s=t.childOfName(e);s&&s.setShape($oe(cM(r,t,[[a,i],[a+n,i+o]])))}function fM(r){return Ue({strokeNoScale:!0},r.brushStyle)}function k8(r,t,e,a){var i=[Ph(r,e),Ph(t,a)],n=[eu(r,e),eu(t,a)];return[[i[0],n[0]],[i[1],n[1]]]}function qoe(r){return ro(r.group)}function JT(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=Op(e[t],qoe(r));return a[i]}function Woe(r,t){var e=[JT(r,t[0]),JT(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function WP(r,t,e,a,i,n){var o=e.__brushOption,s=r.toRectRange(o.range),l=O8(t,i,n);$(a,function(u){var v=Voe[u];s[v[0]][v[1]]+=l[v[0]]}),o.range=r.fromRectRange(k8(s[0][0],s[1][0],s[0][1],s[1][1])),uM(t,e),ks(t,{isEnd:!1})}function Uoe(r,t,e,a){var i=t.__brushOption.range,n=O8(r,e,a);$(i,function(o){o[0]+=n[0],o[1]+=n[1]}),uM(r,t),ks(r,{isEnd:!1})}function O8(r,t,e){var a=r.group,i=a.transformCoordToLocal(t,e),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function cM(r,t,e){var a=I8(r,t);return a&&a!==Es?a.clipPath(e,r._transform):Ye(e)}function $oe(r){var t=Ph(r[0][0],r[1][0]),e=Ph(r[0][1],r[1][1]),a=eu(r[0][0],r[1][0]),i=eu(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:i-e}}function Yoe(r,t,e){if(!(!r._brushType||Xoe(r,t.offsetX,t.offsetY))){var a=r._zr,i=r._covers,n=hM(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(n&&(n===Es||s.panelId===n.panelId)&&rg[s.brushType].contain(i[o],e[0],e[1]))return}n&&a.setCursorStyle("crosshair")}}function eA(r){var t=r.event;t.preventDefault&&t.preventDefault()}function tA(r,t,e){return r.childOfName("main").contain(t,e)}function N8(r,t,e,a){var i=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),Hoe(r)||i){if(n&&!i){o.brushMode==="single"&&QT(r);var l=Ye(o);l.brushType=UP(l.brushType,n),l.panelId=n===Es?null:n.panelId,i=r._creatingCover=C8(r,l),r._covers.push(i)}if(i){var u=rg[UP(r._brushType,n)],v=i.__brushOption;v.range=u.getCreatingRange(cM(r,i,r._track)),a&&(M8(r,i),u.updateCommon(r,i)),D8(r,i),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&hM(r,t,e)&&QT(r)&&(s={isEnd:a,removeOnClick:!0});return s}function UP(r,t){return r==="auto"?t.defaultBrushType:r}var Zoe={mousedown:function(r){if(this._dragging)$P(this,r);else if(!r.target||!r.target.draggable){eA(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=hM(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(Yoe(this,r,a),this._dragging){eA(r);var i=N8(this,r,a,!1);i&&ks(this,i)}},mouseup:function(r){$P(this,r)}};function $P(r,t){if(r._dragging){eA(t);var e=t.offsetX,a=t.offsetY,i=r.group.transformCoordToLocal(e,a),n=N8(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&ks(r,n)}}function Xoe(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var rg={lineX:YP(0),lineY:YP(1),rect:{createCover:function(r,t){function e(a){return a}return R8({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=P8(r);return k8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){E8(r,t,e,a)},updateCommon:jT,contain:tA},polygon:{createCover:function(r,t){var e=new Ze;return e.add(new ea({name:"main",style:fM(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new jr({name:"main",draggable:!0,drift:et(Uoe,r,t),ondragend:et(ks,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:cM(r,t,e)})},updateCommon:jT,contain:tA}};function YP(r){return{createCover:function(t,e){return R8({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=P8(t),a=Ph(e[0][r],e[1][r]),i=eu(e[0][r],e[1][r]);return[a,i]},updateCoverShape:function(t,e,a,i){var n,o=I8(t,e);if(o!==Es&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=t._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),E8(t,e,l,i)},updateCommon:jT,contain:tA}}function z8(r){return r=dM(r),function(t){return oC(t,r)}}function B8(r,t){return r=dM(r),function(e){var a=t!=null?t:e,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function V8(r,t,e){var a=dM(r);return function(i,n){return a.contain(n[0],n[1])&&!jp(i,t,e)}}function dM(r){return at.create(r)}var Koe=["axisLine","axisTickLabel","axisName"],Qoe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new lM(a.getZr())).on("brush",Ne(this._onBrush,this))},t.prototype.render=function(e,a,i,n){if(!joe(e,a,n)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ze,this.group.add(this._axisGroup),!!e.get("show")){var s=ese(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),v=u.width,h=e.axis.dim,f=l.getAxisLayout(h),c=_e({strokeContainThreshold:v},f),d=new la(e,c);$(Koe,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,e,s,v,i),Yh(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],v=Math.min(30,Math.abs(u)*.1),h=at.create({x:l[0],y:-o/2,width:u,height:o});h.x-=v,h.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:z8(h),isTargetByCursor:V8(h,s,n),getLinearBrushOtherExtent:B8(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Joe(i))},t.prototype._onBrush=function(e){var a=e.areas,i=this.axisModel,n=i.axis,o=we(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(Wt);function joe(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function Joe(r){var t=r.axis;return we(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function ese(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var tse={type:"axisAreaSelect",event:"axisAreaSelected"};function rse(r){r.registerAction(tse,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var ase={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function G8(r){r.registerComponentView(Toe),r.registerComponentModel(Coe),r.registerCoordinateSystem("parallel",koe),r.registerPreprocessor(xoe),r.registerComponentModel(KT),r.registerComponentView(Qoe),Jl(r,"parallel",KT,ase),rse(r)}function ise(r){ot(G8),r.registerChartView(foe),r.registerSeriesModel(poe),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,_oe)}var nse=(function(){function r(){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 r})(),ose=(function(r){he(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new nse},t.prototype.buildPath=function(e,a){var i=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+i,a.y2),e.bezierCurveTo(a.cpx2+i,a.cpy2,a.cpx1+i,a.cpy1,a.x1+i,a.y1)):(e.lineTo(a.x2,a.y2+i),e.bezierCurveTo(a.cpx2,a.cpy2+i,a.cpx1,a.cpy1+i,a.x1,a.y1+i)),e.closePath()},t.prototype.highlight=function(){xn(this)},t.prototype.downplay=function(){Sn(this)},t})(ht),sse=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,a,i){var n=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,v=l.height,h=e.getData(),f=e.getData("edge"),c=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new ose,g=Xe(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var m=d.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),x=d.node1.getLayout(),S=d.node1.getModel(),b=S.get("localX"),w=S.get("localY"),A=d.node2.getLayout(),T=d.node2.getModel(),C=T.get("localX"),M=T.get("localY"),L=d.getLayout(),D,P,I,R,E,k,B,F;p.shape.extent=Math.max(1,L.dy),p.shape.orient=c,c==="vertical"?(D=(b!=null?b*u:x.x)+L.sy,P=(w!=null?w*v:x.y)+x.dy,I=(C!=null?C*u:A.x)+L.ty,R=M!=null?M*v:A.y,E=D,k=P*(1-_)+R*_,B=I,F=P*_+R*(1-_)):(D=(b!=null?b*u:x.x)+x.dx,P=(w!=null?w*v:x.y)+L.sy,I=C!=null?C*u:A.x,R=(M!=null?M*v:A.y)+L.ty,E=D*(1-_)+I*_,k=P,B=D*_+I*(1-_),F=R),p.setShape({x1:D,y1:P,x2:I,y2:R,cpx1:E,cpy1:k,cpx2:B,cpy2:F}),p.useStyle(y.getItemStyle()),ZP(p.style,c,d);var V=""+m.get("value"),N=Cr(m,"edgeLabel");Gr(p,N,{labelFetcher:{getFormattedLabel:function(G,q,H,U,W,Y){return e.getFormattedLabel(G,q,"edge",U,ci(W,N.normal&&N.normal.get("formatter"),V),Y)}},labelDataIndex:d.dataIndex,defaultText:V}),p.setTextConfig({position:"inside"});var O=m.getModel("emphasis");Vr(p,m,"lineStyle",function(G){var q=G.getItemStyle();return ZP(q,c,d),q}),s.add(p),f.setItemGraphicEl(d.dataIndex,p);var z=O.get("focus");tr(p,z==="adjacency"?d.getAdjacentDataIndices():z==="trajectory"?d.getTrajectoryDataIndices():z,O.get("blurScope"),O.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),m=g.get("localX"),y=g.get("localY"),_=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,S=new gt({shape:{x:m!=null?m*u:p.x,y:y!=null?y*v:p.y,width:p.dx,height:p.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});Gr(S,Cr(g),{labelFetcher:{getFormattedLabel:function(w,A){return e.getFormattedLabel(w,A,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),Vr(S,g),s.add(S),h.setItemGraphicEl(d.dataIndex,S),Xe(S).dataType="node";var b=_.get("focus");tr(S,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(m,y){n._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/v})},d.ondragend=function(){n._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(lse(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(kt);function ZP(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),i=e.node2.getVisual("color");Re(a)&&Re(i)&&(r.fill=new lu(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:i,offset:1}]))}}function lse(r,t,e){var a=new gt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return $t(a,{shape:{width:r.width+20}},t,e),a}var use=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var i=e.edges||e.links||[],n=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Mt(o[l],this,a));var u=b8(n,i,this,!0,v);return u.data;function v(h,f){h.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getData().getItemLayout(d);if(g){var m=g.depth,y=p.levelModels[m];y&&(c.parentModel=y)}return c}),f.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getGraph().getEdgeByIndex(d),m=g.node1.getLayout();if(m){var y=m.depth,_=p.levelModels[y];_&&(c.parentModel=_)}return c})}},t.prototype.setNodePosition=function(e,a){var i=this.option.data||this.option.nodes,n=i[e];n.localX=a[0],n.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,i){function n(c){return isNaN(c)||c==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Mr("nameValue",{name:u,value:l,noValue:n(l)})}else{var v=this.getGraph().getNodeByIndex(e),h=v.getLayout().value,f=this.getDataParams(e,i).data.name;return Mr("nameValue",{name:f!=null?f+"":null,value:h,noValue:n(h)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var i=r.prototype.getDataParams.call(this,e,a);if(i.value==null&&a==="node"){var n=this.getGraph().getNodeByIndex(e),o=n.getLayout().value;i.value=o}return i},t.type="series.sankey",t.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},t})(zt);function vse(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),i=e.get("nodeGap"),n=hse(e,t);e.layoutInfo=n;var o=n.width,s=n.height,l=e.getGraph(),u=l.nodes,v=l.edges;cse(u);var h=Ct(u,function(p){return p.getLayout().value===0}),f=h.length!==0?0:e.get("layoutIterations"),c=e.get("orient"),d=e.get("nodeAlign");fse(u,v,a,i,o,s,f,c,d)})}function hse(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function fse(r,t,e,a,i,n,o,s,l){dse(r,t,e,i,n,s,l),yse(r,t,n,i,a,o,s),Mse(r,s)}function cse(r){$(r,function(t){var e=no(t.outEdges,tp),a=no(t.inEdges,tp),i=t.getValue()||0,n=Math.max(e,a,i);t.setLayout({value:n},!0)})}function dse(r,t,e,a,i,n,o){for(var s=[],l=[],u=[],v=[],h=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<r.length;f++)l[f]=r[f].inEdges.length,l[f]===0&&u.push(r[f]);for(var c=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>c&&(c=g.depth),p.setLayout({depth:m?g.depth:h},!0),n==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var y=0;y<p.outEdges.length;y++){var _=p.outEdges[y],x=t.indexOf(_);s[x]=0;var S=_.node2,b=r.indexOf(S);--l[b]===0&&v.indexOf(S)<0&&v.push(S)}}++h,u=v,v=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=c>h-1?c:h-1;o&&o!=="left"&&pse(r,o,n,w);var A=n==="vertical"?(i-e)/w:(a-e)/w;mse(r,A,n)}function F8(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function pse(r,t,e,a){if(t==="right"){for(var i=[],n=r,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var v=l.inEdges[u];i.indexOf(v.node1)<0&&i.push(v.node1)}}n=i,i=[],++o}$(r,function(h){F8(h)||h.setLayout({depth:Math.max(0,a-h.getLayout().skNodeHeight)},!0)})}else t==="justify"&&gse(r,a)}function gse(r,t){$(r,function(e){!F8(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function mse(r,t,e){$(r,function(a){var i=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:i},!0):a.setLayout({x:i},!0)})}function yse(r,t,e,a,i,n,o){var s=_se(r,o);xse(s,t,e,a,i,o),py(s,i,e,a,o);for(var l=1;n>0;n--)l*=.99,Sse(s,l,o),py(s,i,e,a,o),Cse(s,l,o),py(s,i,e,a,o)}function _se(r,t){var e=[],a=t==="vertical"?"y":"x",i=iT(r,function(n){return n.getLayout()[a]});return i.keys.sort(function(n,o){return n-o}),$(i.keys,function(n){e.push(i.buckets.get(n))}),e}function xse(r,t,e,a,i,n){var o=1/0;$(r,function(s){var l=s.length,u=0;$(s,function(h){u+=h.getLayout().value});var v=n==="vertical"?(a-(l-1)*i)/u:(e-(l-1)*i)/u;v<o&&(o=v)}),$(r,function(s){$(s,function(l,u){var v=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:v},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:v},!0))})}),$(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function py(r,t,e,a,i){var n=i==="vertical"?"x":"y";$(r,function(o){o.sort(function(p,g){return p.getLayout()[n]-g.getLayout()[n]});for(var s,l,u,v=0,h=o.length,f=i==="vertical"?"dx":"dy",c=0;c<h;c++)l=o[c],u=v-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[n]+l.getLayout()[f]+t;var d=i==="vertical"?a:e;if(u=v-t-d,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),v=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[n]+l.getLayout()[f]+t-v,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),v=l.getLayout()[n]}})}function Sse(r,t,e){$(r.slice().reverse(),function(a){$(a,function(i){if(i.outEdges.length){var n=no(i.outEdges,bse,e)/no(i.outEdges,tp);if(isNaN(n)){var o=i.outEdges.length;n=o?no(i.outEdges,wse,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(n-vo(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-vo(i,e))*t;i.setLayout({y:l},!0)}}})})}function bse(r,t){return vo(r.node2,t)*r.getValue()}function wse(r,t){return vo(r.node2,t)}function Tse(r,t){return vo(r.node1,t)*r.getValue()}function Ase(r,t){return vo(r.node1,t)}function vo(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function tp(r){return r.getValue()}function no(r,t,e){for(var a=0,i=r.length,n=-1;++n<i;){var o=+t(r[n],e);isNaN(o)||(a+=o)}return a}function Cse(r,t,e){$(r,function(a){$(a,function(i){if(i.inEdges.length){var n=no(i.inEdges,Tse,e)/no(i.inEdges,tp);if(isNaN(n)){var o=i.inEdges.length;n=o?no(i.inEdges,Ase,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(n-vo(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-vo(i,e))*t;i.setLayout({y:l},!0)}}})})}function Mse(r,t){var e=t==="vertical"?"x":"y";$(r,function(a){a.outEdges.sort(function(i,n){return i.node2.getLayout()[e]-n.node2.getLayout()[e]}),a.inEdges.sort(function(i,n){return i.node1.getLayout()[e]-n.node1.getLayout()[e]})}),$(r,function(a){var i=0,n=0;$(a.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),$(a.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}function Dse(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),a=e.nodes,i=e.edges;if(a.length){var n=1/0,o=-1/0;$(a,function(s){var l=s.getLayout().value;l<n&&(n=l),l>o&&(o=l)}),$(a,function(s){var l=new Ar({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),v=s.getModel().get(["itemStyle","color"]);v!=null?(s.setVisual("color",v),s.setVisual("style",{fill:v})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&$(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Lse(r){r.registerChartView(sse),r.registerSeriesModel(use),r.registerLayout(vse),r.registerVisual(Dse),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var H8=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,i=e.getComponent("xAxis",this.get("xAxisIndex")),n=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(t.layout="horizontal",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],v=t.layout==="horizontal"?0:1,h=this._baseAxisDim=u[v],f=u[1-v],c=[i,n],d=c[v].get("type"),p=c[1-v].get("type"),g=t.data;if(g&&l){var m=[];$(g,function(x,S){var b;Se(x)?(b=x.slice(),x.unshift(S)):Se(x.value)?(b=_e({},x),b.value=b.value.slice(),x.value.unshift(S)):b=x,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:h,type:Ud(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Ud(p),dimsDef:y.slice()}];return bu(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:et(IW,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r})(),q8=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.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},t})(zt);nr(q8,H8,!0);var Ise=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var v=n.getItemLayout(u),h=XP(v,n,u,l,!0);n.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,v){var h=s.getItemGraphicEl(v);if(!n.hasValue(u)){o.remove(h);return}var f=n.getItemLayout(u);h?(xi(h),W8(f,h,n,u)):h=XP(f,n,u,l),o.add(h),n.setItemGraphicEl(u,h)}).remove(function(u){var v=s.getItemGraphicEl(u);v&&o.remove(v)}).execute(),this._data=n},t.prototype.remove=function(e){var a=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&a.remove(n)})},t.type="boxplot",t})(kt),Pse=(function(){function r(){}return r})(),Rse=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new Pse},t.prototype.buildPath=function(e,a){var i=a.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])},t})(ht);function XP(r,t,e,a,i){var n=r.ends,o=new Rse({shape:{points:i?Ese(n,a,r):n}});return W8(r,o,t,e,i),o}function W8(r,t,e,a,i){var n=e.hostModel,o=Bs[i?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},n,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");Vr(t,s),tr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Ese(r,t,e){return we(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var rh=$;function kse(r){var t=Ose(r);rh(t,function(e){var a=e.seriesModels;a.length&&(Nse(e),rh(a,function(i,n){zse(i,e.boxOffsetList[n],e.boxWidthList[n])}))})}function Ose(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var i=a.getBaseAxis(),n=nt(e,i);n<0&&(n=e.length,e[n]=i,t[n]={axis:i,seriesModels:[]}),t[n].seriesModels.push(a)}),t}function Nse(r){var t=r.axis,e=r.seriesModels,a=e.length,i=r.boxWidthList=[],n=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;rh(e,function(d){l=Math.max(l,d.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}rh(e,function(d){var p=d.get("boxWidth");Se(p)||(p=[p,p]),o.push([Ie(p[0],s)||0,Ie(p[1],s)||0])});var v=s*.8-2,h=v/a*.3,f=(v-h*(a-1))/a,c=f/2-v/2;rh(e,function(d,p){n.push(c),c+=h+f,i.push(Math.min(Math.max(f,o[p][0]),o[p][1]))})}function zse(r,t,e){var a=r.coordinateSystem,i=r.getData(),n=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),v=i.mapDimensionsAll(l[s]);if(u==null||v.length<5)return;for(var h=0;h<i.count();h++){var f=i.get(u,h),c=_(f,v[2],h),d=_(f,v[0],h),p=_(f,v[1],h),g=_(f,v[3],h),m=_(f,v[4],h),y=[];x(y,p,!1),x(y,g,!0),y.push(d,p,m,g),S(y,d),S(y,m),S(y,c),i.setItemLayout(h,{initBaseline:c[s],ends:y})}function _(b,w,A){var T=i.get(w,A),C=[];C[o]=b,C[s]=T;var M;return isNaN(b)||isNaN(T)?M=[NaN,NaN]:(M=a.dataToPoint(C),M[o]+=t),M}function x(b,w,A){var T=w.slice(),C=w.slice();T[o]+=n,C[o]-=n,A?b.push(T,C):b.push(C,T)}function S(b,w){var A=w.slice(),T=w.slice();A[o]-=n,T[o]+=n,b.push(A,T)}}function Bse(r,t){t=t||{};for(var e=[],a=[],i=t.boundIQR,n=i==="none"||i===0,o=0;o<r.length;o++){var s=Ta(r[o].slice()),l=ed(s,.25),u=ed(s,.5),v=ed(s,.75),h=s[0],f=s[s.length-1],c=(i==null?1.5:i)*(v-l),d=n?h:Math.max(h,l-c),p=n?f:Math.min(f,v+c),g=t.itemNameFormatter,m=He(g)?g({value:o}):Re(g)?g.replace("{value}",o+""):o+"";e.push([m,d,l,u,v,p]);for(var y=0;y<s.length;y++){var _=s[y];if(_<d||_>p){var x=[m,_];a.push(x)}}}return{boxData:e,outliers:a}}var Vse={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Jr){var a="";Rt(a)}var i=Bse(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Gse(r){r.registerSeriesModel(q8),r.registerChartView(Ise),r.registerLayout(kse),r.registerTransform(Vse)}var Fse=["itemStyle","borderColor"],Hse=["itemStyle","borderColor0"],qse=["itemStyle","borderColorDoji"],Wse=["itemStyle","color"],Use=["itemStyle","color0"];function pM(r,t){return t.get(r>0?Wse:Use)}function gM(r,t){return t.get(r===0?qse:r>0?Fse:Hse)}var $se={seriesType:"candlestick",plan:gu(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,i){for(var n;(n=a.next())!=null;){var o=i.getItemModel(n),s=i.getItemLayout(n).sign,l=o.getItemStyle();l.fill=pM(s,o),l.stroke=gM(s,o)||l.fill;var u=i.ensureUniqueItemVisual(n,"style");_e(u,l)}}}}}},Yse=["color","borderColor"],Zse=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){po(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),i=this._data,n=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),a.diff(i).add(function(v){if(a.hasValue(v)){var h=a.getItemLayout(v);if(s&&KP(u,h))return;var f=gy(h,v,!0);$t(f,{shape:{points:h.ends}},e,v),my(f,a,v,o),n.add(f),a.setItemGraphicEl(v,f)}}).update(function(v,h){var f=i.getItemGraphicEl(h);if(!a.hasValue(v)){n.remove(f);return}var c=a.getItemLayout(v);if(s&&KP(u,c)){n.remove(f);return}f?(wt(f,{shape:{points:c.ends}},e,v),xi(f)):f=gy(c),my(f,a,v,o),n.add(f),a.setItemGraphicEl(v,f)}).remove(function(v){var h=i.getItemGraphicEl(v);h&&n.remove(h)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),QP(e,this.group);var a=e.get("clip",!0)?Jh(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var i=a.getData(),n=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=gy(s);my(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){QP(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(kt),Xse=(function(){function r(){}return r})(),Kse=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new Xse},t.prototype.buildPath=function(e,a){var i=a.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t})(ht);function gy(r,t,e){var a=r.ends;return new Kse({shape:{points:e?Qse(a,r):a},z2:100})}function KP(r,t){for(var e=!0,a=0;a<t.ends.length;a++)if(r.contain(t.ends[a][0],t.ends[a][1])){e=!1;break}return e}function my(r,t,e,a){var i=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,Vr(r,i);var n=t.getItemLayout(e).sign;$(r.states,function(s,l){var u=i.getModel(l),v=pM(n,u),h=gM(n,u)||v,f=s.style||(s.style={});v&&(f.fill=v),h&&(f.stroke=h)});var o=i.getModel("emphasis");tr(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Qse(r,t){return we(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var jse=(function(){function r(){}return r})(),yy=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new jse},t.prototype.buildPath=function(e,a){for(var i=a.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];e.moveTo(o,i[n++]),e.lineTo(o,i[n++])}else n+=3},t})(ht);function QP(r,t,e,a){var i=r.getData(),n=i.getLayout("largePoints"),o=new yy({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new yy({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new yy({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});t.add(l),_y(1,o,r),_y(-1,s,r),_y(0,l,r),a&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function _y(r,t,e,a){var i=gM(r,e)||pM(r,e),n=e.getModel("itemStyle").getItemStyle(Yse);t.useStyle(n),t.style.fill=null,t.style.stroke=i}var U8=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,i){var n=a.getItemLayout(e);return n&&i.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.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:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(zt);nr(U8,H8,!0);function Jse(r){!r||!Se(r.series)||$(r.series,function(t){$e(t)&&t.type==="k"&&(t.type="candlestick")})}var ele={seriesType:"candlestick",plan:gu(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=tle(r,e),i=0,n=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),l=we(e.mapDimensionsAll(o[n]),e.getDimensionIndex,e),u=l[0],v=l[1],h=l[2],f=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:c};function c(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),x=y.get(u,m),S=y.get(v,m),b=y.get(h,m),w=y.get(f,m),A=Math.min(x,S),T=Math.max(x,S),C=E(A,_),M=E(T,_),L=E(b,_),D=E(w,_),P=[];k(P,M,0),k(P,C,1),P.push(F(D),F(M),F(L),F(C));var I=g.getItemModel(m),R=!!I.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:jP(y,m,x,S,v,R),initBaseline:x>S?M[n]:C[n],ends:P,brushRect:B(b,w,_)})}function E(V,N){var O=[];return O[i]=N,O[n]=V,isNaN(N)||isNaN(V)?[NaN,NaN]:t.dataToPoint(O)}function k(V,N,O){var z=N.slice(),G=N.slice();z[i]=ad(z[i]+a/2,1,!1),G[i]=ad(G[i]-a/2,1,!0),O?V.push(z,G):V.push(G,z)}function B(V,N,O){var z=E(V,O),G=E(N,O);return z[i]-=a/2,G[i]-=a/2,{x:z[0],y:z[1],width:a,height:G[1]-z[1]}}function F(V){return V[i]=ad(V[i],1),V}}function d(p,g){for(var m=Fi(p.count*4),y=0,_,x=[],S=[],b,w=g.getStore(),A=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var T=w.get(s,b),C=w.get(u,b),M=w.get(v,b),L=w.get(h,b),D=w.get(f,b);if(isNaN(T)||isNaN(L)||isNaN(D)){m[y++]=NaN,y+=3;continue}m[y++]=jP(w,b,C,M,v,A),x[i]=T,x[n]=L,_=t.dataToPoint(x,null,S),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,x[n]=D,_=t.dataToPoint(x,null,S),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function jP(r,t,e,a,i,n){var o;return e>a?o=-1:e<a?o=1:o=n?0:t>0?r.get(i,t-1)<=a?1:-1:1,o}function tle(r,t){var e=r.getBaseAxis(),a,i=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),n=Ie(Je(r.get("barMaxWidth"),i),i),o=Ie(Je(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?Ie(s,i):Math.max(Math.min(i/2,n),o)}function rle(r){r.registerChartView(Zse),r.registerSeriesModel(U8),r.registerPreprocessor(Jse),r.registerVisual($se),r.registerLayout(ele)}function JP(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var ale=(function(r){he(t,r);function t(e,a){var i=r.call(this)||this,n=new Qh(e,a),o=new Ze;return i.add(n),i.add(o),i.updateData(e,a),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,i=e.color,n=e.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=lr(a,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}JP(o,e)},t.prototype.updateEffectAnimation=function(e){for(var a=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(a[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}JP(i,e)},t.prototype.highlight=function(){xn(this)},t.prototype.downplay=function(){Sn(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var i=this,n=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=yu(e.getItemVisual(a,"symbolSize")),v=e.getItemVisual(a,"style"),h=v&&v.fill,f=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",h)});var c=Gs(e.getItemVisual(a,"symbolOffset"),u);c&&(o.x=c[0],o.y=c[1]);var d=e.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=n.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/e.count(),p.z=n.getShallow("z")||0,p.zlevel=n.getShallow("zlevel")||0,p.symbolType=l,p.color=h,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&i.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=p,tr(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t})(Ze),ile=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new jh(ale)},t.prototype.render=function(e,a,i){var n=e.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,i=a&&a.getArea&&a.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,a,i){var n=e.getData();this.group.dirty();var o=ef("").reset(e,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=H4(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(kt),nle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,i){return i.point(a.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.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},t})(zt);function ole(r){r.registerChartView(ile),r.registerSeriesModel(nle),r.registerLayout(ef("effectScatter"))}var $8=(function(r){he(t,r);function t(e,a,i){var n=r.call(this)||this;return n.add(n.createLine(e,a,i)),n._updateEffectSymbol(e,a),n}return t.prototype.createLine=function(e,a,i){return new oM(e,a,i)},t.prototype._updateEffectSymbol=function(e,a){var i=e.getItemModel(a),n=i.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");Se(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=n.get("color")||l&&l.stroke,v=this.childAt(1);this._symbolType!==s&&(this.remove(v),v=lr(s,-.5,-.5,1,1,u),v.z2=100,v.culling=!0,this.add(v)),v&&(v.setStyle("shadowColor",u),v.setStyle(n.getItemStyle(["color"])),v.scaleX=o[0],v.scaleY=o[1],v.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,n,a))},t.prototype._updateEffectAnimation=function(e,a,i){var n=this.childAt(1);if(n){var o=e.getItemLayout(i),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),v=a.get("constantSpeed"),h=wr(a.get("delay"),function(c){return c/e.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),v>0&&(s=this._getLineLength(n)/v*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var f=void 0;He(h)?f=h(i):f=h,n.__t>0&&(f=-s*n.__t),this._animateSymbol(n,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,i,n,o){if(a>0){e.__t=0;var s=this,l=e.animate("",n).when(o?a*2:a,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});n||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return fn(e.__p1,e.__cp1)+fn(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,i){this.childAt(0).updateData(e,a,i),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=kr,v=Hw;s[0]=u(a[0],n[0],i[0],o),s[1]=u(a[1],n[1],i[1],o);var h=e.__t<1?v(a[0],n[0],i[0],o):v(i[0],n[0],a[0],1-o),f=e.__t<1?v(a[1],n[1],i[1],o):v(i[1],n[1],a[1],1-o);e.rotation=-Math.atan2(f,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=fn(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*fn(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var i=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,i,a)},t})(Ze),Y8=(function(r){he(t,r);function t(e,a,i){var n=r.call(this)||this;return n._createPolyline(e,a,i),n}return t.prototype._createPolyline=function(e,a,i){var n=e.getItemLayout(a),o=new ea({shape:{points:n}});this.add(o),this._updateCommonStl(e,a,i)},t.prototype.updateData=function(e,a,i){var n=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};wt(o,s,n,a),this._updateCommonStl(e,a,i)},t.prototype._updateCommonStl=function(e,a,i){var n=this.childAt(0),o=e.getItemModel(a),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,v=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),v=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}n.useStyle(e.getItemVisual(a,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var f=n.ensureState("emphasis");f.style=s,tr(this,l,u,v)},t.prototype.updateLayout=function(e,a){var i=this.childAt(0);i.setShape("points",e.getItemLayout(a))},t})(Ze),sle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,i){return new Y8(e,a,i)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var i=[0],n=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];n+=fn(s,l),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,i=this._points,n=this._offsets,o=i.length;if(n){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>a);l++);l=Math.min(l-1,o-2)}var v=(a-n[l])/(n[l+1]-n[l]),h=i[l],f=i[l+1];e.x=h[0]*(1-v)+v*f[0],e.y=h[1]*(1-v)+v*f[1];var c=e.__t<1?f[0]-h[0]:h[0]-f[0],d=e.__t<1?f[1]-h[1]:h[1]-f[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t})($8),lle=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),ule=(function(r){he(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lle},t.prototype.buildPath=function(e,a){var i=a.segs,n=a.curveness,o;if(a.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){e.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],v=i[o++],h=i[o++],f=i[o++];if(e.moveTo(u,v),n>0){var c=(u+h)/2-(v-f)*n,d=(v+f)/2-(h-u)*n;e.quadraticCurveTo(c,d,h,f)}else e.lineTo(h,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<n.length;){var v=n[u++];if(v>0)for(var h=n[u++],f=n[u++],c=1;c<v;c++){var d=n[u++],p=n[u++];if(qn(h,f,d,p,s,e,a))return l}l++}else for(var l=0,u=0;u<n.length;){var h=n[u++],f=n[u++],d=n[u++],p=n[u++];if(o>0){var g=(h+d)/2-(f-p)*o,m=(f+p)/2-(d-h)*o;if(Eq(h,f,g,m,d,p,s,e,a))return l}else if(qn(h,f,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var i=this.transformCoordToLocal(e,a),n=this.getBoundingRect();if(e=i[0],a=i[1],n.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,i=a.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var v=i[u++],h=i[u++];n=Math.min(v,n),s=Math.max(v,s),o=Math.min(h,o),l=Math.max(h,l)}e=this._rect=new at(n,o,s,l)}return e},t})(ht),vle=(function(){function r(){this.group=new Ze}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],i=e.getLayout("linesPoints"),n=a&&a.shape.segs;if(n&&n.length<2e4){var o=n.length,s=new Float32Array(o+i.length);s.set(n),s.set(i,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ule({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){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 n=e.getVisual("style");n&&n.stroke&&t.setStyle("stroke",n.stroke),t.setStyle("fill",null);var o=Xe(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),Z8={seriesType:"lines",plan:gu(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(i,n){var o=[];if(a){var s=void 0,l=i.end-i.start;if(e){for(var u=0,v=i.start;v<i.end;v++)u+=r.getLineCoordsCount(v);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,f=[],v=i.start;v<i.end;v++){var c=r.getLineCoords(v,o);e&&(s[h++]=c);for(var d=0;d<c;d++)f=t.dataToPoint(o[d],!1,f),s[h++]=f[0],s[h++]=f[1]}n.setLayout("linesPoints",s)}else for(var v=i.start;v<i.end;v++){var p=n.getItemModel(v),c=r.getLineCoords(v,o),g=[];if(e)for(var m=0;m<c;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var y=p.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}n.setItemLayout(v,g)}}}}}},hle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this._updateLineDraw(n,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=i.getZr(),v=u.painter.getType()==="svg";v||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!v&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(v||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var h=e.get("clip",!0)&&Jh(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,i){var n=e.getData(),o=this._updateLineDraw(n,e);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,i){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,i){var n=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Z8.reset(e,a,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,a){var i=this._lineDraw,n=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new vle:new sM(o?n?sle:Y8:n?$8:oM),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),i=a.painter.getType()==="svg";!i&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t})(kt),fle=typeof Uint32Array>"u"?Array:Uint32Array,cle=typeof Float64Array>"u"?Array:Float64Array;function eR(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=we(t,function(e){var a=[e[0].coord,e[1].coord],i={coords:a};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),yp([i,e[0],e[1]])}))}var dle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],eR(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(eR(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=$l(this._flatCoords,a.flatCoords),this._flatCoordsOffset=$l(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),i=a.option instanceof Array?a.option:a.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],o=0;o<n;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[i+o*2],a[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),bt(e[0])){for(var i=e.length,n=new fle(i),o=new cle(i),s=0,l=0,u=0,v=0;v<i;){u++;var h=e[v++];n[l++]=s+a,n[l++]=h;for(var f=0;f<h;f++){var c=e[v++],d=e[v++];o[s++]=c,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var i=new Xr(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(n,o,s,l){if(n instanceof Array)return NaN;i.hasItemOption=!0;var u=n.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=n.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),v=[];return l!=null&&v.push(l),u!=null&&v.push(u),Mr("nameValue",{name:v.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.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}},t})(zt);function pc(r){return r instanceof Array||(r=[r,r]),r}var ple={seriesType:"lines",reset:function(r){var t=pc(r.get("symbol")),e=pc(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function i(n,o){var s=n.getItemModel(o),l=pc(s.getShallow("symbol",!0)),u=pc(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?i:null}}};function gle(r){r.registerChartView(hle),r.registerSeriesModel(dle),r.registerLayout(Z8),r.registerVisual(ple)}var mle=256,yle=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=mi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),v=this.pointSize+this.blurSize,h=this.canvas,f=h.getContext("2d"),c=t.length;h.width=e,h.height=a;for(var d=0;d<c;++d){var p=t[d],g=p[0],m=p[1],y=p[2],_=i(y);f.globalAlpha=_,f.drawImage(s,g-v,m-v)}if(!h.width||!h.height)return h;for(var x=f.getImageData(0,0,h.width,h.height),S=x.data,b=0,w=S.length,A=this.minOpacity,T=this.maxOpacity,C=T-A;b<w;){var _=S[b+3]/256,M=Math.floor(_*(mle-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*C+A),S[b++]=L[M],S[b++]=L[M+1],S[b++]=L[M+2],S[b++]=L[M+3]*_*256}else b+=4}return f.putImageData(x,0,0),h},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=mi.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var i=t.getContext("2d");return i.clearRect(0,0,a,a),i.shadowOffsetX=a,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,i=a[e]||(a[e]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},r})();function _le(r,t,e){var a=r[1]-r[0];t=we(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var i=t.length,n=0;return function(o){var s;for(s=n;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===i)for(s=n-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<i&&e[s]}}function xle(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function tR(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Sle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):tR(o)&&this._renderOnGeo(o,e,n,i)},t.prototype.incrementalPrepareRender=function(e,a,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,i,n){var o=a.coordinateSystem;o&&(tR(o)?this.render(a,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){po(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,a,i,n,o){var s=e.coordinateSystem,l=Fs(s,"cartesian2d"),u,v,h,f;if(l){var c=s.getAxis("x"),d=s.getAxis("y");u=c.getBandWidth()+.5,v=d.getBandWidth()+.5,h=c.scale.getExtent(),f=d.scale.getExtent()}for(var p=this.group,g=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),S=Cr(e),b=e.getModel("emphasis"),w=b.get("focus"),A=b.get("blurScope"),T=b.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;M<n;M++){var L=void 0,D=g.getItemVisual(M,"style");if(l){var P=g.get(C[0],M),I=g.get(C[1],M);if(isNaN(g.get(C[2],M))||isNaN(P)||isNaN(I)||P<h[0]||P>h[1]||I<f[0]||I>f[1])continue;var R=s.dataToPoint([P,I]);L=new gt({shape:{x:R[0]-u/2,y:R[1]-v/2,width:u,height:v},style:D})}else{if(isNaN(g.get(C[1],M)))continue;L=new gt({z2:1,shape:s.dataToRect([g.get(C[0],M)]).contentShape,style:D})}if(g.hasItemOption){var E=g.getItemModel(M),k=E.getModel("emphasis");m=k.getModel("itemStyle").getItemStyle(),y=E.getModel(["blur","itemStyle"]).getItemStyle(),_=E.getModel(["select","itemStyle"]).getItemStyle(),x=E.get(["itemStyle","borderRadius"]),w=k.get("focus"),A=k.get("blurScope"),T=k.get("disabled"),S=Cr(E)}L.shape.r=x;var B=e.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),Gr(L,S,{labelFetcher:e,labelDataIndex:M,defaultOpacity:D.opacity,defaultText:F}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=y,L.ensureState("select").style=_,tr(L,w,A,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),p.add(L),g.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new yle;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var v=e.getViewRect().clone(),h=e.getRoamTransform();v.applyTransform(h);var f=Math.max(v.x,0),c=Math.max(v.y,0),d=Math.min(v.width+v.x,n.getWidth()),p=Math.min(v.height+v.y,n.getHeight()),g=d-f,m=p-c,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(w,A,T){var C=e.dataToPoint([w,A]);return C[0]-=f,C[1]-=c,C.push(T),C}),x=i.getExtent(),S=i.type==="visualMap.continuous"?xle(x,i.option.range):_le(x,i.getPieceList(),i.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new Dr({style:{width:g,height:m,x:f,y:c,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t})(kt),ble=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Qi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=pu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(zt);function wle(r){r.registerChartView(Sle),r.registerSeriesModel(ble)}var Tle=["itemStyle","borderWidth"],rR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xy=new Xi,Ale=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),v=u.isHorizontal(),h=l.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:v,valueDim:rR[+v],categoryDim:rR[1-+v]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=iR(o,d),g=aR(o,d,p,f),m=nR(o,f,g);o.setItemGraphicEl(d,m),n.add(m),sR(m,f,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){n.remove(g);return}var m=iR(o,d),y=aR(o,d,m,f),_=e7(o,y);g&&_!==g.__pictorialShapeStr&&(n.remove(g),o.setItemGraphicEl(d,null),g=null),g?Rle(g,f,y):g=nR(o,f,y,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,n.add(g),sR(g,f,y)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&oR(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var c=e.get("clip",!0)?Jh(e.coordinateSystem,!1,e):null;return c?n.setClipPath(c):n.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(o){oR(n,Xe(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t})(kt);function aR(r,t,e,a){var i=r.getItemLayout(t),n=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,v=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:v,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Cle(e,n,i,a,f),Mle(r,t,i,n,o,f.boundingLength,f.pxSign,v,a,f),Dle(e,f.symbolScale,u,a,f);var c=f.symbolSize,d=Gs(e.get("symbolOffset"),c);return Lle(e,c,i,n,o,d,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,a,f),f}function Cle(r,t,e,a,i){var n=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[n.wh]<=0),v;if(Se(o)){var h=[Sy(s,o[0])-l,Sy(s,o[1])-l];h[1]<h[0]&&h.reverse(),v=h[u]}else o!=null?v=Sy(s,o)-l:t?v=a.coordSysExtent[n.index][u]-l:v=e[n.wh];i.boundingLength=v,t&&(i.repeatCutLength=e[n.wh]);var f=n.xy==="x",c=s.inverse;i.pxSign=f&&!c||!f&&c?v>=0?1:-1:v>0?1:-1}function Sy(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Mle(r,t,e,a,i,n,o,s,l,u){var v=l.valueDim,h=l.categoryDim,f=Math.abs(e[h.wh]),c=r.getItemVisual(t,"symbolSize"),d;Se(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=Ie(d[h.index],f),d[v.index]=Ie(d[v.index],a?f:Math.abs(n)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[v.index]*=(l.isHorizontal?-1:1)*o}function Dle(r,t,e,a,i){var n=r.get(Tle)||0;n&&(xy.attr({scaleX:t[0],scaleY:t[1],rotation:e}),xy.updateTransform(),n/=xy.getLineScale(),n*=t[a.valueDim.index]),i.valueLineWidth=n||0}function Lle(r,t,e,a,i,n,o,s,l,u,v,h){var f=v.categoryDim,c=v.valueDim,d=h.pxSign,p=Math.max(t[c.index]+s,0),g=p;if(a){var m=Math.abs(l),y=wr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var x=Ie(y,t[c.index]),S=Math.max(p+x*2,0),b=_?0:x*2,w=WA(a),A=w?a:lR((m+b)/S),T=m-A*p;x=T/2/(_?A:Math.max(A-1,1)),S=p+x*2,b=_?0:x*2,!w&&a!=="fixed"&&(A=u?lR((Math.abs(u)+b)/S):0),g=A*S-b,h.repeatTimes=A,h.symbolMargin=x}var C=d*(g/2),M=h.pathPosition=[];M[f.index]=e[f.wh]/2,M[c.index]=o==="start"?C:o==="end"?l-C:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var L=h.bundlePosition=[];L[f.index]=e[f.xy],L[c.index]=e[c.xy];var D=h.barRectShape=_e({},e);D[c.wh]=d*Math.max(Math.abs(e[c.wh]),Math.abs(M[c.index]+C)),D[f.wh]=e[f.wh];var P=h.clipShape={};P[f.xy]=-e[f.xy],P[f.wh]=v.ecSize[f.wh],P[c.xy]=0,P[c.wh]=e[c.wh]}function X8(r){var t=r.symbolPatternSize,e=lr(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function K8(r,t,e,a){var i=r.__pictorialBundle,n=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,v=0,h=n[t.valueDim.index]+o+e.symbolMargin*2;for(mM(r,function(p){p.__pictorialAnimationIndex=v,p.__pictorialRepeatTimes=u,v<u?Wl(p,null,d(v),e,a):Wl(p,null,{scaleX:0,scaleY:0},e,a,function(){i.remove(p)}),v++});v<u;v++){var f=X8(e);f.__pictorialAnimationIndex=v,f.__pictorialRepeatTimes=u,i.add(f);var c=d(v);Wl(f,{x:c.x,y:c.y,scaleX:0,scaleY:0},{scaleX:c.scaleX,scaleY:c.scaleY,rotation:c.rotation},e,a)}function d(p){var g=s.slice(),m=e.pxSign,y=p;return(e.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-p),g[l.index]=h*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Q8(r,t,e,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?Wl(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(n=r.__pictorialMainPath=X8(e),i.add(n),Wl(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function j8(r,t,e){var a=_e({},t.barRectShape),i=r.__pictorialBarRect;i?Wl(i,null,{shape:a},t,e):(i=r.__pictorialBarRect=new gt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function J8(r,t,e,a){if(e.symbolClip){var i=r.__pictorialClipPath,n=_e({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)wt(i,{shape:n},s,l);else{n[o.wh]=0,i=new gt({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Bs[a?"updateProps":"initProps"](i,{shape:u},s,l)}}}function iR(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=Ile,e.isAnimationEnabled=Ple,e}function Ile(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Ple(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nR(r,t,e,a){var i=new Ze,n=new Ze;return i.add(n),i.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?K8(i,t,e):Q8(i,t,e),j8(i,e,a),J8(i,t,e,a),i.__pictorialShapeStr=e7(r,e),i.__pictorialSymbolMeta=e,i}function Rle(r,t,e){var a=e.animationModel,i=e.dataIndex,n=r.__pictorialBundle;wt(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,i),e.symbolRepeat?K8(r,t,e,!0):Q8(r,t,e,!0),j8(r,e,!0),J8(r,t,e,!0)}function oR(r,t,e,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];mM(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),$(n,function(o){lo(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function e7(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function mM(r,t,e){$(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function Wl(r,t,e,a,i,n){t&&r.attr(t),a.symbolClip&&!i?e&&r.attr(e):e&&Bs[i?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,n)}function sR(r,t,e){var a=e.dataIndex,i=e.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),v=n.get("focus"),h=n.get("blurScope"),f=n.get("scale");mM(r,function(p){if(p instanceof Dr){var g=p.style;p.useStyle(_e({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,f&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var c=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Gr(d,Cr(i),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:jl(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:c}),tr(r,v,h,n.get("disabled"))}function lR(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var Ele=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=go(Ah.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(Ah);function kle(r){r.registerChartView(Ale),r.registerSeriesModel(Ele),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(QU,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jU("pictorialBar"))}var Ole=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,i){var n=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=n.getLayout("layoutInfo"),v=u.rect,h=u.boundaryGap;s.x=0,s.y=v.y+h[0];function f(g){return g.name}var c=new bn(this._layersSeries||[],l,f,f),d=[];c.add(Ne(p,this,"add")).update(Ne(p,this,"update")).remove(Ne(p,this,"remove")).execute();function p(g,m,y){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var x=[],S=[],b,w=l[m].indices,A=0;A<w.length;A++){var T=n.getItemLayout(w[A]),C=T.x,M=T.y0,L=T.y;x.push(C,M),S.push(C,M+L),b=n.getItemVisual(w[A],"style")}var D,P=n.getItemLayout(w[0]),I=e.getModel("label"),R=I.get("margin"),E=e.getModel("emphasis");if(g==="add"){var k=d[m]=new Ze;D=new C6({shape:{points:x,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(D),s.add(k),e.isAnimationEnabled()&&D.setClipPath(Nle(D.getBoundingRect(),e,function(){D.removeClipPath()}))}else{var k=_[y];D=k.childAt(0),s.add(k),d[m]=k,wt(D,{shape:{points:x,stackedOnPoints:S}},e),xi(D)}Gr(D,Cr(e),{labelDataIndex:w[A-1],defaultText:n.getName(w[A-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),D.setTextConfig({position:null,local:!0});var B=D.getTextContent();B&&(B.x=P.x-R,B.y=P.y0+P.y/2),D.useStyle(b),n.setItemGraphicEl(m,D),Vr(D,e),tr(D,E.get("focus"),E.get("blurScope"),E.get("disabled"))}this._layersSeries=l,this._layers=d},t.type="themeRiver",t})(kt);function Nle(r,t,e){var a=new gt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return $t(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var by=2,zle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new rf(Ne(this.getData,this),Ne(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,i={},n=iT(e,function(f){return i.hasOwnProperty(f[0]+"")||(i[f[0]+""]=-1),f[2]}),o=[];n.buckets.each(function(f,c){o.push({name:c,dataList:f})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,v=0;v<o[l].dataList.length;++v){var h=o[l].dataList[v][0]+"";i[h]=l}for(var h in i)i.hasOwnProperty(h)&&i[h]!==l&&(i[h]=l,e[a]=[h,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var i=this.getReferringComponents("singleAxis",cr).models[0],n=i.get("type"),o=Ct(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Ge(),v=0,h=0;h<s.length;++h)l.push(s[h][by]),u.get(s[h][by])||(u.set(s[h][by],v),v++);var f=_u(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ud(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new Xr(f,this);return c.initData(s),c},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),i=[],n=0;n<a;++n)i[n]=n;var o=e.mapDimension("single"),s=iT(i,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,v){u.sort(function(h,f){return e.get(o,h)-e.get(o,f)}),l.push({name:v,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,i){Se(e)||(e=e?[e]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,v=0;v<l;++v){for(var h=Number.MAX_VALUE,f=-1,c=o[v].indices.length,d=0;d<c;++d){var p=n.get(e[0],o[v].indices[d]),g=Math.abs(p-a);g<=h&&(u=p,h=g,f=o[v].indices[d])}s.push(f)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=n.getName(e),s=n.get(n.mapDimension("value"),e);return Mr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.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}}},t})(zt);function Ble(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),i=e.coordinateSystem,n={},o=i.getRect();n.rect=o;var s=e.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=Ie(s[0],o.height),s[1]=Ie(s[1],o.height);var u=o.height-s[0]-s[1];uR(a,e,u)}else{s[0]=Ie(s[0],o.width),s[1]=Ie(s[1],o.width);var v=o.width-s[0]-s[1];uR(a,e,v)}a.setLayout("layoutInfo",n)})}function uR(r,t,e){if(r.count())for(var a=t.coordinateSystem,i=t.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=we(i,function(g){return we(g.indices,function(m){var y=a.dataToPoint(r.get(n,m));return y[1]=r.get(o,m),y})}),l=Vle(s),u=l.y0,v=e/l.max,h=i.length,f=i[0].indices.length,c,d=0;d<f;++d){c=u[d]*v,r.setItemLayout(i[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:c,y:s[0][d][1]*v});for(var p=1;p<h;++p)c+=s[p-1][d][1]*v,r.setItemLayout(i[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:c,y:s[p][d][1]*v})}}function Vle(r){for(var t=r.length,e=r[0].length,a=[],i=[],n=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>n&&(n=s),a.push(s)}for(var u=0;u<e;++u)i[u]=(n-a[u])/2;n=0;for(var v=0;v<e;++v){var h=a[v]+i[v];h>n&&(n=h)}return{y0:i,max:n}}function Gle(r){r.registerChartView(Ole),r.registerSeriesModel(zle),r.registerLayout(Ble),r.registerProcessor(tf("themeRiver"))}var Fle=2,Hle=4,vR=(function(r){he(t,r);function t(e,a,i,n){var o=r.call(this)||this;o.z2=Fle,o.textConfig={inside:!0},Xe(o).seriesIndex=a.seriesIndex;var s=new pt({z2:Hle,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,i,n),o}return t.prototype.updateData=function(e,a,i,n,o){this.node=a,a.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;Xe(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),v=a.getLayout(),h=_e({},v);h.label=null;var f=a.getVisual("style");f.lineJoin="bevel";var c=a.getVisual("decal");c&&(f.decal=Ql(c,o));var d=ys(l.getModel("itemStyle"),h,!0);_e(h,d),$(va,function(y){var _=s.ensureState(y),x=l.getModel([y,"itemStyle"]);_.style=x.getItemStyle();var S=ys(x,h);S&&(_.shape=S)}),e?(s.setShape(h),s.shape.r=v.r0,$t(s,{shape:{r:v.r}},i,a.dataIndex)):(wt(s,{shape:h},i),xi(s)),s.useStyle(f),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),m=g==="relative"?$l(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;tr(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),v=Math.sin(l),h=this,f=h.getTextContent(),c=this.node.dataIndex,d=n.get("minAngle")/180*Math.PI,p=n.get("show")&&!(d!=null&&Math.abs(s)<d);f.ignore=!p,$(ph,function(m){var y=m==="normal"?i.getModel("label"):i.getModel([m,"label"]),_=m==="normal",x=_?f:f.ensureState(m),S=e.getFormattedLabel(c,m);_&&(S=S||a.node.name),x.style=Ht(y,{},null,m!=="normal",!0),S&&(x.style.text=S);var b=y.get("show");b!=null&&!_&&(x.ignore=!b);var w=g(y,"position"),A=_?h:h.states[m],T=A.style.fill;A.textConfig={outsideFill:y.get("color")==="inherit"?T:null,inside:w!=="outside"};var C,M=g(y,"distance")||0,L=g(y,"align"),D=g(y,"rotate"),P=Math.PI*.5,I=Math.PI*1.5,R=Aa(D==="tangential"?Math.PI/2-l:l),E=R>P&&!Yl(R-P)&&R<I;w==="outside"?(C=o.r+M,L=E?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,L="center"):L==="left"?(C=o.r0+M,L=E?"right":"left"):L==="right"&&(C=o.r-M,L=E?"left":"right"),x.style.align=L,x.style.verticalAlign=g(y,"verticalAlign")||"middle",x.x=C*u+o.cx,x.y=C*v+o.cy;var k=0;D==="radial"?k=Aa(-l)+(E?Math.PI:0):D==="tangential"?k=Aa(Math.PI/2-l)+(E?Math.PI:0):bt(D)&&(k=D*Math.PI/180),x.rotation=Aa(k)});function g(m,y){var _=m.get(y);return _==null?n.get(y):_}f.dirtyStyle()},t})(Qr),rA="sunburstRootToNode",hR="sunburstHighlight",qle="sunburstUnhighlight";function Wle(r){r.registerAction({type:rA,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i,n){var o=Mh(t,[rA],i);if(o){var s=i.getViewRoot();s&&(t.direction=tM(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:hR,update:"none"},function(t,e,a){t=_e({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(n){var o=Mh(t,[hR],n);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(_e(t,{type:"highlight"}))}),r.registerAction({type:qle,update:"updateView"},function(t,e,a){t=_e({},t),a.dispatchAction(_e(t,{type:"downplay"}))})}var Ule=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){var o=this;this.seriesModel=e,this.api=i,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),v=this.group,h=e.get("renderLabelForZeroData"),f=[];u.eachNode(function(y){f.push(y)});var c=this._oldChildren||[];d(f,c),m(l,u),this._initEvents(),this._oldChildren=f;function d(y,_){if(y.length===0&&_.length===0)return;new bn(_,y,x,x).add(S).update(S).remove(et(S,null)).execute();function x(b){return b.getId()}function S(b,w){var A=b==null?null:y[b],T=w==null?null:_[w];p(A,T)}}function p(y,_){if(!h&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,e,a,i),s.setItemGraphicEl(y.dataIndex,_.piece)):g(_);else if(y){var x=new vR(y,e,a,i);v.add(x),s.setItemGraphicEl(y.dataIndex,x)}}}function g(y){y&&y.piece&&(v.remove(y.piece),y.piece=null)}function m(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,e,a,i):(o.virtualPiece=new vR(y,e,a,i),v.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(_.parentNode)})):o.virtualPiece&&(v.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var v=l.get("target",!0)||"_blank";Od(u,v)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rA,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=e[0]-n.cx,s=e[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},t.type="sunburst",t})(kt),$le=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var i={name:e.name,children:e.data};t7(i);var n=this._levelModels=we(e.levels||[],function(l){return new Mt(l,this,a)},this),o=eM.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,v){var h=o.getNodeByDataIndex(v),f=n[h.depth];return f&&(u.parentModel=f),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=eg(i,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){o8(this)},t.type="series.sunburst",t.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"},t})(zt);function t7(r){var t=0;$(r.children,function(a){t7(a);var i=a.value;Se(i)&&(i=i[0]),t+=i});var e=r.value;Se(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Se(r.value)?r.value[0]=e:r.value=e}var fR=Math.PI/180;function Yle(r,t,e){t.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");Se(n)||(n=[0,n]),Se(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=Ie(i[0],o),v=Ie(i[1],s),h=Ie(n[0],l/2),f=Ie(n[1],l/2),c=-a.get("startAngle")*fR,d=a.get("minAngle")*fR,p=a.getData().tree.root,g=a.getViewRoot(),m=g.depth,y=a.get("sort");y!=null&&r7(g,y);var _=0;$(g.children,function(R){!isNaN(R.getValue())&&_++});var x=g.getValue(),S=Math.PI/(x||_)*2,b=g.depth>0,w=g.height-(b?-1:1),A=(f-h)/(w||1),T=a.get("clockwise"),C=a.get("stillShowZeroSum"),M=T?1:-1,L=function(R,E){if(R){var k=E;if(R!==p){var B=R.getValue(),F=x===0&&C?S:B*S;F<d&&(F=d),k=E+M*F;var V=R.depth-m-(b?-1:1),N=h+A*V,O=h+A*(V+1),z=a.getLevelModel(R);if(z){var G=z.get("r0",!0),q=z.get("r",!0),H=z.get("radius",!0);H!=null&&(G=H[0],q=H[1]),G!=null&&(N=Ie(G,l/2)),q!=null&&(O=Ie(q,l/2))}R.setLayout({angle:F,startAngle:E,endAngle:k,clockwise:T,cx:u,cy:v,r0:N,r:O})}if(R.children&&R.children.length){var U=0;$(R.children,function(W){U+=L(W,E+U)})}return k-E}};if(b){var D=h,P=h+A,I=Math.PI*2;p.setLayout({angle:I,startAngle:c,endAngle:c+I,clockwise:T,cx:u,cy:v,r0:D,r:P})}L(g,c)})}function r7(r,t){var e=r.children||[];r.children=Zle(e,t),e.length&&$(r.children,function(a){r7(a,t)})}function Zle(r,t){if(He(t)){var e=we(r,function(i,n){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:n}});return e.sort(function(i,n){return t(i.params,n.params)}),we(e,function(i){return r[i.index]})}else{var a=t==="asc";return r.sort(function(i,n){var o=(i.getValue()-n.getValue())*(a?1:-1);return o===0?(i.dataIndex-n.dataIndex)*(a?-1:1):o})}}function Xle(r){var t={};function e(a,i,n){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Re(s)&&(s=wd(s,(a.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var i=a.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");_e(u,l)})})}function Kle(r){r.registerChartView(Ule),r.registerSeriesModel($le),r.registerLayout(et(Yle,"sunburst")),r.registerProcessor(et(tf,"sunburst")),r.registerVisual(Xle),Wle(r)}var cR={color:"fill",borderColor:"stroke"},Qle={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mn=yt(),jle=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return Qi(null,this)},t.prototype.getDataParams=function(e,a,i){var n=r.prototype.getDataParams.call(this,e,a);return i&&(n.info=mn(i).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(zt);function Jle(r,t){return t=t||[0,0],we(["x","y"],function(e,a){var i=this.getAxis(e),n=t[a],o=r[a]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function eue(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Ne(Jle,r)}}}function tue(r,t){return t=t||[0,0],we([0,1],function(e){var a=t[e],i=r[e]/2,n=[],o=[];return n[e]=a-i,o[e]=a+i,n[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(n)[e]-this.dataToPoint(o)[e])},this)}function rue(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Ne(tue,r)}}}function aue(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-i)-e.dataToCoord(a+i))}function iue(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Ne(aue,r)}}}function nue(r,t){return t=t||[0,0],we(["Radius","Angle"],function(e,a){var i="get"+e+"Axis",n=this[i](),o=t[a],s=r[a]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function oue(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(i){var n=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:Ne(nue,r)}}}function sue(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,i){return r.dataToPoint(a,i)}}}}function a7(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Be(r,"text")))}function i7(r,t,e){var a=r,i,n,o;if(t==="text")o=a;else{o={},Be(a,"text")&&(o.text=a.text),Be(a,"rich")&&(o.rich=a.rich),Be(a,"textFill")&&(o.fill=a.textFill),Be(a,"textStroke")&&(o.stroke=a.textStroke),Be(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Be(a,"fontSize")&&(o.fontSize=a.fontSize),Be(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Be(a,"fontWeight")&&(o.fontWeight=a.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=Be(a,"textPosition");e?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Be(a,"textPosition")&&(i.position=a.textPosition),Be(a,"textOffset")&&(i.offset=a.textOffset),Be(a,"textRotation")&&(i.rotation=a.textRotation),Be(a,"textDistance")&&(i.distance=a.textDistance)}return dR(o,r),$(o.rich,function(l){dR(l,l)}),{textConfig:i,textContent:n}}function dR(r,t){t&&(t.font=t.textFont||t.font,Be(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Be(t,"textAlign")&&(r.align=t.textAlign),Be(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Be(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Be(t,"textWidth")&&(r.width=t.textWidth),Be(t,"textHeight")&&(r.height=t.textHeight),Be(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Be(t,"textPadding")&&(r.padding=t.textPadding),Be(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Be(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Be(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Be(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Be(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Be(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Be(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function pR(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var i=a.textPosition.indexOf("inside")>=0,n=r.fill||"#000";gR(a,t);var o=a.textFill==null;return i?o&&(a.textFill=e.insideFill||"#fff",!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||"#000"),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,$(t.rich,function(s){gR(s,s)}),a}function gR(r,t){t&&(Be(t,"fill")&&(r.textFill=t.fill),Be(t,"stroke")&&(r.textStroke=t.fill),Be(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Be(t,"font")&&(r.font=t.font),Be(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Be(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Be(t,"fontSize")&&(r.fontSize=t.fontSize),Be(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Be(t,"align")&&(r.textAlign=t.align),Be(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Be(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Be(t,"width")&&(r.textWidth=t.width),Be(t,"height")&&(r.textHeight=t.height),Be(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Be(t,"padding")&&(r.textPadding=t.padding),Be(t,"borderColor")&&(r.textBorderColor=t.borderColor),Be(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Be(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Be(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Be(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Be(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Be(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Be(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Be(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Be(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Be(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var n7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mR=ft(n7);Ya($i,function(r,t){return r[t]=1,r},{});$i.join(", ");var rp=["","style","shape","extra"],tu=yt();function yM(r,t,e,a,i){var n=r+"Animation",o=uu(r,a,i)||{},s=tu(t).userDuring;return o.duration>0&&(o.during=s?Ne(fue,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),_e(o,e[n]),o}function ud(r,t,e,a){a=a||{};var i=a.dataIndex,n=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=tu(r),u=t.style;l.userDuring=t.during;var v={},h={};if(due(r,t,h),_R("shape",t,h),_R("extra",t,h),!n&&s&&(cue(r,t,v),yR("shape",r,t,v),yR("extra",r,t,v),pue(r,t,u,v)),h.style=u,lue(r,h,o),vue(r,t),s)if(n){var f={};$(rp,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(f[d]=f[d]||{}),_e(d?f[d]:f,p.enterFrom))});var c=yM("enter",r,t,e,i);c.duration>0&&r.animateFrom(f,c)}else uue(r,t,i||0,e,v);o7(r,t),u?r.dirty():r.markRedraw()}function o7(r,t){for(var e=tu(r).leaveToProps,a=0;a<rp.length;a++){var i=rp[a],n=i?t[i]:t;n&&n.leaveTo&&(e||(e=tu(r).leaveToProps={}),i&&(e[i]=e[i]||{}),_e(i?e[i]:e,n.leaveTo))}}function ag(r,t,e,a){if(r){var i=r.parent,n=tu(r).leaveToProps;if(n){var o=yM("update",r,t,e,0);o.done=function(){i.remove(r)},r.animateTo(n,o)}else i.remove(r)}}function As(r){return r==="all"}function lue(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var i=r.animators,n=0;n<i.length;n++){var o=i[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function uue(r,t,e,a,i){if(i){var n=yM("update",r,t,a,e);n.duration>0&&r.animateFrom(i,n)}}function vue(r,t){Be(t,"silent")&&(r.silent=t.silent),Be(t,"ignore")&&(r.ignore=t.ignore),r instanceof Za&&Be(t,"invisible")&&(r.invisible=t.invisible),r instanceof ht&&Be(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Oi={},hue={setTransform:function(r,t){return Oi.el[r]=t,this},getTransform:function(r){return Oi.el[r]},setShape:function(r,t){var e=Oi.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Oi.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Oi.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Oi.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Oi.el.extra||(Oi.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Oi.el.extra;if(t)return t[r]}};function fue(){var r=this,t=r.el;if(t){var e=tu(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}Oi.el=t,a(hue)}}function yR(r,t,e,a){var i=e[r];if(i){var n=t[r],o;if(n){var s=e.transition,l=i.transition;if(l)if(!o&&(o=a[r]={}),As(l))_e(o,n);else for(var u=Nt(l),v=0;v<u.length;v++){var h=u[v],f=n[h];o[h]=f}else if(As(s)||nt(s,r)>=0){!o&&(o=a[r]={});for(var c=ft(n),v=0;v<c.length;v++){var h=c[v],f=n[h];gue(i[h],f)&&(o[h]=f)}}}}}function _R(r,t,e){var a=t[r];if(a)for(var i=e[r]={},n=ft(a),o=0;o<n.length;o++){var s=n[o];i[s]=$v(a[s])}}function cue(r,t,e){for(var a=t.transition,i=As(a)?$i:Nt(a||[]),n=0;n<i.length;n++){var o=i[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function due(r,t,e){for(var a=0;a<mR.length;a++){var i=mR[a],n=n7[i],o=t[i];o&&(e[n[0]]=o[0],e[n[1]]=o[1])}for(var a=0;a<$i.length;a++){var s=$i[a];t[s]!=null&&(e[s]=t[s])}}function pue(r,t,e,a){if(e){var i=r.style,n;if(i){var o=e.transition,s=t.transition;if(o&&!As(o)){var l=Nt(o);!n&&(n=a.style={});for(var u=0;u<l.length;u++){var v=l[u],h=i[v];n[v]=h}}else if(r.getAnimationStyleProps&&(As(s)||As(o)||nt(s,"style")>=0)){var f=r.getAnimationStyleProps(),c=f?f.style:null;if(c){!n&&(n=a.style={});for(var d=ft(e),u=0;u<d.length;u++){var v=d[u];if(c[v]){var h=i[v];n[v]=h}}}}}}}function gue(r,t){return Br(r)?r!==t:r!=null&&isFinite(r)}var s7=yt(),mue=["percent","easing","shape","style","extra"];function l7(r){r.stopAnimation("keyframe"),r.attr(s7(r))}function ap(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(Se(t)){$(t,function(s){ap(r,s,e)});return}var a=t.keyframes,i=t.duration;if(e&&i==null){var n=uu("enter",e,0);i=n&&n.duration}if(!(!a||!i)){var o=s7(r);$(rp,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,v){return u.percent-v.percent}),$(a,function(u){var v=r.animators,h=s?u[s]:u;if(h){var f=ft(h);if(s||(f=Ct(f,function(p){return nt(mue,p)<0})),!!f.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var c=0;c<v.length;c++)v[c]!==l&&v[c].targetName===l.targetName&&v[c].stopTracks(f);s&&(o[s]=o[s]||{});var d=s?o[s]:o;$(f,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*u.percent,h,f,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var yn="emphasis",Qn="normal",_M="blur",xM="select",ho=[Qn,yn,_M,xM],wy={normal:["itemStyle"],emphasis:[yn,"itemStyle"],blur:[_M,"itemStyle"],select:[xM,"itemStyle"]},Ty={normal:["label"],emphasis:[yn,"label"],blur:[_M,"label"],select:[xM,"label"]},yue=["x","y"],_ue="e\0\0",ka={normal:{},emphasis:{},blur:{},select:{}},xue={cartesian2d:eue,geo:rue,single:iue,polar:oue,calendar:sue};function aA(r){return r instanceof ht}function iA(r){return r instanceof Za}function Sue(r,t){t.copyTransform(r),iA(t)&&iA(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,aA(t)&&aA(r)&&t.setShape(r.shape))}var bue=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=xR(e,s,a,i);o||l.removeAll(),s.diff(o).add(function(h){Ay(i,null,h,u(h,n),e,l,s)}).remove(function(h){var f=o.getItemGraphicEl(h);f&&ag(f,mn(f).option,e)}).update(function(h,f){var c=o.getItemGraphicEl(f);Ay(i,c,h,u(h,n),e,l,s)}).execute();var v=e.get("clip",!0)?Jh(e.coordinateSystem,!1,e):null;v?l.setClipPath(v):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,i,n,o){var s=a.getData(),l=xR(a,s,i,n),u=this._progressiveEls=[];function v(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var h=e.start;h<e.end;h++){var f=Ay(null,null,h,l(h,o),a,this.group,s);f&&(f.traverse(v),u.push(f))}},t.prototype.eachRendered=function(e){po(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,i,n){var o=a.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t})(kt);function SM(r){var t=r.type,e;if(t==="path"){var a=r.shape,i=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,n=h7(a);e=$h(n,null,i,a.layout||"center"),mn(e).customPathData=n}else if(t==="image")e=new Dr({}),mn(e).customImagePath=r.style.image;else if(t==="text")e=new pt({});else if(t==="group")e=new Ze;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=kp(t);if(!o){var s="";Rt(s)}e=new o}return mn(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function bM(r,t,e,a,i,n,o){l7(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=yue);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;Be(u,"textFill")&&(u.fill=u.textFill),Be(u,"textStroke")&&(u.stroke=u.textStroke)}var v=void 0,h=aA(t)?l.decal:null;r&&h&&(h.dirty=!0,v=Ql(h,r)),l.__decalPattern=v}if(iA(t)&&l){var v=l.__decalPattern;v&&(l.decal=v)}ud(t,a,n,{dataIndex:e,isInit:o,clearStyle:!0}),ap(t,a.keyframeAnimation,n)}function u7(r,t,e,a,i){var n=t.isGroup?null:t,o=i&&i[r].cfg;if(n){var s=n.ensureState(r);if(a===!1){var l=n.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Is(n)}}function wue(r,t,e){if(!r.isGroup){var a=r,i=e.currentZ,n=e.currentZLevel;a.z=i,a.zlevel=n;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<ho.length;s++)Tue(a,t,ho[s])}}function Tue(r,t,e){var a=e===Qn,i=a?t:ip(t,e),n=i?i.z2:null,o;n!=null&&(o=a?r:r.ensureState(e),o.z2=n||0)}function xR(r,t,e,a){var i=r.get("renderItem"),n=r.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):xue[n.type](n));for(var s=Ue({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:x,style:b,ordinalRawValue:S,styleEmphasis:w,visual:C,barLayout:M,currentSeriesIndices:L,font:D},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:Aue(r.getData())},u,v,h={},f={},c={},d={},p=0;p<ho.length;p++){var g=ho[p];c[g]=r.getModel(wy[g]),d[g]=r.getModel(Ty[g])}function m(P){return P===u?v||(v=t.getItemModel(P)):t.getItemModel(P)}function y(P,I){return t.hasItemOption?P===u?h[I]||(h[I]=m(P).getModel(wy[I])):m(P).getModel(wy[I]):c[I]}function _(P,I){return t.hasItemOption?P===u?f[I]||(f[I]=m(P).getModel(Ty[I])):m(P).getModel(Ty[I]):d[I]}return function(P,I){return u=P,v=null,h={},f={},i&&i(Ue({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:I?I.type:null},l),s)};function x(P,I){return I==null&&(I=u),t.getStore().get(t.getDimensionIndex(P||0),I)}function S(P,I){I==null&&(I=u),P=P||0;var R=t.getDimensionInfo(P);if(!R){var E=t.getDimensionIndex(P);return E>=0?t.getStore().get(E,I):void 0}var k=t.get(R.name,I),B=R&&R.ordinalMeta;return B?B.categories[k]:k}function b(P,I){I==null&&(I=u);var R=t.getItemVisual(I,"style"),E=R&&R.fill,k=R&&R.opacity,B=y(I,Qn).getItemStyle();E!=null&&(B.fill=E),k!=null&&(B.opacity=k);var F={inheritColor:Re(E)?E:"#000"},V=_(I,Qn),N=Ht(V,null,F,!1,!0);N.text=V.getShallow("show")?Je(r.getFormattedLabel(I,Qn),jl(t,I)):null;var O=Ed(V,F,!1);return T(P,B),B=pR(B,N,O),P&&A(B,P),B.legacy=!0,B}function w(P,I){I==null&&(I=u);var R=y(I,yn).getItemStyle(),E=_(I,yn),k=Ht(E,null,null,!0,!0);k.text=E.getShallow("show")?ci(r.getFormattedLabel(I,yn),r.getFormattedLabel(I,Qn),jl(t,I)):null;var B=Ed(E,null,!0);return T(P,R),R=pR(R,k,B),P&&A(R,P),R.legacy=!0,R}function A(P,I){for(var R in I)Be(I,R)&&(P[R]=I[R])}function T(P,I){P&&(P.textFill&&(I.textFill=P.textFill),P.textPosition&&(I.textPosition=P.textPosition))}function C(P,I){if(I==null&&(I=u),Be(cR,P)){var R=t.getItemVisual(I,"style");return R?R[cR[P]]:null}if(Be(Qle,P))return t.getItemVisual(I,P)}function M(P){if(n.type==="cartesian2d"){var I=n.getBaseAxis();return Vee(Ue({axis:I},P))}}function L(){return e.getCurrentSeriesIndices()}function D(P){return sC(P,e)}}function Aue(r){var t={};return $(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var i=a.coordDim,n=t[i]=t[i]||[];n[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Ay(r,t,e,a,i,n,o){if(!a){n.remove(t);return}var s=wM(r,t,e,a,i,n);return s&&o.setItemGraphicEl(e,s),s&&tr(s,a.focus,a.blurScope,a.emphasisDisabled),s}function wM(r,t,e,a,i,n){var o=-1,s=t;t&&v7(t,a,i)&&(o=nt(n.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=SM(a),s&&Sue(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ka.normal.cfg=ka.normal.conOpt=ka.emphasis.cfg=ka.emphasis.conOpt=ka.blur.cfg=ka.blur.conOpt=ka.select.cfg=ka.select.conOpt=null,ka.isLegacy=!1,Mue(u,e,a,i,l,ka),Cue(u,e,a,i,l),bM(r,u,e,a,ka,i,l),Be(a,"info")&&(mn(u).info=a.info);for(var v=0;v<ho.length;v++){var h=ho[v];if(h!==Qn){var f=ip(a,h),c=TM(a,f,h);u7(h,u,f,c,ka)}}return wue(u,a,i),a.type==="group"&&Due(r,u,e,a,i),o>=0?n.replaceAt(u,o):n.add(u),u}function v7(r,t,e){var a=mn(r),i=t.type,n=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==a.customGraphicType||i==="path"&&Rue(n)&&h7(n)!==a.customPathData||i==="image"&&Be(o,"image")&&o.image!==a.customImagePath}function Cue(r,t,e,a,i){var n=e.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&v7(o,n,a)&&(o=null),o||(o=SM(n),r.setClipPath(o)),bM(null,o,t,n,null,a,i)}}function Mue(r,t,e,a,i,n){if(!r.isGroup){SR(e,null,n),SR(e,yn,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var v=r.getTextContent();if(o===!1)v&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},v?v.clearStates():(v=SM(o),r.setTextContent(v)),bM(null,v,t,o,null,a,i);for(var h=o&&o.style,f=0;f<ho.length;f++){var c=ho[f];if(c!==Qn){var d=n[c].conOpt;u7(c,v,d,TM(o,d,c),null)}}h?v.dirty():v.markRedraw()}}}}function SR(r,t,e){var a=t?ip(r,t):r,i=t?TM(r,a,yn):r.style,n=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?ip(s,t):s:null;if(i&&(e.isLegacy||a7(i,n,!!o,!!l))){e.isLegacy=!0;var u=i7(i,n,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var v=l;!v.type&&(v.type="text")}var h=t?e[t]:e.normal;h.cfg=o,h.conOpt=l}function ip(r,t){return t?r?r[t]:null:r}function TM(r,t,e){var a=t&&t.style;return a==null&&e===yn&&r&&(a=r.styleEmphasis),a}function Due(r,t,e,a,i){var n=a.children,o=n?n.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Iue({api:r,oldChildren:t.children()||[],newChildren:n||[],dataIndex:e,seriesModel:i,group:t});return}u&&t.removeAll();for(var v=0;v<o;v++){var h=n[v],f=t.childAt(v);h?(h.ignore==null&&(h.ignore=!1),wM(r,f,e,h,i,t)):f.ignore=!0}for(var c=t.childCount()-1;c>=v;c--){var d=t.childAt(c);Lue(t,d,i)}}}function Lue(r,t,e){t&&ag(t,mn(r).option,e)}function Iue(r){new bn(r.oldChildren,r.newChildren,bR,bR,r).add(wR).update(wR).remove(Pue).execute()}function bR(r,t){var e=r&&r.name;return e!=null?e:_ue+t}function wR(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;wM(e.api,i,e.dataIndex,a,e.seriesModel,e.group)}function Pue(r){var t=this.context,e=t.oldChildren[r];e&&ag(e,mn(e).option,t.seriesModel)}function h7(r){return r&&(r.pathData||r.d)}function Rue(r){return r&&(Be(r,"pathData")||Be(r,"d"))}function Eue(r){r.registerChartView(bue),r.registerSeriesModel(jle)}var ls=yt(),TR=Ye,Cy=Ne,AM=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,i){var n=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,t,e,a);var v=u.graphicKey;v!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=v;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Ze,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var f=et(AR,e,h);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,e)}MR(s,e,!0),this._renderHandle(n)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),i=t.axis,n=i.type==="category",o=e.get("snap");if(!o&&!n)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=YC(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,i,n){},r.prototype.createPointerEl=function(t,e,a,i){var n=e.pointer;if(n){var o=ls(t).pointerEl=new Bs[n.type](TR(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,i){if(e.label){var n=ls(t).labelEl=new pt(TR(e.label));t.add(n),CR(n,i)}},r.prototype.updatePointerEl=function(t,e,a){var i=ls(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),a(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,i){var n=ls(t).labelEl;n&&(n.setStyle(e.label.style),a(n,{x:e.label.x,y:e.label.y}),CR(n,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),i=this._handle,n=e.getModel("handle"),o=e.get("status");if(!n.get("show")||!o||o==="hide"){i&&a.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=vu(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_n(u.event)},onmousedown:Cy(this._onHandleDragMove,this,0,0),drift:Cy(this._onHandleDragMove,this),ondragend:Cy(this._onHandleDragEnd,this)}),a.add(i)),MR(i,e,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");Se(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,mu(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){AR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,My(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var i=this.updateHandleTransform(My(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr(My(i)),ls(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.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"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,i=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Sh(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function AR(r,t,e,a){f7(ls(e).lastProp,a)||(ls(e).lastProp=a,t?wt(e,a,r):(e.stopAnimation(),e.attr(a)))}function f7(r,t){if($e(r)&&$e(t)){var e=!0;return $(t,function(a,i){e=e&&f7(r[i],a)}),!!e}else return r===t}function CR(r,t){r[t.get(["label","show"])?"show":"hide"]()}function My(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function MR(r,t,e){var a=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(a!=null&&(n.z=a),i!=null&&(n.zlevel=i),n.silent=e)})}function CM(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function c7(r,t,e,a,i){var n=e.get("value"),o=d7(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Vs(s.get("padding")||0),u=s.getFont(),v=Fh(o,u),h=i.position,f=v.width+l[1]+l[3],c=v.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=f),d==="center"&&(h[0]-=f/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),kue(h,f,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ht(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function kue(r,t,e,a){var i=a.getWidth(),n=a.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,n)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function d7(r,t,e,a,i){r=t.scale.parse(r);var n=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:HC(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};$(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),v=l.dataIndexInside,h=u&&u.getDataParams(v);h&&s.seriesData.push(h)}),Re(o)?n=o.replace("{value}",n):He(o)&&(n=o(s))}return n}function MM(r,t,e){var a=xa();return co(a,a,e.rotation),yi(a,a,e.position),gi([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function p7(r,t,e,a,i,n){var o=la.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),c7(t,a,i,n,{position:MM(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DM(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function g7(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function DR(r,t,e,a,i,n){return{cx:r,cy:t,r0:e,r:a,startAngle:i,endAngle:n,clockwise:!0}}var Oue=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),v=LR(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var f=CM(n),c=Nue[u](s,h,v);c.style=f,e.graphicKey=c.type,e.pointer=c}var d=BT(l.model,i);p7(a,e,d,i,n,o)},t.prototype.getHandleTransform=function(e,a,i){var n=BT(a.axis.grid.model,a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=MM(a.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=LR(s,o).getOtherAxis(o).getGlobalExtent(),v=o.dim==="x"?0:1,h=[e.x,e.y];h[v]+=a[v],h[v]=Math.min(l[1],h[v]),h[v]=Math.max(l[0],h[v]);var f=(u[1]+u[0])/2,c=[f,f];c[v]=h[v];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[v]}},t})(AM);function LR(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Nue={line:function(r,t,e){var a=DM([t,e[0]],[t,e[1]],IR(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:g7([t-a/2,e[0]],[a,i],IR(r))}}};function IR(r){return r.dim==="x"?0:1}var zue=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.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}},t})(ut),gn=yt(),Bue=$;function m7(r,t,e){if(!vt.node){var a=t.getZr();gn(a).records||(gn(a).records={}),Vue(a,t);var i=gn(a).records[r]||(gn(a).records[r]={});i.handler=e}}function Vue(r,t){if(gn(r).initialized)return;gn(r).initialized=!0,e("click",et(PR,"click")),e("mousemove",et(PR,"mousemove")),e("globalout",Fue);function e(a,i){r.on(a,function(n){var o=Hue(t);Bue(gn(r).records,function(s){s&&i(s,n,o.dispatchAction)}),Gue(o.pendings,t)})}}function Gue(r,t){var e=r.showTip.length,a=r.hideTip.length,i;e?i=r.showTip[e-1]:a&&(i=r.hideTip[a-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Fue(r,t,e){r.handler("leave",null,e)}function PR(r,t,e,a){t.handler(r,e,a)}function Hue(r){var t={showTip:[],hideTip:[]},e=function(a){var i=t[a.type];i?i.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function nA(r,t){if(!vt.node){var e=t.getZr(),a=(gn(e).records||{})[r];a&&(gn(e).records[r]=null)}}var que=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=a.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";m7("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){nA("axisPointer",a)},t.prototype.dispose=function(e,a){nA("axisPointer",a)},t.type="axisPointer",t})(Wt);function y7(r,t){var e=[],a=r.seriesIndex,i;if(a==null||!(i=t.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=Ds(n,r);if(o==null||o<0||Se(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),v=l.getOtherAxis(u),h=v.dim,f=u.dim,c=h==="x"||h==="radius"?1:0,d=n.mapDimension(f),p=[];p[c]=n.get(d,o),p[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(n.getValues(we(l.dimensions,function(m){return n.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var RR=yt();function Wue(r,t,e){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||Ne(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){vd(i)&&(i=y7({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=vd(i),u=n.axesInfo,v=s.axesInfo,h=a==="leave"||vd(i),f={},c={},d={list:[],map:{}},p={showPointer:et($ue,c),showTooltip:et(Yue,d)};$(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);$(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,w=Que(u,x);if(!h&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=b.pointToData(i)),A!=null&&ER(x,A,p,!1,f)}})});var g={};return $(v,function(m,y){var _=m.linkGroup;_&&!c[y]&&$(_.axesInfo,function(x,S){var b=c[S];if(x!==m&&b){var w=b.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,kR(x),kR(m)))),g[m.key]=w}})}),$(g,function(m,y){ER(v[y],m,p,!0,f)}),Zue(c,v,f),Xue(d,i,r,o),Kue(v,o,e),f}}function ER(r,t,e,a,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Uue(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&_e(i,s[0]),!a&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Uue(r,t){var e=t.axis,a=e.dim,i=r,n=[],o=Number.MAX_VALUE,s=-1;return $(t.seriesModels,function(l,u){var v=l.getData().mapDimensionsAll(a),h,f;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(v,r,e);f=c.dataIndices,h=c.nestestValue}else{if(f=l.getData().indicesOfNearest(v[0],r,e.type==="category"?.5:null),!f.length)return;h=l.getData().get(v[0],f[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,n.length=0),$(f,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function $ue(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function Yue(r,t,e,a){var i=e.payloadBatch,n=t.axis,o=n.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ch(l),v=r.map[u];v||(v=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(v)),v.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Zue(r,t,e){var a=e.axesInfo=[];$(t,function(i,n){var o=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Xue(r,t,e,a){if(vd(t)||!r.list.length){a({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function Kue(r,t,e){var a=e.getZr(),i="axisPointerLastHighlights",n=RR(a)[i]||{},o=RR(a)[i]={};$(r,function(u,v){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&$(h.seriesDataIndices,function(f){var c=f.seriesIndex+" | "+f.dataIndex;o[c]=f})});var s=[],l=[];$(n,function(u,v){!o[v]&&l.push(u)}),$(o,function(u,v){!n[v]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Que(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function kR(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function vd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function of(r){Hs.registerAxisPointerClass("CartesianAxisPointer",Oue),r.registerComponentModel(zue),r.registerComponentView(que),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Se(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=sae(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Wue)}function jue(r){ot($6),ot(of)}var Jue=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),v=u.getExtent(),h=s.dataToCoord(a),f=n.get("type");if(f&&f!=="none"){var c=CM(n),d=tve[f](s,l,h,v);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=n.get(["label","margin"]),g=eve(a,i,n,l,p);c7(e,i,n,o,g)},t})(AM);function eve(r,t,e,a,i){var n=t.axis,o=n.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,v,h;if(n.dim==="radius"){var f=xa();co(f,f,s),yi(f,f,[a.cx,a.cy]),u=gi([o,-i],f);var c=t.getModel("axisLabel").get("rotate")||0,d=la.innerTextLayout(s,c*Math.PI/180,-1);v=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+i,o]);var g=a.cx,m=a.cy;v=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:v,verticalAlign:h}}var tve={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:DM(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:DR(t.cx,t.cy,a[0],a[1],(-e-i/2)*n,(-e+i/2)*n)}:{type:"Sector",shape:DR(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}},rve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,i=this.ecModel;return i.eachComponent(e,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(ut),LM=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",cr).models[0]},t.type="polarAxis",t})(ut);nr(LM,Su);var ave=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t})(LM),ive=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t})(LM),IM=(function(r){he(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t})(Ja);IM.prototype.dataToRadius=Ja.prototype.dataToCoord;IM.prototype.radiusToData=Ja.prototype.coordToData;var nve=yt(),PM=(function(r){he(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),i=e.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),v=Fh(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(v.height,7),f=h/u;isNaN(f)&&(f=1/0);var c=Math.max(0,Math.floor(f)),d=nve(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},t})(Ja);PM.prototype.dataToAngle=Ja.prototype.dataToCoord;PM.prototype.angleToData=Ja.prototype.coordToData;var _7=["radius","angle"],ove=(function(){function r(t){this.dimensions=_7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new IM,this._angleAxis=new PM,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,i=this._radiusAxis;return a.scale.type===t&&e.push(a),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,v=u<o?1:-1;u<o||u>s;)u+=v*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,i=Math.cos(a)*e+this.cx,n=-Math.sin(a)*e+this.cy;return[i,n]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var i=t.getExtent(),n=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,v=l-this.cy,h=u*u+v*v,f=this.r,c=this.r0;return f!==c&&h-o<=f*f&&h+o>=c*c}}},r.prototype.convertToPixel=function(t,e,a){var i=OR(e);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=OR(e);return i===this?this.pointToData(a):null},r})();function OR(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function sve(r,t,e){var a=t.get("center"),i=e.getWidth(),n=e.getHeight();r.cx=Ie(a[0],i),r.cy=Ie(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,l=t.get("radius");l==null?l=[0,"100%"]:Se(l)||(l=[0,l]);var u=[Ie(l[0],s),Ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function lve(r,t){var e=this,a=e.getAngleAxis(),i=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();$($d(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),$($d(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Rs(a.scale,a.model),Rs(i.scale,i.model),a.type==="category"&&!a.onBand){var n=a.getExtent(),o=360/a.scale.count();a.inverse?n[1]+=o:n[1]-=o,a.setExtent(n[0],n[1])}}function uve(r){return r.mainType==="angleAxis"}function NR(r,t){var e;if(r.type=t.get("type"),r.scale=Kh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),uve(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,i)}t.axis=r,r.model=t}var vve={dimensions:_7,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,i){var n=new ove(i+"");n.update=lve;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");NR(o,l),NR(s,u),sve(n,a,t),e.push(n),a.coordinateSystem=n,n.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var i=a.getReferringComponents("polar",cr).models[0];a.coordinateSystem=i.coordinateSystem}}),e}},hve=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function gc(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}function mc(r){var t=r.getRadiusAxis();return t.inverse?0:1}function zR(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var fve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=we(i.getViewLabels(),function(v){v=Ye(v);var h=i.scale,f=h.type==="ordinal"?h.getRawOrdinalNumber(v.tickValue):v.tickValue;return v.coord=i.dataToCoord(f),v});zR(u),zR(s),$(hve,function(v){e.get([v,"show"])&&(!i.scale.isBlank()||v==="axisLine")&&cve[v](this.group,e,n,s,l,o,u)},this)}},t.type="angleAxis",t})(Hs),cve={axisLine:function(r,t,e,a,i,n){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),v=mc(e),h=v?0:1,f,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[h]===0?f=new Bs[c]({shape:{cx:e.cx,cy:e.cy,r:n[v],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new ou({shape:{cx:e.cx,cy:e.cy,r:n[v],r0:n[h]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,r.add(f)},axisTick:function(r,t,e,a,i,n){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[mc(e)],u=we(a,function(v){return new xr({shape:gc(e,[l,l+s],v.coord)})});r.add(wa(u,{style:Ue(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,i,n){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[mc(e)],v=[],h=0;h<i.length;h++)for(var f=0;f<i[h].length;f++)v.push(new xr({shape:gc(e,[u,u+l],i[h][f].coord)}));r.add(wa(v,{style:Ue(s.getModel("lineStyle").getLineStyle(),Ue(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,i,n,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),v=t.get("triggerEvent");$(o,function(h,f){var c=l,d=h.tickValue,p=n[mc(e)],g=e.coordToPoint([p+u,h.coord]),m=e.cx,y=e.cy,_=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",x=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var S=s[d];$e(S)&&S.textStyle&&(c=new Mt(S.textStyle,l,l.ecModel))}var b=new pt({silent:la.isLabelSilent(t),style:Ht(c,{x:g[0],y:g[1],fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:x})});if(r.add(b),v){var w=la.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=h.rawLabel,Xe(b).eventData=w}},this)},splitLine:function(r,t,e,a,i,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],h=0;h<a.length;h++){var f=u++%l.length;v[f]=v[f]||[],v[f].push(new xr({shape:gc(e,n,a[h].coord)}))}for(var h=0;h<v.length;h++)r.add(wa(v[h],{style:Ue({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,i,n){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var v=0;v<i[u].length;v++)l.push(new xr({shape:gc(e,n,i[u][v].coord)}));r.add(wa(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,i,n){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],h=Math.PI/180,f=-a[0].coord*h,c=Math.min(n[0],n[1]),d=Math.max(n[0],n[1]),p=t.get("clockwise"),g=1,m=a.length;g<=m;g++){var y=g===m?a[0].coord:a[g].coord,_=u++%l.length;v[_]=v[_]||[],v[_].push(new Qr({shape:{cx:e.cx,cy:e.cy,r0:c,r:d,startAngle:f,endAngle:-y*h,clockwise:p},silent:!0})),f=-y*h}for(var g=0;g<v.length;g++)r.add(wa(v[g],{style:Ue({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},dve=["axisLine","axisTickLabel","axisName"],pve=["splitLine","splitArea","minorSplitLine"],gve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,n=this._axisGroup=new Ze;this.group.add(n);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),v=o.getMinorTicksCoords(),h=l.getExtent()[0],f=o.getExtent(),c=yve(s,e,h),d=new la(e,c);$(dve,d.add,d),n.add(d.getGroup()),Yh(i,n,e),$(pve,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&mve[p](this.group,e,s,h,f,u,v)},this)}},t.type="radiusAxis",t})(Hs),mve={splitLine:function(r,t,e,a,i,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,v=e.getAngleAxis(),h=Math.PI/180,f=v.getExtent(),c=Math.abs(f[1]-f[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<n.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new Bs[c]({shape:{cx:e.cx,cy:e.cy,r:Math.max(n[p].coord,0),startAngle:-f[0]*h,endAngle:-f[1]*h,clockwise:v.inverse}}))}for(var p=0;p<d.length;p++)r.add(wa(d[p],{style:Ue({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,i,n,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],v=0;v<o.length;v++)for(var h=0;h<o[v].length;h++)u.push(new Xi({shape:{cx:e.cx,cy:e.cy,r:o[v][h].coord}}));r.add(wa(u,{style:Ue({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,i,n){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var v=[],h=n[0].coord,f=1;f<n.length;f++){var c=u++%l.length;v[c]=v[c]||[],v[c].push(new Qr({shape:{cx:e.cx,cy:e.cy,r0:h,r:n[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=n[f].coord}for(var f=0;f<v.length;f++)r.add(wa(v[f],{style:Ue({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function yve(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function x7(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function S7(r,t){return t.dim+r.model.componentIndex}function _ve(r,t,e){var a={},i=xve(Ct(t.getSeriesByType(r),function(n){return!t.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=S7(s,l),v=x7(n),h=i[u][v],f=h.offset,c=h.width,d=s.getOtherAxis(l),p=n.coordinateSystem.cx,g=n.coordinateSystem.cy,m=n.get("barMinHeight")||0,y=n.get("barMinAngle")||0;a[v]=a[v]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),S=wn(o,_),b=l.dim!=="radius"||!n.get("roundCap",!0),w=d.model,A=w.get("startValue"),T=d.dataToCoord(A||0),C=0,M=o.count();C<M;C++){var L=o.get(_,C),D=o.get(x,C),P=L>=0?"p":"n",I=T;S&&(a[v][D]||(a[v][D]={p:T,n:T}),I=a[v][D][P]);var R=void 0,E=void 0,k=void 0,B=void 0;if(d.dim==="radius"){var F=d.dataToCoord(L)-T,V=l.dataToCoord(D);Math.abs(F)<m&&(F=(F<0?-1:1)*m),R=I,E=I+F,k=V-f,B=k-c,S&&(a[v][D][P]=E)}else{var N=d.dataToCoord(L,b)-T,O=l.dataToCoord(D);Math.abs(N)<y&&(N=(N<0?-1:1)*y),R=O+f,E=R+c,k=I,B=I+N,S&&(a[v][D][P]=B)}o.setItemLayout(C,{cx:p,cy:g,r0:R,r:E,startAngle:-k*Math.PI/180,endAngle:-B*Math.PI/180,clockwise:k>=B})}}})}function xve(r){var t={};$(r,function(a,i){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=S7(o,s),u=s.getExtent(),v=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),h=t[l]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;t[l]=h;var c=x7(a);f[c]||h.autoWidthCount++,f[c]=f[c]||{width:0,maxWidth:0};var d=Ie(a.get("barWidth"),v),p=Ie(a.get("barMaxWidth"),v),g=a.get("barGap"),m=a.get("barCategoryGap");d&&!f[c].width&&(d=Math.min(h.remainedWidth,d),f[c].width=d,h.remainedWidth-=d),p&&(f[c].maxWidth=p),g!=null&&(h.gap=g),m!=null&&(h.categoryGap=m)});var e={};return $(t,function(a,i){e[i]={};var n=a.stacks,o=a.bandWidth,s=Ie(a.categoryGap,o),l=Ie(a.gap,1),u=a.remainedWidth,v=a.autoWidthCount,h=(u-s)/(v+(v-1)*l);h=Math.max(h,0),$(n,function(p,g){var m=p.maxWidth;m&&m<h&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,v--)}),h=(u-s)/(v+(v-1)*l),h=Math.max(h,0);var f=0,c;$(n,function(p,g){p.width||(p.width=h),c=p,f+=p.width*(1+l)}),c&&(f-=c.width*l);var d=-f/2;$(n,function(p,g){e[i][g]=e[i][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var Sve={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},bve={splitNumber:5},wve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t})(Wt);function Tve(r){ot(of),Hs.registerAxisPointerClass("PolarAxisPointer",Jue),r.registerCoordinateSystem("polar",vve),r.registerComponentModel(rve),r.registerComponentView(wve),Jl(r,"angle",ave,Sve),Jl(r,"radius",ive,bve),r.registerComponentView(fve),r.registerComponentView(gve),r.registerLayout(et(_ve,"bar"))}function oA(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,i={},n=a.position,o=a.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var v={horizontal:0,vertical:1};i.rotation=Math.PI/2*v[o];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[n],r.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),wr(t.labelInside,r.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=t.rotate;return f==null&&(f=r.get(["axisLabel","rotate"])),i.labelRotation=n==="top"?-f:f,i.z2=1,i}var Ave=["axisLine","axisTickLabel","axisName"],Cve=["splitArea","splitLine"],Mve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,i,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ze;var l=oA(e),u=new la(e,l);$(Ave,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),$(Cve,function(v){e.get([v,"show"])&&Dve[v](this,this.group,this._axisGroup,e)},this),Yh(s,this._axisGroup,e),r.prototype.render.call(this,e,a,i,n)},t.prototype.remove=function(){q6(this)},t.type="singleAxis",t})(Hs),Dve={splitLine:function(r,t,e,a){var i=a.axis;if(!i.scale.isBlank()){var n=a.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),v=i.isHorizontal(),h=[],f=0,c=i.getTicksCoords({tickModel:n}),d=[],p=[],g=0;g<c.length;++g){var m=i.toGlobalCoord(c[g].coord);v?(d[0]=m,d[1]=u.y,p[0]=m,p[1]=u.y+u.height):(d[0]=u.x,d[1]=m,p[0]=u.x+u.width,p[1]=m);var y=new xr({shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},silent:!0});Xl(y.shape,l);var _=f++%s.length;h[_]=h[_]||[],h[_].push(y)}for(var x=o.getLineStyle(["color"]),g=0;g<h.length;++g)t.add(wa(h[g],{style:Ue({stroke:s[g%s.length]},x),silent:!0}))}},splitArea:function(r,t,e,a){H6(r,e,a,a)}},hd=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.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}}},t})(ut);nr(hd,Su.prototype);var Lve=(function(r){he(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t})(Ja),b7=["single"],Ive=(function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=b7,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var i=this.dimension,n=new Lve(i,Kh(t),[0,0],t.get("type"),t.get("position")),o=n.type==="category";n.onBand=o&&t.get("boundaryGap"),n.inverse=t.get("inverse"),n.orient=t.get("orient"),t.axis=n,n.model=t,n.coordinateSystem=this,this._axis=n},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var i=a.getData();$(i.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(i,n)},this),Rs(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=dr({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()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),i=a?[0,t.width]:[0,t.height],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),i=a[0]+a[1],n=t.isHorizontal();t.toGlobalCoord=n?function(o){return o+e}:function(o){return i-o+e},t.toLocalCoord=n?function(o){return o-e}:function(o){return i-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),i=a.orient;return i==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),i=[],n=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[n]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-n]=n===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(t,e,a){var i=BR(e);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=BR(e);return i===this?this.pointToData(a):null},r})();function BR(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Pve(r,t){var e=[];return r.eachComponent("singleAxis",function(a,i){var n=new Ive(a,r,t);n.name="single_"+i,n.resize(a,t),a.coordinateSystem=n,e.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var i=a.getReferringComponents("singleAxis",cr).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),e}var Rve={create:Pve,dimensions:b7},VR=["x","y"],Eve=["width","height"],kve=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis,l=s.coordinateSystem,u=Dy(l,1-np(s)),v=l.dataToPoint(a)[0],h=n.get("type");if(h&&h!=="none"){var f=CM(n),c=Ove[h](s,v,u);c.style=f,e.graphicKey=c.type,e.pointer=c}var d=oA(i);p7(a,e,d,i,n,o)},t.prototype.getHandleTransform=function(e,a,i){var n=oA(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=MM(a.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,i,n){var o=i.axis,s=o.coordinateSystem,l=np(o),u=Dy(s,l),v=[e.x,e.y];v[l]+=a[l],v[l]=Math.min(u[1],v[l]),v[l]=Math.max(u[0],v[l]);var h=Dy(s,1-l),f=(h[1]+h[0])/2,c=[f,f];return c[l]=v[l],{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t})(AM),Ove={line:function(r,t,e){var a=DM([t,e[0]],[t,e[1]],np(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:g7([t-a/2,e[0]],[a,i],np(r))}}};function np(r){return r.isHorizontal()?0:1}function Dy(r,t){var e=r.getRect();return[e[VR[t]],e[VR[t]]+e[Eve[t]]]}var Nve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t})(Wt);function zve(r){ot(of),Hs.registerAxisPointerClass("SingleAxisPointer",kve),r.registerComponentView(Nve),r.registerComponentView(Mve),r.registerComponentModel(hd),Jl(r,"single",hd,hd.defaultOption),r.registerCoordinateSystem("single",Rve)}var Bve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,i){var n=cu(e);r.prototype.init.apply(this,arguments),GR(e,n)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),GR(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.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}},t})(ut);function GR(r,t){var e=r.cellSize,a;Se(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var i=we([0,1],function(n){return DQ(t,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});uo(r,t,{type:"box",ignoreSize:i})}var Vve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group;n.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,n),this._renderLines(e,s,l,n),this._renderYearText(e,s,l,n),this._renderMonthText(e,u,l,n),this._renderWeekText(e,u,s,l,n)},t.prototype._renderDayRect=function(e,a,i){for(var n=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=a.start.time;u<=a.end.time;u=n.getNextNDay(u,1).time){var v=n.dataToRect([u],!1).tl,h=new gt({shape:{x:v[0],y:v[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},t.prototype._renderLines=function(e,a,i,n){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),v=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,f=0;h.time<=a.end.time;f++){d(h.formatedDate),f===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,v,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,v,i),l,n)},t.prototype._getEdgesPoints=function(e,a,i){var n=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-a/2,n[1][o]=n[1][o]+a/2,n},t.prototype._drawSplitline=function(e,a,i){var n=new ea({z2:20,shape:{points:e},style:a});i.add(n)},t.prototype._getLinePointsOfOneWeek=function(e,a,i){for(var n=e.coordinateSystem,o=n.getDateInfo(a),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),v=n.dataToRect([u.time],!1);s[2*u.day]=v.tl,s[2*u.day+1]=v[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Re(e)&&e?TQ(e,a):He(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,i,n,o){var s=a[0],l=a[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var v=0;return(n==="left"||n==="right")&&(v=Math.PI/2),{rotation:v,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,i,n){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],v=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,f=i==="horizontal"?0:1,c={top:[v,u[f][1]],bottom:[v,u[1-f][1]],left:[u[1-f][0],h],right:[u[f][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},m=this._formatterLabel(p,g),y=new pt({z2:30,style:Ht(o,{text:m}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,c[l],i,l,s)),n.add(y)}},t.prototype._monthTextPositionControl=function(e,a,i,n,o){var s="left",l="top",u=e[0],v=e[1];return i==="horizontal"?(v=v+o,a&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),n==="start"&&(s="right")),{x:u,y:v,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,i,n){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),v=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||Re(s))&&(s&&(a=gT(s)||a),s=a.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,c=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=v==="center",p=o.get("silent"),g=0;g<h[f].length-1;g++){var m=h[f][g].slice(),y=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];m[c]=(_[c]+h[0][g+1][c])/2}var x=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},w=this._formatterLabel(x,b),A=new pt({z2:30,style:_e(Ht(o,{text:w}),this._monthTextPositionControl(m,d,i,u,l)),silent:p});n.add(A)}}},t.prototype._weekTextPositionControl=function(e,a,i,n,o){var s="center",l="middle",u=e[0],v=e[1],h=i==="start";return a==="horizontal"?(u=u+n+(h?1:-1)*o[0]/2,s=h?"right":"left"):(v=v+n+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:v,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,i,n,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),v=s.get("nameMap"),h=s.get("margin"),f=l.getFirstDayOfWeek();if(!v||Re(v)){v&&(a=gT(v)||a);var c=a.get(["time","dayOfWeekShort"]);v=c||we(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(i.end.time,7-i.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];h=Ie(h,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var g=s.get("silent"),m=0;m<7;m++){var y=l.getNextNDay(d,m),_=l.dataToRect([y.time],!1).center,x=m;x=Math.abs((m+f)%7);var S=new pt({z2:30,style:_e(Ht(s,{text:v[x]}),this._weekTextPositionControl(_,n,u,h,p)),silent:g});o.add(S)}}},t.type="calendar",t})(Wt),Ly=864e5,Gve=(function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Ma(t);var e=t.getFullYear(),a=t.getMonth()+1,i=a<10?"0"+a:""+a,n=t.getDate(),o=n<10?"0"+n:""+n,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.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 a=this._rangeInfo.weeks||1,i=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];$([0,1],function(h){v(n,h)&&(o[i[h]]=n[h]*s[h])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=dr(o,l);$([0,1],function(h){v(n,h)||(n[h]=u[i[h]]/s[h])});function v(h,f){return h[f]!=null&&h[f]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(t,e){Se(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),i=this._rangeInfo,n=a.formatedDate;if(e&&!(a.time>=i.start.time&&a.time<i.end.time+Ly))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([i.start.time,n]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,i):this._getDateByWeeksAndDay(e,a-1,i)},r.prototype.convertToPixel=function(t,e,a){var i=FR(e);return i===this?i.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var i=FR(e);return i===this?i.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(Se(t)&&t.length===1&&(t=t[0]),Se(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var i=this.getDateInfo(a),n=i.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var i=Math.floor(e[1].time/Ly)-Math.floor(e[0].time/Ly)+1,n=new Date(e[0].time),o=n.getDate(),s=e[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-e[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-e[1].time)*u>0;)i-=u,n.setDate(l-u);var v=Math.floor((i+e[0].day+6)/7),h=a?-v+1:v-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:v,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var i=this._getRangeInfo(a);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var n=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(i){var n=new r(i);a.push(n),i.coordinateSystem=n}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=a[i.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function FR(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function Fve(r){r.registerComponentModel(Bve),r.registerComponentView(Vve),r.registerCoordinateSystem("calendar",Gve)}function Hve(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function HR(r,t){var e;return $(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function qve(r,t,e){var a=_e({},e),i=r[t],n=e.$action||"merge";n==="merge"?i?(tt(i,a,!0),uo(i,a,{ignoreSize:!0}),AW(e,i),yc(e,i),yc(e,i,"shape"),yc(e,i,"style"),yc(e,i,"extra"),e.clipPath=i.clipPath):r[t]=a:n==="replace"?r[t]=a:n==="remove"&&i&&(r[t]=null)}var w7=["transition","enterFrom","leaveTo"],Wve=w7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yc(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?w7:Wve,i=0;i<a.length;i++){var n=a[i];r[n]==null&&t[n]!=null&&(r[n]=t[n])}}function Uve(r,t){if(r&&(r.hv=t.hv=[HR(t,["left","right"]),HR(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var $ve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=i},t.prototype.optionUpdated=function(e,a){var i=this.option,n=(a?i:e).elements,o=i.elements=a?[]:i.elements,s=[];this._flatten(n,s,null);var l=wq(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];$(l,function(v,h){var f=v.newOption;f&&(u.push(f),Hve(v,f),qve(o,h,f),Uve(o[h],f))},this),i.elements=Ct(o,function(v){return v&&delete v.$action,v!=null})},t.prototype._flatten=function(e,a,i){$(e,function(n){if(n){i&&(n.parentOption=i),a.push(n);var o=n.children;o&&o.length&&this._flatten(o,a,n),delete n.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t})(ut),qR={path:null,compoundPath:null,group:Ze,image:Dr,text:pt},Fa=yt(),Yve=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=Ge()},t.prototype.render=function(e,a,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(a){var i=this._elMap,n=this.group,o=e.get("z"),s=e.get("zlevel");$(a,function(l){var u=_r(l.id,null),v=u!=null?i.get(u):null,h=_r(l.parentId,null),f=h!=null?i.get(h):n,c=l.type,d=l.style;c==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&a7(d,c,!!g,!!p)){var m=i7(d,c,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=Zve(l),_=l.$action||"merge",x=_==="merge",S=_==="replace";if(x){var b=!v,w=v;b?w=WR(u,f,l.type,i):(w&&(Fa(w).isNew=!1),l7(w)),w&&(ud(w,y,e,{isInit:b}),UR(w,l,o,s))}else if(S){fd(v,l,i,e);var A=WR(u,f,l.type,i);A&&(ud(A,y,e,{isInit:!0}),UR(A,l,o,s))}else _==="remove"&&(o7(v,l),fd(v,l,i,e));var T=i.get(u);if(T&&p)if(x){var C=T.getTextContent();C?C.attr(p):T.setTextContent(new pt(p))}else S&&T.setTextContent(new pt(p));if(T){var M=l.clipPath;if(M){var L=M.type,D=void 0,b=!1;if(x){var P=T.getClipPath();b=!P||Fa(P).type!==L,D=b?sA(L):P}else S&&(b=!0,D=sA(L));T.setClipPath(D),ud(D,M,e,{isInit:b}),ap(D,M.keyframeAnimation,e)}var I=Fa(T);T.setTextConfig(g),I.option=l,Xve(T,e,l),zs({el:T,componentModel:e,itemName:T.name,itemTooltipOption:l.tooltip}),ap(T,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var i=e.option.elements,n=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],v=0;v<i.length;v++){var h=i[v],f=_r(h.id,null),c=f!=null?o.get(f):null;if(!(!c||!c.isGroup)){var d=c.parent,p=d===n,g=Fa(c),m=Fa(d);g.width=Ie(g.option.width,p?s:m.width)||0,g.height=Ie(g.option.height,p?l:m.height)||0}}for(var v=i.length-1;v>=0;v--){var h=i[v],f=_r(h.id,null),c=f!=null?o.get(f):null;if(c){var d=c.parent,m=Fa(d),y=d===n?{width:s,height:l}:{width:m.width,height:m.height},_={},x=Fp(c,h,y,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Fa(c).isNew&&x){for(var S=h.transition,b={},w=0;w<u.length;w++){var A=u[w],T=_[A];S&&(As(S)||nt(S,A)>=0)?b[A]=T:c[A]=T}wt(c,b,e,0)}else c.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(i){fd(i,Fa(i).option,a,e._lastGraphicModel)}),this._elMap=Ge()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(Wt);function sA(r){var t=Be(qR,r)?qR[r]:kp(r),e=new t({});return Fa(e).type=r,e}function WR(r,t,e,a){var i=sA(e);return t.add(i),a.set(r,i),Fa(i).id=r,Fa(i).isNew=!0,i}function fd(r,t,e,a){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(n){fd(n,t,e,a)}),ag(r,t,a),e.removeKey(Fa(r).id))}function UR(r,t,e,a){r.isGroup||$([["cursor",Za.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(i){var n=i[0];Be(t,n)?r[n]=Je(t[n],i[1]):r[n]==null&&(r[n]=i[1])}),$(ft(t),function(i){if(i.indexOf("on")===0){var n=t[i];r[i]=He(n)?n:null}}),Be(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Zve(r){return r=_e({},r),$(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(TW),function(t){delete r[t]}),r}function Xve(r,t,e){var a=Xe(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Xe(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Kve(r){r.registerComponentModel($ve),r.registerComponentView(Yve),r.registerPreprocessor(function(t){var e=t.graphic;Se(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var $R=["x","y","radius","angle","single"],Qve=["cartesian2d","polar","singleAxis"];function jve(r){var t=r.get("coordinateSystem");return nt(Qve,t)>=0}function jn(r){return r+"Axis"}function Jve(r,t){var e=Ge(),a=[],i=Ge();r.eachComponent({mainType:"dataZoom",query:t},function(v){i.get(v.uid)||s(v)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(v){!i.get(v.uid)&&l(v)&&(s(v),n=!0)}function s(v){i.set(v.uid,!0),a.push(v),u(v)}function l(v){var h=!1;return v.eachTargetAxis(function(f,c){var d=e.get(f);d&&d[c]&&(h=!0)}),h}function u(v){v.eachTargetAxis(function(h,f){(e.get(h)||e.set(h,[]))[f]=!0})}return a}function T7(r){var t=r.ecModel,e={infoList:[],infoMap:Ge()};return r.eachTargetAxis(function(a,i){var n=t.getComponent(jn(a),i);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(n)}}}),e}var Iy=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),Rh=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,i){var n=YR(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this._doInit(n)},t.prototype.mergeOption=function(e){var a=YR(e);tt(this.option,e,!0),tt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;$([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(a[n[0]]=i[n[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=Ge(),i=this._fillSpecifiedTargetAxis(a);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return $($R,function(i){var n=this.getReferringComponents(jn(i),gX);if(n.specified){a=!0;var o=new Iy;$(n.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var i=this.ecModel,n=!0;if(n){var o=a==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(v){return v.get("orient",!0)===a}});l(s,"single")}function l(u,v){var h=u[0];if(h){var f=new Iy;if(f.add(h.componentIndex),e.set(v,f),n=!1,v==="x"||v==="y"){var c=h.getReferringComponents("grid",cr).models[0];c&&$(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",cr).models[0]&&f.add(d.componentIndex)})}}}n&&$($R,function(u){if(n){var v=i.findComponents({mainType:jn(u),filter:function(f){return f.get("type",!0)==="category"}});if(v[0]){var h=new Iy;h.add(v[0].componentIndex),e.set(u,h),n=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,i=this.get("rangeMode");$([["start","startValue"],["end","endValue"]],function(n,o){var s=e[n[0]]!=null,l=e[n[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":i?a[o]=i[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,i){e==null&&(e=this.ecModel.getComponent(jn(a),i))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(i,n){$(i.indexList,function(o){e.call(a,n,o)})})},t.prototype.getAxisProxy=function(e,a){var i=this.getAxisModel(e,a);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[a])return this.ecModel.getComponent(jn(e),a)},t.prototype.setRawRange=function(e){var a=this.option,i=this.settledOption;$([["start","startValue"],["end","endValue"]],function(n){(e[n[0]]!=null||e[n[1]]!=null)&&(a[n[0]]=i[n[0]]=e[n[0]],a[n[1]]=i[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;$(["start","startValue","end","endValue"],function(i){a[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(ut);function YR(r){var t={};return $(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var ehe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(Rh),RM=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){this.dataZoomModel=e,this.ecModel=a,this.api=i},t.type="dataZoom",t})(Wt),the=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(RM),Il=$,ZR=Ta,rhe=(function(){function r(t,e,a,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(jve(e)){var a=jn(this._dimName),i=e.getReferringComponents(a,cr).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Ye(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),i=a.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Il(["start","end"],function(f,c){var d=t[f],p=t[f+"Value"];n[c]==="percent"?(d==null&&(d=o[c]),p=i.parse(Pt(d,o,e))):(u=!0,p=p==null?e[c]:i.parse(p),d=Pt(p,e,o)),l[c]=p==null||isNaN(p)?e[c]:p,s[c]=d==null||isNaN(d)?o[c]:d}),ZR(l),ZR(s);var v=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(f,c,d,p,g){var m=g?"Span":"ValueSpan";qs(0,f,d,"all",v["min"+m],v["max"+m]);for(var y=0;y<2;y++)c[y]=Pt(f[y],d,p,!0),g&&(c[y]=i.parse(c[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=ahe(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,i=this.getTargetSeriesModels(),n=t.get("filterMode"),o=this._valueWindow;if(n==="none")return;Il(i,function(l){var u=l.getData(),v=u.mapDimensionsAll(a);if(v.length){if(n==="weakFilter"){var h=u.getStore(),f=we(v,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var d,p,g,m=0;m<v.length;m++){var y=h.get(f[m],c),_=!isNaN(y),x=y<o[0],S=y>o[1];if(_&&!x&&!S)return!0;_&&(g=!0),x&&(d=!0),S&&(p=!0)}return g&&d&&p})}else Il(v,function(c){if(n==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Il(v,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Il(["min","max"],function(i){var n=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Pt(a[0]+o,a,[0,100],!0):n!=null&&(o=Pt(n,[0,100],a,!0)-a[0]),t[i+"Span"]=n,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var i=FA(a,[0,500]);i=Math.min(i,20);var n=t.axis.scale.rawExtentInfo;e[0]!==0&&n.setDeterminedMinMax("min",+a[0].toFixed(i)),e[1]!==100&&n.setDeterminedMinMax("max",+a[1].toFixed(i)),n.freeze()}},r})();function ahe(r,t,e){var a=[1/0,-1/0];Il(e,function(o){ste(a,o.getData(),t)});var i=r.getAxisModel(),n=r6(i.axis.scale,i,a).calculate();return[n.min,n.max]}var ihe={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(jn(o),s);i(o,s,l,n)})})}t(function(i,n,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new rhe(i,n,s,r),e.push(o.__dzAxisProxy))});var a=Ge();return $(e,function(i){$(i.getTargetSeriesModels(),function(n){a.set(n.uid,n)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,i){e.getAxisProxy(a,i).reset(e)}),e.eachTargetAxis(function(a,i){e.getAxisProxy(a,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var i=a.getDataPercentWindow(),n=a.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};function nhe(r){r.registerAction("dataZoom",function(t,e){var a=Jve(e,t);$(a,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var XR=!1;function EM(r){XR||(XR=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ihe),nhe(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ohe(r){r.registerComponentModel(ehe),r.registerComponentView(the),EM(r)}var qa=(function(){function r(){}return r})(),A7={};function Pl(r,t){A7[r]=t}function C7(r){return A7[r]}var she=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;$(this.option.feature,function(a,i){var n=C7(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),tt(a,n.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.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"}},t})(ut);function lhe(r,t,e){var a=t.getBoxLayoutParams(),i=t.get("padding"),n={width:e.getWidth(),height:e.getHeight()},o=dr(a,n,i);bs(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Fp(r,a,n,i)}function M7(r,t){var e=Vs(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new gt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var uhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,i,n){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},v=this._features||(this._features={}),h=[];$(u,function(d,p){h.push(p)}),new bn(this._featureNames||[],h).add(f).update(f).remove(et(f,null)).execute(),this._featureNames=h;function f(d,p){var g=h[d],m=h[p],y=u[g],_=new Mt(y,e,e.ecModel),x;if(n&&n.newTitle!=null&&n.featureName===g&&(y.title=n.newTitle),g&&!m){if(vhe(g))x={onclick:_.option.onclick,featureName:g};else{var S=C7(g);if(!S)return;x=new S}v[g]=x}else if(x=v[m],!x)return;x.uid=fu("toolbox-feature"),x.model=_,x.ecModel=a,x.api=i;var b=x instanceof qa;if(!g&&m){b&&x.dispose&&x.dispose(a,i);return}if(!_.get("show")||b&&x.unusable){b&&x.remove&&x.remove(a,i);return}c(_,x,g),_.setIconStatus=function(w,A){var T=this.option,C=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[w]=A,C[w]&&(A==="emphasis"?xn:Sn)(C[w])},x instanceof qa&&x.render&&x.render(_,a,i,n)}function c(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof qa&&p.getIcons?p.getIcons():d.get("icon"),x=d.get("title")||{},S,b;Re(_)?(S={},S[g]=_):S=_,Re(x)?(b={},b[g]=x):b=x;var w=d.iconPaths={};$(S,function(A,T){var C=vu(A,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(m.getItemStyle());var M=C.ensureState("emphasis");M.style=y.getItemStyle();var L=new pt({style:{text:b[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:sC({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},a)},ignore:!0});C.setTextContent(L),zs({el:C,componentModel:e,itemName:T,formatterParamsExtra:{title:b[T]}}),C.__title=b[T],C.on("mouseover",function(){var D=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||D.fill||D.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),C.setTextConfig({position:y.get("textPosition")||P}),L.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",T])==="emphasis"?xn:Sn)(C),o.add(C),C.on("click",Ne(p.onclick,p,a,i,T)),w[T]=C})}lhe(o,e,i),o.add(M7(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!He(_)&&p){var x=_.style||(_.style={}),S=Fh(p,pt.makeFont(x)),b=d.x+o.x,w=d.y+o.y+s,A=!1;w+S.height>i.getHeight()&&(m.position="top",A=!0);var T=A?-5-S.height:s+10;b+S.width/2>i.getWidth()?(m.position=["100%",T],x.align="right"):b-S.width/2<0&&(m.position=[0,T],x.align="left")}})},t.prototype.updateView=function(e,a,i,n){$(this._features,function(o){o instanceof qa&&o.updateView&&o.updateView(o.model,a,i,n)})},t.prototype.remove=function(e,a){$(this._features,function(i){i instanceof qa&&i.remove&&i.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){$(this._features,function(i){i instanceof qa&&i.dispose&&i.dispose(e,a)})},t.type="toolbox",t})(Wt);function vhe(r){return r.indexOf("my")===0}var hhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var i=this.model,n=i.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=vt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var v=document.createElement("a");v.download=n+"."+s,v.target="_blank",v.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});v.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),c=f[0].indexOf("base64")>-1,d=o?decodeURIComponent(f[1]):f[1];c&&(d=window.atob(d));var p=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,S=x.document;S.open("image/svg+xml","replace"),S.write(d),S.close(),x.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=n}},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t})(qa),KR="__ec_magicType_stack__",fhe=[["line","bar"],["stack"]],che=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),i={};return $(e.get("type"),function(n){a[n]&&(i[n]=a[n])}),i},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,i){var n=this.model,o=n.get(["seriesIndex",i]);if(QR[i]){var s={series:[]},l=function(h){var f=h.subType,c=h.id,d=QR[i](f,c,h,n);d&&(Ue(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=h.getReferringComponents(y,cr).models[0],x=_.componentIndex;s[y]=s[y]||[];for(var S=0;S<=x;S++)s[y][x]=s[y][x]||{};s[y][x].boundaryGap=i==="bar"}}};$(fhe,function(h){nt(h,i)>=0&&$(h,function(f){n.setIconStatus(f,"normal")})}),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,v=i;i==="stack"&&(u=tt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(v="tiled")),a.dispatchAction({type:"changeMagicType",currentType:v,newOption:s,newTitle:u,featureName:"magicType"})}},t})(qa),QR={line:function(r,t,e,a){if(r==="bar")return tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var i=e.get("stack")===KR;if(r==="line"||r==="bar")return a.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":KR},a.get(["option","stack"])||{},!0)}};Si({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var ig=new Array(60).join("-"),ru=" ";function dhe(r){var t={},e=[],a=[];return r.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function phe(r){var t=[];return $(r,function(e,a){var i=e.categoryAxis,n=e.valueAxis,o=n.dim,s=[" "].concat(we(e.series,function(c){return c.name})),l=[i.model.getCategories()];$(e.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ru)],v=0;v<l[0].length;v++){for(var h=[],f=0;f<l.length;f++)h.push(l[f][v]);u.push(h.join(ru))}t.push(u.join("\n"))}),t.join("\n\n"+ig+"\n\n")}function ghe(r){return we(r,function(t){var e=t.getRawData(),a=[t.name],i=[];return e.each(e.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=e.getName(o),l=0;l<n-1;l++)i[l]=arguments[l];a.push((s?s+ru:"")+i.join(ru))}),a.join("\n")}).join("\n\n"+ig+"\n\n")}function mhe(r){var t=dhe(r);return{value:Ct([phe(t.seriesGroupByCategoryAxis),ghe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+ig+"\n\n"),meta:t.meta}}function op(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function yhe(r){var t=r.slice(0,r.indexOf("\n"));if(t.indexOf(ru)>=0)return!0}var lA=new RegExp("["+ru+"]+","g");function _he(r){for(var t=r.split(/\n+/g),e=op(t.shift()).split(lA),a=[],i=we(e,function(l){return{name:l,data:[]}}),n=0;n<t.length;n++){var o=op(t[n]).split(lA);a.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[n]=o[s])}return{series:i,categories:a}}function xhe(r){for(var t=r.split(/\n+/g),e=op(t.shift()),a=[],i=0;i<t.length;i++){var n=op(t[i]);if(n){var o=n.split(lA),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[i]={name:s,value:[]},l=a[i].value):l=a[i]=[];for(var v=0;v<o.length;v++)l.push(+o[v]);l.length===1&&(u?a[i].value=l[0]:a[i]=l[0])}}return{name:e,data:a}}function She(r,t){var e=r.split(new RegExp("\n*"+ig+"\n*","g")),a={series:[]};return $(e,function(i,n){if(yhe(i)){var o=_he(i),s=t[n],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=xhe(i);a.series.push(o)}}),a}var bhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var i=a.getDom(),n=this.model;this._dom&&i.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=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),v=document.createElement("textarea");u.style.cssText="overflow:auto";var h=n.get("optionToContent"),f=n.get("contentToOption"),c=mhe(e);if(He(h)){var d=h(a.getOption());Re(d)?u.innerHTML=d:Cs(d)&&u.appendChild(d)}else{v.readOnly=n.get("readOnly");var p=v.style;p.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",p.color=n.get("textColor"),p.borderColor=n.get("textareaBorderColor"),p.backgroundColor=n.get("textareaColor"),v.value=c.value,u.appendChild(v)}var g=c.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),x=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var S=this;function b(){i.removeChild(o),S._dom=null}Fw(_,"click",b),Fw(x,"click",function(){if(f==null&&h!=null||f!=null&&h==null){b();return}var w;try{He(f)?w=f(u,a.getOption()):w=She(v.value,g)}catch(A){throw b(),new Error("Data view format error "+A)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=y,!n.get("readOnly")&&m.appendChild(x),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t})(qa);function whe(r,t){return we(r,function(e,a){var i=t&&t[a];if($e(i)&&!Se(i)){var n=$e(e)&&!Se(e);n||(e={value:e});var o=i.name!=null&&e.name==null;return e=Ue(e,i),o&&delete e.name,e}else return e})}Si({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];$(r.newOption.series,function(a){var i=t.getSeriesByName(a.name)[0];if(!i)e.push(_e({type:"scatter"},a));else{var n=i.get("data");e.push({name:a.name,data:whe(a.data,n)})}}),t.mergeOption(Ue({series:e},r.newOption))});var D7=$,L7=yt();function The(r,t){var e=kM(r);D7(t,function(a,i){for(var n=e.length-1;n>=0;n--){var o=e[n];if(o[i])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function Ahe(r){var t=kM(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return D7(e,function(i,n){for(var o=t.length-1;o>=0;o--)if(i=t[o][n],i){a[n]=i;break}}),a}function Che(r){L7(r).snapshots=null}function Mhe(r){return kM(r).length}function kM(r){var t=L7(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Dhe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){Che(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t})(qa);Si({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Lhe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],OM=(function(){function r(t,e,a){var i=this;this._targetInfoList=[];var n=jR(e,t);$(Ihe,function(o,s){(!a||!a.include||nt(a.include,s)>=0)&&o(n,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,i,n){if((a.coordRanges||(a.coordRanges=[])).push(i),!a.coordRange){a.coordRange=i;var o=Py[a.brushType](0,n,i);a.__rangeOffset={offset:rE[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){$(t,function(i){var n=this.findTargetInfo(i,e);n&&n!==!0&&$(n.coordSyses,function(o){var s=Py[i.brushType](1,o,i.range,!0);a(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){$(t,function(a){var i=this.findTargetInfo(a,e);if(a.range=a.range||[],i&&i!==!0){a.panelId=i.panelId;var n=Py[a.brushType](0,i.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?rE[a.brushType](n.values,o.offset,Phe(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(t,e){return we(this._targetInfoList,function(a){var i=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:z8(i),isTargetByCursor:V8(i,t,a.coordSysModel),getLinearBrushOtherExtent:B8(i)}})},r.prototype.controlSeries=function(t,e,a){var i=this.findTargetInfo(t,a);return i===!0||i&&nt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,i=jR(e,t),n=0;n<a.length;n++){var o=a[n],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<JR.length;l++)if(JR[l](i,o))return o}return!0},r})();function uA(r){return r[0]>r[1]&&r.reverse(),r}function jR(r,t){return Zv(r,t,{includeMainTypes:Lhe})}var Ihe={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,i=r.gridModels,n=Ge(),o={},s={};!e&&!a&&!i||($(e,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),$(a,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),$(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,v=[];$(u.getCartesians(),function(h,f){(nt(e,h.getAxis("x").model)>=0||nt(a,h.getAxis("y").model)>=0)&&v.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:v[0],coordSyses:v,getPanelRect:eE.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){$(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:eE.geo})})}},JR=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&a&&(i=a.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],eE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ro(r)),t}},Py={lineX:et(tE,0),lineY:et(tE,1),rect:function(r,t,e,a){var i=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),n=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[uA([i[0],n[0]]),uA([i[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var i=[[1/0,-1/0],[1/0,-1/0]],n=we(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function tE(r,t,e,a){var i=e.getAxis(["x","y"][r]),n=uA(we([0,1],function(s){return t?i.coordToData(i.toLocalCoord(a[s]),!0):i.toGlobalCoord(i.dataToCoord(a[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var rE={lineX:et(aE,0),lineY:et(aE,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return we(r,function(a,i){return[a[0]-e[0]*t[i][0],a[1]-e[1]*t[i][1]]})}};function aE(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function Phe(r,t){var e=iE(r),a=iE(t),i=[e[0]/a[0],e[1]/a[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function iE(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var vA=$,Rhe=hX("toolbox-dataZoom_"),Ehe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,i,n){this._brushController||(this._brushController=new lM(i.getZr()),this._brushController.on("brush",Ne(this._onBrush,this)).mount()),Nhe(e,a,this,n,i),Ohe(e,a)},t.prototype.onclick=function(e,a,i){khe[i].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new OM(NM(this.model),n,{include:["grid"]});o.matchOutputRanges(a,n,function(u,v,h){if(h.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",h,v[0]),s("y",h,v[1])):s({lineX:"x",lineY:"y"}[f],h,v)}}),The(n,i),this._dispatchZoomAction(i);function s(u,v,h){var f=v.getAxis(u),c=f.model,d=l(u,c,n),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=qs(0,h.slice(),f.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,v,h){var f;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,v.componentIndex);d&&(f=c)}),f}},t.prototype._dispatchZoomAction=function(e){var a=[];vA(e,function(i,n){a.push(Ye(i))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t})(qa),khe={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ahe(this.ecModel))}};function NM(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Ohe(r,t){r.setIconStatus("back",Mhe(t)>1?"emphasis":"normal")}function Nhe(r,t,e,a,i){var n=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(n=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new OM(NM(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}kQ("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),i=[],n=NM(a),o=Zv(r,n);vA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),vA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,v){var h=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Rhe+u+h};f[v]=h,i.push(f)}return i});function zhe(r){r.registerComponentModel(she),r.registerComponentView(uhe),Pl("saveAsImage",hhe),Pl("magicType",che),Pl("dataView",bhe),Pl("dataZoom",Ehe),Pl("restore",Dhe),ot(ohe)}var Bhe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ut);function I7(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function P7(r){if(vt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var R7=P7(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Vhe=P7(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function E7(r,t){if(!r)return t;t=pC(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Ghe(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var Fhe=E7(Vhe,"transition"),zM=E7(R7,"transform"),Hhe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(vt.transform3dSupported?"will-change:transform;":"");function qhe(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Whe(r,t,e){if(!Re(e)||e==="inside")return"";var a=r.get("backgroundColor"),i=r.get("borderWidth");t=Ps(t);var n=qhe(e),o=Math.max(Math.round(i)*1.5,6),s="",l=zM+":",u;nt(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var v=u*Math.PI/180,h=o+i,f=h*Math.abs(Math.cos(v))+h*Math.abs(Math.sin(v)),c=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2)*100)/100;s+=";"+n+":-"+c+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function Uhe(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,i="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,i+=vt.transformSupported?","+zM+a:",left"+a+",top"+a),Fhe+":"+i}function nE(r,t,e){var a=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return e?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=vt.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return e?"top:0;left:0;"+zM+":"+o+";":[["top",0],["left",0],[R7,o]]}function $he(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var i=Je(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var n=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return n&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),$(["decoration","align"],function(u){var v=r.get(u);v&&t.push("text-"+u+":"+v)}),t.join(";")}function Yhe(r,t,e){var a=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),v=r.getModel("textStyle"),h=rU(r,"html"),f=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+f),t&&i&&a.push(Uhe(i,e)),n&&a.push("background-color:"+n),$(["width","color","radius"],function(c){var d="border-"+c,p=pC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(c==="color"?"":"px"))}),a.push($he(v)),h!=null&&a.push("padding:"+Vs(h).join("px ")+"px"),a.join(";")+";"}function oE(r,t,e,a,i){var n=t&&t.painter;if(e){var o=n&&n.getViewportRoot();o&&VY(r,o,e,a,i)}else{r[0]=a,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Zhe=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),n=e.appendTo,o=n&&(Re(n)?document.querySelector(n):Cs(n)?n:He(n)&&n(t.getDom()));oE(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,v=i.painter.getViewportRoot();Ba(v,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=Ghe(e,"position"),i=e.style;i.position!=="absolute"&&a!=="absolute"&&(i.position="relative")}var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,i=a.style,n=this._styleCoord;a.innerHTML?i.cssText=Hhe+Yhe(t,!this._firstShow,this._longHide)+nE(n[0],n[1],!0)+("border-color:"+Ps(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,i,n){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Re(n)&&a.get("trigger")==="item"&&!I7(a)&&(s=Whe(a,i,n)),Re(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Se(t)||(t=[t]);for(var l=0;l<t.length;l++)Cs(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(oE(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var i=this.el.style,n=nE(a[0],a[1]);$(n,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",vt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ne(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),Xhe=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),lE(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,i,n){var o=this;$e(t)&&Rt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new pt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:rU(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),$(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),$(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||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})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=sE(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var i=this._styleCoord;lE(i,this._zr,t,e),t=i[0],e=i[1];var n=a.style,o=Hn(n.borderWidth||0),s=sE(n);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ne(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Hn(r){return Math.max(0,r)}function sE(r){var t=Hn(r.shadowBlur||0),e=Hn(r.shadowOffsetX||0),a=Hn(r.shadowOffsetY||0);return{left:Hn(t-e),right:Hn(t+e),top:Hn(t-a),bottom:Hn(t+a)}}function lE(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Khe=new gt({shape:{x:-1,y:-1,width:2,height:2}}),Qhe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(vt.node||!a.getDom())){var i=e.getComponent("tooltip"),n=this._renderMode=yX(i.get("renderMode"));this._tooltipContent=n==="richText"?new Xhe(a):new Zhe(a,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,a,i){if(!(vt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=i;var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?mu(this,"_updatePosition",50,"fixRate"):Sh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");m7("itemTooltip",this._api,Ne(function(i,n,o){a!=="none"&&(a.indexOf(i)>=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,i=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,a,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,i,n){if(!(n.from===this.uid||vt.node||!i.getDom())){var o=uE(n,i);this._ticket="";var s=n.dataByCoordSys,l=tfe(n,a,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var v=Khe;v.x=n.x,v.y=n.y,v.update(),Xe(v).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:v},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,i,n))return;var h=y7(n,a),f=h.point[0],c=h.point[1];f!=null&&c!=null&&this._tryShow({offsetX:f,offsetY:c,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(uE(n,i))},t.prototype._manuallyAxisShowTip=function(e,a,i,n){var o=n.seriesIndex,s=n.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var v=u.getData(),h=iv([v.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},t.prototype._tryShow=function(e,a){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=Xe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ps(i,function(v){if(Xe(v).dataIndex!=null)return l=v,!0;if(Xe(v).tooltipConfig!=null)return u=v,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var i=e.get("showDelay");a=Ne(a,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(a,i):a()},t.prototype._showAxisTooltip=function(e,a){var i=this._ecModel,n=this._tooltipModel,o=[a.offsetX,a.offsetY],s=iv([a.tooltipOption],n),l=this._renderMode,u=[],v=Mr("section",{blocks:[],noHeader:!0}),h=[],f=new xm;$(e,function(y){$(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var b=d7(S,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Mr("section",{header:b,noHeader:!Ua(b),sortBlocks:!0,blocks:[]});v.blocks.push(w),$(_.seriesDataIndices,function(A){var T=i.getSeriesByIndex(A.seriesIndex),C=A.dataIndexInside,M=T.getDataParams(C);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=HC(x.axis,{value:S}),M.axisValueLabel=b,M.marker=f.makeTooltipMarker("item",Ps(M.color),l);var L=fI(T.formatTooltip(C,!0,null)),D=L.frag;if(D){var P=iv([T],n).get("valueFormatter");w.blocks.push(P?_e({valueFormatter:P},D):D)}L.text&&h.push(L.text),u.push(M)}})}})}),v.blocks.reverse(),h.reverse();var c=a.position,d=s.get("order"),p=yI(v,f,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?"\n\n":"<br/>",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],c,null,f)})},t.prototype._showSeriesItemTooltip=function(e,a,i){var n=this._ecModel,o=Xe(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,v=o.dataIndex,h=o.dataType,f=u.getData(h),c=this._renderMode,d=e.positionDefault,p=iv([f.getItemModel(v),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(v,h),y=new xm;m.marker=y.makeTooltipMarker("item",Ps(m.color),c);var _=fI(u.formatTooltip(v,!1,h)),x=p.get("order"),S=p.get("valueFormatter"),b=_.frag,w=b?yI(S?_e({valueFormatter:S},b):b,y,c,x,n.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+v;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,A,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:v,dataIndex:f.getRawIndex(v),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,i){var n=this._renderMode==="html",o=Xe(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Re(l)){var v=l;l={content:v,formatter:v},u=!0}u&&n&&l.content&&(l=Ye(l),l.content=Zr(l.content));var h=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&h.push(f),h.push({formatter:l.content});var c=e.positionDefault,d=iv(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",m=new xm;this._showOrMove(d,function(){var y=Ye(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,a,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,i,n,o,s,l,u,v){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var f=e.get("formatter");l=l||e.get("position");var c=a,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(f)if(Re(f)){var g=e.ecModel.get("useUTC"),m=Se(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=f,y&&(c=Zh(m.axisValue,c,g)),c=gC(c,i,!0)}else if(He(f)){var _=Ne(function(x,S){x===this._ticket&&(h.setContent(S,v,e,p,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=n,c=f(i,n,_)}else c=f;h.setContent(c,v,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,a,i,n){if(i==="axis"||Se(a))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!Se(a))return{color:n||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,i,n,o,s,l){var u=this._api.getWidth(),v=this._api.getHeight();a=a||e.get("position");var h=o.getSize(),f=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),He(a)&&(a=a([i,n],s,o.el,d,{viewSize:[u,v],contentSize:h.slice()})),Se(a))i=Ie(a[0],u),n=Ie(a[1],v);else if($e(a)){var p=a;p.width=h[0],p.height=h[1];var g=dr(p,{width:u,height:v});i=g.x,n=g.y,f=null,c=null}else if(Re(a)&&l){var m=efe(a,d,h,e.get("borderWidth"));i=m[0],n=m[1]}else{var m=jhe(i,n,o,u,v,f?null:20,c?null:20);i=m[0],n=m[1]}if(f&&(i-=vE(f)?h[0]/2:f==="right"?h[0]:0),c&&(n-=vE(c)?h[1]/2:c==="bottom"?h[1]:0),I7(e)){var m=Jhe(i,n,o,u,v);i=m[0],n=m[1]}o.moveTo(i,n)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===e.length;return o&&$(i,function(s,l){var u=s.dataByAxis||[],v=e[l]||{},h=v.dataByAxis||[];o=o&&u.length===h.length,o&&$(u,function(f,c){var d=h[c]||{},p=f.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&f.value===d.value&&f.axisType===d.axisType&&f.axisId===d.axisId&&p.length===g.length,o&&$(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),n&&$(f.seriesDataIndices,function(m){var y=m.seriesIndex,_=a[y],x=n[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){vt.node||!a.getDom()||(Sh(this,"_updatePosition"),this._tooltipContent.dispose(),nA("itemTooltip",a))},t.type="tooltip",t})(Wt);function iv(r,t,e){var a=t.ecModel,i;e?(i=new Mt(e,a,a),i=new Mt(t.option,i,a)):i=t;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),Re(o)&&(o={formatter:o}),o&&(i=new Mt(o,i,a)))}return i}function uE(r,t){return r.dispatchAction||Ne(t.dispatchAction,t)}function jhe(r,t,e,a,i,n,o){var s=e.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>a?r-=l+n:r+=n),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function Jhe(r,t,e,a,i){var n=e.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function efe(r,t,e,a){var i=e[0],n=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,v=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+v/2-n/2;break;case"top":s=t.x+u/2-i/2,l=t.y-n-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+v+o;break;case"left":s=t.x-i-o,l=t.y+v/2-n/2;break;case"right":s=t.x+u+o,l=t.y+v/2-n/2}return[s,l]}function vE(r){return r==="center"||r==="middle"}function tfe(r,t,e){var a=$A(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=Hh(t,i,a.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var v=Xe(u).tooltipConfig;if(v&&v.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function rfe(r){ot(of),r.registerComponentModel(Bhe),r.registerComponentView(Qhe),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ir),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ir)}var afe=["rect","polygon","keep","clear"];function ife(r,t){var e=Nt(r?r.brush:[]);if(e.length){var a=[];$(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var i=r&&r.toolbox;Se(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),nfe(s),t&&!s.length&&s.push.apply(s,afe)}}function nfe(r){var t={};$(r,function(e){t[e]=1}),r.length=0,$(t,function(e,a){r.push(a)})}var hE=$;function fE(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function hA(r,t,e){var a={};return hE(t,function(n){var o=a[n]=i();hE(r[n],function(s,l){if(Ar.isValidType(l)){var u={type:l,visual:s};e&&e(u,n),o[l]=new Ar(u),l==="opacity"&&(u=Ye(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ar(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function k7(r,t,e){var a;$(e,function(i){t.hasOwnProperty(i)&&fE(t[i])&&(a=!0)}),a&&$(e,function(i){t.hasOwnProperty(i)&&fE(t[i])?r[i]=Ye(t[i]):delete r[i]})}function ofe(r,t,e,a,i,n){var o={};$(r,function(h){var f=Ar.prepareVisualTypes(t[h]);o[h]=f});var s;function l(h){return CC(e,s,h)}function u(h,f){fU(e,s,h,f)}e.each(v);function v(h,f){s=h;var c=e.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var d=a.call(i,h),p=t[d],g=o[d],m=0,y=g.length;m<y;m++){var _=g[m];p[_]&&p[_].applyVisual(h,l,u)}}}function sfe(r,t,e,a){var i={};return $(r,function(n){var o=Ar.prepareVisualTypes(t[n]);i[n]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(S){return CC(s,h,S)}function v(S,b){fU(s,h,S,b)}for(var h,f=s.getStore();(h=o.next())!=null;){var c=s.getRawDataItem(h);if(!(c&&c.visualMap===!1))for(var d=a!=null?f.get(l,h):h,p=e(d),g=t[p],m=i[p],y=0,_=m.length;y<_;y++){var x=m[y];g[x]&&g[x].applyVisual(d,u,v)}}}}}function lfe(r){var t=r.brushType,e={point:function(a){return cE[t].point(a,e,r)},rect:function(a){return cE[t].rect(a,e,r)}};return e}var cE={lineX:dE(0),lineY:dE(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&ss(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var i=r.x,n=r.y,o=r.width,s=r.height,l=a[0];if(ss(a,i,n)||ss(a,i+o,n)||ss(a,i,n+s)||ss(a,i+o,n+s)||at.create(r).contain(l[0],l[1])||Rv(i,n,i+o,n,a)||Rv(i,n,i,n+s,a)||Rv(i+o,n,i+o,n+s,a)||Rv(i,n+s,i+o,n+s,a))return!0}}};function dE(r){var t=["x","y"],e=["width","height"];return{point:function(a,i,n){if(a){var o=n.range,s=a[r];return nv(s,o)}},rect:function(a,i,n){if(a){var o=n.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),nv(s[0],o)||nv(s[1],o)||nv(o[0],s)||nv(o[1],s)}}}}function nv(r,t){return t[0]<=r&&r<=t[1]}var pE=["inBrush","outOfBrush"],Ry="__ecBrushSelect",fA="__ecInBrushSelectEvent";function O7(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new OM(t.option,r);e.setInputRanges(t.areas,r)})}function ufe(r,t,e){var a=[],i,n;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),O7(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ye(o.areas),selected:[]};a.push(l);var u=o.option,v=u.brushLink,h=[],f=[],c=[],d=!1;s||(i=u.throttleType,n=u.throttleDelay);var p=we(o.areas,function(S){var b=cfe[S.brushType],w=Ue({boundingRect:b?b(S):void 0},S);return w.selectors=lfe(w),w}),g=hA(o.option,pE,function(S){S.mappingMethod="fixed"});Se(v)&&$(v,function(S){h[S]=1});function m(S){return v==="all"||!!h[S]}function y(S){return!!S.length}r.eachSeries(function(S,b){var w=c[b]=[];S.subType==="parallel"?_(S,b):x(S,b,w)});function _(S,b){var w=S.coordinateSystem;d=d||w.hasAxisBrushed(),m(b)&&w.eachActiveState(S.getData(),function(A,T){A==="active"&&(f[T]=1)})}function x(S,b,w){if(!(!S.brushSelector||ffe(o,b))&&($(p,function(T){o.brushTargetManager.controlSeries(T,S,r)&&w.push(T),d=d||y(w)}),m(b)&&y(w))){var A=S.getData();A.each(function(T){gE(S,w,A,T)&&(f[T]=1)})}}r.eachSeries(function(S,b){var w={seriesId:S.id,seriesIndex:b,seriesName:S.name,dataIndex:[]};l.selected.push(w);var A=c[b],T=S.getData(),C=m(b)?function(M){return f[M]?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return gE(S,A,T,M)?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(b)?d:y(A))&&ofe(pE,g,T,C)})}),vfe(t,i,n,a,e)}function vfe(r,t,e,a,i){if(i){var n=r.getZr();if(!n[fA]){n[Ry]||(n[Ry]=hfe);var o=mu(n,Ry,e,t);o(r,a)}}}function hfe(r,t){if(!r.isDisposed()){var e=r.getZr();e[fA]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[fA]=!1}}function gE(r,t,e,a){for(var i=0,n=t.length;i<n;i++){var o=t[i];if(r.brushSelector(a,e,o.selectors,o))return!0}}function ffe(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(Se(e)?nt(e,t)<0:t!==e)}var cfe={rect:function(r){return mE(r.range)},polygon:function(r){for(var t,e=r.range,a=0,i=e.length;a<i;a++){t=t||[[1/0,-1/0],[1/0,-1/0]];var n=e[a];n[0]<t[0][0]&&(t[0][0]=n[0]),n[0]>t[0][1]&&(t[0][1]=n[0]),n[1]<t[1][0]&&(t[1][0]=n[1]),n[1]>t[1][1]&&(t[1][1]=n[1])}return t&&mE(t)}};function mE(r){return new at(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var dfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new lM(a.getZr())).on("brush",Ne(this._onBrush,this)).mount()},t.prototype.render=function(e,a,i,n){this.model=e,this._updateController(e,a,i,n)},t.prototype.updateTransform=function(e,a,i,n){O7(a),this._updateController(e,a,i,n)},t.prototype.updateVisual=function(e,a,i,n){this.updateTransform(e,a,i,n)},t.prototype.updateView=function(e,a,i,n){this._updateController(e,a,i,n)},t.prototype._updateController=function(e,a,i,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Ye(i),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Ye(i),$from:a})},t.type="brush",t})(Wt),pfe="#ddd",gfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var i=this.option;!a&&k7(i,e,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:pfe},n.hasOwnProperty("liftZ")||(n.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=we(e,function(a){return yE(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=yE(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.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},t})(ut);function yE(r,t){return tt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Mt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var mfe=["rect","polygon","lineX","lineY","keep","clear"],yfe=(function(r){he(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,i){var n,o,s;a.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,$(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,i){this.render(e,a,i)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),i={};return $(e.get("type",!0),function(n){a[n]&&(i[n]=a[n])}),i},t.prototype.onclick=function(e,a,i){var n=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:mfe.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:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t})(qa);function _fe(r){r.registerComponentView(dfe),r.registerComponentModel(gfe),r.registerPreprocessor(ife),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,ufe),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ir),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ir),Pl("brush",yfe)}var xfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(ut),Sfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){if(this.group.removeAll(),!!e.get("show")){var n=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=Je(e.get("textBaseline"),e.get("textVerticalAlign")),v=new pt({style:Ht(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=v.getBoundingRect(),f=e.get("subtext"),c=new pt({style:Ht(s,{text:f,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);v.silent=!d&&!g,c.silent=!p&&!g,d&&v.on("click",function(){Od(d,"_"+e.get("target"))}),p&&c.on("click",function(){Od(p,"_"+e.get("subtarget"))}),Xe(v).eventData=Xe(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,n.add(v),f&&n.add(c);var m=n.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=dr(y,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var x={align:l,verticalAlign:u};v.setStyle(x),c.setStyle(x),m=n.getBoundingRect();var S=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new gt({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});n.add(w)}},t.type="title",t})(Wt);function bfe(r){r.registerComponentModel(xfe),r.registerComponentView(Sfe)}var _E=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],i=e.axisType,n=this._names=[],o;i==="category"?(o=[],$(a,function(u,v){var h=_r(iu(u),""),f;$e(u)?(f=Ye(u),f.value=v):f=v,o.push(f),n.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Xr([{name:"value",type:s}],this);l.initData(o,n)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.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:[]},t})(ut),N7=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=go(_E.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:[]}),t})(_E);nr(N7,qp.prototype);var wfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t})(Wt),Tfe=(function(r){he(t,r);function t(e,a,i,n){var o=r.call(this,e,a,i)||this;return o.type=n||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(Ja),Ey=Math.PI,xE=yt(),Afe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,i){if(this.model=e,this.api=i,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var n=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,e);e.formatTooltip=function(u){var v=l.scale.getLabel({value:u});return Mr("nameValue",{noName:!0,value:v})},$(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,e)},this),this._renderAxisLabel(n,s,l,e),this._position(n,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var i=e.get(["label","position"]),n=e.get("orient"),o=Mfe(e,a),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":Re(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},v={horizontal:0,vertical:Ey/2},h=n==="vertical"?o.height:o.width,f=e.getModel("controlStyle"),c=f.get("show",!0),d=c?f.get("itemSize"):0,p=c?f.get("itemGap"):0,g=d+p,m=e.get(["label","rotate"])||0;m=m*Ey/180;var y,_,x,S=f.get("position",!0),b=c&&f.get("showPlayBtn",!0),w=c&&f.get("showPrevBtn",!0),A=c&&f.get("showNextBtn",!0),T=0,C=h;S==="left"||S==="bottom"?(b&&(y=[0,0],T+=g),w&&(_=[T,0],T+=g),A&&(x=[C-d,0],C-=g)):(b&&(y=[C-d,0],C-=g),w&&(_=[0,0],T+=g),A&&(x=[C-d,0],C-=g));var M=[T,C];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:n,rotation:v[n],labelRotation:m,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[n],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:_,nextBtnPosition:x,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var i=this._mainGroup,n=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=xa(),l=o.x,u=o.y+o.height;yi(s,s,[-l,-u]),co(s,s,-Ey/2),yi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var v=y(o),h=y(i.getBoundingRect()),f=y(n.getBoundingRect()),c=[i.x,i.y],d=[n.x,n.y];d[0]=c[0]=v[0][0];var p=e.labelPosOpt;if(p==null||Re(p)){var g=p==="+"?0:1;_(c,h,v,1,g),_(d,f,v,1,1-g)}else{var g=p>=0?0:1;_(c,h,v,1,g),d[1]=c[1]+p}i.setPosition(c),n.setPosition(d),i.rotation=n.rotation=e.rotation,m(i),m(n);function m(x){x.originX=v[0][0]-x.x,x.originY=v[1][0]-x.y}function y(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,S,b,w,A){x[w]+=b[w][A]-S[w][A]}},t.prototype._createAxis=function(e,a){var i=a.getData(),n=a.get("axisType"),o=Cfe(a,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Tfe("value",o,e.axisExtent,n);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new Ze;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,i,n){var o=i.getExtent();if(n.get(["lineStyle","show"])){var s=new xr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:_e({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new xr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ue({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],$(l,function(u){var v=i.dataToCoord(u.value),h=s.getItemModel(u.value),f=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:v,y:0,onclick:Ne(o._changeTimeline,o,u.value)},g=SE(h,f,a,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),to(g);var m=Xe(g);h.get("tooltip")?(m.dataIndex=u.value,m.dataModel=n):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,i,n){var o=this,s=i.getLabelModel();if(s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],$(u,function(v){var h=v.tickValue,f=l.getItemModel(h),c=f.getModel("label"),d=f.getModel(["emphasis","label"]),p=f.getModel(["progress","label"]),g=i.dataToCoord(v.tickValue),m=new pt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:Ne(o._changeTimeline,o,h),silent:!1,style:Ht(c,{text:v.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});m.ensureState("emphasis").style=Ht(d),m.ensureState("progress").style=Ht(p),a.add(m),to(m),xE(m).dataIndex=h,o._tickLabels.push(m)})}},t.prototype._renderControl=function(e,a,i,n){var o=e.controlSize,s=e.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),v=n.getPlayState(),h=n.get("inverse",!0);f(e.nextBtnPosition,"next",Ne(this._changeTimeline,this,h?"-":"+")),f(e.prevBtnPosition,"prev",Ne(this._changeTimeline,this,h?"+":"-")),f(e.playPosition,v?"stop":"play",Ne(this._handlePlayClick,this,!v),!0);function f(c,d,p,g){if(c){var m=_i(Je(n.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=Dfe(n,d+"Icon",y,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),to(_)}}},t.prototype._renderCurrentPointer=function(e,a,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,v={onCreate:function(h){h.draggable=!0,h.drift=Ne(u._handlePointerDrag,u),h.ondragend=Ne(u._handlePointerDragend,u),bE(h,u._progressLine,s,i,n,!0)},onUpdate:function(h){bE(h,u._progressLine,s,i,n)}};this._currentPointer=SE(l,l,this._mainGroup,{},this._currentPointer,v)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var i=this._toAxisCoord(e)[0],n=this._axis,o=Ta(n.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return gi(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),i=1/0,n,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),v=Math.abs(u-e);v<i&&(i=v,n=l)}),n},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,i=this._tickLabels;if(a)for(var n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",n<e);if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",xE(i[n]).dataIndex<=e)},t.type="timeline.slider",t})(wfe);function Cfe(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Qp({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new GC({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Tn}}function Mfe(r,t){return dr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function Dfe(r,t,e,a){var i=a.style,n=vu(r.get(["controlStyle",t]),a||{},new at(e[0],e[1],e[2],e[3]));return i&&n.setStyle(i),n}function SE(r,t,e,a,i,n){var o=t.get("color");if(i)i.setColor(o),e.add(i),n&&n.onUpdate(i);else{var s=r.get("symbol");i=lr(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),e.add(i),n&&n.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),a=tt({rectHover:!0,z2:100},a,!0);var u=yu(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var v=Gs(r.get("symbolOffset"),u);v&&(a.x=(a.x||0)+v[0],a.y=(a.y||0)+v[1]);var h=r.get("symbolRotate");return a.rotation=(h||0)*Math.PI/180||0,i.attr(a),i.updateTransform(),i}function bE(r,t,e,a,i,n){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=a.dataToCoord(i.getData().get("value",e));if(n||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function Lfe(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var i=e.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ue({currentIndex:i.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function Ife(r){var t=r&&r.timeline;Se(t)||(t=t?[t]:[]),$(t,function(e){e&&Pfe(e)})}function Pfe(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),wE(r),us(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});us(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!us(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}$(r.data||[],function(i){$e(i)&&!Se(i)&&(!us(i,"value")&&us(i,"name")&&(i.value=i.name),wE(i))})}function wE(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},i=a.normal||(a.normal={}),n={normal:1,emphasis:1};$(a,function(o,s){!n[s]&&!us(i,s)&&(i[s]=o)}),e.label&&!us(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function us(r,t){return r.hasOwnProperty(t)}function Rfe(r){r.registerComponentModel(N7),r.registerComponentView(Afe),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Lfe(r),r.registerPreprocessor(Ife)}function BM(r,t){if(!r)return!1;for(var e=Se(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function _c(r){Ms(r,"label",["show"])}var xc=yt(),Cn=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(vt.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,i,n){var o=this.mainType;i||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=xc(s)[o];if(!l||!l.data){xc(s)[o]=null;return}u?u._mergeOption(l,a,!0):(n&&_c(l),$(l.data,function(v){v instanceof Array?(_c(v[0]),_c(v[1])):_c(v)}),u=this.createMarkerModelFromSeries(l,this,a),_e(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),xc(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.getRawValue(e),s=n.getName(e);return Mr("section",{header:this.name,blocks:[Mr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var i=qp.prototype.getDataParams.call(this,e,a),n=this.__hostSeries;return n&&(i.seriesId=n.id,i.seriesName=n.name,i.seriesType=n.subType),i},t.getMarkerModelFromSeries=function(e,a){return xc(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(ut);nr(Cn,qp.prototype);var Efe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})(Cn);function cA(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function kfe(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Sc(r,t,e,a,i,n){var o=[],s=wn(t,a),l=s?t.getCalculationInfo("stackResultDimension"):a,u=VM(t,l,r),v=t.indicesOfNearest(l,u)[0];o[i]=t.get(e,v),o[n]=t.get(l,v);var h=t.get(a,v),f=hi(t.get(a,v));return f=Math.min(f,20),f>=0&&(o[n]=+o[n].toFixed(f)),[o,h]}var ky={min:et(Sc,"min"),max:et(Sc,"max"),average:et(Sc,"average"),median:et(Sc,"median")};function Eh(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,i=a&&a.dimensions;if(!kfe(t)&&!Se(t.coord)&&Se(i)){var n=z7(t,e,a,r);if(t=Ye(t),t.type&&ky[t.type]&&n.baseAxis&&n.valueAxis){var o=nt(i,n.baseAxis.dim),s=nt(i,n.valueAxis.dim),l=ky[t.type](e,n.baseDataDim,n.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Se(i))t.coord=[];else for(var u=t.coord,v=0;v<2;v++)ky[u[v]]&&(u[v]=VM(e,e.mapDimension(i[v]),u[v]));return t}}function z7(r,t,e,a){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(Ofe(a,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=a.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Ofe(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function kh(r,t){return r&&r.containData&&t.coord&&!cA(t)?r.containData(t.coord):!0}function Nfe(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!cA(t)&&!cA(e)?r.containZone(t.coord,e.coord):!0}function B7(r,t){return r?function(e,a,i,n){var o=n<2?e.coord&&e.coord[n]:e.value;return io(o,t[n])}:function(e,a,i,n){return io(e.value,t[n])}}function VM(r,t,e){if(e==="average"){var a=0,i=0;return r.each(t,function(n,o){isNaN(n)||(a+=n,i++)}),a/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Oy=yt(),GM=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=Ge()},t.prototype.render=function(e,a,i){var n=this,o=this.markerGroupMap;o.each(function(s){Oy(s).keep=!1}),a.eachSeries(function(s){var l=Cn.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,a,i)}),o.each(function(s){!Oy(s).keep&&n.group.remove(s.group)})},t.prototype.markKeep=function(e){Oy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var i=this;$(e,function(n){var o=Cn.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?qq(l):JA(l))})}})},t.type="marker",t})(Wt);function TE(r,t,e){var a=t.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),o,s=Ie(n.get("x"),e.getWidth()),l=Ie(n.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(a){var u=r.get(a.dimensions[0],i),v=r.get(a.dimensions[1],i);o=a.dataToPoint([u,v])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var zfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=Cn.getMarkerModelFromSeries(n,"markPoint");o&&(TE(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new jh),h=Bfe(o,e,a);a.setData(h),TE(a.getData(),e,n),h.each(function(f){var c=h.getItemModel(f),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),m=c.getShallow("symbolOffset"),y=c.getShallow("symbolKeepAspect");if(He(d)||He(p)||He(g)||He(m)){var _=a.getRawValue(f),x=a.getDataParams(f);He(d)&&(d=d(_,x)),He(p)&&(p=p(_,x)),He(g)&&(g=g(_,x)),He(m)&&(m=m(_,x))}var S=c.getModel("itemStyle").getItemStyle(),b=Xh(l,"color");S.fill||(S.fill=b),h.setItemVisual(f,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:S})}),v.updateData(h),this.group.add(v.group),h.eachItemGraphicEl(function(f){f.traverse(function(c){Xe(c).dataModel=a})}),this.markKeep(v),v.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t})(GM);function Bfe(r,t,e){var a;r?a=we(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return _e(_e({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new Xr(a,e),n=we(e.get("data"),et(Eh,t));r&&(n=Ct(n,et(kh,r)));var o=B7(!!r,a);return i.initData(n,null,o),i}function Vfe(r){r.registerComponentModel(Efe),r.registerComponentView(zfe),r.registerPreprocessor(function(t){BM(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Gfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markLine",t.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"},t})(Cn),bc=yt(),Ffe=function(r,t,e,a){var i=r.getData(),n;if(Se(a))n=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=wr(a.yAxis,a.xAxis);else{var u=z7(a,i,t,r);s=u.valueAxis;var v=BC(i,u.valueDataDim);l=VM(i,v,o)}var h=s.dim==="x"?0:1,f=1-h,c=Ye(a),d={coord:[]};c.type=null,c.coord=[],c.coord[f]=-1/0,d.coord[f]=1/0;var p=e.get("precision");p>=0&&bt(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,n=[c,d,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[Eh(r,n[0]),Eh(r,n[1]),_e({},n[2])];return g[2].type=g[2].type||null,tt(g[2],g[0]),tt(g[2],g[1]),g};function sp(r){return!isNaN(r)&&!isFinite(r)}function AE(r,t,e,a){var i=1-r,n=a.dimensions[r];return sp(t[i])&&sp(e[i])&&t[r]===e[r]&&a.getAxis(n).containData(t[r])}function Hfe(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(AE(1,e,a,r)||AE(0,e,a,r)))return!0}return kh(r,t[0])&&kh(r,t[1])}function Ny(r,t,e,a,i){var n=a.coordinateSystem,o=r.getItemModel(t),s,l=Ie(o.get("x"),i.getWidth()),u=Ie(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var v=n.dimensions,h=r.get(v[0],t),f=r.get(v[1],t);s=n.dataToPoint([h,f])}if(Fs(n,"cartesian2d")){var c=n.getAxis("x"),d=n.getAxis("y"),v=n.dimensions;sp(r.get(v[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):sp(r.get(v[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var qfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=Cn.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=bc(o).from,u=bc(o).to;l.each(function(v){Ny(l,v,!0,n,i),Ny(u,v,!1,n,i)}),s.each(function(v){s.setItemLayout(v,[l.getItemLayout(v),u.getItemLayout(v)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,new sM);this.group.add(v.group);var h=Wfe(o,e,a),f=h.from,c=h.to,d=h.line;bc(a).from=f,bc(a).to=c,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),m=a.get("symbolRotate"),y=a.get("symbolOffset");Se(p)||(p=[p,p]),Se(g)||(g=[g,g]),Se(m)||(m=[m,m]),Se(y)||(y=[y,y]),h.from.each(function(x){_(f,x,!0),_(c,x,!1)}),d.each(function(x){var S=d.getItemModel(x).getModel("lineStyle").getLineStyle();d.setItemLayout(x,[f.getItemLayout(x),c.getItemLayout(x)]),S.stroke==null&&(S.stroke=f.getItemVisual(x,"style").fill),d.setItemVisual(x,{fromSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(x,"symbolOffset"),fromSymbolRotate:f.getItemVisual(x,"symbolRotate"),fromSymbolSize:f.getItemVisual(x,"symbolSize"),fromSymbol:f.getItemVisual(x,"symbol"),toSymbolKeepAspect:c.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(x,"symbolOffset"),toSymbolRotate:c.getItemVisual(x,"symbolRotate"),toSymbolSize:c.getItemVisual(x,"symbolSize"),toSymbol:c.getItemVisual(x,"symbol"),style:S})}),v.updateData(d),h.line.eachItemGraphicEl(function(x){Xe(x).dataModel=a,x.traverse(function(S){Xe(S).dataModel=a})});function _(x,S,b){var w=x.getItemModel(S);Ny(x,S,b,e,n);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Xh(l,"color")),x.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Je(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Je(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Je(w.get("symbolSize"),g[b?0:1]),symbol:Je(w.get("symbol",!0),p[b?0:1]),style:A})}this.markKeep(v),v.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t})(GM);function Wfe(r,t,e){var a;r?a=we(r&&r.dimensions,function(u){var v=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return _e(_e({},v),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new Xr(a,e),n=new Xr(a,e),o=new Xr([],e),s=we(e.get("data"),et(Ffe,t,r,e));r&&(s=Ct(s,et(Hfe,r)));var l=B7(!!r,a);return i.initData(we(s,function(u){return u[0]}),null,l),n.initData(we(s,function(u){return u[1]}),null,l),o.initData(we(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}function Ufe(r){r.registerComponentModel(Gfe),r.registerComponentView(qfe),r.registerPreprocessor(function(t){BM(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var $fe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})(Cn),wc=yt(),Yfe=function(r,t,e,a){var i=a[0],n=a[1];if(!(!i||!n)){var o=Eh(r,i),s=Eh(r,n),l=o.coord,u=s.coord;l[0]=wr(l[0],-1/0),l[1]=wr(l[1],-1/0),u[0]=wr(u[0],1/0),u[1]=wr(u[1],1/0);var v=yp([{},o,s]);return v.coord=[o.coord,s.coord],v.x0=o.x,v.y0=o.y,v.x1=s.x,v.y1=s.y,v}};function lp(r){return!isNaN(r)&&!isFinite(r)}function CE(r,t,e,a){var i=1-r;return lp(t[i])&&lp(e[i])}function Zfe(r,t){var e=t.coord[0],a=t.coord[1],i={coord:e,x:t.x0,y:t.y0},n={coord:a,x:t.x1,y:t.y1};return Fs(r,"cartesian2d")?e&&a&&(CE(1,e,a)||CE(0,e,a))?!0:Nfe(r,i,n):kh(r,i)||kh(r,n)}function ME(r,t,e,a,i){var n=a.coordinateSystem,o=r.getItemModel(t),s,l=Ie(o.get(e[0]),i.getWidth()),u=Ie(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var v=r.getValues(["x0","y0"],t),h=r.getValues(["x1","y1"],t),f=n.clampData(v),c=n.clampData(h),d=[];e[0]==="x0"?d[0]=f[0]>c[0]?h[0]:v[0]:d[0]=f[0]>c[0]?v[0]:h[0],e[1]==="y0"?d[1]=f[1]>c[1]?h[1]:v[1]:d[1]=f[1]>c[1]?v[1]:h[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),m=[p,g];n.clampData&&n.clampData(m,m),s=n.dataToPoint(m,!0)}if(Fs(n,"cartesian2d")){var y=n.getAxis("x"),_=n.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);lp(p)?s[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):lp(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var DE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Xfe=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=Cn.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=we(DE,function(h){return ME(s,l,h,n,i)});s.setItemLayout(l,u);var v=s.getItemGraphicEl(l);v.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,v=u.get(s)||u.set(s,{group:new Ze});this.group.add(v.group),this.markKeep(v);var h=Kfe(o,e,a);a.setData(h),h.each(function(f){var c=we(DE,function(A){return ME(h,f,A,e,n)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),m=p.getExtent(),y=[d.parse(h.get("x0",f)),d.parse(h.get("x1",f))],_=[p.parse(h.get("y0",f)),p.parse(h.get("y1",f))];Ta(y),Ta(_);var x=!(g[0]>y[1]||g[1]<y[0]||m[0]>_[1]||m[1]<_[0]),S=!x;h.setItemLayout(f,{points:c,allClipped:S});var b=h.getItemModel(f).getModel("itemStyle").getItemStyle(),w=Xh(l,"color");b.fill||(b.fill=w,Re(b.fill)&&(b.fill=hh(b.fill,.4))),b.stroke||(b.stroke=w),h.setItemVisual(f,"style",b)}),h.diff(wc(v).data).add(function(f){var c=h.getItemLayout(f);if(!c.allClipped){var d=new jr({shape:{points:c.points}});h.setItemGraphicEl(f,d),v.group.add(d)}}).update(function(f,c){var d=wc(v).data.getItemGraphicEl(c),p=h.getItemLayout(f);p.allClipped?d&&v.group.remove(d):(d?wt(d,{shape:{points:p.points}},a,f):d=new jr({shape:{points:p.points}}),h.setItemGraphicEl(f,d),v.group.add(d))}).remove(function(f){var c=wc(v).data.getItemGraphicEl(f);v.group.remove(c)}).execute(),h.eachItemGraphicEl(function(f,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");f.useStyle(h.getItemVisual(c,"style")),Gr(f,Cr(d),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:Re(p.fill)?hh(p.fill,1):"#000"}),Vr(f,d),tr(f,null,null,d.get(["emphasis","disabled"])),Xe(f).dataModel=a}),wc(v).data=h,v.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t})(GM);function Kfe(r,t,e){var a,i,n=["x0","y0","x1","y1"];if(r){var o=we(r&&r.dimensions,function(u){var v=t.getData(),h=v.getDimensionInfo(v.mapDimension(u))||{};return _e(_e({},h),{name:u,ordinalMeta:null})});i=we(n,function(u,v){return{name:u,type:o[v%2].type}}),a=new Xr(i,e)}else i=[{name:"value",type:"float"}],a=new Xr(i,e);var s=we(e.get("data"),et(Yfe,t,r,e));r&&(s=Ct(s,et(Zfe,r)));var l=r?function(u,v,h,f){var c=u.coord[Math.floor(f/2)][f%2];return io(c,i[f])}:function(u,v,h,f){return io(u.value,i[f])};return a.initData(s,null,l),a.hasItemOption=!0,a}function Qfe(r){r.registerComponentModel($fe),r.registerComponentView(Xfe),r.registerPreprocessor(function(t){BM(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var jfe=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},dA=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,i=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),Se(a)&&$(a,function(n,o){Re(n)&&(n={type:n}),a[o]=tt(n,jfe(i,n.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var v;if(l.legendVisualProvider){var h=l.legendVisualProvider,f=h.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(f)),f.length?a=a.concat(f):v=!0}else v=!0;v&&UA(l)&&a.push(l.name)}),this._availableNames=i;var n=this.get("data")||a,o=Ge(),s=we(n,function(l){return(Re(l)||bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Mt(l,this,this.ecModel))},this);this._data=Ct(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,i=this.get("selectedMode");if(i==="single"){var n=this._data;$(n,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;$(e,function(i){a[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;$(e,function(i){var n=i.get("name",!0);a.hasOwnProperty(n)||(a[n]=!0),a[n]=!a[n]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&nt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ut),yl=et,pA=$,Tc=Ze,V7=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tc),this.group.add(this._selectorGroup=new Tc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,i,l,s,u);var v=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},f=e.get("padding"),c=dr(v,h,f),d=this.layoutInner(e,o,c,n,l,u),p=dr(Ue({width:d.width,height:d.height},v),h,f);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=M7(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,i,n,o,s,l){var u=this.getContentGroup(),v=Ge(),h=a.get("selectedMode"),f=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&f.push(c.id)}),pA(a.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p==="\n")){var g=new Tc;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!v.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),b=this._createItem(m,p,d,c,a,e,_,S,x,h,n);b.on("click",yl(LE,p,null,n,f)).on("mouseover",yl(gA,m.name,null,n,f)).on("mouseout",yl(mA,m.name,null,n,f)),i.ssr&&b.eachChild(function(w){var A=Xe(w);A.seriesIndex=m.seriesIndex,A.dataIndex=d,A.ssrType="legend"}),v.set(p,!0)}else i.eachRawSeries(function(w){if(!v.get(p)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(p))return;var T=A.indexOfName(p),C=A.getItemVisual(T,"style"),M=A.getItemVisual(T,"legendIcon"),L=sa(C.fill);L&&L[3]===0&&(L[3]=.2,C=_e(_e({},C),{fill:pi(L,"rgba")}));var D=this._createItem(w,p,d,c,a,e,{},C,M,h,n);D.on("click",yl(LE,null,p,n,f)).on("mouseover",yl(gA,null,p,n,f)).on("mouseout",yl(mA,null,p,n,f)),i.ssr&&D.eachChild(function(P){var I=Xe(P);I.seriesIndex=w.seriesIndex,I.dataIndex=d,I.ssrType="legend"}),v.set(p,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},t.prototype._createSelector=function(e,a,i,n,o){var s=this.getSelectorGroup();pA(e,function(u){var v=u.type,h=new pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:v==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var f=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);Gr(h,{normal:f,emphasis:c},{defaultText:u.title}),to(h)})},t.prototype._createItem=function(e,a,i,n,o,s,l,u,v,h,f){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),_=n.get("icon");v=_||v||"roundRect";var x=Jfe(v,n,l,u,c,g,f),S=new Tc,b=n.getModel("textStyle");if(He(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:v,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;S.add(ece({itemWidth:d,itemHeight:p,icon:v,iconRotate:w,itemStyle:x.itemStyle,symbolKeepAspect:y}))}var A=s==="left"?d+5:-5,T=s,C=o.get("formatter"),M=a;Re(C)&&C?M=C.replace("{name}",a!=null?a:""):He(C)&&(M=C(a));var L=g?b.getTextColor():n.get("inactiveColor");S.add(new pt({style:Ht(b,{text:M,x:A,y:p/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var D=new gt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&zs({el:D,componentModel:o,itemName:a,itemTooltipOption:P.option}),S.add(D),S.eachChild(function(I){I.silent=!0}),D.silent=!h,this.getContentGroup().add(S),to(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(e,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bs(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var v=l.getBoundingRect(),h=[-v.x,-v.y];if(u.markRedraw(),l.markRedraw(),o){bs("horizontal",u,e.get("selectorItemGap",!0));var f=u.getBoundingRect(),c=[-f.x,-f.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?c[p]+=v[g]+d:h[p]+=f[g]+d,c[1-p]+=v[m]/2-f[m]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=v[g]+d+f[g],_[m]=Math.max(v[m],f[m]),_[y]=Math.min(0,f[y]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Wt);function Jfe(r,t,e,a,i,n,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),pA(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),v=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:Ql(h,o),u.fill==="inherit"&&(u.fill=a[i]),u.stroke==="inherit"&&(u.stroke=a[v]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?a:e).opacity),s(u,a);var f=t.getModel("lineStyle"),c=f.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!n){var d=t.get("inactiveBorderWidth"),p=u[v];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=f.get("inactiveColor"),c.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function ece(r){var t=r.icon||"roundRect",e=lr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function LE(r,t,e,a){mA(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),gA(r,t,e,a)}function G7(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,i=t.length;a<i&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function gA(r,t,e,a){G7(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function mA(r,t,e,a){G7(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function tce(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function ov(r,t,e){var a=r==="allSelect"||r==="inverseSelect",i={},n=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),IE(s,i),n.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){$(i,function(l,u){s[l?"select":"unSelect"](u)}),IE(s,o)}),a?{selected:o,legendIndex:n}:{name:t.name,selected:o}}function IE(r,t){var e=t||{};return $(r.getData(),function(a){var i=a.get("name");if(!(i==="\n"||i==="")){var n=r.isSelected(i);Be(e,i)?e[i]=e[i]&&n:e[i]=n}}),e}function rce(r){r.registerAction("legendToggleSelect","legendselectchanged",et(ov,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",et(ov,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",et(ov,"inverseSelect")),r.registerAction("legendSelect","legendselected",et(ov,"select")),r.registerAction("legendUnSelect","legendunselected",et(ov,"unSelect"))}function F7(r){r.registerComponentModel(dA),r.registerComponentView(V7),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,tce),r.registerSubTypeDefaulter("legend",function(){return"plain"}),rce(r)}var ace=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,i){var n=cu(e);r.prototype.init.call(this,e,a,i),PE(this,e,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),PE(this,this.option,e)},t.type="legend.scroll",t.defaultOption=go(dA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(dA);function PE(r,t,e){var a=r.getOrient(),i=[1,1];i[a.index]=0,uo(t,e,{type:"box",ignoreSize:!!i})}var RE=Ze,zy=["width","height"],By=["x","y"],ice=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new RE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new RE)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,i,n,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,i,n,o,s,l);var v=this._controllerGroup,h=a.get("pageIconSize",!0),f=Se(h)?h:[h,h];d("pagePrev",0);var c=a.getModel("pageTextStyle");v.add(new pt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=vu(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Ne(u._pageGo,u,m,a,n)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=p,v.add(y)}},t.prototype.layoutInner=function(e,a,i,n,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,v=zy[u],h=By[u],f=zy[1-u],c=By[1-u];o&&bs("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Ye(i);o&&(m[v]=i[v]-p[v]-d);var y=this._layoutContentAndController(e,n,m,u,v,f,c,h);if(o){if(s==="end")g[u]+=y[v]+d;else{var _=p[v]+d;g[u]-=_,y[h]-=_}y[v]+=p[v]+d,g[1-u]+=y[c]+y[f]/2-p[f]/2,y[f]=Math.max(y[f],p[f]),y[c]=Math.min(y[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,a,i,n,o,s,l,u){var v=this.getContentGroup(),h=this._containerGroup,f=this._controllerGroup;bs(e.get("orient"),v,e.get("itemGap"),n?i.width:null,n?null:i.height),bs("horizontal",f,e.get("pageButtonItemGap",!0));var c=v.getBoundingRect(),d=f.getBoundingRect(),p=this._showController=c[o]>i[o],g=[-c.x,-c.y];a||(g[n]=v[u]);var m=[0,0],y=[-d.x,-d.y],_=Je(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?y[n]+=i[o]-d[o]:m[n]+=d[o]+_}y[1-n]+=c[s]/2-d[s]/2,v.setPosition(g),h.setPosition(m),f.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:c[o],S[s]=Math.max(c[s],d[s]),S[l]=Math.min(0,d[l]+y[1-n]),h.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=S[s],h.setClipPath(new gt({shape:b})),h.__rectSize=b[o]}else f.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&wt(v,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),S},t.prototype._pageGo=function(e,a,i){var n=this._getPageInfo(a)[e];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var i=this._controllerGroup;$(["pagePrev","pageNext"],function(v){var h=v+"DataIndex",f=a[h]!=null,c=i.childOfName(v);c&&(c.setStyle("fill",f?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=f?"pointer":"default")});var n=i.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;n&&o&&n.setStyle("text",Re(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,s=zy[o],l=By[o],u=this._findTargetItemIndex(a),v=i.children(),h=v[u],f=v.length,c=f?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=x(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=f;++g)_=x(v[g]),(!_&&y.e>m.s+n||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=x(v[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function x(b){if(b){var w=b.getBoundingRect(),A=w[l]+b[l];return{s:A,e:A+w[s],i:b.__legendDataIndex}}}function S(b,w){return b.e>=w&&b.s<=w+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===e&&(a=s)}),a!=null?a:n},t.type="legend.scroll",t})(V7);function nce(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(a)})})}function oce(r){ot(F7),r.registerComponentModel(ace),r.registerComponentView(ice),nce(r)}function sce(r){ot(F7),ot(oce)}var lce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=go(Rh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Rh),FM=yt();function uce(r,t,e){FM(r).coordSysRecordMap.each(function(a){var i=a.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function vce(r,t){for(var e=FM(r).coordSysRecordMap,a=e.keys(),i=0;i<a.length;i++){var n=a[i],o=e.get(n),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||H7(e,o))}}}function H7(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function hce(r,t){var e={model:t,containsPoint:et(cce,t),dispatchAction:et(fce,r),dataZoomInfoMap:null,controller:null},a=e.controller=new af(r.getZr());return $(["pan","zoom","scrollMove"],function(i){a.on(i,function(n){var o=[];e.dataZoomInfoMap.each(function(s){if(n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function fce(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function cce(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function dce(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function pce(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=FM(e),i=a.coordSysRecordMap||(a.coordSysRecordMap=Ge());i.each(function(n){n.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=T7(n);$(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,hce(e,s.model)),v=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ge());v.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){H7(i,n);return}var v=dce(l);o.enable(v.controlType,v.opt),o.setPointerChecker(n.containsPoint),mu(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var gce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),uce(i,e,{pan:Ne(Vy.pan,this),zoom:Ne(Vy.zoom,this),scrollMove:Ne(Vy.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vce(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(RM),Vy={zoom:function(r,t,e,a){var i=this.range,n=i.slice(),o=r.axisModels[0];if(o){var s=Gy[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/a.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(qs(0,n,[0,100],0,v.minSpan,v.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:EE(function(r,t,e,a,i,n){var o=Gy[a]([n.oldX,n.oldY],[n.newX,n.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:EE(function(r,t,e,a,i,n){var o=Gy[a]([0,0],[n.scrollDelta,n.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*n.scrollDelta})};function EE(r){return function(t,e,a,i){var n=this.range,o=n.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,i);if(qs(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Gy={grid:function(r,t,e,a,i){var n=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,t,e,a,i){var n=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,t,e,a,i){var n=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}};function q7(r){EM(r),r.registerComponentModel(lce),r.registerComponentView(gce),pce(r)}var mce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=go(Rh.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})(Rh),sv=gt,kE=7,yce=1,Fy=30,_ce=7,lv="horizontal",OE="vertical",xce=5,Sce=["line","bar","candlestick","scatter"],bce={easing:"cubicOut",duration:100,delay:0},wce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=Ne(this._onBrush,this),this._onBrushEnd=Ne(this._onBrushEnd,this)},t.prototype.render=function(e,a,i,n){if(r.prototype.render.apply(this,arguments),mu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Sh(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new Ze;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,i=e.get("brushSelect"),n=i?_ce:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===lv?{right:s.width-o.x-o.width,top:s.height-Fy-kE-n,width:o.width,height:Fy}:{right:kE,top:o.y,width:Fy,height:o.height},u=cu(e.option);$(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var v=dr(u,s);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===OE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===lv&&!o?{scaleY:l?1:-1,scaleX:1}:i===lv&&o?{scaleY:l?1:-1,scaleX:-1}:i===OE&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,i=this._displayables.sliderGroup,n=e.get("brushSelect");i.add(new sv({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new sv({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Ne(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,i=this._shadowSize||[],n=e.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,v=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==i[0]||a[1]!==i[1]){var h=o.getDataExtent(l),f=(h[1]-h[0])*.3;h=[h[0]-f,h[1]+f];var c=[0,a[1]],d=[0,a[0]],p=[[a[0],0],[0,0]],g=[],m=d[1]/(o.count()-1),y=0,_=Math.round(o.count()/a[0]),x;o.each([l],function(T,C){if(_>0&&C%_){y+=m;return}var M=T==null||isNaN(T)||T==="",L=M?0:Pt(T,h,c,!0);M&&!x&&C?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&x&&(p.push([y,0]),g.push([y,0])),p.push([y,L]),g.push([y,L]),y+=m,x=M}),u=this._shadowPolygonPts=p,v=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var S=this.dataZoomModel;function b(T){var C=S.getModel(T?"selectedDataBackground":"dataBackground"),M=new Ze,L=new jr({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new ea({shape:{points:v},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(D),M}for(var w=0;w<3;w++){var A=b(w===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var i,n=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();$(l,function(u){if(!i&&!(a!==!0&&nt(Sce,u.get("type"))<0)){var v=n.getComponent(jn(o),s).axis,h=Tce(o),f,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(f=c.getOtherAxis(v).inverse),h=u.getData().mapDimension(h),i={thisAxis:v,series:u,thisDim:o,otherDim:h,otherAxisInverse:f}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,i=a.handles=[null,null],n=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,v=l.get("borderRadius")||0,h=l.get("brushSelect"),f=a.filler=new sv({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new sv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:v},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:yce,fill:"rgba(0,0,0,0)"}})),$([0,1],function(_){var x=l.get("handleIcon");!Bd[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=lr(x,-1,0,2,2,null,!0);S.attr({cursor:NE(this._orient),draggable:!0,drift:Ne(this._onDragMove,this,_),ondragend:Ne(this._onDragEnd,this),onmouseover:Ne(this._showDataInfo,this,!0),onmouseout:Ne(this._showDataInfo,this,!1),z2:5});var b=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Ie(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),to(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(i[_]=S);var T=l.getModel("textStyle"),C=l.get("handleLabel")||{},M=C.show||!1;e.add(n[_]=new pt({silent:!0,invisible:!M,style:Ht(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var c=f;if(h){var d=Ie(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new gt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=a.moveHandleIcon=lr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));c=a.moveZone=new gt({invisible:!0,shape:{y:s[1]-y,height:d+y}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(c)}c.attr({draggable:!0,cursor:NE(this._orient),drift:Ne(this._onDragMove,this,"all"),ondragstart:Ne(this._showDataInfo,this,!0),ondragend:Ne(this._onDragEnd,this),onmouseover:Ne(this._showDataInfo,this,!0),onmouseout:Ne(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Pt(e[0],[0,100],a,!0),Pt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];qs(a,n,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Pt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Pt(s.maxSpan,l,o,!0):null);var u=this._range,v=this._range=Ta([Pt(n[0],o,l,!0),Pt(n[1],o,l,!0)]);return!u||u[0]!==v[0]||u[1]!==v[1]},t.prototype._updateView=function(e){var a=this._displayables,i=this._handleEnds,n=Ta(i.slice()),o=this._size;$([0,1],function(c){var d=a.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[c]+(c?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,n[0],n[1],o[0]],v=0;v<l.length;v++){var h=l[v],f=h.getClipPath();f||(f=new gt,h.setClipPath(f)),f.setShape({x:u[v],y:0,width:u[v+1]-u[v],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,v=this._range,h=e?l.calculateDataWindow({start:v[0],end:v[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var f=Ta(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(d){var p=ro(i.handles[d].parent,this.group),g=Op(d===0?"right":"left",p),m=this._handleWidth/2+xce,y=gi([f[d]+(d===0?-m:m),this._size[1]/2],p);n[d].setStyle({x:y[0],y:y[1],verticalAlign:o===lv?"middle":g,align:o===lv?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return He(n)?n(e,s):Re(n)?n.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},i=a.show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=n.get("show")||!1,s=e||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,i,n){this._dragging=!0,_n(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=gi([a,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>a[0]||i[1]<0||i[1]>a[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,i=e.offsetY;this._brushStart=new rt(a,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var i=a.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ta([Pt(i.x,o,s,!0),Pt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(_n(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new sv({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),v=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:v[0],y:0,width:u[0]-v[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?bce:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=T7(this.dataZoomModel).infoList;if(!e&&a.length){var i=a[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var n=this.api.getWidth(),o=this.api.getHeight();e={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(RM);function Tce(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function NE(r){return r==="vertical"?"ns-resize":"ew-resize"}function W7(r){r.registerComponentModel(mce),r.registerComponentView(wce),EM(r)}function Ace(r){ot(q7),ot(W7)}var U7={get:function(r,t,e){var a=Ye((Cce[r]||{})[t]);return e&&Se(a)?a[a.length-1]:a}},Cce={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},zE=Ar.mapVisual,Mce=Ar.eachVisual,Dce=Se,BE=$,Lce=Ta,Ice=Pt,up=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,a){var i=this.option;!a&&k7(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Ne(e,this),this.controllerVisuals=hA(this.option.controller,a,e),this.targetVisuals=hA(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,n){a.push(n)}):a=Nt(e),a},t.prototype.eachTargetSeries=function(e,a){$(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&e.call(a,n)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(i){i===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],Se(e)&&(e=e.slice(),u=!0);var v=a?e:u?[h(e[0]),h(e[1])]:h(e);if(Re(l))return l.replace("{value}",u?v[0]:v).replace("{value2}",u?v[1]:v);if(He(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+v[1]:e[1]===s[1]?i[1]+" "+v[0]:v[0]+" - "+v[1];return v;function h(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=Lce([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var i=e.dimensions,n=i.length-1;n>=0;n--){var o=i[n],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,i={inRange:a.inRange,outOfRange:a.outOfRange},n=a.target||(a.target={}),o=a.controller||(a.controller={});tt(n,i),tt(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),v.call(this,o);function l(h){Dce(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,f,c){var d=h[f],p=h[c];d&&!p&&(p=h[c]={},BE(d,function(g,m){if(Ar.isValidType(m)){var y=U7.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function v(h){var f=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";BE(this.stateList,function(m){var y=this.itemSize,_=h[m];_||(_=h[m]={color:s?d:[d]}),_.symbol==null&&(_.symbol=f&&Ye(f)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&Ye(c)||(s?y[0]:[y[0],y[0]])),_.symbol=zE(_.symbol,function(b){return b==="none"?g:b});var x=_.symbolSize;if(x!=null){var S=-1/0;Mce(x,function(b){b>S&&(S=b)}),_.symbolSize=zE(x,function(b){return Ice(b,[0,S],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t})(ut),VE=[20,140],Pce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=VE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=VE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):Se(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),$(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Ta((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,i=this.getExtent();return(a[0]<=i[0]||a[0]<=e)&&(a[1]>=i[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&n.push(l)},this),a.push({seriesId:i.id,dataIndex:n})},this),a},t.prototype.getVisualMeta=function(e){var a=GE(this,"outOfRange",this.getExtent()),i=GE(this,"inRange",this.option.range.slice()),n=[];function o(c,d){n.push({value:c,color:e(c,d)})}for(var s=0,l=0,u=i.length,v=a.length;l<v&&(!i.length||a[l]<=i[0]);l++)a[l]<i[s]&&o(a[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&n.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var h=1;l<v;l++)(!i.length||i[i.length-1]<a[l])&&(h&&(n.length&&o(n[n.length-1].value,"outOfRange"),h=0),o(a[l],"outOfRange"));var f=n.length;return{stops:n,outerColors:[f?n[0].color:"transparent",f?n[f-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=go(up.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t})(up);function GE(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,i=(e[1]-e[0])/a,n=e[0],o=[],s=0;s<=a&&n<e[1];s++)o.push(n),n+=i;return o.push(e[1]),o}var $7=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,i,n){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,i,n)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,i=Vs(a.get("padding")||0),n=e.getBoundingRect();e.add(new gt({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,i){i=i||{};var n=i.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function v(c,d){s[c]=d}var h=o.controllerVisuals[n||o.getValueState(e)],f=Ar.prepareVisualTypes(h);return $(f,function(c){var d=h[c];i.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",d=h.__alphaForOpacity),Ar.dependsOn(c,a)&&d&&d.applyVisual(e,u,v)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,i=this.api;Fp(e,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,a,i,n){},t.type="visualMap",t})(Wt),FE=[["left","right","width"],["top","bottom","height"]];function Y7(r,t,e){var a=r.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var n={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=FE[o],l=[0,null,10],u={},v=0;v<3;v++)u[FE[1-o][v]]=l[v],u[s[v]]=v===2?e[0]:a[s[v]];var h=[["x","width",3],["y","height",0]][o],f=dr(u,n,a.padding);return s[(f.margin[h[2]]||0)+f[h[0]]+f[h[1]]*.5<n[h[1]]*.5?0:1]}function cd(r,t){return $(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Ni=Pt,Rce=$,HE=Math.min,Hy=Math.max,Ece=12,kce=6,Oce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=Ne(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ne(this._hideIndicator,this)},t.prototype.doRender=function(e,a,i,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var i=e.get("text");this._renderEndsText(a,i,0),this._renderEndsText(a,i,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,i){if(a){var n=a[1-i];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,v=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),f=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new pt({style:Ht(c,{x:v[0],y:v[1],verticalAlign:f==="horizontal"?"middle":h,align:f==="horizontal"?h:"center",text:n})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,i=this._shapes,n=a.itemSize,o=this._orient,s=this._useHandle,l=Y7(a,this.api,n),u=i.mainGroup=this._createBarGroup(l),v=new Ze;u.add(v),v.add(i.outOfRange=qE()),v.add(i.inRange=qE(null,s?UE(this._orient):null,Ne(this._dragHandle,this,"all",!1),Ne(this._dragHandle,this,"all",!0))),v.setClipPath(new gt({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=a.textStyleModel.getTextRect("国"),f=Hy(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(a,u,0,n,f,o),this._createHandle(a,u,1,n,f,o)),this._createIndicator(a,u,n,f,o),e.add(u)},t.prototype._createHandle=function(e,a,i,n,o,s){var l=Ne(this._dragHandle,this,i,!1),u=Ne(this._dragHandle,this,i,!0),v=_i(e.get("handleSize"),n[0]),h=lr(e.get("handleIcon"),-v/2,-v/2,v,v,null,!0),f=UE(this._orient);h.attr({cursor:f,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){_n(m.event)}}),h.x=n[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),cs(h,!0),a.add(h);var c=this.visualMapModel.textStyleModel,d=new pt({cursor:f,draggable:!0,drift:l,onmousemove:function(m){_n(m.event)},ondragend:u,style:Ht(c,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[v,0],g=this._shapes;g.handleThumbs[i]=h,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},t.prototype._createIndicator=function(e,a,i,n,o){var s=_i(e.get("indicatorSize"),i[0]),l=lr(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Dr){var v=l.style;l.useStyle(_e({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},u))}else l.useStyle(u);a.add(l);var h=this.visualMapModel.textStyleModel,f=new pt({silent:!0,invisible:!0,style:Ht(h,{x:0,y:0,text:""})});this.group.add(f);var c=[(o==="horizontal"?n/2:kce)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=f,d.indicatorLabelPoint=c,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,i,n){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():WE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[Ni(a[0],i,n,!0),Ni(a[1],i,n,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];qs(a,n,o,e,0);var s=i.getExtent();this._dataInterval=[Ni(n[0],o,s,!0),Ni(n[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,i=a.getExtent(),n=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,i,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new lu(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var i=100,n=[],o=(e[1]-e[0])/i;n.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;n.push({color:this.getControllerVisual(l,"color",a),offset:s/i})}return n.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),n},t.prototype._createBarPoints=function(e,a){var i=this.visualMapModel.itemSize;return[[i[0]-a[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,i=this.visualMapModel.get("inverse");return new Ze(a==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent(),v=this._applyTransform("left",i.mainGroup);Rce([0,1],function(h){var f=o[h];f.setStyle("fill",a.handlesColor[h]),f.y=e[h];var c=Ni(e[h],[0,l[1]],u,!0),d=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var p=gi(i.handleLabelPoints[h],ro(f,this.group));if(this._orient==="horizontal"){var g=v==="left"||v==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[h].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],v=this._shapes,h=v.indicator;if(h){h.attr("invisible",!1);var f={convertOpacityToAlpha:!0},c=this.getControllerVisual(e,"color",f),d=this.getControllerVisual(e,"symbolSize"),p=Ni(e,s,u,!0),g=l[0]-d/2,m={x:h.x,y:h.y};h.y=p,h.x=g;var y=gi(v.indicatorLabelPoint,ro(h,this.group)),_=v.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",v.mainGroup),S=this._orient,b=S==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:b?x:"middle",align:b?"center":x});var w={x:g,y:p,style:{fill:c}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};h.x=m.x,h.y=m.y,h.animateTo(w,T),_.animateTo(A,T)}else h.attr(w),_.attr(A);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var M=0;M<C.length;M++)this.api.enterBlur(C[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);n[1]=HE(Hy(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n[1]],s=i.getExtent();e=HE(Hy(o[0],e),o[1]);var l=Nce(i,s,o),u=[e-l,e+l],v=Ni(e,o,s,!0),h=[Ni(u[0],o,s,!0),Ni(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(v,h[1],"< ",l):h[1]===1/0?this._showIndicator(v,h[0],"> ",l):this._showIndicator(v,v,"≈ ",l));var f=this._hoverLinkDataIndices,c=[];(a||WE(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=dX(f,c);this._dispatchHighDown("downplay",cd(d[0],i)),this._dispatchHighDown("highlight",cd(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(ps(e.target,function(l){var u=Xe(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var i=this.ecModel.getSeriesByIndex(a.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var o=i.getData(a.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var i=0;i<a.length;i++)this.api.leaveBlur(a[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cd(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,i,n){var o=ro(a,n?null:this.group);return Se(e)?gi(e,o,i):Op(e,o,i)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})($7);function qE(r,t,e,a){return new jr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){_n(i.event)},ondragend:a})}function Nce(r,t,e){var a=Ece/2,i=r.get("hoverLinkDataSize");return i&&(a=Ni(i,t,e,!0)/2),a}function WE(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function UE(r){return r==="vertical"?"ns-resize":"ew-resize"}var zce={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Bce=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Vce=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var i=r.pipelineContext;!a.isTargetSeries(r)||i&&i.large||e.push(sfe(a.stateList,a.targetVisuals,Ne(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var n=i.getVisualMeta(Ne(Gce,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(n.dimension=o,a.push(n))}}),r.getData().setVisual("visualMeta",a)}}];function Gce(r,t,e,a){for(var i=t.targetVisuals[a],n=Ar.prepareVisualTypes(i),o={color:Xh(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],v=i[u==="opacity"?"__alphaForOpacity":u];v&&v.applyVisual(e,h,f)}return o.color;function h(c){return o[c]}function f(c,d){o[c]=d}}var $E=$;function Fce(r){var t=r&&r.visualMap;Se(t)||(t=t?[t]:[]),$E(t,function(e){if(e){_l(e,"splitList")&&!_l(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&Se(a)&&$E(a,function(i){$e(i)&&(_l(i,"start")&&!_l(i,"min")&&(i.min=i.start),_l(i,"end")&&!_l(i,"max")&&(i.max=i.end))})}})}function _l(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var YE=!1;function Z7(r){YE||(YE=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(zce,Bce),$(Vce,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Fce))}function X7(r){r.registerComponentModel(Pce),r.registerComponentView(Oce),Z7(r)}var Hce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],qce[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ye(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=we(this._pieceList,function(l){return l=Ye(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},i=Ar.listVisualTypes(),n=this.isCategory();$(e.pieces,function(s){$(i,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),$(a,function(s,l){var u=!1;$(this.stateList,function(v){u=u||o(e,v,l)||o(e.target,v,l)},this),!u&&$(this.stateList,function(v){(e[v]||(e[v]={}))[l]=U7.get(l,v==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var i=this.option,n=this._pieceList,o=(a?i:e).selected||{};if(i.selected=o,$(n,function(l,u){var v=this.getSelectedMapKey(l);o.hasOwnProperty(v)||(o[v]=!0)},this),i.selectedMode==="single"){var s=!1;$(n,function(l,u){var v=this.getSelectedMapKey(l);o[v]&&(s?o[v]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Ye(e)},t.prototype.getValueState=function(e){var a=Ar.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var v=Ar.findPieceIndex(l,i);v===e&&o.push(u)},this),a.push({seriesId:n.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var i=e.interval||[];a=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(v,h){var f=n.getRepresentValue({interval:v});h||(h=n.getValueState(f));var c=e(f,h);v[0]===-1/0?i[0]=c:v[1]===1/0?i[1]=c:a.push({value:v[0],color:c},{value:v[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return $(s,function(v){var h=v.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=go(up.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(up),qce={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var n=(a[1]-a[0])/i;+n.toFixed(e)!==n&&e<5;)e++;t.precision=e,n=+n.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<i;s+=n,o++){var l=o===i-1?a[1]:s+n;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),aT(r),$(r,function(u,v){u.index=v,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;$(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),ZE(t,r)},pieces:function(r){var t=this.option;$(t.pieces,function(e,a){$e(e)||(e={value:e});var i={text:"",index:a};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var n=i.value=e.value;i.interval=[n,n],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],v=[],h=0;h<2;h++){for(var f=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&o[h]==null;c++)o[h]=e[f[c]],s[h]=l[c],v[h]=c===2;o[h]==null&&(o[h]=u[h])}v[0]&&o[1]===1/0&&(s[0]=0),v[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Ar.retrieveVisuals(e),r.push(i)},this),ZE(t,r),aT(r),$(r,function(e){var a=e.close,i=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function ZE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Wce=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,i=a.get("textGap"),n=a.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=a.itemSize,v=this._getViewData(),h=v.endsText,f=wr(a.get("showLabel",!0),!h),c=!a.get("selectedMode");h&&this._renderEndsText(e,h[0],u,f,l),$(v.viewPieceList,function(d){var p=d.piece,g=new Ze;g.onclick=Ne(this._onItemClick,this,p),this._enableHoverLink(g,d.indexInModelPieceList);var m=a.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]],c),f){var y=this.visualMapModel.getValueState(m);g.add(new pt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1},silent:c}))}e.add(g)},this),h&&this._renderEndsText(e,h[1],u,f,l),bs(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var i=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:cd(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return Y7(e,this.api,e.itemSize);var i=a.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,a,i,n,o){if(a){var s=new Ze,l=this.visualMapModel.textStyleModel;s.add(new pt({style:Ht(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=we(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),n=e.get("orient"),o=e.get("inverse");return(n==="horizontal"?o:!o)?a.reverse():i&&(i=i.slice().reverse()),{viewPieceList:a,endsText:i}},t.prototype._createItemSymbol=function(e,a,i,n){var o=lr(this.getControllerVisual(a,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(a,"color"));o.silent=n,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,i=a.option,n=i.selectedMode;if(n){var o=Ye(i.selected),s=a.getSelectedMapKey(e);n==="single"||n===!0?(o[s]=!0,$(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})($7);function K7(r){r.registerComponentModel(Hce),r.registerComponentView(Wce),Z7(r)}function Uce(r){ot(X7),ot(K7)}var $ce={label:{enabled:!0},decal:{show:!1}},XE=yt(),Yce={};function Zce(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Ye($ce);tt(a.label,r.getLocaleModel().get("aria"),!1),tt(e.option,a,!1),i(),n();function i(){var u=e.getModel("decal"),v=u.get("show");if(v){var h=Ge();r.eachSeries(function(f){if(!f.isColorBySeries()){var c=h.get(f.type);c||(c={},h.set(f.type,c)),XE(f).scope=c}}),r.eachRawSeries(function(f){if(r.isSeriesFiltered(f))return;if(He(f.enableAriaDecal)){f.enableAriaDecal();return}var c=f.getData();if(f.isColorBySeries()){var y=_T(f.ecModel,f.name,Yce,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",x(_,y))}else{var d=f.getRawData(),p={},g=XE(f).scope;c.each(function(S){var b=c.getRawIndex(S);p[b]=S});var m=d.count();d.each(function(S){var b=p[S],w=d.getName(S)||S+"",A=_T(f.ecModel,w,g,m),T=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",x(T,A))})}function x(S,b){var w=S?_e(_e({},b),S):b;return w.dirty=!0,w}})}}function n(){var u=t.getZr().dom;if(u){var v=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=Ue(h.option,v),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var f=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,p=Math.min(f,d),g;if(!(f<1)){var m=s();if(m){var y=h.get(["general","withTitle"]);g=o(y,{title:m})}else g=h.get(["general","withoutTitle"]);var _=[],x=f>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(x,{seriesCount:f}),r.eachSeries(function(A,T){if(T<p){var C=void 0,M=A.get("name"),L=M?"withName":"withoutName";C=f>1?h.get(["series","multiple",L]):h.get(["series","single",L]),C=o(C,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var D=A.getData();if(D.count()>c){var P=h.get(["data","partialData"]);C+=o(P,{displayCnt:c})}else C+=h.get(["data","allData"]);for(var I=h.get(["data","separator","middle"]),R=h.get(["data","separator","end"]),E=h.get(["data","excludeDimensionId"]),k=[],B=0;B<D.count();B++)if(B<c){var F=D.getName(B),V=E?Ct(D.getValues(B),function(O,z){return nt(E,z)===-1}):D.getValues(B),N=h.get(["data",F?"withName":"withoutName"]);k.push(o(N,{name:F,value:V.join(I)}))}C+=k.join(I)+R,_.push(C)}});var S=h.getModel(["series","multiple","separator"]),b=S.get("middle"),w=S.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,v){if(!Re(u))return u;var h=u;return $(v,function(f,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),f)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var v=r.getLocaleModel().get(["series","typeNames"]);return v[u]||v.chart}}function Xce(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},$(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Kce(r){r.registerPreprocessor(Xce),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Zce)}var KE={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Qce=(function(){function r(t){var e=this._condVal=Re(t)?new RegExp(t):O4(t)?t:null;if(e==null){var a="";Rt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Re(e)?this._condVal.test(t):bt(e)?this._condVal.test(t+""):!1},r})(),jce=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Jce=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),ede=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),tde=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),rde=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),i=t?this.valueParser(a):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?i:a))return!1;return!0},r})();function HM(r,t){if(r===!0||r===!1){var e=new jce;return e.value=r,e}var a="";return Q7(r)||Rt(a),r.and?QE("and",r,t):r.or?QE("or",r,t):r.not?ade(r,t):ide(r,t)}function QE(r,t,e){var a=t[r],i="";Se(a)||Rt(i),a.length||Rt(i);var n=r==="and"?new Jce:new ede;return n.children=we(a,function(o){return HM(o,e)}),n.children.length||Rt(i),n}function ade(r,t){var e=r.not,a="";Q7(e)||Rt(a);var i=new tde;return i.child=HM(e,t),i.child||Rt(a),i}function ide(r,t){for(var e="",a=t.prepareGetValue(r),i=[],n=ft(r),o=r.parser,s=o?qW(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var v=Be(KE,u)?KE[u]:u,h=r[u],f=s?s(h):h,c=pj(v,f)||v==="reg"&&new Qce(f);c||Rt(e),i.push(c)}}i.length||Rt(e);var d=new rde;return d.valueGetterParam=a,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function Q7(r){return $e(r)&&!Br(r)}var nde=(function(){function r(t,e){this._cond=HM(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function ode(r,t){return new nde(r,t)}var sde={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=ode(r.config,{valueGetterAttrMap:Ge({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Be(s,"dimension")||Rt(l);var v=t.getDimensionInfo(u);return v||Rt(l),{dimIdx:v.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],n=0,o=t.count();n<o;n++)e=t.getRawDataItem(n),a.evaluate()&&i.push(e);return{data:i}}},lde={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",i=Nt(e);i.length||Rt(a);var n=[];$(i,function(v){var h=v.dimension,f=v.order,c=v.parser,d=v.incomparable;if(h==null&&Rt(a),f!=="asc"&&f!=="desc"&&Rt(a),d&&d!=="min"&&d!=="max"){var p="";Rt(p)}if(f!=="asc"&&f!=="desc"){var g="";Rt(g)}var m=t.getDimensionInfo(h);m||Rt(a);var y=c?qW(c):null;c&&!y&&Rt(a),n.push({dimIdx:m.index,parser:y,comparator:new UW(f,d)})});var o=t.sourceFormat;o!==Jr&&o!==ja&&Rt(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(v,h){for(var f=0;f<n.length;f++){var c=n[f],d=t.retrieveValueFromItem(v,c.dimIdx),p=t.retrieveValueFromItem(h,c.dimIdx);c.parser&&(d=c.parser(d),p=c.parser(p));var g=c.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function ude(r){r.registerTransform(sde),r.registerTransform(lde)}var vde=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,i){r.prototype.init.call(this,e,a,i),this._sourceManager=new XW(this),gI(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),gI(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ui},t})(ut),hde=(function(r){he(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(Wt);function j7(r){r.registerComponentModel(vde),r.registerComponentView(hde)}var Ii=Zi.CMD;function Nl(r,t){return Math.abs(r-t)<1e-5}function yA(r){var t=r.data,e=r.len(),a=[],i,n=0,o=0,s=0,l=0;function u(D,P){i&&i.length>2&&a.push(i),i=[D,P]}function v(D,P,I,R){Nl(D,I)&&Nl(P,R)||i.push(D,P,I,R,I,R)}function h(D,P,I,R,E,k){var B=Math.abs(P-D),F=Math.tan(B/4)*4/3,V=P<D?-1:1,N=Math.cos(D),O=Math.sin(D),z=Math.cos(P),G=Math.sin(P),q=N*E+I,H=O*k+R,U=z*E+I,W=G*k+R,Y=E*F*V,X=k*F*V;i.push(q-Y*O,H+X*N,U+Y*G,W-X*z,U,W)}for(var f,c,d,p,g=0;g<e;){var m=t[g++],y=g===1;switch(y&&(n=t[g],o=t[g+1],s=n,l=o,(m===Ii.L||m===Ii.C||m===Ii.Q)&&(i=[s,l])),m){case Ii.M:n=s=t[g++],o=l=t[g++],u(s,l);break;case Ii.L:f=t[g++],c=t[g++],v(n,o,f,c),n=f,o=c;break;case Ii.C:i.push(t[g++],t[g++],t[g++],t[g++],n=t[g++],o=t[g++]);break;case Ii.Q:f=t[g++],c=t[g++],d=t[g++],p=t[g++],i.push(n+2/3*(f-n),o+2/3*(c-o),d+2/3*(f-d),p+2/3*(c-p),d,p),n=d,o=p;break;case Ii.A:var _=t[g++],x=t[g++],S=t[g++],b=t[g++],w=t[g++],A=t[g++]+w;g+=1;var T=!t[g++];f=Math.cos(w)*S+_,c=Math.sin(w)*b+x,y?(s=f,l=c,u(s,l)):v(n,o,f,c),n=Math.cos(A)*S+_,o=Math.sin(A)*b+x;for(var C=(T?-1:1)*Math.PI/2,M=w;T?M>A:M<A;M+=C){var L=T?Math.max(M+C,A):Math.min(M+C,A);h(M,L,_,x,S,b)}break;case Ii.R:s=n=t[g++],l=o=t[g++],f=s+t[g++],c=l+t[g++],u(f,l),v(f,l,f,c),v(f,c,s,c),v(s,c,s,l),v(s,l,f,l);break;case Ii.Z:i&&v(n,o,s,l),n=s,o=l;break}}return i&&i.length>2&&a.push(i),a}function _A(r,t,e,a,i,n,o,s,l,u){if(Nl(r,e)&&Nl(t,a)&&Nl(i,o)&&Nl(n,s)){l.push(o,s);return}var v=2/u,h=v*v,f=o-r,c=s-t,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var p=e-r,g=a-t,m=i-o,y=n-s,_=p*p+g*g,x=m*m+y*y;if(_<h&&x<h){l.push(o,s);return}var S=f*p+c*g,b=-f*m-c*y,w=_-S*S,A=x-b*b;if(w<h&&S>=0&&A<h&&b>=0){l.push(o,s);return}var T=[],C=[];so(r,e,i,o,.5,T),so(t,a,n,s,.5,C),_A(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],l,u),_A(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],l,u)}function fde(r,t){var e=yA(r),a=[];t=t||1;for(var i=0;i<e.length;i++){var n=e[i],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var v=n[u++],h=n[u++],f=n[u++],c=n[u++],d=n[u++],p=n[u++];_A(s,l,v,h,f,c,d,p,o,t),s=d,l=p}a.push(o)}return a}function J7(r,t,e){var a=r[t],i=r[1-t],n=Math.abs(a/i),o=Math.ceil(Math.sqrt(n*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var v=o*s,h=e-v;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function jE(r,t,e){for(var a=r.r0,i=r.r,n=r.startAngle,o=r.endAngle,s=Math.abs(o-n),l=s*i,u=i-a,v=l>Math.abs(u),h=J7([l,u],v?0:1,t),f=(v?s:u)/h.length,c=0;c<h.length;c++)for(var d=(v?u:s)/h[c],p=0;p<h[c];p++){var g={};v?(g.startAngle=n+f*c,g.endAngle=n+f*(c+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=n+d*p,g.endAngle=n+d*(p+1),g.r0=a+f*c,g.r=a+f*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function cde(r,t,e){for(var a=r.width,i=r.height,n=a>i,o=J7([a,i],n?0:1,t),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",v=n?"y":"x",h=r[s]/o.length,f=0;f<o.length;f++)for(var c=r[l]/o[f],d=0;d<o[f];d++){var p={};p[u]=f*h,p[v]=d*c,p[s]=h,p[l]=c,p.x+=r.x,p.y+=r.y,e.push(p)}}function JE(r,t,e,a){return r*a-e*t}function dde(r,t,e,a,i,n,o,s){var l=e-r,u=a-t,v=o-i,h=s-n,f=JE(v,h,l,u);if(Math.abs(f)<1e-6)return null;var c=r-i,d=t-n,p=JE(c,d,v,h)/f;return p<0||p>1?null:new rt(p*l+r,p*u+t)}function pde(r,t,e){var a=new rt;rt.sub(a,e,t),a.normalize();var i=new rt;rt.sub(i,r,t);var n=i.dot(a);return n}function xl(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function gde(r,t,e){for(var a=r.length,i=[],n=0;n<a;n++){var o=r[n],s=r[(n+1)%a],l=dde(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:pde(l,t,e),pt:l,idx:n})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],v=i[i.length-1];if(v.idx<u.idx){var h=u;u=v,v=h}for(var f=[u.pt.x,u.pt.y],c=[v.pt.x,v.pt.y],d=[f],p=[c],n=u.idx+1;n<=v.idx;n++)xl(d,r[n].slice());xl(d,c),xl(d,f);for(var n=v.idx+1;n<=u.idx+a;n++)xl(p,r[n%a].slice());return xl(p,f),xl(p,c),[{points:d},{points:p}]}function ek(r){var t=r.points,e=[],a=[];Ip(t,e,a);var i=new at(e[0],e[1],a[0]-e[0],a[1]-e[1]),n=i.width,o=i.height,s=i.x,l=i.y,u=new rt,v=new rt;return n>o?(u.x=v.x=s+n/2,u.y=l,v.y=l+o):(u.y=v.y=l+o/2,u.x=s,v.x=s+n),gde(t,u,v)}function vp(r,t,e,a){if(e===1)a.push(t);else{var i=Math.floor(e/2),n=r(t);vp(r,n[0],i,a),vp(r,n[1],e-i,a)}return a}function mde(r,t){for(var e=[],a=0;a<t;a++)e.push(tC(r));return e}function yde(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function _de(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function xde(r,t){var e=[],a=r.shape,i;switch(r.type){case"rect":cde(a,t,e),i=gt;break;case"sector":jE(a,t,e),i=Qr;break;case"circle":jE({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},t,e),i=Qr;break;default:var n=r.getComputedTransform(),o=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,s=we(fde(r.getUpdatedPathProxy(),o),function(m){return _de(m)}),l=s.length;if(l===0)vp(ek,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var v=0,h=we(s,function(m){var y=[],_=[];Ip(m,y,_);var x=(_[1]-y[1])*(_[0]-y[0]);return v+=x,{poly:m,area:x}});h.sort(function(m,y){return y.area-m.area});for(var f=t,u=0;u<l;u++){var c=h[u];if(f<=0)break;var d=u===l-1?f:Math.ceil(c.area/v*t);d<0||(vp(ek,{points:c.poly},d,e),f-=d)}}i=jr;break}if(!i)return mde(r,t);for(var p=[],u=0;u<e.length;u++){var g=new i;g.setShape(e[u]),yde(r,g),p.push(g)}return p}function Sde(r,t){var e=r.length,a=t.length;if(e===a)return[r,t];for(var i=[],n=[],o=e<a?r:t,s=Math.min(e,a),l=Math.abs(a-e)/6,u=(s-2)/6,v=Math.ceil(l/u)+1,h=[o[0],o[1]],f=l,c=2;c<s;){var d=o[c-2],p=o[c-1],g=o[c++],m=o[c++],y=o[c++],_=o[c++],x=o[c++],S=o[c++];if(f<=0){h.push(g,m,y,_,x,S);continue}for(var b=Math.min(f,v-1)+1,w=1;w<=b;w++){var A=w/b;so(d,g,y,x,A,i),so(p,m,_,S,A,n),d=i[3],p=n[3],h.push(i[1],n[1],i[2],n[2],d,p),g=i[5],m=n[5],y=i[6],_=n[6]}f-=b-1}return o===r?[h,t]:[r,h]}function tk(r,t){for(var e=r.length,a=r[e-2],i=r[e-1],n=[],o=0;o<t.length;)n[o++]=a,n[o++]=i;return n}function bde(r,t){for(var e,a,i,n=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],v=void 0,h=void 0;l?u?(e=Sde(l,u),v=e[0],h=e[1],a=v,i=h):(h=tk(i||l,l),v=l):(v=tk(a||u,u),h=u),n.push(v),o.push(h)}return[n,o]}function rk(r){for(var t=0,e=0,a=0,i=r.length,n=0,o=i-2;n<i;o=n,n+=2){var s=r[o],l=r[o+1],u=r[n],v=r[n+1],h=s*v-u*l;t+=h,e+=(s+u)*h,a+=(l+v)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,a/t/3,t]}function wde(r,t,e,a){for(var i=(r.length-2)/6,n=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var v=u*6,h=0,f=0;f<s;f+=2){var c=f===0?v:(v+f-2)%l+2,d=r[c]-e[0],p=r[c+1]-e[1],g=t[f]-a[0],m=t[f+1]-a[1],y=g-d,_=m-p;h+=y*y+_*_}h<n&&(n=h,o=u)}return o}function Tde(r){for(var t=[],e=r.length,a=0;a<e;a+=2)t[a]=r[e-a-2],t[a+1]=r[e-a-1];return t}function Ade(r,t,e,a){for(var i=[],n,o=0;o<r.length;o++){var s=r[o],l=t[o],u=rk(s),v=rk(l);n==null&&(n=u[2]<0!=v[2]<0);var h=[],f=[],c=0,d=1/0,p=[],g=s.length;n&&(s=Tde(s));for(var m=wde(s,l,u,v)*6,y=g-2,_=0;_<y;_+=2){var x=(m+_)%y+2;h[_+2]=s[x]-u[0],h[_+3]=s[x+1]-u[1]}h[0]=s[m]-u[0],h[1]=s[m+1]-u[1];for(var S=a/e,b=-a/2;b<=a/2;b+=S){for(var w=Math.sin(b),A=Math.cos(b),T=0,_=0;_<s.length;_+=2){var C=h[_],M=h[_+1],L=l[_]-v[0],D=l[_+1]-v[1],P=L*A-D*w,I=L*w+D*A;p[_]=P,p[_+1]=I;var R=P-C,E=I-M;T+=R*R+E*E}if(T<d){d=T,c=b;for(var k=0;k<p.length;k++)f[k]=p[k]}}i.push({from:h,to:f,fromCp:u,toCp:v,rotation:-c})}return i}function hp(r){return r.__isCombineMorphing}var e9="__mOriginal_";function fp(r,t,e){var a=e9+t,i=r[a]||r[t];r[a]||(r[a]=r[t]);var n=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),n?u=n.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function ah(r,t){var e=e9+t;r[e]&&(r[t]=r[e],r[e]=null)}function ak(r,t){for(var e=0;e<r.length;e++)for(var a=r[e],i=0;i<a.length;){var n=a[i],o=a[i+1];a[i++]=t[0]*n+t[2]*o+t[4],a[i++]=t[1]*n+t[3]*o+t[5]}}function t9(r,t){var e=r.getUpdatedPathProxy(),a=t.getUpdatedPathProxy(),i=bde(yA(e),yA(a)),n=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&ak(n,s),l&&ak(o,l),fp(t,"updateTransform",{replace:u}),t.transform=null;var v=Ade(n,o,10,Math.PI),h=[];fp(t,"buildPath",{replace:function(f){for(var c=t.__morphT,d=1-c,p=[],g=0;g<v.length;g++){var m=v[g],y=m.from,_=m.to,x=m.rotation*c,S=m.fromCp,b=m.toCp,w=Math.sin(x),A=Math.cos(x);qv(p,S,b,c);for(var T=0;T<y.length;T+=2){var C=y[T],M=y[T+1],L=_[T],D=_[T+1],P=C*d+L*c,I=M*d+D*c;h[T]=P*A-I*w+p[0],h[T+1]=P*w+I*A+p[1]}var R=h[0],E=h[1];f.moveTo(R,E);for(var T=2;T<y.length;){var L=h[T++],D=h[T++],k=h[T++],B=h[T++],F=h[T++],V=h[T++];R===L&&E===D&&k===F&&B===V?f.lineTo(F,V):f.bezierCurveTo(L,D,k,B,F,V),R=F,E=V}}}})}function qM(r,t,e){if(!r||!t)return t;var a=e.done,i=e.during;t9(r,t),t.__morphT=0;function n(){ah(t,"buildPath"),ah(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ue({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){n(),a&&a()}},e)),t}function Cde(r,t,e,a,i,n){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=n===a?0:Math.round(32767*(t-a)/(n-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var v=0,h=0;(r&u)>0&&(v=1),(t&u)>0&&(h=1),s+=u*u*(3*v^h),h===0&&(v===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function cp(r){var t=1/0,e=1/0,a=-1/0,i=-1/0,n=we(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),v=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(v,t),e=Math.min(h,e),a=Math.max(v,a),i=Math.max(h,i),[v,h]}),o=we(n,function(s,l){return{cp:s,z:Cde(s[0],s[1],t,e,a,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function r9(r){return xde(r.path,r.count)}function xA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Mde(r,t,e){var a=[];function i(S){for(var b=0;b<S.length;b++){var w=S[b];hp(w)?i(w.childrenRef()):w instanceof ht&&a.push(w)}}i(r);var n=a.length;if(!n)return xA();var o=e.dividePath||r9,s=o({path:t,count:n});if(s.length!==n)return console.error("Invalid morphing: unmatched splitted path"),xA();a=cp(a),s=cp(s);for(var l=e.done,u=e.during,v=e.individualDelay,h=new pn,f=0;f<n;f++){var c=a[f],d=s[f];d.parent=t,d.copyTransform(h),v||t9(c,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(S){for(var b=0;b<s.length;b++)s[b].addSelfToZr(S)}fp(t,"addSelfToZr",{after:function(S){p(S)}}),fp(t,"removeSelfFromZr",{after:function(S){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(S)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,ah(t,"addSelfToZr"),ah(t,"removeSelfFromZr")}var m=s.length;if(v)for(var y=m,_=function(){y--,y===0&&(g(),l&&l())},f=0;f<m;f++){var x=v?Ue({delay:(e.delay||0)+v(f,m,a[f],s[f]),done:_},e):e;qM(a[f],s[f],x)}else t.__morphT=0,t.animateTo({__morphT:1},Ue({during:function(S){for(var b=0;b<m;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(S)},done:function(){g();for(var S=0;S<r.length;S++)ah(r[S],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:a,toIndividuals:s,count:m}}function Dde(r,t,e){var a=t.length,i=[],n=e.dividePath||r9;function o(c){for(var d=0;d<c.length;d++){var p=c[d];hp(p)?o(p.childrenRef()):p instanceof ht&&i.push(p)}}if(hp(r)){o(r.childrenRef());var s=i.length;if(s<a)for(var l=0,u=s;u<a;u++)i.push(tC(i[l++%s]));i.length=a}else{i=n({path:r,count:a});for(var v=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(v);if(i.length!==a)return console.error("Invalid morphing: unmatched splitted path"),xA()}i=cp(i),t=cp(t);for(var h=e.individualDelay,u=0;u<a;u++){var f=h?Ue({delay:(e.delay||0)+h(u,a,i[u],t[u])},e):e;qM(i[u],t[u],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function ik(r){return Se(r[0])}function nk(r,t){for(var e=[],a=r.length,i=0;i<a;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var n=t[i].length,o=void 0;for(o=0;o<n;o++)e[o%a].many.push(t[i][o])}for(var s=0,i=a-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var n=l.length,u=Math.ceil(n/2);e[i].many=l.slice(u,n),e[s].many=l.slice(0,u),s++}return e}var Lde={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var i=tC(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function qy(r,t,e,a,i,n){if(!r.length||!t.length)return;var o=uu("update",a,i);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,v;ik(r)&&(u=r,v=t),ik(t)&&(u=t,v=r);function h(m,y,_,x,S){var b=m.many,w=m.one;if(b.length===1&&!S){var A=y?b[0]:w,T=y?w:b[0];if(hp(A))h({many:[A],one:T},!0,_,x,!0);else{var C=s?Ue({delay:s(_,x)},l):l;qM(A,T,C),n(A,T,A,T,C)}}else for(var M=Ue({dividePath:Lde[e],individualDelay:s&&function(E,k,B,F){return s(E+_,x)}},l),L=y?Mde(b,w,M):Dde(w,b,M),D=L.fromIndividuals,P=L.toIndividuals,I=D.length,R=0;R<I;R++){var C=s?Ue({delay:s(R,I)},l):l;n(D[R],P[R],y?b[R]:m.one,y?m.one:b[R],C)}}for(var f=u?u===r:r.length>t.length,c=u?nk(v,u):nk(f?t:r,[f?r:t]),d=0,p=0;p<c.length;p++)d+=c[p].many.length;for(var g=0,p=0;p<c.length;p++)h(c[p],f,g,d),g+=c[p].many.length}function ns(r){if(!r)return[];if(Se(r)){for(var t=[],e=0;e<r.length;e++)t.push(ns(r[e]));return t}var a=[];return r.traverse(function(i){i instanceof ht&&!i.disableMorphing&&!i.invisible&&!i.ignore&&a.push(i)}),a}var a9=1e4,Ide=0,ok=1,sk=2,Pde=yt();function Rde(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var i=r.getDimensionInfo(e[a]);if(i&&i.otherDims[t]===0)return e[a]}}function Ede(r,t,e){var a=r.getDimensionInfo(e),i=a&&a.ordinalMeta;if(a){var n=r.get(a.name,t);return i&&i.categories[n]||n+""}}function lk(r,t,e,a){var i=a?"itemChildGroupId":"itemGroupId",n=Rde(r,i);if(n){var o=Ede(r,t,n);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function uk(r){var t=[];return $(r,function(e){var a=e.data,i=e.dataGroupId;if(!(a.count()>a9))for(var n=a.getIndices(),o=0;o<n.length;o++)t.push({data:a,groupId:lk(a,o,i,!1),childGroupId:lk(a,o,i,!0),divide:e.divide,dataIndex:o})}),t}function Wy(r,t,e){r.traverse(function(a){a instanceof ht&&$t(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Uy(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Sl(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function kde(r,t,e){var a=uu("update",e,t);a&&r.traverse(function(i){if(i instanceof Za){var n=JK(i);n&&i.animateFrom({style:n},a)}})}function Ode(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var i=r[a],n=t[a];if(i.data.getId(i.dataIndex)!==n.data.getId(n.dataIndex))return!1}return!0}function i9(r,t,e){var a=uk(r),i=uk(t);function n(_,x,S,b,w){(S||_)&&x.animateFrom({style:S&&S!==_?_e(_e({},S.style),_.style):_.style},w)}var o=!1,s=Ide,l=Ge(),u=Ge();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var v=0;v<i.length;v++){var h=i[v].groupId;if(u.get(h)){s=ok;break}var f=i[v].childGroupId;if(f&&l.get(f)){s=sk;break}}function c(_,x){return function(S){var b=S.data,w=S.dataIndex;return x?b.getId(w):_?s===ok?S.childGroupId:S.groupId:s===sk?S.childGroupId:S.groupId}}var d=Ode(a,i),p={};if(!d)for(var v=0;v<i.length;v++){var g=i[v],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(_,x){var S=a[x],b=i[_],w=b.data.hostModel,A=S.data.getItemGraphicEl(S.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(A===T){T&&kde(T,b.dataIndex,w);return}A&&p[A.id]||T&&(Sl(T),A?(Sl(A),Uy(A),o=!0,qy(ns(A),ns(T),b.divide,w,_,n)):Wy(T,w,_))}new bn(a,i,c(!0,d),c(!1,d),null,"multiple").update(y).updateManyToOne(function(_,x){var S=i[_],b=S.data,w=b.hostModel,A=b.getItemGraphicEl(S.dataIndex),T=Ct(we(x,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==A&&!p[C.id]});A&&(Sl(A),T.length?($(T,function(C){Sl(C),Uy(C)}),o=!0,qy(ns(T),ns(A),S.divide,w,_,n)):Wy(A,w,S.dataIndex))}).updateOneToMany(function(_,x){var S=a[x],b=S.data.getItemGraphicEl(S.dataIndex);if(!(b&&p[b.id])){var w=Ct(we(_,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==b}),A=i[_[0]].data.hostModel;w.length&&($(w,function(T){return Sl(T)}),b?(Sl(b),Uy(b),o=!0,qy(ns(b),ns(w),S.divide,A,_[0],n)):$(w,function(T){return Wy(T,A,_[0])}))}}).updateManyToMany(function(_,x){new bn(x,_,function(S){return a[S].data.getId(a[S].dataIndex)},function(S){return i[S].data.getId(i[S].dataIndex)}).update(function(S,b){y(_[S],x[b])}).execute()}).execute(),o&&$(t,function(_){var x=_.data,S=x.hostModel,b=S&&e.getViewOfSeriesModel(S),w=uu("update",S,0);b&&S.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(A){A instanceof ht&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function vk(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function hk(r){return Se(r)?r.sort().join(","):r}function Wn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Nde(r,t){var e=Ge(),a=Ge(),i=Ge();return $(r.oldSeries,function(n,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=vk(n),v=hk(u);a.set(v,{dataGroupId:s,data:l}),Se(u)&&$(u,function(h){i.set(h,{key:v,dataGroupId:s,data:l})})}),$(t.updatedSeries,function(n){if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var o=n.get("dataGroupId"),s=n.getData(),l=vk(n),u=hk(l),v=a.get(u);if(v)e.set(u,{oldSeries:[{dataGroupId:v.dataGroupId,divide:Wn(v.data),data:v.data}],newSeries:[{dataGroupId:o,divide:Wn(s),data:s}]});else if(Se(l)){var h=[];$(l,function(d){var p=a.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:Wn(p.data),data:p.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Wn(s)}]})}else{var f=i.get(l);if(f){var c=e.get(f.key);c||(c={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Wn(f.data)}],newSeries:[]},e.set(f.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Wn(s)})}}}}),e}function fk(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function zde(r,t,e,a){var i=[],n=[];$(Nt(r.from),function(o){var s=fk(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Wn(t.oldData[s]),groupIdDim:o.dimension})}),$(Nt(r.to),function(o){var s=fk(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();n.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Wn(l),groupIdDim:o.dimension})}}),i.length>0&&n.length>0&&i9(i,n,a)}function Bde(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){$(Nt(a.seriesTransition),function(i){$(Nt(i.to),function(n){for(var o=a.updatedSeries,s=0;s<o.length;s++)(n.seriesIndex!=null&&n.seriesIndex===o[s].seriesIndex||n.seriesId!=null&&n.seriesId===o[s].id)&&(o[s][od]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var i=Pde(e);if(i.oldSeries&&a.updatedSeries&&a.optionChanged){var n=a.seriesTransition;if(n)$(Nt(n),function(c){zde(c,i,a,e)});else{var o=Nde(i,a);$(o.keys(),function(c){var d=o.get(c);i9(d.oldSeries,d.newSeries,e)})}$(a.updatedSeries,function(c){c[od]&&(c[od]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],v=i.oldData=[],h=0;h<s.length;h++){var f=s[h].getData();f.count()<a9&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),v.push(f))}})}var $y=Math.sin,Yy=Math.cos,n9=Math.PI,Zo=Math.PI*2,Vde=180/n9,o9=(function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,i,n,o){this._add("C",t,e,a,i,n,o)},r.prototype.quadraticCurveTo=function(t,e,a,i){this._add("Q",t,e,a,i)},r.prototype.arc=function(t,e,a,i,n,o){this.ellipse(t,e,a,a,0,i,n,o)},r.prototype.ellipse=function(t,e,a,i,n,o,s,l){var u=s-o,v=!l,h=Math.abs(u),f=Xn(h-Zo)||(v?u>=Zo:-u>=Zo),c=u>0?u%Zo:u%Zo+Zo,d=!1;f?d=!0:Xn(h)?d=!1:d=c>=n9==!!v;var p=t+a*Yy(o),g=e+i*$y(o);this._start&&this._add("M",p,g);var m=Math.round(n*Vde);if(f){var y=1/this._p,_=(v?1:-1)*(Zo-y);this._add("A",a,i,m,1,+v,t+a*Yy(o+_),e+i*$y(o+_)),y>.01&&this._add("A",a,i,m,0,+v,p,g)}else{var x=t+a*Yy(s),S=e+i*$y(s);this._add("A",a,i,m,+d,+v,x,S)}},r.prototype.rect=function(t,e,a,i){this._add("M",t,e),this._add("l",a,0),this._add("l",0,i),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,i,n,o,s,l,u){for(var v=[],h=this._p,f=1;f<arguments.length;f++){var c=arguments[f];if(isNaN(c)){this._invalid=!0;return}v.push(Math.round(c*h)/h)}this._d.push(t+v.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),WM="none",Gde=Math.round;function Fde(r){var t=r.fill;return t!=null&&t!==WM}function Hde(r){var t=r.stroke;return t!=null&&t!==WM}var SA=["lineCap","miterLimit","lineJoin"],qde=we(SA,function(r){return"stroke-"+r.toLowerCase()});function Wde(r,t,e,a){var i=t.opacity==null?1:t.opacity;if(e instanceof Dr){r("opacity",i);return}if(Fde(t)){var n=ch(t.fill);r("fill",n.color);var o=t.fillOpacity!=null?t.fillOpacity*n.opacity*i:n.opacity*i;o<1&&r("fill-opacity",o)}else r("fill",WM);if(Hde(t)){var s=ch(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,v=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,h=t.strokeFirst;if(u!==1&&r("stroke-width",u),h&&r("paint-order",h?"stroke":"fill"),v<1&&r("stroke-opacity",v),t.lineDash){var f=MC(e),c=f[0],d=f[1];c&&(d=Gde(d||0),r("stroke-dasharray",c.join(",")),(d||a)&&r("stroke-dashoffset",d))}for(var p=0;p<SA.length;p++){var g=SA[p];if(t[g]!==Dd[g]){var m=t[g]||Dd[g];m&&r(qde[p],m)}}}}var s9="http://www.w3.org/2000/svg",l9="http://www.w3.org/1999/xlink",Ude="http://www.w3.org/2000/xmlns/",$de="http://www.w3.org/XML/1998/namespace",ck="ecmeta_";function u9(r){return document.createElementNS(s9,r)}function Tr(r,t,e,a,i){return{tag:r,attrs:e||{},children:a,text:i,key:t}}function Yde(r,t){var e=[];if(t)for(var a in t){var i=t[a],n=a;i!==!1&&(i!==!0&&i!=null&&(n+='="'+i+'"'),e.push(n))}return"<"+r+" "+e.join(" ")+">"}function Zde(r){return"</"+r+">"}function UM(r,t){t=t||{};var e=t.newline?"\n":"";function a(i){var n=i.children,o=i.tag,s=i.attrs,l=i.text;return Yde(o,s)+(o!=="style"?Zr(l):l||"")+(n?""+e+we(n,function(u){return a(u)}).join(e)+e:"")+Zde(o)}return a(r)}function Xde(r,t,e){e=e||{};var a=e.newline?"\n":"",i=" {"+a,n=a+"}",o=we(ft(r),function(l){return l+i+we(ft(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+n}).join(a),s=we(ft(t),function(l){return"@keyframes "+l+i+we(ft(t[l]),function(u){return u+i+we(ft(t[l][u]),function(v){var h=t[l][u][v];return v==="d"&&(h='path("'+h+'")'),v+":"+h+";"}).join(a)+n}).join(a)+n}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function bA(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dk(r,t,e,a){return Tr("svg","root",{width:r,height:t,xmlns:s9,"xmlns:xlink":l9,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var Kde=0;function v9(){return Kde++}var pk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},os="transform-origin";function Qde(r,t,e){var a=_e({},r.shape);_e(a,t),r.buildPath(e,a);var i=new o9;return i.reset(nq(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function jde(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[os]=e+"px "+a+"px")}var Jde={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function h9(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function epe(r,t,e){var a=r.shape.paths,i={},n,o;if($(a,function(l){var u=bA(e.zrId);u.animation=!0,ng(l,{},u,!0);var v=u.cssAnims,h=u.cssNodes,f=ft(v),c=f.length;if(c){o=f[c-1];var d=v[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in h){var y=h[m].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){t.d=!1;var s=h9(i,e);return n.replace(o,s)}}function gk(r){return Re(r)?pk[r]?"cubic-bezier("+pk[r]+")":zA(r)?r:"":""}function ng(r,t,e,a){var i=r.animators,n=i.length,o=[];if(r instanceof Ep){var s=epe(r,t,e);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var v=i[u],h=[v.getMaxTime()/1e3+"s"],f=gk(v.getClip().easing),c=v.getDelay();f?h.push(f):h.push("linear"),c&&h.push(c/1e3+"s"),v.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(v)}function p(y){var _=y[1],x=_.length,S={},b={},w={},A="animation-timing-function";function T(U,W,Y){for(var X=U.getTracks(),K=U.getMaxTime(),Q=0;Q<X.length;Q++){var j=X[Q];if(j.needsAnimate()){var te=j.keyframes,Z=j.propName;if(Y&&(Z=Y(Z)),Z)for(var ee=0;ee<te.length;ee++){var le=te[ee],oe=Math.round(le.time/K*100)+"%",fe=gk(le.easing),se=le.rawValue;(Re(se)||bt(se))&&(W[oe]=W[oe]||{},W[oe][Z]=le.rawValue,fe&&(W[oe][A]=fe))}}}}for(var C=0;C<x;C++){var M=_[C],L=M.targetName;L?L==="shape"&&T(M,b):!a&&T(M,S)}for(var D in S){var P={};vq(P,r),_e(P,S[D]);var I=oq(P),R=S[D][A];w[D]=I?{transform:I}:{},jde(w[D],P),R&&(w[D][A]=R)}var E,k=!0;for(var D in b){w[D]=w[D]||{};var B=!E,R=b[D][A];B&&(E=new Zi);var F=E.len();E.reset(),w[D].d=Qde(r,b[D],E);var V=E.len();if(!B&&F!==V){k=!1;break}R&&(w[D][A]=R)}if(!k)for(var D in w)delete w[D].d;if(!a)for(var C=0;C<x;C++){var M=_[C],L=M.targetName;L==="style"&&T(M,w,function(X){return Jde[X]})}for(var N=ft(w),O=!0,z,C=1;C<N.length;C++){var G=N[C-1],q=N[C];if(w[G][os]!==w[q][os]){O=!1;break}z=w[G][os]}if(O&&z){for(var D in w)w[D][os]&&delete w[D][os];t[os]=z}if(Ct(N,function(U){return ft(w[U]).length>0}).length){var H=h9(w,e);return H+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=e.zrId+"-cls-"+v9();e.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function tpe(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};mk(a,t,e)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=i.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=Td(l))}var u=i.lineWidth;if(u){var v=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/v}var a={cursor:"pointer"};n&&(a.fill=n),i.stroke&&(a.stroke=i.stroke),u&&(a["stroke-width"]=u),mk(a,t,e)}}function mk(r,t,e,a){var i=JSON.stringify(r),n=e.cssStyleCache[i];n||(n=e.zrId+"-cls-"+v9(),e.cssStyleCache[i]=n,e.cssNodes["."+n+":hover"]=r),t.class=t.class?t.class+" "+n:n}var Oh=Math.round;function f9(r){return r&&Re(r.src)}function c9(r){return r&&He(r.toDataURL)}function $M(r,t,e,a){Wde(function(i,n){var o=i==="fill"||i==="stroke";o&&iq(n)?p9(t,r,i,a):o&&VA(n)?g9(e,r,i,a):r[i]=n,o&&a.ssr&&n==="none"&&(r["pointer-events"]="visible")},t,e,!1),lpe(e,r,a)}function YM(r,t){var e=cq(t);e&&(e.each(function(a,i){a!=null&&(r[(ck+i).toLowerCase()]=a+"")}),t.isSilent()&&(r[ck+"silent"]="true"))}function yk(r){return Xn(r[0]-1)&&Xn(r[1])&&Xn(r[2])&&Xn(r[3]-1)}function rpe(r){return Xn(r[4])&&Xn(r[5])}function ZM(r,t,e){if(t&&!(rpe(t)&&yk(t))){var a=1e4;r.transform=yk(t)?"translate("+Oh(t[4]*a)/a+" "+Oh(t[5]*a)/a+")":_Z(t)}}function _k(r,t,e){for(var a=r.points,i=[],n=0;n<a.length;n++)i.push(Oh(a[n][0]*e)/e),i.push(Oh(a[n][1]*e)/e);t.points=i.join(" ")}function xk(r){return!r.smooth}function ape(r){var t=we(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,i){for(var n=0;n<t.length;n++){var o=t[n],s=e[o[0]];s!=null&&(a[o[1]]=Oh(s*i)/i)}}}var ipe={circle:[ape(["cx","cy","r"])],polyline:[_k,xk],polygon:[_k,xk]};function npe(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function d9(r,t){var e=r.style,a=r.shape,i=ipe[r.type],n={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&nq(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](a))&&!(o&&npe(r))&&!(l<1)){s=r.type;var v=Math.pow(10,u);i[0](a,n,v)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var f=r.path;h&&(f.beginPath(),r.buildPath(f,r.shape),r.pathUpdated());var c=f.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==c||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new o9),p.reset(u),f.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=c,d.__svgPathStrokePercent=l),n.d=p.getStr()}return ZM(n,r.transform),$M(n,e,r,t),YM(n,r),t.animation&&ng(r,n,t),t.emphasis&&tpe(r,n,t),Tr(s,r.id+"",n)}function ope(r,t){var e=r.style,a=e.image;if(a&&!Re(a)&&(f9(a)?a=a.src:c9(a)&&(a=a.toDataURL())),!!a){var i=e.x||0,n=e.y||0,o=e.width,s=e.height,l={href:a,width:o,height:s};return i&&(l.x=i),n&&(l.y=n),ZM(l,r.transform),$M(l,e,r,t),YM(l,r),t.animation&&ng(r,l,t),Tr("image",r.id+"",l)}}function spe(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var i=e.font||oo,n=e.x||0,o=SZ(e.y||0,Tp(i),e.textBaseline),s=xZ[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Bq(e)){var u="",v=e.fontStyle,h=zq(e.fontSize);if(!parseFloat(h))return;var f=e.fontFamily||L4,c=e.fontWeight;u+="font-size:"+h+";font-family:"+f+";",v&&v!=="normal"&&(u+="font-style:"+v+";"),c&&c!=="normal"&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+i;return a.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),ZM(l,r.transform),$M(l,e,r,t),YM(l,r),t.animation&&ng(r,l,t),Tr("text",r.id+"",l,void 0,a)}}function Sk(r,t){if(r instanceof ht)return d9(r,t);if(r instanceof Dr)return ope(r,t);if(r instanceof Zl)return spe(r,t)}function lpe(r,t,e){var a=r.style;if(bZ(a)){var i=wZ(r),n=e.shadowCache,o=n[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var v=a.shadowOffsetX||0,h=a.shadowOffsetY||0,f=a.shadowBlur,c=ch(a.shadowColor),d=c.opacity,p=c.color,g=f/2/l,m=f/2/u,y=g+" "+m;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Tr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Tr("feDropShadow","",{dx:v/l,dy:h/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),n[i]=o}t.filter=wp(o)}}function p9(r,t,e,a){var i=r[e],n,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(rq(i))n="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(aq(i))n="radialGradient",o.cx=Je(i.x,.5),o.cy=Je(i.y,.5),o.r=Je(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,v=s.length;u<v;++u){var h=Uw(s[u].offset)*100+"%",f=s[u].color,c=ch(f),d=c.color,p=c.opacity,g={offset:h};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Tr("stop",u+"",g))}var m=Tr(n,"",o,l),y=UM(m),_=a.gradientCache,x=_[y];x||(x=a.zrId+"-g"+a.gradientIdx++,_[y]=x,o.id=x,a.defs[x]=Tr(n,x,o,l)),t[e]=wp(x)}function g9(r,t,e,a){var i=r.style[e],n=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",v=s==="repeat-y",h;if(tq(i)){var f=i.imageWidth,c=i.imageHeight,d=void 0,p=i.image;if(Re(p)?d=p:f9(p)?d=p.src:c9(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Kr(f,g),Kr(c,g)}else if(f==null||c==null){var m=function(C,M){if(C){var L=C.elm,D=f||M.width,P=c||M.height;C.tag==="pattern"&&(u?(P=1,D/=n.width):v&&(D=1,P/=n.height)),C.attrs.width=D,C.attrs.height=P,L&&(L.setAttribute("width",D),L.setAttribute("height",P))}},y=ZA(d,null,r,function(C){l||m(b,C),m(h,C)});y&&y.width&&y.height&&(f=f||y.width,c=c||y.height)}h=Tr("image","img",{href:d,width:f,height:c}),o.width=f,o.height=c}else i.svgElement&&(h=Ye(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var _,x;l?_=x=1:u?(x=1,_=o.width/n.width):v?(_=1,x=o.height/n.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=oq(i);S&&(o.patternTransform=S);var b=Tr("pattern","",o,[h]),w=UM(b),A=a.patternCache,T=A[w];T||(T=a.zrId+"-p"+a.patternIdx++,A[w]=T,o.id=T,b=a.defs[T]=Tr("pattern",T,o,[h])),t[e]=wp(T)}}function upe(r,t,e){var a=e.clipPathCache,i=e.defs,n=a[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var o={id:n};a[r.id]=n,i[n]=Tr("clipPath",n,o,[d9(r,e)])}t["clip-path"]=wp(n)}function bk(r){return document.createTextNode(r)}function vs(r,t,e){r.insertBefore(t,e)}function wk(r,t){r.removeChild(t)}function Tk(r,t){r.appendChild(t)}function m9(r){return r.parentNode}function y9(r){return r.nextSibling}function Zy(r,t){r.textContent=t}var Ak=58,vpe=120,hpe=Tr("","");function wA(r){return r===void 0}function zi(r){return r!==void 0}function fpe(r,t,e){for(var a={},i=t;i<=e;++i){var n=r[i].key;n!==void 0&&(a[n]=i)}return a}function Vv(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Nh(r){var t,e=r.children,a=r.tag;if(zi(a)){var i=r.elm=u9(a);if(XM(hpe,r),Se(e))for(t=0;t<e.length;++t){var n=e[t];n!=null&&Tk(i,Nh(n))}else zi(r.text)&&!$e(r.text)&&Tk(i,bk(r.text))}else r.elm=bk(r.text);return r.elm}function _9(r,t,e,a,i){for(;a<=i;++a){var n=e[a];n!=null&&vs(r,Nh(n),t)}}function dp(r,t,e,a){for(;e<=a;++e){var i=t[e];if(i!=null)if(zi(i.tag)){var n=m9(i.elm);wk(n,i.elm)}else wk(r,i.elm)}}function XM(r,t){var e,a=t.elm,i=r&&r.attrs||{},n=t.attrs||{};if(i!==n){for(e in n){var o=n[e],s=i[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==vpe?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(Ude,e,o):e.charCodeAt(3)===Ak?a.setAttributeNS($de,e,o):e.charCodeAt(5)===Ak?a.setAttributeNS(l9,e,o):a.setAttribute(e,o))}for(e in i)e in n||a.removeAttribute(e)}}function cpe(r,t,e){for(var a=0,i=0,n=t.length-1,o=t[0],s=t[n],l=e.length-1,u=e[0],v=e[l],h,f,c,d;a<=n&&i<=l;)o==null?o=t[++a]:s==null?s=t[--n]:u==null?u=e[++i]:v==null?v=e[--l]:Vv(o,u)?(Rl(o,u),o=t[++a],u=e[++i]):Vv(s,v)?(Rl(s,v),s=t[--n],v=e[--l]):Vv(o,v)?(Rl(o,v),vs(r,o.elm,y9(s.elm)),o=t[++a],v=e[--l]):Vv(s,u)?(Rl(s,u),vs(r,s.elm,o.elm),s=t[--n],u=e[++i]):(wA(h)&&(h=fpe(t,a,n)),f=h[u.key],wA(f)?vs(r,Nh(u),o.elm):(c=t[f],c.tag!==u.tag?vs(r,Nh(u),o.elm):(Rl(c,u),t[f]=void 0,vs(r,c.elm,o.elm))),u=e[++i]);(a<=n||i<=l)&&(a>n?(d=e[l+1]==null?null:e[l+1].elm,_9(r,d,e,i,l)):dp(r,t,a,n))}function Rl(r,t){var e=t.elm=r.elm,a=r.children,i=t.children;r!==t&&(XM(r,t),wA(t.text)?zi(a)&&zi(i)?a!==i&&cpe(e,a,i):zi(i)?(zi(r.text)&&Zy(e,""),_9(e,null,i,0,i.length-1)):zi(a)?dp(e,a,0,a.length-1):zi(r.text)&&Zy(e,""):r.text!==t.text&&(zi(a)&&dp(e,a,0,a.length-1),Zy(e,t.text)))}function dpe(r,t){if(Vv(r,t))Rl(r,t);else{var e=r.elm,a=m9(e);Nh(t),a!==null&&(vs(a,t.elm,y9(e)),dp(a,[r],0,0))}return t}var ppe=0,gpe=(function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Ck(),this.configLayer=Ck(),this.storage=e,this._opts=a=_e({},a),this.root=t,this._id="zr"+ppe++,this._oldVNode=dk(a.width,a.height),t&&!a.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=u9("svg");XM(null,this._oldVNode),i.appendChild(n),t.appendChild(i)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",dpe(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Sk(t,bA(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,i=this._height,n=bA(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=mpe(a,i,this._backgroundColor,n);s&&o.push(s);var l=t.compress?null:this._mainVNode=Tr("g","main",{},[]);this._paintList(e,n,l?l.children:o),l&&o.push(l);var u=we(ft(n.defs),function(f){return n.defs[f]});if(u.length&&o.push(Tr("defs","defs",{},u)),t.animation){var v=Xde(n.cssNodes,n.cssAnims,{newline:!0});if(v){var h=Tr("style","stl",{},[],v);o.push(h)}}return dk(a,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},UM(this.renderToVNode({animation:Je(t.cssAnimation,!0),emphasis:Je(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Je(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var i=t.length,n=[],o=0,s,l,u=0,v=0;v<i;v++){var h=t[v];if(!h.invisible){var f=h.__clipPaths,c=f&&f.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(c-1,d-1);p>=0&&!(f&&l&&f[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=n[o-1];for(var m=p+1;m<c;m++){var y={};upe(f[m],y,e);var _=Tr("g","clip-g-"+u++,y,[]);(s?s.children:a).push(_),n[o++]=_,s=_}l=f;var x=Sk(h,e);x&&(s?s.children:a).push(x)}}},r.prototype.resize=function(t,e){var a=this._opts,i=this.root,n=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),i&&n&&(n.style.display="none",t=Ol(i,0,a),e=Ol(i,1,a),n.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,n){var o=n.style;o.width=t+"px",o.height=e+"px"}if(VA(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=AZ(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r})();function Ck(r){return function(){}}function mpe(r,t,e,a){var i;if(e&&e!=="none")if(i=Tr("rect","bg",{width:r,height:t,x:"0",y:"0"}),iq(e))p9({fill:e},i.attrs,"fill",a);else if(VA(e))g9({style:{fill:e},dirty:ir,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",a);else{var n=ch(e),o=n.color,s=n.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function ype(r){r.registerPainter("svg",gpe)}function Mk(r,t,e){var a=mi.createCanvas(),i=t.getWidth(),n=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=n+"px",a.setAttribute("data-zr-dom-id",r)),a.width=i*e,a.height=n*e,a}var Xy=(function(r){he(t,r);function t(e,a,i){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;i=i||Cd,typeof e=="string"?o=Mk(e,a,i):$e(e)&&(o=e,e=o.id),n.id=e,n.dom=o;var s=o.style;return s&&(kA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=a,n.dpr=i,n}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Mk("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,a,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new at(0,0,0,0);function v(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new at(0,0,0,0);_.copy(y),o.push(_)}else{for(var x=!1,S=1/0,b=0,w=0;w<o.length;++w){var A=o[w];if(A.intersect(y)){var T=new at(0,0,0,0);T.copy(A),T.union(y),o[w]=T,x=!0;break}else if(l){u.copy(y),u.union(A);var C=y.width*y.height,M=A.width*A.height,L=u.width*u.height,D=L-C-M;D<S&&(S=D,b=w)}}if(l&&(o[b].union(y),x=!0),!x){var _=new at(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var f=e[h];if(f){var c=f.shouldBePainted(i,n,!0,!0),d=f.__isRendered&&(f.__dirty&ba||!c)?f.getPrevPaintRect():null;d&&v(d);var p=c&&(f.__dirty&ba||!f.__isRendered)?f.getPaintRect():null;p&&v(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var f=a[h],c=f&&f.shouldBePainted(i,n,!0,!0);if(f&&(!c||!f.__zr)&&f.__isRendered){var d=f.getPrevPaintRect();d&&v(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(g=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,a){var i=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=e+"px",o.height=a+"px"),n.width=e*i,n.height=a*i,s&&(s.width=e*i,s.height=a*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,a,i){var n=this.dom,o=this.ctx,s=n.width,l=n.height;a=a||this.clearColor;var u=this.motionBlur&&!e,v=this.lastFrameAlpha,h=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/h,l/h));var c=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),a&&a!=="transparent"){var _=void 0;if(zh(a)){var x=a.global||a.__width===m&&a.__height===y;_=x&&a.__canvasGradient||CT(o,a,{x:0,y:0,width:m,height:y}),a.__canvasGradient=_,a.__width=m,a.__height=y}else k4(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,_=MT(o,a,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));o.save(),o.fillStyle=_||a,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=v,o.drawImage(c,p,g,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&$(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t})(Xa),Dk=1e5,Xo=314159,Ac=.01,_pe=.001;function xpe(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Spe(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var bpe=(function(){function r(t,e,a,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=_e({},a||{}),this.dpr=a.devicePixelRatio||Cd,this._singleCanvas=n,this.root=t;var o=t.style;o&&(kA(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(n){var v=t,h=v.width,f=v.height;a.width!=null&&(h=a.width),a.height!=null&&(f=a.height),this.dpr=a.devicePixelRatio||1,v.width=h*this.dpr,v.height=f*this.dpr,this._width=h,this._height=f;var c=new Xy(v,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Xo]=c,c.zlevel=Xo,s.push(Xo),this._domRoot=t}else{this._width=Ol(t,0,a),this._height=Ol(t,1,a);var u=this._domRoot=Spe(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),a=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,a,t,this._redrawId);for(var n=0;n<i.length;n++){var o=i[n],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=n===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,a=this._hoverlayer;if(a&&a.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},n,o=0;o<e;o++){var s=t[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(Dk)),n||(n=a.ctx,n.save()),ms(n,s,i,o===e-1))}n&&n.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Dk)},r.prototype.paintOne=function(t,e){DC(t,e)},r.prototype._paintList=function(t,e,a,i){if(this._redrawId===i){a=a||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e,a),o=n.finished,s=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;xd(function(){l._paintList(t,e,a,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Xo).ctx,e=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,e,a),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,a)})},r.prototype._doPaintList=function(t,e,a){for(var i=this,n=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&n.push(u)}for(var v=!0,h=!1,f=function(p){var g=n[p],m=g.ctx,y=o&&g.createRepaintRects(t,e,c._width,c._height),_=a?g.__startIndex:g.__drawIndex,x=!a&&g.incremental&&Date.now,S=x&&Date.now(),b=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,y);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||a)&&g.clear(!1,b,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var A,T=function(D){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(A=_;A<g.__endIndex;A++){var I=t[A];if(I.__inHover&&(h=!0),i._doPaintEl(I,g,o,D,P,A===g.__endIndex-1),x){var R=Date.now()-S;if(R>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)A=g.__endIndex;else for(var C=c.dpr,M=0;M<y.length;++M){var L=y[M];m.save(),m.beginPath(),m.rect(L.x*C,L.y*C,L.width*C,L.height*C),m.clip(),T(L),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=A,g.__drawIndex<g.__endIndex&&(v=!1)},c=this,d=0;d<n.length;d++)f(d);return vt.wxa&&$(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:v,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,a,i,n,o){var s=e.ctx;if(a){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ms(s,t,n,o),t.setPrevPaintRect(l))}else ms(s,t,n,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Xo);var a=this._layers[t];return a||(a=new Xy("zr_"+t,this,this.dpr),a.zlevel=t,a.__builtin__=!0,this._layerConfig[t]?tt(a,this._layerConfig[t],!0):this._layerConfig[t-Ac]&&tt(a,this._layerConfig[t-Ac],!0),e&&(a.virtual=e),this.insertLayer(t,a),a.initContext()),a},r.prototype.insertLayer=function(t,e){var a=this._layers,i=this._zlevelList,n=i.length,o=this._domRoot,s=null,l=-1;if(!a[t]&&xpe(e)){if(n>0&&t>i[0]){for(l=0;l<n-1&&!(i[l]<t&&i[l+1]>t);l++);s=a[i[l]]}if(i.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,i=0;i<a.length;i++){var n=a[i];t.call(e,this._layers[n],n)}},r.prototype.eachBuiltinLayer=function(t,e){for(var a=this._zlevelList,i=0;i<a.length;i++){var n=a[i],o=this._layers[n];o.__builtin__&&t.call(e,o,n)}},r.prototype.eachOtherLayer=function(t,e){for(var a=this._zlevelList,i=0;i<a.length;i++){var n=a[i],o=this._layers[n];o.__builtin__||t.call(e,o,n)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,f){h.__dirty=h.__used=!1});function e(h){n&&(n.__endIndex!==h&&(n.__dirty=!0),n.__endIndex=h)}if(this._singleCanvas)for(var a=1;a<t.length;a++){var i=t[a];if(i.zlevel!==t[a-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var n=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,v=void 0;s!==u&&(s=u,o=0),i.incremental?(v=this.getLayer(u+_pe,this._needsManuallyCompositing),v.incremental=!0,o=1):v=this.getLayer(u+(o>0?Ac:0),this._needsManuallyCompositing),v.__builtin__||mp("ZLevel "+u+" has been used by unkown layer "+v.id),v!==n&&(v.__used=!0,v.__startIndex!==l&&(v.__dirty=!0),v.__startIndex=l,v.incremental?v.__drawIndex=-1:v.__drawIndex=l,e(l),n=v),i.__dirty&ba&&!i.__inHover&&(v.__dirty=!0,v.incremental&&v.__drawIndex<0&&(v.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,f){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,$(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?tt(a[t],e,!0):a[t]=e;for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i];if(n===t||n===t+Ac){var o=this._layers[n];tt(o,a[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,a=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],a.splice(nt(a,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var i=this._opts,n=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=Ol(n,0,i),e=Ol(n,1,i),a.style.display="",this._width!==t||e!==this._height){a.style.width=t+"px",a.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Xo).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Xo].dom;var e=new Xy("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var a=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height;this.eachLayer(function(h){h.__builtin__?a.drawImage(h.dom,0,0,i,n):h.renderToCanvas&&(a.save(),h.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var v=s[l];ms(a,v,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function x9(r){r.registerPainter("canvas",bpe)}var Ky={},Qy={},jy={},Lk;function It(){if(Lk)return jy;Lk=1;var r;typeof window<"u"?r=window.__DEV__:typeof PD<"u"&&(r=PD.__DEV__),typeof r>"u"&&(r=!0);var t=r;return jy.__DEV__=t,jy}var Ko={},Jy,Ik;function S9(){if(Ik)return Jy;Ik=1;var r=2311;function t(){return r++}return Jy=t,Jy}var e0,Pk;function pr(){if(Pk)return e0;Pk=1;var r={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?r={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document>"u"&&typeof self<"u"?r={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator>"u"?r={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:r=e(navigator.userAgent);var t=r;function e(a){var i={},n={},o=a.match(/Firefox\/([\d.]+)/),s=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),l=a.match(/Edge\/([\d.]+)/),u=/micromessenger/i.test(a);return o&&(n.firefox=!0,n.version=o[1]),s&&(n.ie=!0,n.version=s[1]),l&&(n.edge=!0,n.version=l[1]),u&&(n.weChat=!0),{browser:n,os:i,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect<"u",touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:typeof document<"u"}}return e0=t,e0}var St={},Rk;function ie(){if(Rk)return St;Rk=1;var r={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},t={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},e=Object.prototype.toString,a=Array.prototype,i=a.forEach,n=a.filter,o=a.slice,s=a.map,l=a.reduce,u={};function v(Z,ee){Z==="createCanvas"&&(m=null),u[Z]=ee}function h(Z){if(Z==null||typeof Z!="object")return Z;var ee=Z,le=e.call(Z);if(le==="[object Array]"){if(!X(Z)){ee=[];for(var oe=0,fe=Z.length;oe<fe;oe++)ee[oe]=h(Z[oe])}}else if(t[le]){if(!X(Z)){var se=Z.constructor;if(Z.constructor.from)ee=se.from(Z);else{ee=new se(Z.length);for(var oe=0,fe=Z.length;oe<fe;oe++)ee[oe]=h(Z[oe])}}}else if(!r[le]&&!X(Z)&&!F(Z)){ee={};for(var ve in Z)Z.hasOwnProperty(ve)&&(ee[ve]=h(Z[ve]))}return ee}function f(Z,ee,le){if(!E(ee)||!E(Z))return le?h(ee):Z;for(var oe in ee)if(ee.hasOwnProperty(oe)){var fe=Z[oe],se=ee[oe];E(se)&&E(fe)&&!P(se)&&!P(fe)&&!F(se)&&!F(fe)&&!k(se)&&!k(fe)&&!X(se)&&!X(fe)?f(fe,se,le):(le||!(oe in Z))&&(Z[oe]=h(ee[oe]))}return Z}function c(Z,ee){for(var le=Z[0],oe=1,fe=Z.length;oe<fe;oe++)le=f(le,Z[oe],ee);return le}function d(Z,ee){for(var le in ee)ee.hasOwnProperty(le)&&(Z[le]=ee[le]);return Z}function p(Z,ee,le){for(var oe in ee)ee.hasOwnProperty(oe)&&(le?ee[oe]!=null:Z[oe]==null)&&(Z[oe]=ee[oe]);return Z}var g=function(){return u.createCanvas()};u.createCanvas=function(){return document.createElement("canvas")};var m;function y(){return m||(m=g().getContext("2d")),m}function _(Z,ee){if(Z){if(Z.indexOf)return Z.indexOf(ee);for(var le=0,oe=Z.length;le<oe;le++)if(Z[le]===ee)return le}return-1}function x(Z,ee){var le=Z.prototype;function oe(){}oe.prototype=ee.prototype,Z.prototype=new oe;for(var fe in le)le.hasOwnProperty(fe)&&(Z.prototype[fe]=le[fe]);Z.prototype.constructor=Z,Z.superClass=ee}function S(Z,ee,le){Z="prototype"in Z?Z.prototype:Z,ee="prototype"in ee?ee.prototype:ee,p(Z,ee,le)}function b(Z){if(Z)return typeof Z=="string"?!1:typeof Z.length=="number"}function w(Z,ee,le){if(Z&&ee)if(Z.forEach&&Z.forEach===i)Z.forEach(ee,le);else if(Z.length===+Z.length)for(var oe=0,fe=Z.length;oe<fe;oe++)ee.call(le,Z[oe],oe,Z);else for(var se in Z)Z.hasOwnProperty(se)&&ee.call(le,Z[se],se,Z)}function A(Z,ee,le){if(Z&&ee){if(Z.map&&Z.map===s)return Z.map(ee,le);for(var oe=[],fe=0,se=Z.length;fe<se;fe++)oe.push(ee.call(le,Z[fe],fe,Z));return oe}}function T(Z,ee,le,oe){if(Z&&ee){if(Z.reduce&&Z.reduce===l)return Z.reduce(ee,le,oe);for(var fe=0,se=Z.length;fe<se;fe++)le=ee.call(oe,le,Z[fe],fe,Z);return le}}function C(Z,ee,le){if(Z&&ee){if(Z.filter&&Z.filter===n)return Z.filter(ee,le);for(var oe=[],fe=0,se=Z.length;fe<se;fe++)ee.call(le,Z[fe],fe,Z)&&oe.push(Z[fe]);return oe}}function M(Z,ee,le){if(Z&&ee){for(var oe=0,fe=Z.length;oe<fe;oe++)if(ee.call(le,Z[oe],oe,Z))return Z[oe]}}function L(Z,ee){var le=o.call(arguments,2);return function(){return Z.apply(ee,le.concat(o.call(arguments)))}}function D(Z){var ee=o.call(arguments,1);return function(){return Z.apply(this,ee.concat(o.call(arguments)))}}function P(Z){return e.call(Z)==="[object Array]"}function I(Z){return typeof Z=="function"}function R(Z){return e.call(Z)==="[object String]"}function E(Z){var ee=typeof Z;return ee==="function"||!!Z&&ee==="object"}function k(Z){return!!r[e.call(Z)]}function B(Z){return!!t[e.call(Z)]}function F(Z){return typeof Z=="object"&&typeof Z.nodeType=="number"&&typeof Z.ownerDocument=="object"}function V(Z){return Z!==Z}function N(Z){for(var ee=0,le=arguments.length;ee<le;ee++)if(arguments[ee]!=null)return arguments[ee]}function O(Z,ee){return Z!=null?Z:ee}function z(Z,ee,le){return Z!=null?Z:ee!=null?ee:le}function G(){return Function.call.apply(o,arguments)}function q(Z){if(typeof Z=="number")return[Z,Z,Z,Z];var ee=Z.length;return ee===2?[Z[0],Z[1],Z[0],Z[1]]:ee===3?[Z[0],Z[1],Z[2],Z[1]]:Z}function H(Z,ee){if(!Z)throw new Error(ee)}function U(Z){return Z==null?null:typeof Z.trim=="function"?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var W="__ec_primitive__";function Y(Z){Z[W]=!0}function X(Z){return Z[W]}function K(Z){var ee=P(Z);this.data={};var le=this;Z instanceof K?Z.each(oe):Z&&w(Z,oe);function oe(fe,se){ee?le.set(fe,se):le.set(se,fe)}}K.prototype={constructor:K,get:function(Z){return this.data.hasOwnProperty(Z)?this.data[Z]:null},set:function(Z,ee){return this.data[Z]=ee},each:function(Z,ee){ee!==void 0&&(Z=L(Z,ee));for(var le in this.data)this.data.hasOwnProperty(le)&&Z(this.data[le],le)},removeKey:function(Z){delete this.data[Z]}};function Q(Z){return new K(Z)}function j(Z,ee){for(var le=new Z.constructor(Z.length+ee.length),oe=0;oe<Z.length;oe++)le[oe]=Z[oe];var fe=Z.length;for(oe=0;oe<ee.length;oe++)le[oe+fe]=ee[oe];return le}function te(){}return St.$override=v,St.clone=h,St.merge=f,St.mergeAll=c,St.extend=d,St.defaults=p,St.createCanvas=g,St.getContext=y,St.indexOf=_,St.inherits=x,St.mixin=S,St.isArrayLike=b,St.each=w,St.map=A,St.reduce=T,St.filter=C,St.find=M,St.bind=L,St.curry=D,St.isArray=P,St.isFunction=I,St.isString=R,St.isObject=E,St.isBuiltInObject=k,St.isTypedArray=B,St.isDom=F,St.eqNaN=V,St.retrieve=N,St.retrieve2=O,St.retrieve3=z,St.slice=G,St.normalizeCssArray=q,St.assert=H,St.trim=U,St.setAsPrimitive=Y,St.isPrimitive=X,St.createHashMap=Q,St.concatArray=j,St.noop=te,St}var Qt={},Ek;function Jt(){if(Ek)return Qt;Ek=1;var r=typeof Float32Array>"u"?Array:Float32Array;function t(C,M){var L=new r(2);return C==null&&(C=0),M==null&&(M=0),L[0]=C,L[1]=M,L}function e(C,M){return C[0]=M[0],C[1]=M[1],C}function a(C){var M=new r(2);return M[0]=C[0],M[1]=C[1],M}function i(C,M,L){return C[0]=M,C[1]=L,C}function n(C,M,L){return C[0]=M[0]+L[0],C[1]=M[1]+L[1],C}function o(C,M,L,D){return C[0]=M[0]+L[0]*D,C[1]=M[1]+L[1]*D,C}function s(C,M,L){return C[0]=M[0]-L[0],C[1]=M[1]-L[1],C}function l(C){return Math.sqrt(v(C))}var u=l;function v(C){return C[0]*C[0]+C[1]*C[1]}var h=v;function f(C,M,L){return C[0]=M[0]*L[0],C[1]=M[1]*L[1],C}function c(C,M,L){return C[0]=M[0]/L[0],C[1]=M[1]/L[1],C}function d(C,M){return C[0]*M[0]+C[1]*M[1]}function p(C,M,L){return C[0]=M[0]*L,C[1]=M[1]*L,C}function g(C,M){var L=l(M);return L===0?(C[0]=0,C[1]=0):(C[0]=M[0]/L,C[1]=M[1]/L),C}function m(C,M){return Math.sqrt((C[0]-M[0])*(C[0]-M[0])+(C[1]-M[1])*(C[1]-M[1]))}var y=m;function _(C,M){return(C[0]-M[0])*(C[0]-M[0])+(C[1]-M[1])*(C[1]-M[1])}var x=_;function S(C,M){return C[0]=-M[0],C[1]=-M[1],C}function b(C,M,L,D){return C[0]=M[0]+D*(L[0]-M[0]),C[1]=M[1]+D*(L[1]-M[1]),C}function w(C,M,L){var D=M[0],P=M[1];return C[0]=L[0]*D+L[2]*P+L[4],C[1]=L[1]*D+L[3]*P+L[5],C}function A(C,M,L){return C[0]=Math.min(M[0],L[0]),C[1]=Math.min(M[1],L[1]),C}function T(C,M,L){return C[0]=Math.max(M[0],L[0]),C[1]=Math.max(M[1],L[1]),C}return Qt.create=t,Qt.copy=e,Qt.clone=a,Qt.set=i,Qt.add=n,Qt.scaleAndAdd=o,Qt.sub=s,Qt.len=l,Qt.length=u,Qt.lenSquare=v,Qt.lengthSquare=h,Qt.mul=f,Qt.div=c,Qt.dot=d,Qt.scale=p,Qt.normalize=g,Qt.distance=m,Qt.dist=y,Qt.distanceSquare=_,Qt.distSquare=x,Qt.negate=S,Qt.lerp=b,Qt.applyTransform=w,Qt.min=A,Qt.max=T,Qt}var t0,kk;function wpe(){if(kk)return t0;kk=1;function r(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}r.prototype={constructor:r,_dragStart:function(a){for(var i=a.target;i&&!i.draggable;)i=i.parent;i&&(this._draggingTarget=i,i.dragging=!0,this._x=a.offsetX,this._y=a.offsetY,this.dispatchToElement(t(i,a),"dragstart",a.event))},_drag:function(a){var i=this._draggingTarget;if(i){var n=a.offsetX,o=a.offsetY,s=n-this._x,l=o-this._y;this._x=n,this._y=o,i.drift(s,l,a),this.dispatchToElement(t(i,a),"drag",a.event);var u=this.findHover(n,o,i).target,v=this._dropTarget;this._dropTarget=u,i!==u&&(v&&u!==v&&this.dispatchToElement(t(v,a),"dragleave",a.event),u&&u!==v&&this.dispatchToElement(t(u,a),"dragenter",a.event))}},_dragEnd:function(a){var i=this._draggingTarget;i&&(i.dragging=!1),this.dispatchToElement(t(i,a),"dragend",a.event),this._dropTarget&&this.dispatchToElement(t(this._dropTarget,a),"drop",a.event),this._draggingTarget=null,this._dropTarget=null}};function t(a,i){return{target:a,topTarget:i&&i.topTarget}}var e=r;return t0=e,t0}var r0,Ok;function Ws(){if(Ok)return r0;Ok=1;var r=Array.prototype.slice,t=function(n){this._$handlers={},this._$eventProcessor=n};t.prototype={constructor:t,one:function(n,o,s,l){return a(this,n,o,s,l,!0)},on:function(n,o,s,l){return a(this,n,o,s,l,!1)},isSilent:function(n){var o=this._$handlers;return!o[n]||!o[n].length},off:function(n,o){var s=this._$handlers;if(!n)return this._$handlers={},this;if(o){if(s[n]){for(var l=[],u=0,v=s[n].length;u<v;u++)s[n][u].h!==o&&l.push(s[n][u]);s[n]=l}s[n]&&s[n].length===0&&delete s[n]}else delete s[n];return this},trigger:function(n){var o=this._$handlers[n],s=this._$eventProcessor;if(o){var l=arguments,u=l.length;u>3&&(l=r.call(l,1));for(var v=o.length,h=0;h<v;){var f=o[h];if(s&&s.filter&&f.query!=null&&!s.filter(n,f.query)){h++;continue}switch(u){case 1:f.h.call(f.ctx);break;case 2:f.h.call(f.ctx,l[1]);break;case 3:f.h.call(f.ctx,l[1],l[2]);break;default:f.h.apply(f.ctx,l);break}f.one?(o.splice(h,1),v--):h++}}return s&&s.afterTrigger&&s.afterTrigger(n),this},triggerWithContext:function(n){var o=this._$handlers[n],s=this._$eventProcessor;if(o){var l=arguments,u=l.length;u>4&&(l=r.call(l,1,l.length-1));for(var v=l[l.length-1],h=o.length,f=0;f<h;){var c=o[f];if(s&&s.filter&&c.query!=null&&!s.filter(n,c.query)){f++;continue}switch(u){case 1:c.h.call(v);break;case 2:c.h.call(v,l[1]);break;case 3:c.h.call(v,l[1],l[2]);break;default:c.h.apply(v,l);break}c.one?(o.splice(f,1),h--):f++}}return s&&s.afterTrigger&&s.afterTrigger(n),this}};function e(n,o){var s=n._$eventProcessor;return o!=null&&s&&s.normalizeQuery&&(o=s.normalizeQuery(o)),o}function a(n,o,s,l,u,v){var h=n._$handlers;if(typeof s=="function"&&(u=l,l=s,s=null),!l||!o)return n;s=e(n,s),h[o]||(h[o]=[]);for(var f=0;f<h[o].length;f++)if(h[o][f].h===l)return n;var c={h:l,one:v,query:s,ctx:u||n,callAtLast:l.zrEventfulCallAtLast},d=h[o].length-1,p=h[o][d];return p&&p.callAtLast?h[o].splice(d,0,c):h[o].push(c),n}var i=t;return r0=i,r0}var ii={},uv={},a0={},Nk;function Tpe(){if(Nk)return a0;Nk=1;var r=Math.log(2);function t(a,i,n,o,s,l){var u=o+"-"+s,v=a.length;if(l.hasOwnProperty(u))return l[u];if(i===1){var h=Math.round(Math.log((1<<v)-1&~s)/r);return a[n][h]}for(var f=o|1<<n,c=n+1;o&1<<c;)c++;for(var d=0,p=0,g=0;p<v;p++){var m=1<<p;m&s||(d+=(g%2?-1:1)*a[n][p]*t(a,i-1,c,f,s|m,l),g++)}return l[u]=d,d}function e(a,i){var n=[[a[0],a[1],1,0,0,0,-i[0]*a[0],-i[0]*a[1]],[0,0,0,a[0],a[1],1,-i[1]*a[0],-i[1]*a[1]],[a[2],a[3],1,0,0,0,-i[2]*a[2],-i[2]*a[3]],[0,0,0,a[2],a[3],1,-i[3]*a[2],-i[3]*a[3]],[a[4],a[5],1,0,0,0,-i[4]*a[4],-i[4]*a[5]],[0,0,0,a[4],a[5],1,-i[5]*a[4],-i[5]*a[5]],[a[6],a[7],1,0,0,0,-i[6]*a[6],-i[6]*a[7]],[0,0,0,a[6],a[7],1,-i[7]*a[6],-i[7]*a[7]]],o={},s=t(n,8,0,0,0,o);if(s!==0){for(var l=[],u=0;u<8;u++)for(var v=0;v<8;v++)l[v]==null&&(l[v]=0),l[v]+=((u+v)%2?-1:1)*t(n,7,u===0?1:0,1<<u,1<<v,o)/s*i[u];return function(h,f,c){var d=f*l[6]+c*l[7]+1;h[0]=(f*l[0]+c*l[1]+l[2])/d,h[1]=(f*l[3]+c*l[4]+l[5])/d}}}return a0.buildTransformer=e,a0}var zk;function b9(){if(zk)return uv;zk=1;var r=pr(),t=Tpe(),e=t.buildTransformer,a="___zrEVENTSAVED",i=[];function n(v,h,f,c,d){return o(i,h,c,d,!0)&&o(v,f,i[0],i[1])}function o(v,h,f,c,d){if(h.getBoundingClientRect&&r.domSupported&&!u(h)){var p=h[a]||(h[a]={}),g=s(h,p),m=l(g,p,d);if(m)return m(v,f,c),!0}return!1}function s(v,h){var f=h.markers;if(f)return f;f=h.markers=[];for(var c=["left","right"],d=["top","bottom"],p=0;p<4;p++){var g=document.createElement("div"),m=g.style,y=p%2,_=(p>>1)%2;m.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",c[y]+":0",d[_]+":0",c[1-y]+":auto",d[1-_]+":auto",""].join("!important;"),v.appendChild(g),f.push(g)}return f}function l(v,h,f){for(var c=f?"invTrans":"trans",d=h[c],p=h.srcCoords,g=!0,m=[],y=[],_=0;_<4;_++){var x=v[_].getBoundingClientRect(),S=2*_,b=x.left,w=x.top;m.push(b,w),g=g&&p&&b===p[S]&&w===p[S+1],y.push(v[_].offsetLeft,v[_].offsetTop)}return g&&d?d:(h.srcCoords=m,h[c]=f?e(y,m):e(m,y))}function u(v){return v.nodeName.toUpperCase()==="CANVAS"}return uv.transformLocalCoord=n,uv.transformCoordWithViewport=o,uv.isCanvasEl=u,uv}var Bk;function Ji(){if(Bk)return ii;Bk=1;var r=Ws();ii.Dispatcher=r;var t=pr(),e=b9(),a=e.isCanvasEl,i=e.transformCoordWithViewport,n=typeof window<"u"&&!!window.addEventListener,o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[];function l(m,y,_,x){return _=_||{},x||!t.canvasSupported?u(m,y,_):t.browser.firefox&&y.layerX!=null&&y.layerX!==y.offsetX?(_.zrX=y.layerX,_.zrY=y.layerY):y.offsetX!=null?(_.zrX=y.offsetX,_.zrY=y.offsetY):u(m,y,_),_}function u(m,y,_){if(t.domSupported&&m.getBoundingClientRect){var x=y.clientX,S=y.clientY;if(a(m)){var b=m.getBoundingClientRect();_.zrX=x-b.left,_.zrY=S-b.top;return}else if(i(s,m,x,S)){_.zrX=s[0],_.zrY=s[1];return}}_.zrX=_.zrY=0}function v(m){return m||window.event}function h(m,y,_){if(y=v(y),y.zrX!=null)return y;var x=y.type,S=x&&x.indexOf("touch")>=0;if(!S)l(m,y,y,_),y.zrDelta=y.wheelDelta?y.wheelDelta/120:-(y.detail||0)/3;else{var b=x!=="touchend"?y.targetTouches[0]:y.changedTouches[0];b&&l(m,b,y,_)}var w=y.button;return y.which==null&&w!==void 0&&o.test(y.type)&&(y.which=w&1?1:w&2?3:w&4?2:0),y}function f(m,y,_,x){n?m.addEventListener(y,_,x):m.attachEvent("on"+y,_)}function c(m,y,_,x){n?m.removeEventListener(y,_,x):m.detachEvent("on"+y,_)}var d=n?function(m){m.preventDefault(),m.stopPropagation(),m.cancelBubble=!0}:function(m){m.returnValue=!1,m.cancelBubble=!0};function p(m){return m.which===2||m.which===3}function g(m){return m.which>1}return ii.clientToLocal=l,ii.getNativeEvent=v,ii.normalizeEvent=h,ii.addEventListener=f,ii.removeEventListener=c,ii.stop=d,ii.isMiddleOrRightButtonOnMouseUpDown=p,ii.notLeftMouse=g,ii}var i0,Vk;function Ape(){if(Vk)return i0;Vk=1;var r=Ji(),t=function(){this._track=[]};t.prototype={constructor:t,recognize:function(o,s,l){return this._doTrack(o,s,l),this._recognize(o)},clear:function(){return this._track.length=0,this},_doTrack:function(o,s,l){var u=o.touches;if(u){for(var v={points:[],touches:[],target:s,event:o},h=0,f=u.length;h<f;h++){var c=u[h],d=r.clientToLocal(l,c,{});v.points.push([d.zrX,d.zrY]),v.touches.push(c)}this._track.push(v)}},_recognize:function(o){for(var s in i)if(i.hasOwnProperty(s)){var l=i[s](this._track,o);if(l)return l}}};function e(o){var s=o[1][0]-o[0][0],l=o[1][1]-o[0][1];return Math.sqrt(s*s+l*l)}function a(o){return[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]}var i={pinch:function(o,s){var l=o.length;if(l){var u=(o[l-1]||{}).points,v=(o[l-2]||{}).points||u;if(v&&v.length>1&&u&&u.length>1){var h=e(u)/e(v);!isFinite(h)&&(h=1),s.pinchScale=h;var f=a(u);return s.pinchX=f[0],s.pinchY=f[1],{type:"pinch",target:o[0].target,event:s}}}}},n=t;return i0=n,i0}var n0,Gk;function Cpe(){if(Gk)return n0;Gk=1;var r=ie(),t=Jt(),e=wpe(),a=Ws(),i=Ji(),n=Ape(),o="silent";function s(p,g,m){return{type:p,event:m,target:g.target,topTarget:g.topTarget,cancelBubble:!1,offsetX:m.zrX,offsetY:m.zrY,gestureEvent:m.gestureEvent,pinchX:m.pinchX,pinchY:m.pinchY,pinchScale:m.pinchScale,wheelDelta:m.zrDelta,zrByTouch:m.zrByTouch,which:m.which,stop:l}}function l(){i.stop(this.event)}function u(){}u.prototype.dispose=function(){};var v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(p,g,m,y){a.call(this),this.storage=p,this.painter=g,this.painterRoot=y,m=m||new u,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,e.call(this),this.setHandlerProxy(m)};h.prototype={constructor:h,setHandlerProxy:function(p){this.proxy&&this.proxy.dispose(),p&&(r.each(v,function(g){p.on&&p.on(g,this[g],this)},this),p.handler=this),this.proxy=p},mousemove:function(p){var g=p.zrX,m=p.zrY,y=c(this,g,m),_=this._hovered,x=_.target;x&&!x.__zr&&(_=this.findHover(_.x,_.y),x=_.target);var S=this._hovered=y?{x:g,y:m}:this.findHover(g,m),b=S.target,w=this.proxy;w.setCursor&&w.setCursor(b?b.cursor:"default"),x&&b!==x&&this.dispatchToElement(_,"mouseout",p),this.dispatchToElement(S,"mousemove",p),b&&b!==x&&this.dispatchToElement(S,"mouseover",p)},mouseout:function(p){var g=p.zrEventControl,m=p.zrIsToLocalDOM;g!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",p),g!=="no_globalout"&&!m&&this.trigger("globalout",{type:"globalout",event:p})},resize:function(p){this._hovered={}},dispatch:function(p,g){var m=this[p];m&&m.call(this,g)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(p){var g=this.proxy;g.setCursor&&g.setCursor(p)},dispatchToElement:function(p,g,m){p=p||{};var y=p.target;if(!(y&&y.silent)){for(var _="on"+g,x=s(g,p,m);y&&(y[_]&&(x.cancelBubble=y[_].call(y,x)),y.trigger(g,x),y=y.parent,!x.cancelBubble););x.cancelBubble||(this.trigger(g,x),this.painter&&this.painter.eachOtherLayer(function(S){typeof S[_]=="function"&&S[_].call(S,x),S.trigger&&S.trigger(g,x)}))}},findHover:function(p,g,m){for(var y=this.storage.getDisplayList(),_={x:p,y:g},x=y.length-1;x>=0;x--){var S;if(y[x]!==m&&!y[x].ignore&&(S=f(y[x],p,g))&&(!_.topTarget&&(_.topTarget=y[x]),S!==o)){_.target=y[x];break}}return _},processGesture:function(p,g){this._gestureMgr||(this._gestureMgr=new n);var m=this._gestureMgr;g==="start"&&m.clear();var y=m.recognize(p,this.findHover(p.zrX,p.zrY,null).target,this.proxy.dom);if(g==="end"&&m.clear(),y){var _=y.type;p.gestureEvent=_,this.dispatchToElement({target:y.target},_,y.event)}}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(p){h.prototype[p]=function(g){var m=g.zrX,y=g.zrY,_=c(this,m,y),x,S;if((p!=="mouseup"||!_)&&(x=this.findHover(m,y),S=x.target),p==="mousedown")this._downEl=S,this._downPoint=[g.zrX,g.zrY],this._upEl=S;else if(p==="mouseup")this._upEl=S;else if(p==="click"){if(this._downEl!==this._upEl||!this._downPoint||t.dist(this._downPoint,[g.zrX,g.zrY])>4)return;this._downPoint=null}this.dispatchToElement(x,p,g)}});function f(p,g,m){if(p[p.rectHover?"rectContain":"contain"](g,m)){for(var y=p,_;y;){if(y.clipPath&&!y.clipPath.contain(g,m))return!1;y.silent&&(_=!0),y=y.parent}return _?o:!0}return!1}function c(p,g,m){var y=p.painter;return g<0||g>y.getWidth()||m<0||m>y.getHeight()}r.mixin(h,a),r.mixin(h,e);var d=h;return n0=d,n0}var ni={},Fk;function ha(){if(Fk)return ni;Fk=1;var r=typeof Float32Array>"u"?Array:Float32Array;function t(){var v=new r(6);return e(v),v}function e(v){return v[0]=1,v[1]=0,v[2]=0,v[3]=1,v[4]=0,v[5]=0,v}function a(v,h){return v[0]=h[0],v[1]=h[1],v[2]=h[2],v[3]=h[3],v[4]=h[4],v[5]=h[5],v}function i(v,h,f){var c=h[0]*f[0]+h[2]*f[1],d=h[1]*f[0]+h[3]*f[1],p=h[0]*f[2]+h[2]*f[3],g=h[1]*f[2]+h[3]*f[3],m=h[0]*f[4]+h[2]*f[5]+h[4],y=h[1]*f[4]+h[3]*f[5]+h[5];return v[0]=c,v[1]=d,v[2]=p,v[3]=g,v[4]=m,v[5]=y,v}function n(v,h,f){return v[0]=h[0],v[1]=h[1],v[2]=h[2],v[3]=h[3],v[4]=h[4]+f[0],v[5]=h[5]+f[1],v}function o(v,h,f){var c=h[0],d=h[2],p=h[4],g=h[1],m=h[3],y=h[5],_=Math.sin(f),x=Math.cos(f);return v[0]=c*x+g*_,v[1]=-c*_+g*x,v[2]=d*x+m*_,v[3]=-d*_+x*m,v[4]=x*p+_*y,v[5]=x*y-_*p,v}function s(v,h,f){var c=f[0],d=f[1];return v[0]=h[0]*c,v[1]=h[1]*d,v[2]=h[2]*c,v[3]=h[3]*d,v[4]=h[4]*c,v[5]=h[5]*d,v}function l(v,h){var f=h[0],c=h[2],d=h[4],p=h[1],g=h[3],m=h[5],y=f*g-p*c;return y?(y=1/y,v[0]=g*y,v[1]=-p*y,v[2]=-c*y,v[3]=f*y,v[4]=(c*m-g*d)*y,v[5]=(p*d-f*m)*y,v):null}function u(v){var h=t();return a(h,v),h}return ni.create=t,ni.identity=e,ni.copy=a,ni.mul=i,ni.translate=n,ni.rotate=o,ni.scale=s,ni.invert=l,ni.clone=u,ni}var o0,Hk;function og(){if(Hk)return o0;Hk=1;var r=ha(),t=Jt(),e=r.identity,a=5e-5;function i(h){return h>a||h<-a}var n=function(h){h=h||{},h.position||(this.position=[0,0]),h.rotation==null&&(this.rotation=0),h.scale||(this.scale=[1,1]),this.origin=this.origin||null},o=n.prototype;o.transform=null,o.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)};var s=[];o.updateTransform=function(){var h=this.parent,f=h&&h.transform,c=this.needLocalTransform(),d=this.transform;if(!(c||f)){d&&e(d);return}d=d||r.create(),c?this.getLocalTransform(d):e(d),f&&(c?r.mul(d,h.transform,d):r.copy(d,h.transform)),this.transform=d;var p=this.globalScaleRatio;if(p!=null&&p!==1){this.getGlobalScale(s);var g=s[0]<0?-1:1,m=s[1]<0?-1:1,y=((s[0]-g)*p+g)/s[0]||0,_=((s[1]-m)*p+m)/s[1]||0;d[0]*=y,d[1]*=y,d[2]*=_,d[3]*=_}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,d)},o.getLocalTransform=function(h){return n.getLocalTransform(this,h)},o.setTransform=function(h){var f=this.transform,c=h.dpr||1;f?h.setTransform(c*f[0],c*f[1],c*f[2],c*f[3],c*f[4],c*f[5]):h.setTransform(c,0,0,c,0,0)},o.restoreTransform=function(h){var f=h.dpr||1;h.setTransform(f,0,0,f,0,0)};var l=[],u=r.create();o.setLocalTransform=function(h){if(h){var f=h[0]*h[0]+h[1]*h[1],c=h[2]*h[2]+h[3]*h[3],d=this.position,p=this.scale;i(f-1)&&(f=Math.sqrt(f)),i(c-1)&&(c=Math.sqrt(c)),h[0]<0&&(f=-f),h[3]<0&&(c=-c),d[0]=h[4],d[1]=h[5],p[0]=f,p[1]=c,this.rotation=Math.atan2(-h[1]/c,h[0]/f)}},o.decomposeTransform=function(){if(this.transform){var h=this.parent,f=this.transform;h&&h.transform&&(r.mul(l,h.invTransform,f),f=l);var c=this.origin;c&&(c[0]||c[1])&&(u[4]=c[0],u[5]=c[1],r.mul(l,f,u),l[4]-=c[0],l[5]-=c[1],f=l),this.setLocalTransform(f)}},o.getGlobalScale=function(h){var f=this.transform;return h=h||[],f?(h[0]=Math.sqrt(f[0]*f[0]+f[1]*f[1]),h[1]=Math.sqrt(f[2]*f[2]+f[3]*f[3]),f[0]<0&&(h[0]=-h[0]),f[3]<0&&(h[1]=-h[1]),h):(h[0]=1,h[1]=1,h)},o.transformCoordToLocal=function(h,f){var c=[h,f],d=this.invTransform;return d&&t.applyTransform(c,c,d),c},o.transformCoordToGlobal=function(h,f){var c=[h,f],d=this.transform;return d&&t.applyTransform(c,c,d),c},n.getLocalTransform=function(h,f){f=f||[],e(f);var c=h.origin,d=h.scale||[1,1],p=h.rotation||0,g=h.position||[0,0];return c&&(f[4]-=c[0],f[5]-=c[1]),r.scale(f,f,d),p&&r.rotate(f,f,p),c&&(f[4]+=c[0],f[5]+=c[1]),f[4]+=g[0],f[5]+=g[1],f};var v=n;return o0=v,o0}var s0,qk;function Mpe(){if(qk)return s0;qk=1;var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var a,i=.1,n=.4;return e===0?0:e===1?1:(!i||i<1?(i=1,a=n/4):a=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(e-=1))*Math.sin((e-a)*(2*Math.PI)/n)))},elasticOut:function(e){var a,i=.1,n=.4;return e===0?0:e===1?1:(!i||i<1?(i=1,a=n/4):a=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin((e-a)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var a,i=.1,n=.4;return e===0?0:e===1?1:(!i||i<1?(i=1,a=n/4):a=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?-.5*(i*Math.pow(2,10*(e-=1))*Math.sin((e-a)*(2*Math.PI)/n)):i*Math.pow(2,-10*(e-=1))*Math.sin((e-a)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var a=1.70158;return e*e*((a+1)*e-a)},backOut:function(e){var a=1.70158;return--e*e*((a+1)*e+a)+1},backInOut:function(e){var a=2.5949095;return(e*=2)<1?.5*(e*e*((a+1)*e-a)):.5*((e-=2)*e*((a+1)*e+a)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?r.bounceIn(e*2)*.5:r.bounceOut(e*2-1)*.5+.5}},t=r;return s0=t,s0}var l0,Wk;function Dpe(){if(Wk)return l0;Wk=1;var r=Mpe();function t(a){this._target=a.target,this._life=a.life||1e3,this._delay=a.delay||0,this._initialized=!1,this.loop=a.loop==null?!1:a.loop,this.gap=a.gap||0,this.easing=a.easing||"Linear",this.onframe=a.onframe,this.ondestroy=a.ondestroy,this.onrestart=a.onrestart,this._pausedTime=0,this._paused=!1}t.prototype={constructor:t,step:function(a,i){if(this._initialized||(this._startTime=a+this._delay,this._initialized=!0),this._paused){this._pausedTime+=i;return}var n=(a-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var o=this.easing,s=typeof o=="string"?r[o]:o,l=typeof s=="function"?s(n):n;return this.fire("frame",l),n===1?this.loop?(this.restart(a),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(a){var i=(a-this._startTime-this._pausedTime)%this._life;this._startTime=a-i+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(a,i){a="on"+a,this[a]&&this[a](this._target,i)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var e=t;return l0=e,l0}var Oa={},u0,Uk;function w9(){if(Uk)return u0;Uk=1;var r=function(){this.head=null,this.tail=null,this._len=0},t=r.prototype;t.insert=function(o){var s=new e(o);return this.insertEntry(s),s},t.insertEntry=function(o){this.head?(this.tail.next=o,o.prev=this.tail,o.next=null,this.tail=o):this.head=this.tail=o,this._len++},t.remove=function(o){var s=o.prev,l=o.next;s?s.next=l:this.head=l,l?l.prev=s:this.tail=s,o.next=o.prev=null,this._len--},t.len=function(){return this._len},t.clear=function(){this.head=this.tail=null,this._len=0};var e=function(o){this.value=o,this.next,this.prev},a=function(o){this._list=new r,this._map={},this._maxSize=o||10,this._lastRemovedEntry=null},i=a.prototype;i.put=function(o,s){var l=this._list,u=this._map,v=null;if(u[o]==null){var h=l.len(),f=this._lastRemovedEntry;if(h>=this._maxSize&&h>0){var c=l.head;l.remove(c),delete u[c.key],v=c.value,this._lastRemovedEntry=c}f?f.value=s:f=new e(s),f.key=o,l.insertEntry(f),u[o]=f}return v},i.get=function(o){var s=this._map[o],l=this._list;if(s!=null)return s!==l.tail&&(l.remove(s),l.insertEntry(s)),s.value},i.clear=function(){this._list.clear(),this._map={}};var n=a;return u0=n,u0}var $k;function en(){if($k)return Oa;$k=1;var r=w9(),t={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function e(C){return C=Math.round(C),C<0?0:C>255?255:C}function a(C){return C=Math.round(C),C<0?0:C>360?360:C}function i(C){return C<0?0:C>1?1:C}function n(C){return C.length&&C.charAt(C.length-1)==="%"?e(parseFloat(C)/100*255):e(parseInt(C,10))}function o(C){return C.length&&C.charAt(C.length-1)==="%"?i(parseFloat(C)/100):i(parseFloat(C))}function s(C,M,L){return L<0?L+=1:L>1&&(L-=1),L*6<1?C+(M-C)*L*6:L*2<1?M:L*3<2?C+(M-C)*(2/3-L)*6:C}function l(C,M,L){return C+(M-C)*L}function u(C,M,L,D,P){return C[0]=M,C[1]=L,C[2]=D,C[3]=P,C}function v(C,M){return C[0]=M[0],C[1]=M[1],C[2]=M[2],C[3]=M[3],C}var h=new r(20),f=null;function c(C,M){f&&v(f,M),f=h.put(C,f||M.slice())}function d(C,M){if(C){M=M||[];var L=h.get(C);if(L)return v(M,L);C=C+"";var D=C.replace(/ /g,"").toLowerCase();if(D in t)return v(M,t[D]),c(C,M),M;if(D.charAt(0)==="#"){if(D.length===4){var P=parseInt(D.substr(1),16);if(!(P>=0&&P<=4095)){u(M,0,0,0,1);return}return u(M,(P&3840)>>4|(P&3840)>>8,P&240|(P&240)>>4,P&15|(P&15)<<4,1),c(C,M),M}else if(D.length===7){var P=parseInt(D.substr(1),16);if(!(P>=0&&P<=16777215)){u(M,0,0,0,1);return}return u(M,(P&16711680)>>16,(P&65280)>>8,P&255,1),c(C,M),M}return}var I=D.indexOf("("),R=D.indexOf(")");if(I!==-1&&R+1===D.length){var E=D.substr(0,I),k=D.substr(I+1,R-(I+1)).split(","),B=1;switch(E){case"rgba":if(k.length!==4){u(M,0,0,0,1);return}B=o(k.pop());case"rgb":if(k.length!==3){u(M,0,0,0,1);return}return u(M,n(k[0]),n(k[1]),n(k[2]),B),c(C,M),M;case"hsla":if(k.length!==4){u(M,0,0,0,1);return}return k[3]=o(k[3]),p(k,M),c(C,M),M;case"hsl":if(k.length!==3){u(M,0,0,0,1);return}return p(k,M),c(C,M),M;default:return}}u(M,0,0,0,1)}}function p(C,M){var L=(parseFloat(C[0])%360+360)%360/360,D=o(C[1]),P=o(C[2]),I=P<=.5?P*(D+1):P+D-P*D,R=P*2-I;return M=M||[],u(M,e(s(R,I,L+1/3)*255),e(s(R,I,L)*255),e(s(R,I,L-1/3)*255),1),C.length===4&&(M[3]=C[3]),M}function g(C){if(C){var M=C[0]/255,L=C[1]/255,D=C[2]/255,P=Math.min(M,L,D),I=Math.max(M,L,D),R=I-P,E=(I+P)/2,k,B;if(R===0)k=0,B=0;else{E<.5?B=R/(I+P):B=R/(2-I-P);var F=((I-M)/6+R/2)/R,V=((I-L)/6+R/2)/R,N=((I-D)/6+R/2)/R;M===I?k=N-V:L===I?k=1/3+F-N:D===I&&(k=2/3+V-F),k<0&&(k+=1),k>1&&(k-=1)}var O=[k*360,B,E];return C[3]!=null&&O.push(C[3]),O}}function m(C,M){var L=d(C);if(L){for(var D=0;D<3;D++)M<0?L[D]=L[D]*(1-M)|0:L[D]=(255-L[D])*M+L[D]|0,L[D]>255?L[D]=255:C[D]<0&&(L[D]=0);return T(L,L.length===4?"rgba":"rgb")}}function y(C){var M=d(C);if(M)return((1<<24)+(M[0]<<16)+(M[1]<<8)+ +M[2]).toString(16).slice(1)}function _(C,M,L){if(!(!(M&&M.length)||!(C>=0&&C<=1))){L=L||[];var D=C*(M.length-1),P=Math.floor(D),I=Math.ceil(D),R=M[P],E=M[I],k=D-P;return L[0]=e(l(R[0],E[0],k)),L[1]=e(l(R[1],E[1],k)),L[2]=e(l(R[2],E[2],k)),L[3]=i(l(R[3],E[3],k)),L}}var x=_;function S(C,M,L){if(!(!(M&&M.length)||!(C>=0&&C<=1))){var D=C*(M.length-1),P=Math.floor(D),I=Math.ceil(D),R=d(M[P]),E=d(M[I]),k=D-P,B=T([e(l(R[0],E[0],k)),e(l(R[1],E[1],k)),e(l(R[2],E[2],k)),i(l(R[3],E[3],k))],"rgba");return L?{color:B,leftIndex:P,rightIndex:I,value:D}:B}}var b=S;function w(C,M,L,D){if(C=d(C),C)return C=g(C),M!=null&&(C[0]=a(M)),L!=null&&(C[1]=o(L)),D!=null&&(C[2]=o(D)),T(p(C),"rgba")}function A(C,M){if(C=d(C),C&&M!=null)return C[3]=i(M),T(C,"rgba")}function T(C,M){if(!(!C||!C.length)){var L=C[0]+","+C[1]+","+C[2];return(M==="rgba"||M==="hsva"||M==="hsla")&&(L+=","+C[3]),M+"("+L+")"}}return Oa.parse=d,Oa.lift=m,Oa.toHex=y,Oa.fastLerp=_,Oa.fastMapToColor=x,Oa.lerp=S,Oa.mapToColor=b,Oa.modifyHSL=w,Oa.modifyAlpha=A,Oa.stringify=T,Oa}var v0,Yk;function T9(){if(Yk)return v0;Yk=1;var r=Dpe(),t=en(),e=ie(),a=e.isArrayLike,i=Array.prototype.slice;function n(x,S){return x[S]}function o(x,S,b){x[S]=b}function s(x,S,b){return(S-x)*b+x}function l(x,S,b){return b>.5?S:x}function u(x,S,b,w,A){var T=x.length;if(A===1)for(var C=0;C<T;C++)w[C]=s(x[C],S[C],b);else for(var M=T&&x[0].length,C=0;C<T;C++)for(var L=0;L<M;L++)w[C][L]=s(x[C][L],S[C][L],b)}function v(x,S,b){var w=x.length,A=S.length;if(w!==A){var T=w>A;if(T)x.length=A;else for(var C=w;C<A;C++)x.push(b===1?S[C]:i.call(S[C]))}for(var M=x[0]&&x[0].length,C=0;C<x.length;C++)if(b===1)isNaN(x[C])&&(x[C]=S[C]);else for(var L=0;L<M;L++)isNaN(x[C][L])&&(x[C][L]=S[C][L])}function h(x,S,b){if(x===S)return!0;var w=x.length;if(w!==S.length)return!1;if(b===1){for(var A=0;A<w;A++)if(x[A]!==S[A])return!1}else for(var T=x[0].length,A=0;A<w;A++)for(var C=0;C<T;C++)if(x[A][C]!==S[A][C])return!1;return!0}function f(x,S,b,w,A,T,C,M,L){var D=x.length;if(L===1)for(var P=0;P<D;P++)M[P]=c(x[P],S[P],b[P],w[P],A,T,C);else for(var I=x[0].length,P=0;P<D;P++)for(var R=0;R<I;R++)M[P][R]=c(x[P][R],S[P][R],b[P][R],w[P][R],A,T,C)}function c(x,S,b,w,A,T,C){var M=(b-x)*.5,L=(w-S)*.5;return(2*(S-b)+M+L)*C+(-3*(S-b)-2*M-L)*T+M*A+S}function d(x){if(a(x)){var S=x.length;if(a(x[0])){for(var b=[],w=0;w<S;w++)b.push(i.call(x[w]));return b}return i.call(x)}return x}function p(x){return x[0]=Math.floor(x[0]),x[1]=Math.floor(x[1]),x[2]=Math.floor(x[2]),"rgba("+x.join(",")+")"}function g(x){var S=x[x.length-1].value;return a(S&&S[0])?2:1}function m(x,S,b,w,A,T){var C=x._getter,M=x._setter,L=S==="spline",D=w.length;if(D){var P=w[0].value,I=a(P),R=!1,E=!1,k=I?g(w):0,B;w.sort(function(oe,fe){return oe.time-fe.time}),B=w[D-1].time;for(var F=[],V=[],N=w[0].value,O=!0,z=0;z<D;z++){F.push(w[z].time/B);var G=w[z].value;if(I&&h(G,N,k)||!I&&G===N||(O=!1),N=G,typeof G=="string"){var q=t.parse(G);q?(G=q,R=!0):E=!0}V.push(G)}if(!(!T&&O)){for(var H=V[D-1],z=0;z<D-1;z++)I?v(V[z],H,k):isNaN(V[z])&&!isNaN(H)&&!E&&!R&&(V[z]=H);I&&v(C(x._target,A),H,k);var U=0,W=0,Y,X,K,Q,j,te;if(R)var Z=[0,0,0,0];var ee=function(oe,fe){var se;if(fe<0)se=0;else if(fe<W){for(Y=Math.min(U+1,D-1),se=Y;se>=0&&!(F[se]<=fe);se--);se=Math.min(se,D-2)}else{for(se=U;se<D&&!(F[se]>fe);se++);se=Math.min(se-1,D-2)}U=se,W=fe;var ve=F[se+1]-F[se];if(ve!==0)if(X=(fe-F[se])/ve,L)if(Q=V[se],K=V[se===0?se:se-1],j=V[se>D-2?D-1:se+1],te=V[se>D-3?D-1:se+2],I)f(K,Q,j,te,X,X*X,X*X*X,C(oe,A),k);else{var ye;if(R)ye=f(K,Q,j,te,X,X*X,X*X*X,Z,1),ye=p(Z);else{if(E)return l(Q,j,X);ye=c(K,Q,j,te,X,X*X,X*X*X)}M(oe,A,ye)}else if(I)u(V[se],V[se+1],X,C(oe,A),k);else{var ye;if(R)u(V[se],V[se+1],X,Z,1),ye=p(Z);else{if(E)return l(V[se],V[se+1],X);ye=s(V[se],V[se+1],X)}M(oe,A,ye)}},le=new r({target:x._target,life:B,loop:x._loop,delay:x._delay,onframe:ee,ondestroy:b});return S&&S!=="spline"&&(le.easing=S),le}}}var y=function(x,S,b,w){this._tracks={},this._target=x,this._loop=S||!1,this._getter=b||n,this._setter=w||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};y.prototype={when:function(x,S){var b=this._tracks;for(var w in S)if(S.hasOwnProperty(w)){if(!b[w]){b[w]=[];var A=this._getter(this._target,w);if(A==null)continue;x!==0&&b[w].push({time:0,value:d(A)})}b[w].push({time:x,value:S[w]})}return this},during:function(x){return this._onframeList.push(x),this},pause:function(){for(var x=0;x<this._clipList.length;x++)this._clipList[x].pause();this._paused=!0},resume:function(){for(var x=0;x<this._clipList.length;x++)this._clipList[x].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var x=this._doneList,S=x.length,b=0;b<S;b++)x[b].call(this)},start:function(x,S){var b=this,w=0,A=function(){w--,w||b._doneCallback()},T;for(var C in this._tracks)if(this._tracks.hasOwnProperty(C)){var M=m(this,x,A,this._tracks[C],C,S);M&&(this._clipList.push(M),w++,this.animation&&this.animation.addClip(M),T=M)}if(T){var L=T.onframe;T.onframe=function(D,P){L(D,P);for(var I=0;I<b._onframeList.length;I++)b._onframeList[I](D,P)}}return w||this._doneCallback(),this},stop:function(x){for(var S=this._clipList,b=this.animation,w=0;w<S.length;w++){var A=S[w];x&&A.onframe(this._target,1),b&&b.removeClip(A)}S.length=0},delay:function(x){return this._delay=x,this},done:function(x){return x&&this._doneList.push(x),this},getClips:function(){return this._clipList}};var _=y;return v0=_,v0}var Cc={},Zk;function sg(){if(Zk)return Cc;Zk=1;var r=1;typeof window<"u"&&(r=Math.max(window.devicePixelRatio||1,1));var t=0,e=r;return Cc.debugMode=t,Cc.devicePixelRatio=e,Cc}var h0,Xk;function sf(){if(Xk)return h0;Xk=1;var r=sg(),t=r.debugMode,e=function(){};t===1&&(e=console.error);var a=e;return h0=a,h0}var f0,Kk;function Lpe(){if(Kk)return f0;Kk=1;var r=T9(),t=sf(),e=ie(),a=e.isString,i=e.isFunction,n=e.isObject,o=e.isArrayLike,s=e.indexOf,l=function(){this.animators=[]};l.prototype={constructor:l,animate:function(c,d){var p,g=!1,m=this,y=this.__zr;if(c){var _=c.split("."),x=m;g=_[0]==="shape";for(var S=0,b=_.length;S<b;S++)x&&(x=x[_[S]]);x&&(p=x)}else p=m;if(!p){t('Property "'+c+'" is not existed in element '+m.id);return}var w=m.animators,A=new r(p,d);return A.during(function(T){m.dirty(g)}).done(function(){w.splice(s(w,A),1)}),w.push(A),y&&y.animation.addAnimator(A),A},stopAnimation:function(c){for(var d=this.animators,p=d.length,g=0;g<p;g++)d[g].stop(c);return d.length=0,this},animateTo:function(c,d,p,g,m,y){u(this,c,d,p,g,m,y)},animateFrom:function(c,d,p,g,m,y){u(this,c,d,p,g,m,y,!0)}};function u(c,d,p,g,m,y,_,x){a(g)?(y=m,m=g,g=0):i(m)?(y=m,m="linear",g=0):i(g)?(y=g,g=0):i(p)?(y=p,p=500):p||(p=500),c.stopAnimation(),v(c,"",c,d,p,g,x);var S=c.animators.slice(),b=S.length;function w(){b--,b||y&&y()}b||y&&y();for(var A=0;A<S.length;A++)S[A].done(w).start(m,_)}function v(c,d,p,g,m,y,_){var x={},S=0;for(var b in g)g.hasOwnProperty(b)&&(p[b]!=null?n(g[b])&&!o(g[b])?v(c,d?d+"."+b:b,p[b],g[b],m,y,_):(_?(x[b]=p[b],h(c,d,b,g[b])):x[b]=g[b],S++):g[b]!=null&&!_&&h(c,d,b,g[b]));S>0&&c.animate(d,!1).when(m==null?500:m,x).delay(y||0)}function h(c,d,p,g){if(!d)c.attr(p,g);else{var m={};m[d]={},m[d][p]=g,c.attr(m)}}var f=l;return f0=f,f0}var c0,Qk;function A9(){if(Qk)return c0;Qk=1;var r=S9(),t=Ws(),e=og(),a=Lpe(),i=ie(),n=function(s){e.call(this,s),t.call(this,s),a.call(this,s),this.id=s.id||r()};n.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(s,l){switch(this.draggable){case"horizontal":l=0;break;case"vertical":s=0;break}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=s,u[5]+=l,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(s,l){},attrKV:function(s,l){if(s==="position"||s==="scale"||s==="origin"){if(l){var u=this[s];u||(u=this[s]=[]),u[0]=l[0],u[1]=l[1]}}else this[s]=l},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(s,l){if(typeof s=="string")this.attrKV(s,l);else if(i.isObject(s))for(var u in s)s.hasOwnProperty(u)&&this.attrKV(u,s[u]);return this.dirty(!1),this},setClipPath:function(s){var l=this.__zr;l&&s.addSelfToZr(l),this.clipPath&&this.clipPath!==s&&this.removeClipPath(),this.clipPath=s,s.__zr=l,s.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var s=this.clipPath;s&&(s.__zr&&s.removeSelfFromZr(s.__zr),s.__zr=null,s.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(s){this.__zr=s;var l=this.animators;if(l)for(var u=0;u<l.length;u++)s.animation.addAnimator(l[u]);this.clipPath&&this.clipPath.addSelfToZr(s)},removeSelfFromZr:function(s){this.__zr=null;var l=this.animators;if(l)for(var u=0;u<l.length;u++)s.animation.removeAnimator(l[u]);this.clipPath&&this.clipPath.removeSelfFromZr(s)}},i.mixin(n,a),i.mixin(n,e),i.mixin(n,t);var o=n;return c0=o,c0}var d0,jk;function rr(){if(jk)return d0;jk=1;var r=Jt(),t=ha(),e=r.applyTransform,a=Math.min,i=Math.max;function n(s,l,u,v){u<0&&(s=s+u,u=-u),v<0&&(l=l+v,v=-v),this.x=s,this.y=l,this.width=u,this.height=v}n.prototype={constructor:n,union:function(s){var l=a(s.x,this.x),u=a(s.y,this.y);this.width=i(s.x+s.width,this.x+this.width)-l,this.height=i(s.y+s.height,this.y+this.height)-u,this.x=l,this.y=u},applyTransform:(function(){var s=[],l=[],u=[],v=[];return function(h){if(h){s[0]=u[0]=this.x,s[1]=v[1]=this.y,l[0]=v[0]=this.x+this.width,l[1]=u[1]=this.y+this.height,e(s,s,h),e(l,l,h),e(u,u,h),e(v,v,h),this.x=a(s[0],l[0],u[0],v[0]),this.y=a(s[1],l[1],u[1],v[1]);var f=i(s[0],l[0],u[0],v[0]),c=i(s[1],l[1],u[1],v[1]);this.width=f-this.x,this.height=c-this.y}}})(),calculateTransform:function(s){var l=this,u=s.width/l.width,v=s.height/l.height,h=t.create();return t.translate(h,h,[-l.x,-l.y]),t.scale(h,h,[u,v]),t.translate(h,h,[s.x,s.y]),h},intersect:function(s){if(!s)return!1;s instanceof n||(s=n.create(s));var l=this,u=l.x,v=l.x+l.width,h=l.y,f=l.y+l.height,c=s.x,d=s.x+s.width,p=s.y,g=s.y+s.height;return!(v<c||d<u||f<p||g<h)},contain:function(s,l){var u=this;return s>=u.x&&s<=u.x+u.width&&l>=u.y&&l<=u.y+u.height},clone:function(){return new n(this.x,this.y,this.width,this.height)},copy:function(s){this.x=s.x,this.y=s.y,this.width=s.width,this.height=s.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},n.create=function(s){return new n(s.x,s.y,s.width,s.height)};var o=n;return d0=o,d0}var p0,Jk;function Us(){if(Jk)return p0;Jk=1;var r=ie(),t=A9(),e=rr(),a=function(n){n=n||{},t.call(this,n);for(var o in n)n.hasOwnProperty(o)&&(this[o]=n[o]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(n){return this._children[n]},childOfName:function(n){for(var o=this._children,s=0;s<o.length;s++)if(o[s].name===n)return o[s]},childCount:function(){return this._children.length},add:function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},addBefore:function(n,o){if(n&&n!==this&&n.parent!==this&&o&&o.parent===this){var s=this._children,l=s.indexOf(o);l>=0&&(s.splice(l,0,n),this._doAdd(n))}return this},_doAdd:function(n){n.parent&&n.parent.remove(n),n.parent=this;var o=this.__storage,s=this.__zr;o&&o!==n.__storage&&(o.addToStorage(n),n instanceof a&&n.addChildrenToStorage(o)),s&&s.refresh()},remove:function(n){var o=this.__zr,s=this.__storage,l=this._children,u=r.indexOf(l,n);return u<0?this:(l.splice(u,1),n.parent=null,s&&(s.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(s)),o&&o.refresh(),this)},removeAll:function(){var n=this._children,o=this.__storage,s,l;for(l=0;l<n.length;l++)s=n[l],o&&(o.delFromStorage(s),s instanceof a&&s.delChildrenFromStorage(o)),s.parent=null;return n.length=0,this},eachChild:function(n,o){for(var s=this._children,l=0;l<s.length;l++){var u=s[l];n.call(o,u,l)}return this},traverse:function(n,o){for(var s=0;s<this._children.length;s++){var l=this._children[s];n.call(o,l),l.type==="group"&&l.traverse(n,o)}return this},addChildrenToStorage:function(n){for(var o=0;o<this._children.length;o++){var s=this._children[o];n.addToStorage(s),s instanceof a&&s.addChildrenToStorage(n)}},delChildrenFromStorage:function(n){for(var o=0;o<this._children.length;o++){var s=this._children[o];n.delFromStorage(s),s instanceof a&&s.delChildrenFromStorage(n)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(n){for(var o=null,s=new e(0,0,0,0),l=n||this._children,u=[],v=0;v<l.length;v++){var h=l[v];if(!(h.ignore||h.invisible)){var f=h.getBoundingRect(),c=h.getLocalTransform(u);c?(s.copy(f),s.applyTransform(c),o=o||s.clone(),o.union(s)):(o=o||f.clone(),o.union(f))}}return o||s}},r.inherits(a,t);var i=a;return p0=i,p0}var g0,eO;function KM(){if(eO)return g0;eO=1;var r=32,t=7;function e(v){for(var h=0;v>=r;)h|=v&1,v>>=1;return v+h}function a(v,h,f,c){var d=h+1;if(d===f)return 1;if(c(v[d++],v[h])<0){for(;d<f&&c(v[d],v[d-1])<0;)d++;i(v,h,d)}else for(;d<f&&c(v[d],v[d-1])>=0;)d++;return d-h}function i(v,h,f){for(f--;h<f;){var c=v[h];v[h++]=v[f],v[f--]=c}}function n(v,h,f,c,d){for(c===h&&c++;c<f;c++){for(var p=v[c],g=h,m=c,y;g<m;)y=g+m>>>1,d(p,v[y])<0?m=y:g=y+1;var _=c-g;switch(_){case 3:v[g+3]=v[g+2];case 2:v[g+2]=v[g+1];case 1:v[g+1]=v[g];break;default:for(;_>0;)v[g+_]=v[g+_-1],_--}v[g]=p}}function o(v,h,f,c,d,p){var g=0,m=0,y=1;if(p(v,h[f+d])>0){for(m=c-d;y<m&&p(v,h[f+d+y])>0;)g=y,y=(y<<1)+1,y<=0&&(y=m);y>m&&(y=m),g+=d,y+=d}else{for(m=d+1;y<m&&p(v,h[f+d-y])<=0;)g=y,y=(y<<1)+1,y<=0&&(y=m);y>m&&(y=m);var _=g;g=d-y,y=d-_}for(g++;g<y;){var x=g+(y-g>>>1);p(v,h[f+x])>0?g=x+1:y=x}return y}function s(v,h,f,c,d,p){var g=0,m=0,y=1;if(p(v,h[f+d])<0){for(m=d+1;y<m&&p(v,h[f+d-y])<0;)g=y,y=(y<<1)+1,y<=0&&(y=m);y>m&&(y=m);var _=g;g=d-y,y=d-_}else{for(m=c-d;y<m&&p(v,h[f+d+y])>=0;)g=y,y=(y<<1)+1,y<=0&&(y=m);y>m&&(y=m),g+=d,y+=d}for(g++;g<y;){var x=g+(y-g>>>1);p(v,h[f+x])<0?y=x:g=x+1}return y}function l(v,h){var f=t,c,d,p=0;v.length;var g=[];c=[],d=[];function m(w,A){c[p]=w,d[p]=A,p+=1}function y(){for(;p>1;){var w=p-2;if(w>=1&&d[w-1]<=d[w]+d[w+1]||w>=2&&d[w-2]<=d[w]+d[w-1])d[w-1]<d[w+1]&&w--;else if(d[w]>d[w+1])break;x(w)}}function _(){for(;p>1;){var w=p-2;w>0&&d[w-1]<d[w+1]&&w--,x(w)}}function x(w){var A=c[w],T=d[w],C=c[w+1],M=d[w+1];d[w]=T+M,w===p-3&&(c[w+1]=c[w+2],d[w+1]=d[w+2]),p--;var L=s(v[C],v,A,T,0,h);A+=L,T-=L,T!==0&&(M=o(v[A+T-1],v,C,M,M-1,h),M!==0&&(T<=M?S(A,T,C,M):b(A,T,C,M)))}function S(w,A,T,C){var M=0;for(M=0;M<A;M++)g[M]=v[w+M];var L=0,D=T,P=w;if(v[P++]=v[D++],--C===0){for(M=0;M<A;M++)v[P+M]=g[L+M];return}if(A===1){for(M=0;M<C;M++)v[P+M]=v[D+M];v[P+C]=g[L];return}for(var I=f,R,E,k;;){R=0,E=0,k=!1;do if(h(v[D],g[L])<0){if(v[P++]=v[D++],E++,R=0,--C===0){k=!0;break}}else if(v[P++]=g[L++],R++,E=0,--A===1){k=!0;break}while((R|E)<I);if(k)break;do{if(R=s(v[D],g,L,A,0,h),R!==0){for(M=0;M<R;M++)v[P+M]=g[L+M];if(P+=R,L+=R,A-=R,A<=1){k=!0;break}}if(v[P++]=v[D++],--C===0){k=!0;break}if(E=o(g[L],v,D,C,0,h),E!==0){for(M=0;M<E;M++)v[P+M]=v[D+M];if(P+=E,D+=E,C-=E,C===0){k=!0;break}}if(v[P++]=g[L++],--A===1){k=!0;break}I--}while(R>=t||E>=t);if(k)break;I<0&&(I=0),I+=2}if(f=I,f<1&&(f=1),A===1){for(M=0;M<C;M++)v[P+M]=v[D+M];v[P+C]=g[L]}else{if(A===0)throw new Error;for(M=0;M<A;M++)v[P+M]=g[L+M]}}function b(w,A,T,C){var M=0;for(M=0;M<C;M++)g[M]=v[T+M];var L=w+A-1,D=C-1,P=T+C-1,I=0,R=0;if(v[P--]=v[L--],--A===0){for(I=P-(C-1),M=0;M<C;M++)v[I+M]=g[M];return}if(C===1){for(P-=A,L-=A,R=P+1,I=L+1,M=A-1;M>=0;M--)v[R+M]=v[I+M];v[P]=g[D];return}for(var E=f;;){var k=0,B=0,F=!1;do if(h(g[D],v[L])<0){if(v[P--]=v[L--],k++,B=0,--A===0){F=!0;break}}else if(v[P--]=g[D--],B++,k=0,--C===1){F=!0;break}while((k|B)<E);if(F)break;do{if(k=A-s(g[D],v,w,A,A-1,h),k!==0){for(P-=k,L-=k,A-=k,R=P+1,I=L+1,M=k-1;M>=0;M--)v[R+M]=v[I+M];if(A===0){F=!0;break}}if(v[P--]=g[D--],--C===1){F=!0;break}if(B=C-o(v[L],g,0,C,C-1,h),B!==0){for(P-=B,D-=B,C-=B,R=P+1,I=D+1,M=0;M<B;M++)v[R+M]=g[I+M];if(C<=1){F=!0;break}}if(v[P--]=v[L--],--A===0){F=!0;break}E--}while(k>=t||B>=t);if(F)break;E<0&&(E=0),E+=2}if(f=E,f<1&&(f=1),C===1){for(P-=A,L-=A,R=P+1,I=L+1,M=A-1;M>=0;M--)v[R+M]=v[I+M];v[P]=g[D]}else{if(C===0)throw new Error;for(I=P-(C-1),M=0;M<C;M++)v[I+M]=g[M]}}this.mergeRuns=y,this.forceMergeRuns=_,this.pushRun=m}function u(v,h,f,c){f||(f=0),c||(c=v.length);var d=c-f;if(!(d<2)){var p=0;if(d<r){p=a(v,f,c,h),n(v,f,c,f+p,h);return}var g=new l(v,h),m=e(d);do{if(p=a(v,f,c,h),p<m){var y=d;y>m&&(y=m),n(v,f,f+y,f+p,h),p=y}g.pushRun(f,p),g.mergeRuns(),d-=p,f+=p}while(d!==0);g.forceMergeRuns()}}return g0=u,g0}var m0,tO;function Ipe(){if(tO)return m0;tO=1;var r=ie(),t=pr(),e=Us(),a=KM();function i(s,l){return s.zlevel===l.zlevel?s.z===l.z?s.z2-l.z2:s.z-l.z:s.zlevel-l.zlevel}var n=function(){this._roots=[],this._displayList=[],this._displayListLen=0};n.prototype={constructor:n,traverse:function(s,l){for(var u=0;u<this._roots.length;u++)this._roots[u].traverse(s,l)},getDisplayList:function(s,l){return l=l||!1,s&&this.updateDisplayList(l),this._displayList},updateDisplayList:function(s){this._displayListLen=0;for(var l=this._roots,u=this._displayList,v=0,h=l.length;v<h;v++)this._updateAndAddDisplayable(l[v],null,s);u.length=this._displayListLen,t.canvasSupported&&a(u,i)},_updateAndAddDisplayable:function(s,l,u){if(!(s.ignore&&!u)){s.beforeUpdate(),s.__dirty&&s.update(),s.afterUpdate();var v=s.clipPath;if(v){l?l=l.slice():l=[];for(var h=v,f=s;h;)h.parent=f,h.updateTransform(),l.push(h),f=h,h=h.clipPath}if(s.isGroup){for(var c=s._children,d=0;d<c.length;d++){var p=c[d];s.__dirty&&(p.__dirty=!0),this._updateAndAddDisplayable(p,l,u)}s.__dirty=!1}else s.__clipPaths=l,this._displayList[this._displayListLen++]=s}},addRoot:function(s){s.__storage!==this&&(s instanceof e&&s.addChildrenToStorage(this),this.addToStorage(s),this._roots.push(s))},delRoot:function(s){if(s==null){for(var l=0;l<this._roots.length;l++){var u=this._roots[l];u instanceof e&&u.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(s instanceof Array){for(var l=0,v=s.length;l<v;l++)this.delRoot(s[l]);return}var h=r.indexOf(this._roots,s);h>=0&&(this.delFromStorage(s),this._roots.splice(h,1),s instanceof e&&s.delChildrenFromStorage(this))},addToStorage:function(s){return s&&(s.__storage=this,s.dirty(!1)),this},delFromStorage:function(s){return s&&(s.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:i};var o=n;return m0=o,m0}var y0,rO;function C9(){if(rO)return y0;rO=1;var r={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function t(e,a,i){return r.hasOwnProperty(a)?i*=e.dpr:i}return y0=t,y0}var Mc={},aO;function lg(){if(aO)return Mc;aO=1;var r={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},t=9;return Mc.ContextCachedBy=r,Mc.WILL_BE_RESTORED=t,Mc}var _0,iO;function QM(){if(iO)return _0;iO=1;var r=C9(),t=lg(),e=t.ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],i=function(h){this.extendFrom(h,!1)};function n(h,f,c){var d=f.x==null?0:f.x,p=f.x2==null?1:f.x2,g=f.y==null?0:f.y,m=f.y2==null?0:f.y2;f.global||(d=d*c.width+c.x,p=p*c.width+c.x,g=g*c.height+c.y,m=m*c.height+c.y),d=isNaN(d)?0:d,p=isNaN(p)?1:p,g=isNaN(g)?0:g,m=isNaN(m)?0:m;var y=h.createLinearGradient(d,g,p,m);return y}function o(h,f,c){var d=c.width,p=c.height,g=Math.min(d,p),m=f.x==null?.5:f.x,y=f.y==null?.5:f.y,_=f.r==null?.5:f.r;f.global||(m=m*d+c.x,y=y*p+c.y,_=_*g);var x=h.createRadialGradient(m,y,0,m,y,_);return x}i.prototype={constructor:i,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(h,f,c){var d=this,p=c&&c.style,g=!p||h.__attrCachedBy!==e.STYLE_BIND;h.__attrCachedBy=e.STYLE_BIND;for(var m=0;m<a.length;m++){var y=a[m],_=y[0];(g||d[_]!==p[_])&&(h[_]=r(h,_,d[_]||y[1]))}if((g||d.fill!==p.fill)&&(h.fillStyle=d.fill),(g||d.stroke!==p.stroke)&&(h.strokeStyle=d.stroke),(g||d.opacity!==p.opacity)&&(h.globalAlpha=d.opacity==null?1:d.opacity),(g||d.blend!==p.blend)&&(h.globalCompositeOperation=d.blend||"source-over"),this.hasStroke()){var x=d.lineWidth;h.lineWidth=x/(this.strokeNoScale&&f&&f.getLineScale?f.getLineScale():1)}},hasFill:function(){var h=this.fill;return h!=null&&h!=="none"},hasStroke:function(){var h=this.stroke;return h!=null&&h!=="none"&&this.lineWidth>0},extendFrom:function(h,f){if(h)for(var c in h)h.hasOwnProperty(c)&&(f===!0||(f===!1?!this.hasOwnProperty(c):h[c]!=null))&&(this[c]=h[c])},set:function(h,f){typeof h=="string"?this[h]=f:this.extendFrom(h,!0)},clone:function(){var h=new this.constructor;return h.extendFrom(this,!0),h},getGradient:function(h,f,c){for(var d=f.type==="radial"?o:n,p=d(h,f,c),g=f.colorStops,m=0;m<g.length;m++)p.addColorStop(g[m].offset,g[m].color);return p}};for(var s=i.prototype,l=0;l<a.length;l++){var u=a[l];u[0]in s||(s[u[0]]=u[1])}i.getGradient=s.getGradient;var v=i;return _0=v,_0}var x0,nO;function M9(){if(nO)return x0;nO=1;var r=function(e,a){this.image=e,this.repeat=a,this.type="pattern"};r.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var t=r;return x0=t,x0}var S0,oO;function Ppe(){if(oO)return S0;oO=1;var r=ie(),t=sg(),e=t.devicePixelRatio,a=QM(),i=M9();function n(){return!1}function o(u,v,h){var f=r.createCanvas(),c=v.getWidth(),d=v.getHeight(),p=f.style;return p&&(p.position="absolute",p.left=0,p.top=0,p.width=c+"px",p.height=d+"px",f.setAttribute("data-zr-dom-id",u)),f.width=c*h,f.height=d*h,f}var s=function(u,v,h){var f;h=h||e,typeof u=="string"?f=o(u,v,h):r.isObject(u)&&(f=u,u=f.id),this.id=u,this.dom=f;var c=f.style;c&&(f.onselectstart=n,c["-webkit-user-select"]="none",c["user-select"]="none",c["-webkit-touch-callout"]="none",c["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",c.padding=0,c.margin=0,c["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=v,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=h};s.prototype={constructor:s,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var u=this.dpr;this.domBack=o("back-"+this.id,this.painter,u),this.ctxBack=this.domBack.getContext("2d"),u!==1&&this.ctxBack.scale(u,u)},resize:function(u,v){var h=this.dpr,f=this.dom,c=f.style,d=this.domBack;c&&(c.width=u+"px",c.height=v+"px"),f.width=u*h,f.height=v*h,d&&(d.width=u*h,d.height=v*h,h!==1&&this.ctxBack.scale(h,h))},clear:function(u,p){var h=this.dom,f=this.ctx,c=h.width,d=h.height,p=p||this.clearColor,g=this.motionBlur&&!u,m=this.lastFrameAlpha,y=this.dpr;if(g&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(h,0,0,c/y,d/y)),f.clearRect(0,0,c,d),p&&p!=="transparent"){var _;p.colorStops?(_=p.__canvasGradient||a.getGradient(f,p,{x:0,y:0,width:c,height:d}),p.__canvasGradient=_):p.image&&(_=i.prototype.getCanvasPattern.call(p,f)),f.save(),f.fillStyle=_||p,f.fillRect(0,0,c,d),f.restore()}if(g){var x=this.domBack;f.save(),f.globalAlpha=m,f.drawImage(x,0,0,c,d),f.restore()}}};var l=s;return S0=l,S0}var b0,sO;function D9(){if(sO)return b0;sO=1;var r=typeof window<"u"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};return b0=r,b0}var ln={},Wr={},vv={},lO;function jM(){if(lO)return vv;lO=1;var r=w9(),t=new r(50);function e(o){if(typeof o=="string"){var s=t.get(o);return s&&s.image}else return o}function a(o,s,l,u,v){if(o)if(typeof o=="string"){if(s&&s.__zrImageSrc===o||!l)return s;var h=t.get(o),f={hostEl:l,cb:u,cbPayload:v};return h?(s=h.image,!n(s)&&h.pending.push(f)):(s=new Image,s.onload=s.onerror=i,t.put(o,s.__cachedImgObj={image:s,pending:[f]}),s.src=s.__zrImageSrc=o),s}else return o;else return s}function i(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var s=0;s<o.pending.length;s++){var l=o.pending[s],u=l.cb;u&&u(this,l.cbPayload),l.hostEl.dirty()}o.pending.length=0}function n(o){return o&&o.width&&o.height}return vv.findExistImage=e,vv.createOrUpdateImage=a,vv.isImageReady=n,vv}var uO;function Da(){if(uO)return Wr;uO=1;var r=rr(),t=jM(),e=ie(),a=e.getContext,i=e.extend,n=e.retrieve2,o=e.retrieve3,s=e.trim,l={},u=0,v=5e3,h=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",c={};function d(E,k){c[E]=k}function p(E,k){k=k||f;var B=E+":"+k;if(l[B])return l[B];for(var F=(E+"").split("\n"),V=0,N=0,O=F.length;N<O;N++)V=Math.max(L(F[N],k).width,V);return u>v&&(u=0,l={}),u++,l[B]=V,V}function g(E,k,B,F,V,N,O,z){return O?y(E,k,B,F,V,N,O,z):m(E,k,B,F,V,N,z)}function m(E,k,B,F,V,N,O){var z=D(E,k,V,N,O),G=p(E,k);V&&(G+=V[1]+V[3]);var q=z.outerHeight,H=_(0,G,B),U=x(0,q,F),W=new r(H,U,G,q);return W.lineHeight=z.lineHeight,W}function y(E,k,B,F,V,N,O,z){var G=P(E,{rich:O,truncate:z,font:k,textAlign:B,textPadding:V,textLineHeight:N}),q=G.outerWidth,H=G.outerHeight,U=_(0,q,B),W=x(0,H,F);return new r(U,W,q,H)}function _(E,k,B){return B==="right"?E-=k:B==="center"&&(E-=k/2),E}function x(E,k,B){return B==="middle"?E-=k/2:B==="bottom"&&(E-=k),E}function S(E,k,B){var F=k.textPosition,V=k.textDistance,N=B.x,O=B.y;V=V||0;var z=B.height,G=B.width,q=z/2,H="left",U="top";switch(F){case"left":N-=V,O+=q,H="right",U="middle";break;case"right":N+=V+G,O+=q,U="middle";break;case"top":N+=G/2,O-=V,H="center",U="bottom";break;case"bottom":N+=G/2,O+=z+V,H="center";break;case"inside":N+=G/2,O+=q,H="center",U="middle";break;case"insideLeft":N+=V,O+=q,U="middle";break;case"insideRight":N+=G-V,O+=q,H="right",U="middle";break;case"insideTop":N+=G/2,O+=V,H="center";break;case"insideBottom":N+=G/2,O+=z-V,H="center",U="bottom";break;case"insideTopLeft":N+=V,O+=V;break;case"insideTopRight":N+=G-V,O+=V,H="right";break;case"insideBottomLeft":N+=V,O+=z-V,U="bottom";break;case"insideBottomRight":N+=G-V,O+=z-V,H="right",U="bottom";break}return E=E||{},E.x=N,E.y=O,E.textAlign=H,E.textVerticalAlign=U,E}function b(E,k,B){var F={textPosition:E,textDistance:B};return S({},F,k)}function w(E,k,B,F,V){if(!k)return"";var N=(E+"").split("\n");V=A(k,B,F,V);for(var O=0,z=N.length;O<z;O++)N[O]=T(N[O],V);return N.join("\n")}function A(E,k,V,F){F=i({},F),F.font=k;var V=n(V,"...");F.maxIterations=n(F.maxIterations,2);var N=F.minChar=n(F.minChar,0);F.cnCharWidth=p("国",k);var O=F.ascCharWidth=p("a",k);F.placeholder=n(F.placeholder,"");for(var z=E=Math.max(0,E-1),G=0;G<N&&z>=O;G++)z-=O;var q=p(V,k);return q>z&&(V="",q=0),z=E-q,F.ellipsis=V,F.ellipsisWidth=q,F.contentWidth=z,F.containerWidth=E,F}function T(E,k){var B=k.containerWidth,F=k.font,V=k.contentWidth;if(!B)return"";var N=p(E,F);if(N<=B)return E;for(var O=0;;O++){if(N<=V||O>=k.maxIterations){E+=k.ellipsis;break}var z=O===0?C(E,V,k.ascCharWidth,k.cnCharWidth):N>0?Math.floor(E.length*V/N):0;E=E.substr(0,z),N=p(E,F)}return E===""&&(E=k.placeholder),E}function C(E,k,B,F){for(var V=0,N=0,O=E.length;N<O&&V<k;N++){var z=E.charCodeAt(N);V+=0<=z&&z<=127?B:F}return N}function M(E){return p("国",E)}function L(E,k){return c.measureText(E,k)}c.measureText=function(E,k){var B=a();return B.font=k||f,B.measureText(E)};function D(E,k,B,F,V){E!=null&&(E+="");var N=n(F,M(k)),O=E?E.split("\n"):[],z=O.length*N,G=z,q=!0;if(B&&(G+=B[0]+B[2]),E&&V){q=!1;var H=V.outerHeight,U=V.outerWidth;if(H!=null&&G>H)E="",O=[];else if(U!=null)for(var W=A(U-(B?B[1]+B[3]:0),k,V.ellipsis,{minChar:V.minChar,placeholder:V.placeholder}),Y=0,X=O.length;Y<X;Y++)O[Y]=T(O[Y],W)}return{lines:O,height:z,outerHeight:G,lineHeight:N,canCacheByTextString:q}}function P(E,k){var B={lines:[],width:0,height:0};if(E!=null&&(E+=""),!E)return B;for(var F=h.lastIndex=0,V;(V=h.exec(E))!=null;){var N=V.index;N>F&&I(B,E.substring(F,N)),I(B,V[2],V[1]),F=h.lastIndex}F<E.length&&I(B,E.substring(F,E.length));var O=B.lines,z=0,G=0,q=[],H=k.textPadding,U=k.truncate,W=U&&U.outerWidth,Y=U&&U.outerHeight;H&&(W!=null&&(W-=H[1]+H[3]),Y!=null&&(Y-=H[0]+H[2]));for(var X=0;X<O.length;X++){for(var K=O[X],Q=0,j=0,te=0;te<K.tokens.length;te++){var Z=K.tokens[te],ee=Z.styleName&&k.rich[Z.styleName]||{},le=Z.textPadding=ee.textPadding,oe=Z.font=ee.font||k.font,fe=Z.textHeight=n(ee.textHeight,M(oe));if(le&&(fe+=le[0]+le[2]),Z.height=fe,Z.lineHeight=o(ee.textLineHeight,k.textLineHeight,fe),Z.textAlign=ee&&ee.textAlign||k.textAlign,Z.textVerticalAlign=ee&&ee.textVerticalAlign||"middle",Y!=null&&z+Z.lineHeight>Y)return{lines:[],width:0,height:0};Z.textWidth=p(Z.text,oe);var se=ee.textWidth,ve=se==null||se==="auto";if(typeof se=="string"&&se.charAt(se.length-1)==="%")Z.percentWidth=se,q.push(Z),se=0;else{if(ve){se=Z.textWidth;var ye=ee.textBackgroundColor,Me=ye&&ye.image;Me&&(Me=t.findExistImage(Me),t.isImageReady(Me)&&(se=Math.max(se,Me.width*fe/Me.height)))}var J=le?le[1]+le[3]:0;se+=J;var ne=W!=null?W-j:null;ne!=null&&ne<se&&(!ve||ne<J?(Z.text="",Z.textWidth=se=0):(Z.text=w(Z.text,ne-J,oe,U.ellipsis,{minChar:U.minChar}),Z.textWidth=p(Z.text,oe),se=Z.textWidth+J))}j+=Z.width=se,ee&&(Q=Math.max(Q,Z.lineHeight))}K.width=j,K.lineHeight=Q,z+=Q,G=Math.max(G,j)}B.outerWidth=B.width=n(k.textWidth,G),B.outerHeight=B.height=n(k.textHeight,z),H&&(B.outerWidth+=H[1]+H[3],B.outerHeight+=H[0]+H[2]);for(var X=0;X<q.length;X++){var Z=q[X],ue=Z.percentWidth;Z.width=parseInt(ue,10)/100*G}return B}function I(E,k,B){for(var F=k==="",V=k.split("\n"),N=E.lines,O=0;O<V.length;O++){var z=V[O],G={styleName:B,text:z,isLineHolder:!z&&!F};if(O)N.push({tokens:[G]});else{var q=(N[N.length-1]||(N[0]={tokens:[]})).tokens,H=q.length;H===1&&q[0].isLineHolder?q[0]=G:(z||!H||F)&&q.push(G)}}}function R(E){var k=(E.fontSize||E.fontFamily)&&[E.fontStyle,E.fontWeight,(E.fontSize||12)+"px",E.fontFamily||"sans-serif"].join(" ");return k&&s(k)||E.textFont||E.font}return Wr.DEFAULT_FONT=f,Wr.$override=d,Wr.getWidth=p,Wr.getBoundingRect=g,Wr.adjustTextX=_,Wr.adjustTextY=x,Wr.calculateTextPosition=S,Wr.adjustTextPositionOnRect=b,Wr.truncateText=w,Wr.getLineHeight=M,Wr.measureText=L,Wr.parsePlainText=D,Wr.parseRichText=P,Wr.makeFont=R,Wr}var w0={},vO;function L9(){if(vO)return w0;vO=1;function r(t,e){var a=e.x,i=e.y,n=e.width,o=e.height,s=e.r,l,u,v,h;n<0&&(a=a+n,n=-n),o<0&&(i=i+o,o=-o),typeof s=="number"?l=u=v=h=s:s instanceof Array?s.length===1?l=u=v=h=s[0]:s.length===2?(l=v=s[0],u=h=s[1]):s.length===3?(l=s[0],u=h=s[1],v=s[2]):(l=s[0],u=s[1],v=s[2],h=s[3]):l=u=v=h=0;var f;l+u>n&&(f=l+u,l*=n/f,u*=n/f),v+h>n&&(f=v+h,v*=n/f,h*=n/f),u+v>o&&(f=u+v,u*=o/f,v*=o/f),l+h>o&&(f=l+h,l*=o/f,h*=o/f),t.moveTo(a+l,i),t.lineTo(a+n-u,i),u!==0&&t.arc(a+n-u,i+u,u,-Math.PI/2,0),t.lineTo(a+n,i+o-v),v!==0&&t.arc(a+n-v,i+o-v,v,0,Math.PI/2),t.lineTo(a+h,i+o),h!==0&&t.arc(a+h,i+o-h,h,Math.PI/2,Math.PI),t.lineTo(a,i+l),l!==0&&t.arc(a+l,i+l,l,Math.PI,Math.PI*1.5)}return w0.buildPath=r,w0}var hO;function ug(){if(hO)return ln;hO=1;var r=ie(),t=r.retrieve2,e=r.retrieve3,a=r.each,i=r.normalizeCssArray,n=r.isString,o=r.isObject,s=Da(),l=L9(),u=jM(),v=C9(),h=lg(),f=h.ContextCachedBy,c=h.WILL_BE_RESTORED,d=s.DEFAULT_FONT,p={left:1,right:1,center:1},g={top:1,bottom:1,middle:1},m=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],y={},_={};function x(N){return S(N),a(N.rich,S),N}function S(N){if(N){N.font=s.makeFont(N);var O=N.textAlign;O==="middle"&&(O="center"),N.textAlign=O==null||p[O]?O:"left";var z=N.textVerticalAlign||N.textBaseline;z==="center"&&(z="middle"),N.textVerticalAlign=z==null||g[z]?z:"top";var G=N.textPadding;G&&(N.textPadding=i(N.textPadding))}}function b(N,O,z,G,q,H){G.rich?A(N,O,z,G,q,H):w(N,O,z,G,q,H)}function w(N,O,z,G,q,H){var U=L(G),W,Y=!1,X=O.__attrCachedBy===f.PLAIN_TEXT;H!==c?(H&&(W=H.style,Y=!U&&X&&W),O.__attrCachedBy=U?f.NONE:f.PLAIN_TEXT):X&&(O.__attrCachedBy=f.NONE);var K=G.font||d;(!Y||K!==(W.font||d))&&(O.font=K);var Q=N.__computedFont;N.__styleFont!==K&&(N.__styleFont=K,Q=N.__computedFont=O.font);var j=G.textPadding,te=G.textLineHeight,Z=N.__textCotentBlock;(!Z||N.__dirtyText)&&(Z=N.__textCotentBlock=s.parsePlainText(z,Q,j,te,G.truncate));var ee=Z.outerHeight,le=Z.lines,oe=Z.lineHeight,fe=I(_,N,G,q),se=fe.baseX,ve=fe.baseY,ye=fe.textAlign||"left",Me=fe.textVerticalAlign;C(O,G,q,se,ve);var J=s.adjustTextY(ve,ee,Me),ne=se,ue=J;if(U||j){var me=s.getWidth(z,Q),xe=me;j&&(xe+=j[1]+j[3]);var ge=s.adjustTextX(se,xe,ye);U&&D(N,O,G,ge,J,xe,ee),j&&(ne=F(se,ye,j),ue+=j[0])}O.textAlign=ye,O.textBaseline="middle",O.globalAlpha=G.opacity||1;for(var pe=0;pe<m.length;pe++){var Ce=m[pe],ze=Ce[0],Ve=Ce[1],ke=G[ze];(!Y||ke!==W[ze])&&(O[Ve]=v(O,Ve,ke||Ce[2]))}ue+=oe/2;var lt=G.textStrokeWidth,dt=Y?W.textStrokeWidth:null,Dt=!Y||lt!==dt,Tt=!Y||Dt||G.textStroke!==W.textStroke,Bt=E(G.textStroke,lt),Vt=k(G.textFill);if(Bt&&(Dt&&(O.lineWidth=lt),Tt&&(O.strokeStyle=Bt)),Vt&&(!Y||G.textFill!==W.textFill)&&(O.fillStyle=Vt),le.length===1)Bt&&O.strokeText(le[0],ne,ue),Vt&&O.fillText(le[0],ne,ue);else for(var pe=0;pe<le.length;pe++)Bt&&O.strokeText(le[pe],ne,ue),Vt&&O.fillText(le[pe],ne,ue),ue+=oe}function A(N,O,z,G,q,H){H!==c&&(O.__attrCachedBy=f.NONE);var U=N.__textCotentBlock;(!U||N.__dirtyText)&&(U=N.__textCotentBlock=s.parseRichText(z,G)),T(N,O,U,G,q)}function T(N,O,z,G,q){var H=z.width,U=z.outerWidth,W=z.outerHeight,Y=G.textPadding,X=I(_,N,G,q),K=X.baseX,Q=X.baseY,j=X.textAlign,te=X.textVerticalAlign;C(O,G,q,K,Q);var Z=s.adjustTextX(K,U,j),ee=s.adjustTextY(Q,W,te),le=Z,oe=ee;Y&&(le+=Y[3],oe+=Y[0]);var fe=le+H;L(G)&&D(N,O,G,Z,ee,U,W);for(var se=0;se<z.lines.length;se++){for(var ve=z.lines[se],ye=ve.tokens,Me=ye.length,J=ve.lineHeight,ne=ve.width,ue=0,me=le,xe=fe,ge=Me-1,pe;ue<Me&&(pe=ye[ue],!pe.textAlign||pe.textAlign==="left");)M(N,O,pe,G,J,oe,me,"left"),ne-=pe.width,me+=pe.width,ue++;for(;ge>=0&&(pe=ye[ge],pe.textAlign==="right");)M(N,O,pe,G,J,oe,xe,"right"),ne-=pe.width,xe-=pe.width,ge--;for(me+=(H-(me-le)-(fe-xe)-ne)/2;ue<=ge;)pe=ye[ue],M(N,O,pe,G,J,oe,me+pe.width/2,"center"),me+=pe.width,ue++;oe+=J}}function C(N,O,z,G,q){if(z&&O.textRotation){var H=O.textOrigin;H==="center"?(G=z.width/2+z.x,q=z.height/2+z.y):H&&(G=H[0]+z.x,q=H[1]+z.y),N.translate(G,q),N.rotate(-O.textRotation),N.translate(-G,-q)}}function M(N,O,z,G,q,H,U,W){var Y=G.rich[z.styleName]||{};Y.text=z.text;var X=z.textVerticalAlign,K=H+q/2;X==="top"?K=H+z.height/2:X==="bottom"&&(K=H+q-z.height/2),!z.isLineHolder&&L(Y)&&D(N,O,Y,W==="right"?U-z.width:W==="center"?U-z.width/2:U,K-z.height/2,z.width,z.height);var Q=z.textPadding;Q&&(U=F(U,W,Q),K-=z.height/2-Q[2]-z.textHeight/2),R(O,"shadowBlur",e(Y.textShadowBlur,G.textShadowBlur,0)),R(O,"shadowColor",Y.textShadowColor||G.textShadowColor||"transparent"),R(O,"shadowOffsetX",e(Y.textShadowOffsetX,G.textShadowOffsetX,0)),R(O,"shadowOffsetY",e(Y.textShadowOffsetY,G.textShadowOffsetY,0)),R(O,"textAlign",W),R(O,"textBaseline","middle"),R(O,"font",z.font||d);var j=E(Y.textStroke||G.textStroke,Z),te=k(Y.textFill||G.textFill),Z=t(Y.textStrokeWidth,G.textStrokeWidth);j&&(R(O,"lineWidth",Z),R(O,"strokeStyle",j),O.strokeText(z.text,U,K)),te&&(R(O,"fillStyle",te),O.fillText(z.text,U,K))}function L(N){return!!(N.textBackgroundColor||N.textBorderWidth&&N.textBorderColor)}function D(N,O,z,G,q,H,U){var W=z.textBackgroundColor,Y=z.textBorderWidth,X=z.textBorderColor,K=n(W);if(R(O,"shadowBlur",z.textBoxShadowBlur||0),R(O,"shadowColor",z.textBoxShadowColor||"transparent"),R(O,"shadowOffsetX",z.textBoxShadowOffsetX||0),R(O,"shadowOffsetY",z.textBoxShadowOffsetY||0),K||Y&&X){O.beginPath();var Q=z.textBorderRadius;Q?l.buildPath(O,{x:G,y:q,width:H,height:U,r:Q}):O.rect(G,q,H,U),O.closePath()}if(K)if(R(O,"fillStyle",W),z.fillOpacity!=null){var j=O.globalAlpha;O.globalAlpha=z.fillOpacity*z.opacity,O.fill(),O.globalAlpha=j}else O.fill();else if(o(W)){var te=W.image;te=u.createOrUpdateImage(te,null,N,P,W),te&&u.isImageReady(te)&&O.drawImage(te,G,q,H,U)}if(Y&&X)if(R(O,"lineWidth",Y),R(O,"strokeStyle",X),z.strokeOpacity!=null){var j=O.globalAlpha;O.globalAlpha=z.strokeOpacity*z.opacity,O.stroke(),O.globalAlpha=j}else O.stroke()}function P(N,O){O.image=N}function I(N,O,z,G){var q=z.x||0,H=z.y||0,U=z.textAlign,W=z.textVerticalAlign;if(G){var Y=z.textPosition;if(Y instanceof Array)q=G.x+B(Y[0],G.width),H=G.y+B(Y[1],G.height);else{var X=O&&O.calculateTextPosition?O.calculateTextPosition(y,z,G):s.calculateTextPosition(y,z,G);q=X.x,H=X.y,U=U||X.textAlign,W=W||X.textVerticalAlign}var K=z.textOffset;K&&(q+=K[0],H+=K[1])}return N=N||{},N.baseX=q,N.baseY=H,N.textAlign=U,N.textVerticalAlign=W,N}function R(N,O,z){return N[O]=v(N,O,z),N[O]}function E(N,O){return N==null||O<=0||N==="transparent"||N==="none"?null:N.image||N.colorStops?"#000":N}function k(N){return N==null||N==="none"?null:N.image||N.colorStops?"#000":N}function B(N,O){return typeof N=="string"?N.lastIndexOf("%")>=0?parseFloat(N)/100*O:parseFloat(N):N}function F(N,O,z){return O==="right"?N-z[1]:O==="center"?N+z[3]/2-z[1]/2:N+z[3]}function V(N,O){return N!=null&&(N||O.textBackgroundColor||O.textBorderWidth&&O.textBorderColor||O.textPadding)}return ln.normalizeTextStyle=x,ln.renderText=b,ln.getBoxPosition=I,ln.getStroke=E,ln.getFill=k,ln.parsePercent=B,ln.needDrawText=V,ln}var T0,fO;function I9(){if(fO)return T0;fO=1;var r=ug(),t=rr(),e=lg(),a=e.WILL_BE_RESTORED,i=new t,n=function(){};n.prototype={constructor:n,drawRectText:function(s,l){var u=this.style;l=u.textRect||l,this.__dirty&&r.normalizeTextStyle(u,!0);var v=u.text;if(v!=null&&(v+=""),!!r.needDrawText(v,u)){s.save();var h=this.transform;u.transformText?this.setTransform(s):h&&(i.copy(l),i.applyTransform(h),l=i),r.renderText(this,s,v,u,l,a),s.restore()}}};var o=n;return T0=o,T0}var A0,cO;function lf(){if(cO)return A0;cO=1;var r=ie(),t=QM(),e=A9(),a=I9();function i(o){o=o||{},e.call(this,o);for(var s in o)o.hasOwnProperty(s)&&s!=="style"&&(this[s]=o[s]);this.style=new t(o.style,this),this._rect=null,this.__clipPaths=null}i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(o){},afterBrush:function(o){},brush:function(o,s){},getBoundingRect:function(){},contain:function(o,s){return this.rectContain(o,s)},traverse:function(o,s){o.call(s,this)},rectContain:function(o,s){var l=this.transformCoordToLocal(o,s),u=this.getBoundingRect();return u.contain(l[0],l[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(o){return this.animate("style",o)},attrKV:function(o,s){o!=="style"?e.prototype.attrKV.call(this,o,s):this.style.set(s)},setStyle:function(o,s){return this.style.set(o,s),this.dirty(!1),this},useStyle:function(o){return this.style=new t(o,this),this.dirty(!1),this},calculateTextPosition:null},r.inherits(i,e),r.mixin(i,a);var n=i;return A0=n,A0}var C0,dO;function wu(){if(dO)return C0;dO=1;var r=lf(),t=rr(),e=ie(),a=jM();function i(o){r.call(this,o)}i.prototype={constructor:i,type:"image",brush:function(o,s){var l=this.style,u=l.image;l.bind(o,this,s);var v=this._image=a.createOrUpdateImage(u,this._image,this,this.onload);if(!(!v||!a.isImageReady(v))){var h=l.x||0,f=l.y||0,c=l.width,d=l.height,p=v.width/v.height;if(c==null&&d!=null?c=d*p:d==null&&c!=null?d=c/p:c==null&&d==null&&(c=v.width,d=v.height),this.setTransform(o),l.sWidth&&l.sHeight){var g=l.sx||0,m=l.sy||0;o.drawImage(v,g,m,l.sWidth,l.sHeight,h,f,c,d)}else if(l.sx&&l.sy){var g=l.sx,m=l.sy,y=c-g,_=d-m;o.drawImage(v,g,m,y,_,h,f,c,d)}else o.drawImage(v,h,f,c,d);l.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))}},getBoundingRect:function(){var o=this.style;return this._rect||(this._rect=new t(o.x||0,o.y||0,o.width||0,o.height||0)),this._rect}},e.inherits(i,r);var n=i;return C0=n,C0}var M0,pO;function Rpe(){if(pO)return M0;pO=1;var r=sg(),t=r.devicePixelRatio,e=ie(),a=sf(),i=rr(),n=KM(),o=Ppe(),s=D9(),l=wu(),u=pr(),v=1e5,h=314159,f=.01,c=.001;function d(A){return parseInt(A,10)}function p(A){return A?A.__builtin__?!0:!(typeof A.resize!="function"||typeof A.refresh!="function"):!1}var g=new i(0,0,0,0),m=new i(0,0,0,0);function y(A,T,C){return g.copy(A.getBoundingRect()),A.transform&&g.applyTransform(A.transform),m.width=T,m.height=C,!g.intersect(m)}function _(A,T){if(A===T)return!1;if(!A||!T||A.length!==T.length)return!0;for(var C=0;C<A.length;C++)if(A[C]!==T[C])return!0;return!1}function x(A,T){for(var C=0;C<A.length;C++){var M=A[C];M.setTransform(T),T.beginPath(),M.buildPath(T,M.shape),T.clip(),M.restoreTransform(T)}}function S(A,T){var C=document.createElement("div");return C.style.cssText=["position:relative","width:"+A+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",C}var b=function(A,T,C){this.type="canvas";var M=!A.nodeName||A.nodeName.toUpperCase()==="CANVAS";this._opts=C=e.extend({},C||{}),this.dpr=C.devicePixelRatio||t,this._singleCanvas=M,this.root=A;var L=A.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",A.innerHTML=""),this.storage=T;var D=this._zlevelList=[],P=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,M){var R=A.width,E=A.height;C.width!=null&&(R=C.width),C.height!=null&&(E=C.height),this.dpr=C.devicePixelRatio||1,A.width=R*this.dpr,A.height=E*this.dpr,this._width=R,this._height=E;var k=new o(A,this,this.dpr);k.__builtin__=!0,k.initContext(),P[h]=k,k.zlevel=h,D.push(h),this._domRoot=A}else{this._width=this._getSize(0),this._height=this._getSize(1);var I=this._domRoot=S(this._width,this._height);A.appendChild(I)}this._hoverlayer=null,this._hoverElements=[]};b.prototype={constructor:b,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var A=this.getViewportRoot();if(A)return{offsetLeft:A.offsetLeft||0,offsetTop:A.offsetTop||0}},refresh:function(A){var T=this.storage.getDisplayList(!0),C=this._zlevelList;this._redrawId=Math.random(),this._paintList(T,A,this._redrawId);for(var M=0;M<C.length;M++){var L=C[M],D=this._layers[L];if(!D.__builtin__&&D.refresh){var P=M===0?this._backgroundColor:null;D.refresh(P)}}return this.refreshHover(),this},addHover:function(A,T){if(!A.__hoverMir){var C=new A.constructor({style:A.style,shape:A.shape,z:A.z,z2:A.z2,silent:A.silent});return C.__from=A,A.__hoverMir=C,T&&C.setStyle(T),this._hoverElements.push(C),C}},removeHover:function(A){var T=A.__hoverMir,C=this._hoverElements,M=e.indexOf(C,T);M>=0&&C.splice(M,1),A.__hoverMir=null},clearHover:function(A){for(var T=this._hoverElements,C=0;C<T.length;C++){var M=T[C].__from;M&&(M.__hoverMir=null)}T.length=0},refreshHover:function(){var A=this._hoverElements,T=A.length,C=this._hoverlayer;if(C&&C.clear(),!!T){n(A,this.storage.displayableSortFunc),C||(C=this._hoverlayer=this.getLayer(v));var M={};C.ctx.save();for(var L=0;L<T;){var D=A[L],P=D.__from;if(!(P&&P.__zr)){A.splice(L,1),P.__hoverMir=null,T--;continue}L++,P.invisible||(D.transform=P.transform,D.invTransform=P.invTransform,D.__clipPaths=P.__clipPaths,this._doPaintEl(D,C,!0,M))}C.ctx.restore()}},getHoverLayer:function(){return this.getLayer(v)},_paintList:function(A,T,C){if(this._redrawId===C){T=T||!1,this._updateLayerStatus(A);var M=this._doPaintList(A,T);if(this._needsManuallyCompositing&&this._compositeManually(),!M){var L=this;s(function(){L._paintList(A,T,C)})}}},_compositeManually:function(){var A=this.getLayer(h).ctx,T=this._domRoot.width,C=this._domRoot.height;A.clearRect(0,0,T,C),this.eachBuiltinLayer(function(M){M.virtual&&A.drawImage(M.dom,0,0,T,C)})},_doPaintList:function(A,T){for(var C=[],M=0;M<this._zlevelList.length;M++){var L=this._zlevelList[M],D=this._layers[L];D.__builtin__&&D!==this._hoverlayer&&(D.__dirty||T)&&C.push(D)}for(var P=!0,I=0;I<C.length;I++){var D=C[I],R=D.ctx,E={};R.save();var k=T?D.__startIndex:D.__drawIndex,B=!T&&D.incremental&&Date.now,F=B&&Date.now(),V=D.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(D.__startIndex===D.__endIndex)D.clear(!1,V);else if(k===D.__startIndex){var N=A[k];(!N.incremental||!N.notClear||T)&&D.clear(!1,V)}k===-1&&(console.error("For some unknown reason. drawIndex is -1"),k=D.__startIndex);for(var O=k;O<D.__endIndex;O++){var z=A[O];if(this._doPaintEl(z,D,T,E),z.__dirty=z.__dirtyText=!1,B){var G=Date.now()-F;if(G>15)break}}D.__drawIndex=O,D.__drawIndex<D.__endIndex&&(P=!1),E.prevElClipPaths&&R.restore(),R.restore()}return u.wxa&&e.each(this._layers,function(q){q&&q.ctx&&q.ctx.draw&&q.ctx.draw()}),P},_doPaintEl:function(A,T,C,M){var L=T.ctx,D=A.transform;if((T.__dirty||C)&&!A.invisible&&A.style.opacity!==0&&!(D&&!D[0]&&!D[3])&&!(A.culling&&y(A,this._width,this._height))){var P=A.__clipPaths,I=M.prevElClipPaths;(!I||_(P,I))&&(I&&(L.restore(),M.prevElClipPaths=null,M.prevEl=null),P&&(L.save(),x(P,L),M.prevElClipPaths=P)),A.beforeBrush&&A.beforeBrush(L),A.brush(L,M.prevEl||null),M.prevEl=A,A.afterBrush&&A.afterBrush(L)}},getLayer:function(A,T){this._singleCanvas&&!this._needsManuallyCompositing&&(A=h);var C=this._layers[A];return C||(C=new o("zr_"+A,this,this.dpr),C.zlevel=A,C.__builtin__=!0,this._layerConfig[A]?e.merge(C,this._layerConfig[A],!0):this._layerConfig[A-f]&&e.merge(C,this._layerConfig[A-f],!0),T&&(C.virtual=T),this.insertLayer(A,C),C.initContext()),C},insertLayer:function(A,T){var C=this._layers,M=this._zlevelList,L=M.length,D=null,P=-1,I=this._domRoot;if(C[A]){a("ZLevel "+A+" has been used already");return}if(!p(T)){a("Layer of zlevel "+A+" is not valid");return}if(L>0&&A>M[0]){for(P=0;P<L-1&&!(M[P]<A&&M[P+1]>A);P++);D=C[M[P]]}if(M.splice(P+1,0,A),C[A]=T,!T.virtual)if(D){var R=D.dom;R.nextSibling?I.insertBefore(T.dom,R.nextSibling):I.appendChild(T.dom)}else I.firstChild?I.insertBefore(T.dom,I.firstChild):I.appendChild(T.dom)},eachLayer:function(A,T){var C=this._zlevelList,M,L;for(L=0;L<C.length;L++)M=C[L],A.call(T,this._layers[M],M)},eachBuiltinLayer:function(A,T){var C=this._zlevelList,M,L,D;for(D=0;D<C.length;D++)L=C[D],M=this._layers[L],M.__builtin__&&A.call(T,M,L)},eachOtherLayer:function(A,T){var C=this._zlevelList,M,L,D;for(D=0;D<C.length;D++)L=C[D],M=this._layers[L],M.__builtin__||A.call(T,M,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(A){this.eachBuiltinLayer(function(E,k){E.__dirty=E.__used=!1});function T(E){L&&(L.__endIndex!==E&&(L.__dirty=!0),L.__endIndex=E)}if(this._singleCanvas)for(var C=1;C<A.length;C++){var M=A[C];if(M.zlevel!==A[C-1].zlevel||M.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,D=0,P,C=0;C<A.length;C++){var M=A[C],I=M.zlevel,R;P!==I&&(P=I,D=0),M.incremental?(R=this.getLayer(I+c,this._needsManuallyCompositing),R.incremental=!0,D=1):R=this.getLayer(I+(D>0?f:0),this._needsManuallyCompositing),R.__builtin__||a("ZLevel "+I+" has been used by unkown layer "+R.id),R!==L&&(R.__used=!0,R.__startIndex!==C&&(R.__dirty=!0),R.__startIndex=C,R.incremental?R.__drawIndex=-1:R.__drawIndex=C,T(C),L=R),M.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=C))}T(C),this.eachBuiltinLayer(function(E,k){!E.__used&&E.getElementCount()>0&&(E.__dirty=!0,E.__startIndex=E.__endIndex=E.__drawIndex=0),E.__dirty&&E.__drawIndex<0&&(E.__drawIndex=E.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(A){A.clear()},setBackgroundColor:function(A){this._backgroundColor=A},configLayer:function(A,T){if(T){var C=this._layerConfig;C[A]?e.merge(C[A],T,!0):C[A]=T;for(var M=0;M<this._zlevelList.length;M++){var L=this._zlevelList[M];if(L===A||L===A+f){var D=this._layers[L];e.merge(D,C[A],!0)}}}},delLayer:function(A){var T=this._layers,C=this._zlevelList,M=T[A];M&&(M.dom.parentNode.removeChild(M.dom),delete T[A],C.splice(e.indexOf(C,A),1))},resize:function(A,T){if(this._domRoot.style){var C=this._domRoot;C.style.display="none";var M=this._opts;if(A!=null&&(M.width=A),T!=null&&(M.height=T),A=this._getSize(0),T=this._getSize(1),C.style.display="",this._width!==A||T!==this._height){C.style.width=A+"px",C.style.height=T+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(A,T);e.each(this._progressiveLayers,function(D){D.resize(A,T)}),this.refresh(!0)}this._width=A,this._height=T}else{if(A==null||T==null)return;this._width=A,this._height=T,this.getLayer(h).resize(A,T)}return this},clearLayer:function(A){var T=this._layers[A];T&&T.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(A){if(A=A||{},this._singleCanvas&&!this._compositeManually)return this._layers[h].dom;var T=new o("image",this,A.pixelRatio||this.dpr);if(T.initContext(),T.clear(!1,A.backgroundColor||this._backgroundColor),A.pixelRatio<=this.dpr){this.refresh();var C=T.dom.width,M=T.dom.height,L=T.ctx;this.eachLayer(function(E){E.__builtin__?L.drawImage(E.dom,0,0,C,M):E.renderToCanvas&&(T.ctx.save(),E.renderToCanvas(T.ctx),T.ctx.restore())})}else for(var D={},P=this.storage.getDisplayList(!0),I=0;I<P.length;I++){var R=P[I];this._doPaintEl(R,T,!0,D)}return T.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(A){var T=this._opts,C=["width","height"][A],M=["clientWidth","clientHeight"][A],L=["paddingLeft","paddingTop"][A],D=["paddingRight","paddingBottom"][A];if(T[C]!=null&&T[C]!=="auto")return parseFloat(T[C]);var P=this.root,I=document.defaultView.getComputedStyle(P);return(P[M]||d(I[C])||d(P.style[C]))-(d(I[L])||0)-(d(I[D])||0)|0},pathToImage:function(A,T){T=T||this.dpr;var C=document.createElement("canvas"),M=C.getContext("2d"),L=A.getBoundingRect(),D=A.style,P=D.shadowBlur*T,I=D.shadowOffsetX*T,R=D.shadowOffsetY*T,E=D.hasStroke()?D.lineWidth:0,k=Math.max(E/2,-I+P),B=Math.max(E/2,I+P),F=Math.max(E/2,-R+P),V=Math.max(E/2,R+P),N=L.width+k+B,O=L.height+F+V;C.width=N*T,C.height=O*T,M.scale(T,T),M.clearRect(0,0,N,O),M.dpr=T;var z={position:A.position,rotation:A.rotation,scale:A.scale};A.position=[k-L.x,F-L.y],A.rotation=0,A.scale=[1,1],A.updateTransform(),A&&A.brush(M);var G=l,q=new G({style:{x:0,y:0,image:C}});return z.position!=null&&(q.position=A.position=z.position),z.rotation!=null&&(q.rotation=A.rotation=z.rotation),z.scale!=null&&(q.scale=A.scale=z.scale),q}};var w=b;return M0=w,M0}var D0,gO;function Epe(){if(gO)return D0;gO=1;var r=ie(),t=Ji(),e=t.Dispatcher,a=D9(),i=T9(),n=function(s){s=s||{},this.stage=s.stage||{},this.onframe=s.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,e.call(this)};n.prototype={constructor:n,addClip:function(s){this._clips.push(s)},addAnimator:function(s){s.animation=this;for(var l=s.getClips(),u=0;u<l.length;u++)this.addClip(l[u])},removeClip:function(s){var l=r.indexOf(this._clips,s);l>=0&&this._clips.splice(l,1)},removeAnimator:function(s){for(var l=s.getClips(),u=0;u<l.length;u++)this.removeClip(l[u]);s.animation=null},_update:function(){for(var s=new Date().getTime()-this._pausedTime,l=s-this._time,u=this._clips,v=u.length,h=[],f=[],c=0;c<v;c++){var d=u[c],p=d.step(s,l);p&&(h.push(p),f.push(d))}for(var c=0;c<v;)u[c]._needsRemove?(u[c]=u[v-1],u.pop(),v--):c++;v=h.length;for(var c=0;c<v;c++)f[c].fire(h[c]);this._time=s,this.onframe(l),this.trigger("frame",l),this.stage.update&&this.stage.update()},_startLoop:function(){var s=this;this._running=!0;function l(){s._running&&(a(l),!s._paused&&s._update())}a(l)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(s,l){l=l||{};var u=new i(s,l.loop,l.getter,l.setter);return this.addAnimator(u),u}},r.mixin(n,e);var o=n;return D0=o,D0}var L0,mO;function kpe(){if(mO)return L0;mO=1;var r=Ji(),t=r.addEventListener,e=r.removeEventListener,a=r.normalizeEvent,i=r.getNativeEvent,n=ie(),o=Ws(),s=pr(),l=300,u=s.domSupported,v=(function(){var I=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],E={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},k=n.map(I,function(B){var F=B.replace("mouse","pointer");return E.hasOwnProperty(F)?F:B});return{mouse:I,touch:R,pointer:k}})(),h={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function f(I){return I==="mousewheel"&&s.browser.firefox?"DOMMouseScroll":I}function c(I){var R=I.pointerType;return R==="pen"||R==="touch"}function d(I){I.touching=!0,I.touchTimer!=null&&(clearTimeout(I.touchTimer),I.touchTimer=null),I.touchTimer=setTimeout(function(){I.touching=!1,I.touchTimer=null},700)}function p(I){I&&(I.zrByTouch=!0)}function g(I,R){return a(I.dom,new y(I,R),!0)}function m(I,R){for(var E=R,k=!1;E&&E.nodeType!==9&&!(k=E.domBelongToZr||E!==R&&E===I.painterRoot);)E=E.parentNode;return k}function y(I,R){this.type=R.type,this.target=this.currentTarget=I.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var _=y.prototype;_.stopPropagation=_.stopImmediatePropagation=_.preventDefault=n.noop;var x={mousedown:function(I){I=a(this.dom,I),this._mayPointerCapture=[I.zrX,I.zrY],this.trigger("mousedown",I)},mousemove:function(I){I=a(this.dom,I);var R=this._mayPointerCapture;R&&(I.zrX!==R[0]||I.zrY!==R[1])&&C(this,!0),this.trigger("mousemove",I)},mouseup:function(I){I=a(this.dom,I),C(this,!1),this.trigger("mouseup",I)},mouseout:function(I){I=a(this.dom,I),this._pointerCapturing&&(I.zrEventControl="no_globalout");var R=I.toElement||I.relatedTarget;I.zrIsToLocalDOM=m(this,R),this.trigger("mouseout",I)},touchstart:function(I){I=a(this.dom,I),p(I),this._lastTouchMoment=new Date,this.handler.processGesture(I,"start"),x.mousemove.call(this,I),x.mousedown.call(this,I)},touchmove:function(I){I=a(this.dom,I),p(I),this.handler.processGesture(I,"change"),x.mousemove.call(this,I)},touchend:function(I){I=a(this.dom,I),p(I),this.handler.processGesture(I,"end"),x.mouseup.call(this,I),+new Date-this._lastTouchMoment<l&&x.click.call(this,I)},pointerdown:function(I){x.mousedown.call(this,I)},pointermove:function(I){c(I)||x.mousemove.call(this,I)},pointerup:function(I){x.mouseup.call(this,I)},pointerout:function(I){c(I)||x.mouseout.call(this,I)}};n.each(["click","mousewheel","dblclick","contextmenu"],function(I){x[I]=function(R){R=a(this.dom,R),this.trigger(I,R)}});var S={pointermove:function(I){c(I)||S.mousemove.call(this,I)},pointerup:function(I){S.mouseup.call(this,I)},mousemove:function(I){this.trigger("mousemove",I)},mouseup:function(I){var R=this._pointerCapturing;C(this,!1),this.trigger("mouseup",I),R&&(I.zrEventControl="only_globalout",this.trigger("mouseout",I))}};function b(I,R){var E=R.domHandlers;s.pointerEventsSupported?n.each(v.pointer,function(k){A(R,k,function(B){E[k].call(I,B)})}):(s.touchEventsSupported&&n.each(v.touch,function(k){A(R,k,function(B){E[k].call(I,B),d(R)})}),n.each(v.mouse,function(k){A(R,k,function(B){B=i(B),R.touching||E[k].call(I,B)})}))}function w(I,R){s.pointerEventsSupported?n.each(h.pointer,E):s.touchEventsSupported||n.each(h.mouse,E);function E(k){function B(F){F=i(F),m(I,F.target)||(F=g(I,F),R.domHandlers[k].call(I,F))}A(R,k,B,{capture:!0})}}function A(I,R,E,k){I.mounted[R]=E,I.listenerOpts[R]=k,t(I.domTarget,f(R),E,k)}function T(I){var R=I.mounted;for(var E in R)R.hasOwnProperty(E)&&e(I.domTarget,f(E),R[E],I.listenerOpts[E]);I.mounted={}}function C(I,R){if(I._mayPointerCapture=null,u&&I._pointerCapturing^R){I._pointerCapturing=R;var E=I._globalHandlerScope;R?w(I,E):T(E)}}function M(I,R){this.domTarget=I,this.domHandlers=R,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function L(I,R){o.call(this),this.dom=I,this.painterRoot=R,this._localHandlerScope=new M(I,x),u&&(this._globalHandlerScope=new M(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,b(this,this._localHandlerScope)}var D=L.prototype;D.dispose=function(){T(this._localHandlerScope),u&&T(this._globalHandlerScope)},D.setCursor=function(I){this.dom.style&&(this.dom.style.cursor=I||"default")},n.mixin(L,o);var P=L;return L0=P,L0}var yO;function vg(){if(yO)return Ko;yO=1;var r=S9(),t=pr(),e=ie(),a=Cpe(),i=Ipe(),n=Rpe(),o=Epe(),s=kpe();var l=!t.canvasSupported,u={canvas:n},v={},h="4.3.2";function f(y,_){var x=new m(r(),y,_);return v[x.id]=x,x}function c(y){if(y)y.dispose();else{for(var _ in v)v.hasOwnProperty(_)&&v[_].dispose();v={}}return this}function d(y){return v[y]}function p(y,_){u[y]=_}function g(y){delete v[y]}var m=function(y,_,x){x=x||{},this.dom=_,this.id=y;var S=this,b=new i,w=x.renderer;if(l){if(!u.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");w="vml"}else(!w||!u[w])&&(w="canvas");var A=new u[w](_,b,x,y);this.storage=b,this.painter=A;var T=!t.node&&!t.worker?new s(A.getViewportRoot(),A.root):null;this.handler=new a(b,A,T,A.root),this.animation=new o({stage:{update:e.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var C=b.delFromStorage,M=b.addToStorage;b.delFromStorage=function(L){C.call(b,L),L&&L.removeSelfFromZr(S)},b.addToStorage=function(L){M.call(b,L),L.addSelfToZr(S)}};return m.prototype={constructor:m,getId:function(){return this.id},add:function(y){this.storage.addRoot(y),this._needsRefresh=!0},remove:function(y){this.storage.delRoot(y),this._needsRefresh=!0},configLayer:function(y,_){this.painter.configLayer&&this.painter.configLayer(y,_),this._needsRefresh=!0},setBackgroundColor:function(y){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(y),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var y;this._needsRefresh&&(y=!0,this.refreshImmediately()),this._needsRefreshHover&&(y=!0,this.refreshHoverImmediately()),y&&this.trigger("rendered")},addHover:function(y,_){if(this.painter.addHover){var x=this.painter.addHover(y,_);return this.refreshHover(),x}},removeHover:function(y){this.painter.removeHover&&(this.painter.removeHover(y),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(y){y=y||{},this.painter.resize(y.width,y.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(y,_){return this.painter.pathToImage(y,_)},setCursorStyle:function(y){this.handler.setCursorStyle(y)},findHover:function(y,_){return this.handler.findHover(y,_)},on:function(y,_,x){this.handler.on(y,_,x)},off:function(y,_){this.handler.off(y,_)},trigger:function(y,_){this.handler.trigger(y,_)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,g(this.id)}},Ko.version=h,Ko.init=f,Ko.dispose=c,Ko.getInstance=d,Ko.registerPainter=p,Ko}var Sr={},_O;function _t(){if(_O)return Sr;_O=1;var r=ie(),t=pr(),e=r.each,a=r.isObject,i=r.isArray,n="series\0";function o(T){return T instanceof Array?T:T==null?[]:[T]}function s(T,C,M){if(T){T[C]=T[C]||{},T.emphasis=T.emphasis||{},T.emphasis[C]=T.emphasis[C]||{};for(var L=0,D=M.length;L<D;L++){var P=M[L];!T.emphasis[C].hasOwnProperty(P)&&T[C].hasOwnProperty(P)&&(T.emphasis[C][P]=T[C][P])}}}var l=["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 u(T){return a(T)&&!i(T)&&!(T instanceof Date)?T.value:T}function v(T){return a(T)&&!(T instanceof Array)}function h(T,C){C=(C||[]).slice();var M=r.map(T||[],function(L,D){return{exist:L}});return e(C,function(L,D){if(a(L)){for(var P=0;P<M.length;P++)if(!M[P].option&&L.id!=null&&M[P].exist.id===L.id+""){M[P].option=L,C[D]=null;return}for(var P=0;P<M.length;P++){var I=M[P].exist;if(!M[P].option&&(I.id==null||L.id==null)&&L.name!=null&&!d(L)&&!d(I)&&I.name===L.name+""){M[P].option=L,C[D]=null;return}}}}),e(C,function(L,D){if(a(L)){for(var P=0;P<M.length;P++){var I=M[P].exist;if(!M[P].option&&!d(I)&&L.id==null){M[P].option=L;break}}P>=M.length&&M.push({option:L})}}),M}function f(T){var C=r.createHashMap();e(T,function(M,L){var D=M.exist;D&&C.set(D.id,M)}),e(T,function(M,L){var D=M.option;r.assert(!D||D.id==null||!C.get(D.id)||C.get(D.id)===M,"id duplicates: "+(D&&D.id)),D&&D.id!=null&&C.set(D.id,M),!M.keyInfo&&(M.keyInfo={})}),e(T,function(M,L){var D=M.exist,P=M.option,I=M.keyInfo;if(a(P)){if(I.name=P.name!=null?P.name+"":D?D.name:n+L,D)I.id=D.id;else if(P.id!=null)I.id=P.id+"";else{var R=0;do I.id="\0"+I.name+"\0"+R++;while(C.get(I.id))}C.set(I.id,M)}})}function c(T){var C=T.name;return!!(C&&C.indexOf(n))}function d(T){return a(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function p(T,C){var M={},L={};return D(T||[],M),D(C||[],L,M),[P(M),P(L)];function D(I,R,E){for(var k=0,B=I.length;k<B;k++)for(var F=I[k].seriesId,V=o(I[k].dataIndex),N=E&&E[F],O=0,z=V.length;O<z;O++){var G=V[O];N&&N[G]?N[G]=null:(R[F]||(R[F]={}))[G]=1}}function P(I,R){var E=[];for(var k in I)if(I.hasOwnProperty(k)&&I[k]!=null)if(R)E.push(+k);else{var B=P(I[k],!0);B.length&&E.push({seriesId:k,dataIndex:B})}return E}}function g(T,C){if(C.dataIndexInside!=null)return C.dataIndexInside;if(C.dataIndex!=null)return r.isArray(C.dataIndex)?r.map(C.dataIndex,function(M){return T.indexOfRawIndex(M)}):T.indexOfRawIndex(C.dataIndex);if(C.name!=null)return r.isArray(C.name)?r.map(C.name,function(M){return T.indexOfName(M)}):T.indexOfName(C.name)}function m(){var T="__\0ec_inner_"+y+++"_"+Math.random().toFixed(5);return function(C){return C[T]||(C[T]={})}}var y=0;function _(T,C,M){if(r.isString(C)){var L={};L[C+"Index"]=0,C=L}var D=M&&M.defaultMainType;D&&!x(C,D+"Index")&&!x(C,D+"Id")&&!x(C,D+"Name")&&(C[D+"Index"]=0);var P={};return e(C,function(E,R){var E=C[R];if(R==="dataIndex"||R==="dataIndexInside"){P[R]=E;return}var k=R.match(/^(\w+)(Index|Id|Name)$/)||[],B=k[1],F=(k[2]||"").toLowerCase();if(!(!B||!F||E==null||F==="index"&&E==="none"||M&&M.includeMainTypes&&r.indexOf(M.includeMainTypes,B)<0)){var V={mainType:B};(F!=="index"||E!=="all")&&(V[F]=E);var N=T.queryComponents(V);P[B+"Models"]=N,P[B+"Model"]=N[0]}}),P}function x(T,C){return T&&T.hasOwnProperty(C)}function S(T,C,M){T.setAttribute?T.setAttribute(C,M):T[C]=M}function b(T,C){return T.getAttribute?T.getAttribute(C):T[C]}function w(T){return T==="auto"?t.domSupported?"html":"richText":T||"html"}function A(T,C){var M=r.createHashMap(),L=[];return r.each(T,function(D){var P=C(D);(M.get(P)||(L.push(P),M.set(P,[]))).push(D)}),{keys:L,buckets:M}}return Sr.normalizeToArray=o,Sr.defaultEmphasis=s,Sr.TEXT_STYLE_OPTIONS=l,Sr.getDataItemValue=u,Sr.isDataItemOption=v,Sr.mappingToExists=h,Sr.makeIdAndName=f,Sr.isNameSpecified=c,Sr.isIdInner=d,Sr.compressBatches=p,Sr.queryDataIndex=g,Sr.makeInner=m,Sr.parseFinder=_,Sr.setAttribute=S,Sr.getAttribute=b,Sr.getTooltipRenderMode=w,Sr.groupData=A,Sr}var Qo={},xO;function Dn(){if(xO)return Qo;xO=1;var r=It();r.__DEV__;var t=ie(),e=".",a="___EC__COMPONENT__CONTAINER___";function i(c){var d={main:"",sub:""};return c&&(c=c.split(e),d.main=c[0]||"",d.sub=c[1]||""),d}function n(c){t.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(c),'componentType "'+c+'" illegal')}function o(c,d){c.$constructor=c,c.extend=function(p){var g=this,m=function(){p.$constructor?p.$constructor.apply(this,arguments):g.apply(this,arguments)};return t.extend(m.prototype,p),m.extend=this.extend,m.superCall=u,m.superApply=v,t.inherits(m,this),m.superClass=g,m}}var s=0;function l(c){var d=["__\0is_clz",s++,Math.random().toFixed(3)].join("_");c.prototype[d]=!0,c.isInstance=function(p){return!!(p&&p[d])}}function u(c,d){var p=t.slice(arguments,2);return this.superClass.prototype[d].apply(c,p)}function v(c,d,p){return this.superClass.prototype[d].apply(c,p)}function h(c,d){d=d||{};var p={};c.registerClass=function(y,_){if(_){if(n(_),_=i(_),!_.sub)p[_.main]=y;else if(_.sub!==a){var x=g(_);x[_.sub]=y}}return y},c.getClass=function(y,_,x){var S=p[y];if(S&&S[a]&&(S=_?S[_]:null),x&&!S)throw new Error(_?"Component "+y+"."+(_||"")+" not exists. Load it first.":y+".type should be specified.");return S},c.getClassesByMainType=function(y){y=i(y);var _=[],x=p[y.main];return x&&x[a]?t.each(x,function(S,b){b!==a&&_.push(S)}):_.push(x),_},c.hasClass=function(y){return y=i(y),!!p[y.main]},c.getAllClassMainTypes=function(){var y=[];return t.each(p,function(_,x){y.push(x)}),y},c.hasSubTypes=function(y){y=i(y);var _=p[y.main];return _&&_[a]},c.parseClassType=i;function g(y){var _=p[y.main];return(!_||!_[a])&&(_=p[y.main]={},_[a]=!0),_}if(d.registerWhenExtend){var m=c.extend;m&&(c.extend=function(y){var _=m.call(this,y);return c.registerClass(_,y.type)})}return c}function f(c,d){}return Qo.parseClassType=i,Qo.enableClassExtend=o,Qo.enableClassCheck=l,Qo.enableClassManagement=h,Qo.setReadOnly=f,Qo}var I0,SO;function Tu(){if(SO)return I0;SO=1;var r=ie();function t(e){for(var a=0;a<e.length;a++)e[a][1]||(e[a][1]=e[a][0]);return function(i,n,o){for(var s={},l=0;l<e.length;l++){var u=e[l][1];if(!(n&&r.indexOf(n,u)>=0||o&&r.indexOf(o,u)<0)){var v=i.getShallow(u);v!=null&&(s[e[l][0]]=v)}}return s}}return I0=t,I0}var P0,bO;function Ope(){if(bO)return P0;bO=1;var r=Tu(),t=r([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),e={getLineStyle:function(a){var i=t(this,a);return i.lineDash=this.getLineDash(i.lineWidth),i},getLineDash:function(a){a==null&&(a=1);var i=this.get("type"),n=Math.max(a,2),o=a*4;return i==="solid"||i==null?!1:i==="dashed"?[o,o]:[n,n]}};return P0=e,P0}var R0,wO;function Npe(){if(wO)return R0;wO=1;var r=Tu(),t=r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),e={getAreaStyle:function(a,i){return t(this,a,i)}};return R0=e,R0}var it={},hv={},pa={},TO;function yo(){if(TO)return pa;TO=1;var r=Jt(),t=r.create,e=r.distSquare,a=Math.pow,i=Math.sqrt,n=1e-8,o=1e-4,s=i(3),l=1/3,u=t(),v=t(),h=t();function f(C){return C>-n&&C<n}function c(C){return C>n||C<-n}function d(C,M,L,D,P){var I=1-P;return I*I*(I*C+3*P*M)+P*P*(P*D+3*I*L)}function p(C,M,L,D,P){var I=1-P;return 3*(((M-C)*I+2*(L-M)*P)*I+(D-L)*P*P)}function g(C,M,L,D,P,I){var R=D+3*(M-L)-C,E=3*(L-M*2+C),k=3*(M-C),B=C-P,F=E*E-3*R*k,V=E*k-9*R*B,N=k*k-3*E*B,O=0;if(f(F)&&f(V))if(f(E))I[0]=0;else{var z=-k/E;z>=0&&z<=1&&(I[O++]=z)}else{var G=V*V-4*F*N;if(f(G)){var q=V/F,z=-E/R+q,H=-q/2;z>=0&&z<=1&&(I[O++]=z),H>=0&&H<=1&&(I[O++]=H)}else if(G>0){var U=i(G),W=F*E+1.5*R*(-V+U),Y=F*E+1.5*R*(-V-U);W<0?W=-a(-W,l):W=a(W,l),Y<0?Y=-a(-Y,l):Y=a(Y,l);var z=(-E-(W+Y))/(3*R);z>=0&&z<=1&&(I[O++]=z)}else{var X=(2*F*E-3*R*V)/(2*i(F*F*F)),K=Math.acos(X)/3,Q=i(F),j=Math.cos(K),z=(-E-2*Q*j)/(3*R),H=(-E+Q*(j+s*Math.sin(K)))/(3*R),te=(-E+Q*(j-s*Math.sin(K)))/(3*R);z>=0&&z<=1&&(I[O++]=z),H>=0&&H<=1&&(I[O++]=H),te>=0&&te<=1&&(I[O++]=te)}}return O}function m(C,M,L,D,P){var I=6*L-12*M+6*C,R=9*M+3*D-3*C-9*L,E=3*M-3*C,k=0;if(f(R)){if(c(I)){var B=-E/I;B>=0&&B<=1&&(P[k++]=B)}}else{var F=I*I-4*R*E;if(f(F))P[0]=-I/(2*R);else if(F>0){var V=i(F),B=(-I+V)/(2*R),N=(-I-V)/(2*R);B>=0&&B<=1&&(P[k++]=B),N>=0&&N<=1&&(P[k++]=N)}}return k}function y(C,M,L,D,P,I){var R=(M-C)*P+C,E=(L-M)*P+M,k=(D-L)*P+L,B=(E-R)*P+R,F=(k-E)*P+E,V=(F-B)*P+B;I[0]=C,I[1]=R,I[2]=B,I[3]=V,I[4]=V,I[5]=F,I[6]=k,I[7]=D}function _(C,M,L,D,P,I,R,E,k,B,F){var V,N=.005,O=1/0,z,G,q,H;u[0]=k,u[1]=B;for(var U=0;U<1;U+=.05)v[0]=d(C,L,P,R,U),v[1]=d(M,D,I,E,U),q=e(u,v),q<O&&(V=U,O=q);O=1/0;for(var W=0;W<32&&!(N<o);W++)z=V-N,G=V+N,v[0]=d(C,L,P,R,z),v[1]=d(M,D,I,E,z),q=e(v,u),z>=0&&q<O?(V=z,O=q):(h[0]=d(C,L,P,R,G),h[1]=d(M,D,I,E,G),H=e(h,u),G<=1&&H<O?(V=G,O=H):N*=.5);return F&&(F[0]=d(C,L,P,R,V),F[1]=d(M,D,I,E,V)),i(O)}function x(C,M,L,D){var P=1-D;return P*(P*C+2*D*M)+D*D*L}function S(C,M,L,D){return 2*((1-D)*(M-C)+D*(L-M))}function b(C,M,L,D,P){var I=C-2*M+L,R=2*(M-C),E=C-D,k=0;if(f(I)){if(c(R)){var B=-E/R;B>=0&&B<=1&&(P[k++]=B)}}else{var F=R*R-4*I*E;if(f(F)){var B=-R/(2*I);B>=0&&B<=1&&(P[k++]=B)}else if(F>0){var V=i(F),B=(-R+V)/(2*I),N=(-R-V)/(2*I);B>=0&&B<=1&&(P[k++]=B),N>=0&&N<=1&&(P[k++]=N)}}return k}function w(C,M,L){var D=C+L-2*M;return D===0?.5:(C-M)/D}function A(C,M,L,D,P){var I=(M-C)*D+C,R=(L-M)*D+M,E=(R-I)*D+I;P[0]=C,P[1]=I,P[2]=E,P[3]=E,P[4]=R,P[5]=L}function T(C,M,L,D,P,I,R,E,k){var B,F=.005,V=1/0;u[0]=R,u[1]=E;for(var N=0;N<1;N+=.05){v[0]=x(C,L,P,N),v[1]=x(M,D,I,N);var O=e(u,v);O<V&&(B=N,V=O)}V=1/0;for(var z=0;z<32&&!(F<o);z++){var G=B-F,q=B+F;v[0]=x(C,L,P,G),v[1]=x(M,D,I,G);var O=e(v,u);if(G>=0&&O<V)B=G,V=O;else{h[0]=x(C,L,P,q),h[1]=x(M,D,I,q);var H=e(h,u);q<=1&&H<V?(B=q,V=H):F*=.5}}return k&&(k[0]=x(C,L,P,B),k[1]=x(M,D,I,B)),i(V)}return pa.cubicAt=d,pa.cubicDerivativeAt=p,pa.cubicRootAt=g,pa.cubicExtrema=m,pa.cubicSubdivide=y,pa.cubicProjectPoint=_,pa.quadraticAt=x,pa.quadraticDerivativeAt=S,pa.quadraticRootAt=b,pa.quadraticExtremum=w,pa.quadraticSubdivide=A,pa.quadraticProjectPoint=T,pa}var jo={},AO;function uf(){if(AO)return jo;AO=1;var r=Jt(),t=yo(),e=Math.min,a=Math.max,i=Math.sin,n=Math.cos,o=Math.PI*2,s=r.create(),l=r.create(),u=r.create();function v(m,y,_){if(m.length!==0){var x=m[0],S=x[0],b=x[0],w=x[1],A=x[1],T;for(T=1;T<m.length;T++)x=m[T],S=e(S,x[0]),b=a(b,x[0]),w=e(w,x[1]),A=a(A,x[1]);y[0]=S,y[1]=w,_[0]=b,_[1]=A}}function h(m,y,_,x,S,b){S[0]=e(m,_),S[1]=e(y,x),b[0]=a(m,_),b[1]=a(y,x)}var f=[],c=[];function d(m,y,_,x,S,b,w,A,T,C){var M=t.cubicExtrema,L=t.cubicAt,D,P=M(m,_,S,w,f);for(T[0]=1/0,T[1]=1/0,C[0]=-1/0,C[1]=-1/0,D=0;D<P;D++){var I=L(m,_,S,w,f[D]);T[0]=e(I,T[0]),C[0]=a(I,C[0])}for(P=M(y,x,b,A,c),D=0;D<P;D++){var R=L(y,x,b,A,c[D]);T[1]=e(R,T[1]),C[1]=a(R,C[1])}T[0]=e(m,T[0]),C[0]=a(m,C[0]),T[0]=e(w,T[0]),C[0]=a(w,C[0]),T[1]=e(y,T[1]),C[1]=a(y,C[1]),T[1]=e(A,T[1]),C[1]=a(A,C[1])}function p(m,y,_,x,S,b,w,A){var T=t.quadraticExtremum,C=t.quadraticAt,M=a(e(T(m,_,S),1),0),L=a(e(T(y,x,b),1),0),D=C(m,_,S,M),P=C(y,x,b,L);w[0]=e(m,S,D),w[1]=e(y,b,P),A[0]=a(m,S,D),A[1]=a(y,b,P)}function g(m,y,_,x,S,b,w,A,T){var C=r.min,M=r.max,L=Math.abs(S-b);if(L%o<1e-4&&L>1e-4){A[0]=m-_,A[1]=y-x,T[0]=m+_,T[1]=y+x;return}if(s[0]=n(S)*_+m,s[1]=i(S)*x+y,l[0]=n(b)*_+m,l[1]=i(b)*x+y,C(A,s,l),M(T,s,l),S=S%o,S<0&&(S=S+o),b=b%o,b<0&&(b=b+o),S>b&&!w?b+=o:S<b&&w&&(S+=o),w){var D=b;b=S,S=D}for(var P=0;P<b;P+=Math.PI/2)P>S&&(u[0]=n(P)*_+m,u[1]=i(P)*x+y,C(A,u,A),M(T,u,T))}return jo.fromPoints=v,jo.fromLine=h,jo.fromCubic=d,jo.fromQuadratic=p,jo.fromArc=g,jo}var E0,CO;function Au(){if(CO)return E0;CO=1;var r=yo(),t=Jt(),e=uf(),a=rr(),i=sg(),n=i.devicePixelRatio,o={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},s=[],l=[],u=[],v=[],h=Math.min,f=Math.max,c=Math.cos,d=Math.sin,p=Math.sqrt,g=Math.abs,m=typeof Float32Array<"u",y=function(x){this._saveData=!x,this._saveData&&(this.data=[]),this._ctx=null};y.prototype={constructor:y,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(x,S,b){b=b||0,this._ux=g(b/n/x)||0,this._uy=g(b/n/S)||0},getContext:function(){return this._ctx},beginPath:function(x){return this._ctx=x,x&&x.beginPath(),x&&(this.dpr=x.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(x,S){return this.addData(o.M,x,S),this._ctx&&this._ctx.moveTo(x,S),this._x0=x,this._y0=S,this._xi=x,this._yi=S,this},lineTo:function(x,S){var b=g(x-this._xi)>this._ux||g(S-this._yi)>this._uy||this._len<5;return this.addData(o.L,x,S),this._ctx&&b&&(this._needsDash()?this._dashedLineTo(x,S):this._ctx.lineTo(x,S)),b&&(this._xi=x,this._yi=S),this},bezierCurveTo:function(x,S,b,w,A,T){return this.addData(o.C,x,S,b,w,A,T),this._ctx&&(this._needsDash()?this._dashedBezierTo(x,S,b,w,A,T):this._ctx.bezierCurveTo(x,S,b,w,A,T)),this._xi=A,this._yi=T,this},quadraticCurveTo:function(x,S,b,w){return this.addData(o.Q,x,S,b,w),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(x,S,b,w):this._ctx.quadraticCurveTo(x,S,b,w)),this._xi=b,this._yi=w,this},arc:function(x,S,b,w,A,T){return this.addData(o.A,x,S,b,b,w,A-w,0,T?0:1),this._ctx&&this._ctx.arc(x,S,b,w,A,T),this._xi=c(A)*b+x,this._yi=d(A)*b+S,this},arcTo:function(x,S,b,w,A){return this._ctx&&this._ctx.arcTo(x,S,b,w,A),this},rect:function(x,S,b,w){return this._ctx&&this._ctx.rect(x,S,b,w),this.addData(o.R,x,S,b,w),this},closePath:function(){this.addData(o.Z);var x=this._ctx,S=this._x0,b=this._y0;return x&&(this._needsDash()&&this._dashedLineTo(S,b),x.closePath()),this._xi=S,this._yi=b,this},fill:function(x){x&&x.fill(),this.toStatic()},stroke:function(x){x&&x.stroke(),this.toStatic()},setLineDash:function(x){if(x instanceof Array){this._lineDash=x,this._dashIdx=0;for(var S=0,b=0;b<x.length;b++)S+=x[b];this._dashSum=S}return this},setLineDashOffset:function(x){return this._dashOffset=x,this},len:function(){return this._len},setData:function(x){var S=x.length;!(this.data&&this.data.length===S)&&m&&(this.data=new Float32Array(S));for(var b=0;b<S;b++)this.data[b]=x[b];this._len=S},appendPath:function(x){x instanceof Array||(x=[x]);for(var S=x.length,b=0,w=this._len,A=0;A<S;A++)b+=x[A].len();m&&this.data instanceof Float32Array&&(this.data=new Float32Array(w+b));for(var A=0;A<S;A++)for(var T=x[A].data,C=0;C<T.length;C++)this.data[w++]=T[C];this._len=w},addData:function(x){if(this._saveData){var S=this.data;this._len+arguments.length>S.length&&(this._expandData(),S=this.data);for(var b=0;b<arguments.length;b++)S[this._len++]=arguments[b];this._prevCmd=x}},_expandData:function(){if(!(this.data instanceof Array)){for(var x=[],S=0;S<this._len;S++)x[S]=this.data[S];this.data=x}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(x,S){var b=this._dashSum,w=this._dashOffset,A=this._lineDash,T=this._ctx,C=this._xi,M=this._yi,L=x-C,D=S-M,P=p(L*L+D*D),I=C,R=M,E,k=A.length,B;for(L/=P,D/=P,w<0&&(w=b+w),w%=b,I-=w*L,R-=w*D;L>0&&I<=x||L<0&&I>=x||L===0&&(D>0&&R<=S||D<0&&R>=S);)B=this._dashIdx,E=A[B],I+=L*E,R+=D*E,this._dashIdx=(B+1)%k,!(L>0&&I<C||L<0&&I>C||D>0&&R<M||D<0&&R>M)&&T[B%2?"moveTo":"lineTo"](L>=0?h(I,x):f(I,x),D>=0?h(R,S):f(R,S));L=I-x,D=R-S,this._dashOffset=-p(L*L+D*D)},_dashedBezierTo:function(x,S,b,w,A,T){var C=this._dashSum,M=this._dashOffset,L=this._lineDash,D=this._ctx,P=this._xi,I=this._yi,R,E,k,B=r.cubicAt,F=0,V=this._dashIdx,N=L.length,O,z,G=0;for(M<0&&(M=C+M),M%=C,R=0;R<1;R+=.1)E=B(P,x,b,A,R+.1)-B(P,x,b,A,R),k=B(I,S,w,T,R+.1)-B(I,S,w,T,R),F+=p(E*E+k*k);for(;V<N&&(G+=L[V],!(G>M));V++);for(R=(G-M)/F;R<=1;)O=B(P,x,b,A,R),z=B(I,S,w,T,R),V%2?D.moveTo(O,z):D.lineTo(O,z),R+=L[V]/F,V=(V+1)%N;V%2!==0&&D.lineTo(A,T),E=A-O,k=T-z,this._dashOffset=-p(E*E+k*k)},_dashedQuadraticTo:function(x,S,b,w){var A=b,T=w;b=(b+2*x)/3,w=(w+2*S)/3,x=(this._xi+2*x)/3,S=(this._yi+2*S)/3,this._dashedBezierTo(x,S,b,w,A,T)},toStatic:function(){var x=this.data;x instanceof Array&&(x.length=this._len,m&&(this.data=new Float32Array(x)))},getBoundingRect:function(){s[0]=s[1]=u[0]=u[1]=Number.MAX_VALUE,l[0]=l[1]=v[0]=v[1]=-Number.MAX_VALUE;for(var x=this.data,S=0,b=0,w=0,A=0,T=0;T<x.length;){var C=x[T++];switch(T===1&&(S=x[T],b=x[T+1],w=S,A=b),C){case o.M:w=x[T++],A=x[T++],S=w,b=A,u[0]=w,u[1]=A,v[0]=w,v[1]=A;break;case o.L:e.fromLine(S,b,x[T],x[T+1],u,v),S=x[T++],b=x[T++];break;case o.C:e.fromCubic(S,b,x[T++],x[T++],x[T++],x[T++],x[T],x[T+1],u,v),S=x[T++],b=x[T++];break;case o.Q:e.fromQuadratic(S,b,x[T++],x[T++],x[T],x[T+1],u,v),S=x[T++],b=x[T++];break;case o.A:var M=x[T++],L=x[T++],D=x[T++],P=x[T++],I=x[T++],R=x[T++]+I;T+=1;var E=1-x[T++];T===1&&(w=c(I)*D+M,A=d(I)*P+L),e.fromArc(M,L,D,P,I,R,E,u,v),S=c(R)*D+M,b=d(R)*P+L;break;case o.R:w=S=x[T++],A=b=x[T++];var k=x[T++],B=x[T++];e.fromLine(w,A,w+k,A+B,u,v);break;case o.Z:S=w,b=A;break}t.min(s,s,u),t.max(l,l,v)}return T===0&&(s[0]=s[1]=l[0]=l[1]=0),new a(s[0],s[1],l[0]-s[0],l[1]-s[1])},rebuildPath:function(x){for(var S=this.data,b,w,A,T,C,M,L=this._ux,D=this._uy,P=this._len,I=0;I<P;){var R=S[I++];switch(I===1&&(A=S[I],T=S[I+1],b=A,w=T),R){case o.M:b=A=S[I++],w=T=S[I++],x.moveTo(A,T);break;case o.L:C=S[I++],M=S[I++],(g(C-A)>L||g(M-T)>D||I===P-1)&&(x.lineTo(C,M),A=C,T=M);break;case o.C:x.bezierCurveTo(S[I++],S[I++],S[I++],S[I++],S[I++],S[I++]),A=S[I-2],T=S[I-1];break;case o.Q:x.quadraticCurveTo(S[I++],S[I++],S[I++],S[I++]),A=S[I-2],T=S[I-1];break;case o.A:var E=S[I++],k=S[I++],B=S[I++],F=S[I++],V=S[I++],N=S[I++],O=S[I++],z=S[I++],G=B>F?B:F,q=B>F?1:B/F,H=B>F?F/B:1,U=Math.abs(B-F)>.001,W=V+N;U?(x.translate(E,k),x.rotate(O),x.scale(q,H),x.arc(0,0,G,V,W,1-z),x.scale(1/q,1/H),x.rotate(-O),x.translate(-E,-k)):x.arc(E,k,G,V,W,1-z),I===1&&(b=c(V)*B+E,w=d(V)*F+k),A=c(W)*B+E,T=d(W)*F+k;break;case o.R:b=A=S[I],w=T=S[I+1],x.rect(S[I++],S[I++],S[I++],S[I++]);break;case o.Z:x.closePath(),A=b,T=w}}}},y.CMD=o;var _=y;return E0=_,E0}var Dc={},k0={},MO;function P9(){if(MO)return k0;MO=1;function r(t,e,a,i,n,o,s){if(n===0)return!1;var l=n,u=0,v=t;if(s>e+l&&s>i+l||s<e-l&&s<i-l||o>t+l&&o>a+l||o<t-l&&o<a-l)return!1;if(t!==a)u=(e-i)/(t-a),v=(t*i-a*e)/(t-a);else return Math.abs(o-t)<=l/2;var h=u*o-s+v,f=h*h/(u*u+1);return f<=l/2*l/2}return k0.containStroke=r,k0}var O0={},DO;function zpe(){if(DO)return O0;DO=1;var r=yo();function t(e,a,i,n,o,s,l,u,v,h,f){if(v===0)return!1;var c=v;if(f>a+c&&f>n+c&&f>s+c&&f>u+c||f<a-c&&f<n-c&&f<s-c&&f<u-c||h>e+c&&h>i+c&&h>o+c&&h>l+c||h<e-c&&h<i-c&&h<o-c&&h<l-c)return!1;var d=r.cubicProjectPoint(e,a,i,n,o,s,l,u,h,f,null);return d<=c/2}return O0.containStroke=t,O0}var N0={},LO;function R9(){if(LO)return N0;LO=1;var r=yo(),t=r.quadraticProjectPoint;function e(a,i,n,o,s,l,u,v,h){if(u===0)return!1;var f=u;if(h>i+f&&h>o+f&&h>l+f||h<i-f&&h<o-f&&h<l-f||v>a+f&&v>n+f&&v>s+f||v<a-f&&v<n-f&&v<s-f)return!1;var c=t(a,i,n,o,s,l,v,h,null);return c<=f/2}return N0.containStroke=e,N0}var z0={},B0={},IO;function E9(){if(IO)return B0;IO=1;var r=Math.PI*2;function t(e){return e%=r,e<0&&(e+=r),e}return B0.normalizeRadian=t,B0}var PO;function Bpe(){if(PO)return z0;PO=1;var r=E9(),t=r.normalizeRadian,e=Math.PI*2;function a(i,n,o,s,l,u,v,h,f){if(v===0)return!1;var c=v;h-=i,f-=n;var d=Math.sqrt(h*h+f*f);if(d-c>o||d+c<o)return!1;if(Math.abs(s-l)%e<1e-4)return!0;if(u){var p=s;s=t(l),l=t(p)}else s=t(s),l=t(l);s>l&&(l+=e);var g=Math.atan2(f,h);return g<0&&(g+=e),g>=s&&g<=l||g+e>=s&&g+e<=l}return z0.containStroke=a,z0}var V0,RO;function k9(){if(RO)return V0;RO=1;function r(t,e,a,i,n,o){if(o>e&&o>i||o<e&&o<i||i===e)return 0;var s=i<e?1:-1,l=(o-e)/(i-e);(l===1||l===0)&&(s=i<e?.5:-.5);var u=l*(a-t)+t;return u===n?1/0:u>n?s:0}return V0=r,V0}var EO;function Vpe(){if(EO)return Dc;EO=1;var r=Au(),t=P9(),e=zpe(),a=R9(),i=Bpe(),n=E9(),o=n.normalizeRadian,s=yo(),l=k9(),u=r.CMD,v=Math.PI*2,h=1e-4;function f(b,w){return Math.abs(b-w)<h}var c=[-1,-1,-1],d=[-1,-1];function p(){var b=d[0];d[0]=d[1],d[1]=b}function g(b,w,A,T,C,M,L,D,P,I){if(I>w&&I>T&&I>M&&I>D||I<w&&I<T&&I<M&&I<D)return 0;var R=s.cubicRootAt(w,T,M,D,I,c);if(R===0)return 0;for(var E=0,k=-1,B,F,V=0;V<R;V++){var N=c[V],O=N===0||N===1?.5:1,z=s.cubicAt(b,A,C,L,N);z<P||(k<0&&(k=s.cubicExtrema(w,T,M,D,d),d[1]<d[0]&&k>1&&p(),B=s.cubicAt(w,T,M,D,d[0]),k>1&&(F=s.cubicAt(w,T,M,D,d[1]))),k===2?N<d[0]?E+=B<w?O:-O:N<d[1]?E+=F<B?O:-O:E+=D<F?O:-O:N<d[0]?E+=B<w?O:-O:E+=D<B?O:-O)}return E}function m(b,w,A,T,C,M,L,D){if(D>w&&D>T&&D>M||D<w&&D<T&&D<M)return 0;var P=s.quadraticRootAt(w,T,M,D,c);if(P===0)return 0;var I=s.quadraticExtremum(w,T,M);if(I>=0&&I<=1){for(var R=0,E=s.quadraticAt(w,T,M,I),k=0;k<P;k++){var B=c[k]===0||c[k]===1?.5:1,F=s.quadraticAt(b,A,C,c[k]);F<L||(c[k]<I?R+=E<w?B:-B:R+=M<E?B:-B)}return R}else{var B=c[0]===0||c[0]===1?.5:1,F=s.quadraticAt(b,A,C,c[0]);return F<L?0:M<w?B:-B}}function y(b,w,A,T,C,M,L,D){if(D-=w,D>A||D<-A)return 0;var P=Math.sqrt(A*A-D*D);c[0]=-P,c[1]=P;var I=Math.abs(T-C);if(I<1e-4)return 0;if(I%v<1e-4){T=0,C=v;var R=M?1:-1;return L>=c[0]+b&&L<=c[1]+b?R:0}if(M){var P=T;T=o(C),C=o(P)}else T=o(T),C=o(C);T>C&&(C+=v);for(var E=0,k=0;k<2;k++){var B=c[k];if(B+b>L){var F=Math.atan2(D,B),R=M?1:-1;F<0&&(F=v+F),(F>=T&&F<=C||F+v>=T&&F+v<=C)&&(F>Math.PI/2&&F<Math.PI*1.5&&(R=-R),E+=R)}}return E}function _(b,w,A,T,C){for(var M=0,L=0,D=0,P=0,I=0,R=0;R<b.length;){var E=b[R++];switch(E===u.M&&R>1&&(A||(M+=l(L,D,P,I,T,C))),R===1&&(L=b[R],D=b[R+1],P=L,I=D),E){case u.M:P=b[R++],I=b[R++],L=P,D=I;break;case u.L:if(A){if(t.containStroke(L,D,b[R],b[R+1],w,T,C))return!0}else M+=l(L,D,b[R],b[R+1],T,C)||0;L=b[R++],D=b[R++];break;case u.C:if(A){if(e.containStroke(L,D,b[R++],b[R++],b[R++],b[R++],b[R],b[R+1],w,T,C))return!0}else M+=g(L,D,b[R++],b[R++],b[R++],b[R++],b[R],b[R+1],T,C)||0;L=b[R++],D=b[R++];break;case u.Q:if(A){if(a.containStroke(L,D,b[R++],b[R++],b[R],b[R+1],w,T,C))return!0}else M+=m(L,D,b[R++],b[R++],b[R],b[R+1],T,C)||0;L=b[R++],D=b[R++];break;case u.A:var k=b[R++],B=b[R++],F=b[R++],V=b[R++],N=b[R++],O=b[R++];R+=1;var z=1-b[R++],U=Math.cos(N)*F+k,W=Math.sin(N)*V+B;R>1?M+=l(L,D,U,W,T,C):(P=U,I=W);var G=(T-k)*V/F+k;if(A){if(i.containStroke(k,B,V,N,N+O,z,w,G,C))return!0}else M+=y(k,B,V,N,N+O,z,G,C);L=Math.cos(N+O)*F+k,D=Math.sin(N+O)*V+B;break;case u.R:P=L=b[R++],I=D=b[R++];var q=b[R++],H=b[R++],U=P+q,W=I+H;if(A){if(t.containStroke(P,I,U,I,w,T,C)||t.containStroke(U,I,U,W,w,T,C)||t.containStroke(U,W,P,W,w,T,C)||t.containStroke(P,W,P,I,w,T,C))return!0}else M+=l(U,I,U,W,T,C),M+=l(P,W,P,I,T,C);break;case u.Z:if(A){if(t.containStroke(L,D,P,I,w,T,C))return!0}else M+=l(L,D,P,I,T,C);L=P,D=I;break}}return!A&&!f(D,I)&&(M+=l(L,D,P,I,T,C)||0),M!==0}function x(b,w,A){return _(b,0,!1,w,A)}function S(b,w,A,T){return _(b,w,!0,A,T)}return Dc.contain=x,Dc.containStroke=S,Dc}var G0,kO;function ur(){if(kO)return G0;kO=1;var r=lf(),t=ie(),e=Au(),a=Vpe(),i=M9(),n=i.prototype.getCanvasPattern,o=Math.abs,s=new e(!0);function l(v){r.call(this,v),this.path=null}l.prototype={constructor:l,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(v,h){var f=this.style,c=this.path||s,d=f.hasStroke(),p=f.hasFill(),g=f.fill,m=f.stroke,y=p&&!!g.colorStops,_=d&&!!m.colorStops,x=p&&!!g.image,S=d&&!!m.image;if(f.bind(v,this,h),this.setTransform(v),this.__dirty){var b;y&&(b=b||this.getBoundingRect(),this._fillGradient=f.getGradient(v,g,b)),_&&(b=b||this.getBoundingRect(),this._strokeGradient=f.getGradient(v,m,b))}y?v.fillStyle=this._fillGradient:x&&(v.fillStyle=n.call(g,v)),_?v.strokeStyle=this._strokeGradient:S&&(v.strokeStyle=n.call(m,v));var w=f.lineDash,A=f.lineDashOffset,T=!!v.setLineDash,C=this.getGlobalScale();if(c.setScale(C[0],C[1],this.segmentIgnoreThreshold),this.__dirtyPath||w&&!T&&d?(c.beginPath(v),w&&!T&&(c.setLineDash(w),c.setLineDashOffset(A)),this.buildPath(c,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(v.beginPath(),this.path.rebuildPath(v)),p)if(f.fillOpacity!=null){var M=v.globalAlpha;v.globalAlpha=f.fillOpacity*f.opacity,c.fill(v),v.globalAlpha=M}else c.fill(v);if(w&&T&&(v.setLineDash(w),v.lineDashOffset=A),d)if(f.strokeOpacity!=null){var M=v.globalAlpha;v.globalAlpha=f.strokeOpacity*f.opacity,c.stroke(v),v.globalAlpha=M}else c.stroke(v);w&&T&&v.setLineDash([]),f.text!=null&&(this.restoreTransform(v),this.drawRectText(v,this.getBoundingRect()))},buildPath:function(v,h,f){},createPathProxy:function(){this.path=new e},getBoundingRect:function(){var v=this._rect,h=this.style,f=!v;if(f){var c=this.path;c||(c=this.path=new e),this.__dirtyPath&&(c.beginPath(),this.buildPath(c,this.shape,!1)),v=c.getBoundingRect()}if(this._rect=v,h.hasStroke()){var d=this._rectWithStroke||(this._rectWithStroke=v.clone());if(this.__dirty||f){d.copy(v);var p=h.lineWidth,g=h.strokeNoScale?this.getLineScale():1;h.hasFill()||(p=Math.max(p,this.strokeContainThreshold||4)),g>1e-10&&(d.width+=p/g,d.height+=p/g,d.x-=p/g/2,d.y-=p/g/2)}return d}return v},contain:function(v,h){var f=this.transformCoordToLocal(v,h),c=this.getBoundingRect(),d=this.style;if(v=f[0],h=f[1],c.contain(v,h)){var p=this.path.data;if(d.hasStroke()){var g=d.lineWidth,m=d.strokeNoScale?this.getLineScale():1;if(m>1e-10&&(d.hasFill()||(g=Math.max(g,this.strokeContainThreshold)),a.containStroke(p,g/m,v,h)))return!0}if(d.hasFill())return a.contain(p,v,h)}return!1},dirty:function(v){v==null&&(v=!0),v&&(this.__dirtyPath=v,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(v){return this.animate("shape",v)},attrKV:function(v,h){v==="shape"?(this.setShape(h),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,v,h)},setShape:function(v,h){var f=this.shape;if(f){if(t.isObject(v))for(var c in v)v.hasOwnProperty(c)&&(f[c]=v[c]);else f[v]=h;this.dirty(!0)}return this},getLineScale:function(){var v=this.transform;return v&&o(v[0]-1)>1e-10&&o(v[3]-1)>1e-10?Math.sqrt(o(v[0]*v[3]-v[2]*v[1])):1}},l.extend=function(v){var h=function(c){l.call(this,c),v.style&&this.style.extendFrom(v.style,!1);var d=v.shape;if(d){this.shape=this.shape||{};var p=this.shape;for(var g in d)!p.hasOwnProperty(g)&&d.hasOwnProperty(g)&&(p[g]=d[g])}v.init&&v.init.call(this,c)};t.inherits(h,l);for(var f in v)f!=="style"&&f!=="shape"&&(h.prototype[f]=v[f]);return h},t.inherits(l,r);var u=l;return G0=u,G0}var F0,OO;function Gpe(){if(OO)return F0;OO=1;var r=Au(),t=Jt(),e=t.applyTransform,a=r.CMD,i=[[],[],[]],n=Math.sqrt,o=Math.atan2;function s(l,u){var v=l.data,h,f,c,d,p,g,m=a.M,y=a.C,_=a.L,x=a.R,S=a.A,b=a.Q;for(c=0,d=0;c<v.length;){switch(h=v[c++],d=c,f=0,h){case m:f=1;break;case _:f=1;break;case y:f=3;break;case b:f=2;break;case S:var w=u[4],A=u[5],T=n(u[0]*u[0]+u[1]*u[1]),C=n(u[2]*u[2]+u[3]*u[3]),M=o(-u[1]/C,u[0]/T);v[c]*=T,v[c++]+=w,v[c]*=C,v[c++]+=A,v[c++]*=T,v[c++]*=C,v[c++]+=M,v[c++]+=M,c+=2,d=c;break;case x:g[0]=v[c++],g[1]=v[c++],e(g,g,u),v[d++]=g[0],v[d++]=g[1],g[0]+=v[c++],g[1]+=v[c++],e(g,g,u),v[d++]=g[0],v[d++]=g[1]}for(p=0;p<f;p++){var g=i[p];g[0]=v[c++],g[1]=v[c++],e(g,g,u),v[d++]=g[0],v[d++]=g[1]}}}return F0=s,F0}var NO;function O9(){if(NO)return hv;NO=1;var r=ur(),t=Au(),e=Gpe(),a=Math.sqrt,i=Math.sin,n=Math.cos,o=Math.PI,s=function(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])},l=function(y,_){return(y[0]*_[0]+y[1]*_[1])/(s(y)*s(_))},u=function(y,_){return(y[0]*_[1]<y[1]*_[0]?-1:1)*Math.acos(l(y,_))};function v(y,_,x,S,b,w,A,T,C,M,L){var D=C*(o/180),P=n(D)*(y-x)/2+i(D)*(_-S)/2,I=-1*i(D)*(y-x)/2+n(D)*(_-S)/2,R=P*P/(A*A)+I*I/(T*T);R>1&&(A*=a(R),T*=a(R));var E=(b===w?-1:1)*a((A*A*(T*T)-A*A*(I*I)-T*T*(P*P))/(A*A*(I*I)+T*T*(P*P)))||0,k=E*A*I/T,B=E*-T*P/A,F=(y+x)/2+n(D)*k-i(D)*B,V=(_+S)/2+i(D)*k+n(D)*B,N=u([1,0],[(P-k)/A,(I-B)/T]),O=[(P-k)/A,(I-B)/T],z=[(-1*P-k)/A,(-1*I-B)/T],G=u(O,z);l(O,z)<=-1&&(G=o),l(O,z)>=1&&(G=0),w===0&&G>0&&(G=G-2*o),w===1&&G<0&&(G=G+2*o),L.addData(M,F,V,A,T,N,G,D,w)}var h=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function c(y){if(!y)return new t;for(var _=0,x=0,S=_,b=x,w,A=new t,T=t.CMD,C=y.match(h),M=0;M<C.length;M++){for(var L=C[M],D=L.charAt(0),P,I=L.match(f)||[],R=I.length,E=0;E<R;E++)I[E]=parseFloat(I[E]);for(var k=0;k<R;){var B,F,V,N,O,z,G,q=_,H=x;switch(D){case"l":_+=I[k++],x+=I[k++],P=T.L,A.addData(P,_,x);break;case"L":_=I[k++],x=I[k++],P=T.L,A.addData(P,_,x);break;case"m":_+=I[k++],x+=I[k++],P=T.M,A.addData(P,_,x),S=_,b=x,D="l";break;case"M":_=I[k++],x=I[k++],P=T.M,A.addData(P,_,x),S=_,b=x,D="L";break;case"h":_+=I[k++],P=T.L,A.addData(P,_,x);break;case"H":_=I[k++],P=T.L,A.addData(P,_,x);break;case"v":x+=I[k++],P=T.L,A.addData(P,_,x);break;case"V":x=I[k++],P=T.L,A.addData(P,_,x);break;case"C":P=T.C,A.addData(P,I[k++],I[k++],I[k++],I[k++],I[k++],I[k++]),_=I[k-2],x=I[k-1];break;case"c":P=T.C,A.addData(P,I[k++]+_,I[k++]+x,I[k++]+_,I[k++]+x,I[k++]+_,I[k++]+x),_+=I[k-2],x+=I[k-1];break;case"S":B=_,F=x;var U=A.len(),W=A.data;w===T.C&&(B+=_-W[U-4],F+=x-W[U-3]),P=T.C,q=I[k++],H=I[k++],_=I[k++],x=I[k++],A.addData(P,B,F,q,H,_,x);break;case"s":B=_,F=x;var U=A.len(),W=A.data;w===T.C&&(B+=_-W[U-4],F+=x-W[U-3]),P=T.C,q=_+I[k++],H=x+I[k++],_+=I[k++],x+=I[k++],A.addData(P,B,F,q,H,_,x);break;case"Q":q=I[k++],H=I[k++],_=I[k++],x=I[k++],P=T.Q,A.addData(P,q,H,_,x);break;case"q":q=I[k++]+_,H=I[k++]+x,_+=I[k++],x+=I[k++],P=T.Q,A.addData(P,q,H,_,x);break;case"T":B=_,F=x;var U=A.len(),W=A.data;w===T.Q&&(B+=_-W[U-4],F+=x-W[U-3]),_=I[k++],x=I[k++],P=T.Q,A.addData(P,B,F,_,x);break;case"t":B=_,F=x;var U=A.len(),W=A.data;w===T.Q&&(B+=_-W[U-4],F+=x-W[U-3]),_+=I[k++],x+=I[k++],P=T.Q,A.addData(P,B,F,_,x);break;case"A":V=I[k++],N=I[k++],O=I[k++],z=I[k++],G=I[k++],q=_,H=x,_=I[k++],x=I[k++],P=T.A,v(q,H,_,x,z,G,V,N,O,P,A);break;case"a":V=I[k++],N=I[k++],O=I[k++],z=I[k++],G=I[k++],q=_,H=x,_+=I[k++],x+=I[k++],P=T.A,v(q,H,_,x,z,G,V,N,O,P,A);break}}(D==="z"||D==="Z")&&(P=T.Z,A.addData(P),_=S,x=b),w=P}return A.toStatic(),A}function d(y,_){var x=c(y);return _=_||{},_.buildPath=function(S){if(S.setData){S.setData(x.data);var b=S.getContext();b&&S.rebuildPath(b)}else{var b=S;x.rebuildPath(b)}},_.applyTransform=function(S){e(x,S),this.dirty(!0)},_}function p(y,_){return new r(d(y,_))}function g(y,_){return r.extend(d(y,_))}function m(y,_){for(var x=[],S=y.length,b=0;b<S;b++){var w=y[b];w.path||w.createPathProxy(),w.__dirtyPath&&w.buildPath(w.path,w.shape,!0),x.push(w.path)}var A=new r(_);return A.createPathProxy(),A.buildPath=function(T){T.appendPath(x);var C=T.getContext();C&&T.rebuildPath(C)},A}return hv.createFromString=p,hv.extendFromString=g,hv.mergePath=m,hv}var H0,zO;function $s(){if(zO)return H0;zO=1;var r=lf(),t=ie(),e=Da(),a=ug(),i=lg(),n=i.ContextCachedBy,o=function(l){r.call(this,l)};o.prototype={constructor:o,type:"text",brush:function(l,u){var v=this.style;this.__dirty&&a.normalizeTextStyle(v,!0),v.fill=v.stroke=v.shadowBlur=v.shadowColor=v.shadowOffsetX=v.shadowOffsetY=null;var h=v.text;if(h!=null&&(h+=""),!a.needDrawText(h,v)){l.__attrCachedBy=n.NONE;return}this.setTransform(l),a.renderText(this,l,h,v,null,u),this.restoreTransform(l)},getBoundingRect:function(){var l=this.style;if(this.__dirty&&a.normalizeTextStyle(l,!0),!this._rect){l.text;var u=e.getBoundingRect(l.text+"",l.font,l.textAlign,l.textVerticalAlign,l.textPadding,l.textLineHeight,l.rich);if(u.x+=l.x||0,u.y+=l.y||0,a.getStroke(l.textStroke,l.textStrokeWidth)){var v=l.textStrokeWidth;u.x-=v/2,u.y-=v/2,u.width+=v,u.height+=v}this._rect=u}return this._rect}},t.inherits(o,r);var s=o;return H0=s,H0}var q0,BO;function N9(){if(BO)return q0;BO=1;var r=ur(),t=r.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,a,i){i&&e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2,!0)}});return q0=t,q0}var W0,VO;function z9(){if(VO)return W0;VO=1;var r=pr(),t=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function e(a){return r.browser.ie&&r.browser.version>=11?function(){var i=this.__clipPaths,n=this.style,o;if(i)for(var s=0;s<i.length;s++){var l=i[s],u=l&&l.shape,v=l&&l.type;if(u&&(v==="sector"&&u.startAngle===u.endAngle||v==="rect"&&(!u.width||!u.height))){for(var h=0;h<t.length;h++)t[h][2]=n[t[h][0]],n[t[h][0]]=t[h][1];o=!0;break}}if(a.apply(this,arguments),o)for(var h=0;h<t.length;h++)n[t[h][0]]=t[h][2]}:a}return W0=e,W0}var U0,GO;function Fpe(){if(GO)return U0;GO=1;var r=ur(),t=z9(),e=r.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:t(r.prototype.brush),buildPath:function(a,i){var n=i.cx,o=i.cy,s=Math.max(i.r0||0,0),l=Math.max(i.r,0),u=i.startAngle,v=i.endAngle,h=i.clockwise,f=Math.cos(u),c=Math.sin(u);a.moveTo(f*s+n,c*s+o),a.lineTo(f*l+n,c*l+o),a.arc(n,o,l,u,v,!h),a.lineTo(Math.cos(v)*s+n,Math.sin(v)*s+o),s!==0&&a.arc(n,o,s,v,u,h),a.closePath()}});return U0=e,U0}var $0,FO;function Hpe(){if(FO)return $0;FO=1;var r=ur(),t=r.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,a){var i=a.cx,n=a.cy,o=Math.PI*2;e.moveTo(i+a.r,n),e.arc(i,n,a.r,0,o,!1),e.moveTo(i+a.r0,n),e.arc(i,n,a.r0,0,o,!0)}});return $0=t,$0}var Y0={},Z0,HO;function qpe(){if(HO)return Z0;HO=1;var r=Jt(),t=r.distance;function e(i,n,o,s,l,u,v){var h=(o-i)*.5,f=(s-n)*.5;return(2*(n-o)+h+f)*v+(-3*(n-o)-2*h-f)*u+h*l+n}function a(i,n){for(var o=i.length,s=[],l=0,u=1;u<o;u++)l+=t(i[u-1],i[u]);var v=l/2;v=v<o?o:v;for(var u=0;u<v;u++){var h=u/(v-1)*(n?o:o-1),f=Math.floor(h),c=h-f,d,p=i[f%o],g,m;n?(d=i[(f-1+o)%o],g=i[(f+1)%o],m=i[(f+2)%o]):(d=i[f===0?f:f-1],g=i[f>o-2?o-1:f+1],m=i[f>o-3?o-1:f+2]);var y=c*c,_=c*y;s.push([e(d[0],p[0],g[0],m[0],c,y,_),e(d[1],p[1],g[1],m[1],c,y,_)])}return s}return Z0=a,Z0}var X0,qO;function Wpe(){if(qO)return X0;qO=1;var r=Jt(),t=r.min,e=r.max,a=r.scale,i=r.distance,n=r.add,o=r.clone,s=r.sub;function l(u,v,h,f){var c=[],d=[],p=[],g=[],m,y,_,x;if(f){_=[1/0,1/0],x=[-1/0,-1/0];for(var S=0,b=u.length;S<b;S++)t(_,_,u[S]),e(x,x,u[S]);t(_,_,f[0]),e(x,x,f[1])}for(var S=0,b=u.length;S<b;S++){var w=u[S];if(h)m=u[S?S-1:b-1],y=u[(S+1)%b];else if(S===0||S===b-1){c.push(o(u[S]));continue}else m=u[S-1],y=u[S+1];s(d,y,m),a(d,d,v);var A=i(w,m),T=i(w,y),C=A+T;C!==0&&(A/=C,T/=C),a(p,d,-A),a(g,d,T);var M=n([],w,p),L=n([],w,g);f&&(e(M,M,_),t(M,M,x),e(L,L,_),t(L,L,x)),c.push(M),c.push(L)}return h&&c.push(c.shift()),c}return X0=l,X0}var WO;function B9(){if(WO)return Y0;WO=1;var r=qpe(),t=Wpe();function e(a,i,n){var o=i.points,s=i.smooth;if(o&&o.length>=2){if(s&&s!=="spline"){var l=t(o,s,n,i.smoothConstraint);a.moveTo(o[0][0],o[0][1]);for(var u=o.length,v=0;v<(n?u:u-1);v++){var h=l[v*2],f=l[v*2+1],c=o[(v+1)%u];a.bezierCurveTo(h[0],h[1],f[0],f[1],c[0],c[1])}}else{s==="spline"&&(o=r(o,n)),a.moveTo(o[0][0],o[0][1]);for(var v=1,d=o.length;v<d;v++)a.lineTo(o[v][0],o[v][1])}n&&a.closePath()}}return Y0.buildPath=e,Y0}var K0,UO;function V9(){if(UO)return K0;UO=1;var r=ur(),t=B9(),e=r.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(a,i){t.buildPath(a,i,!0)}});return K0=e,K0}var Q0,$O;function G9(){if($O)return Q0;$O=1;var r=ur(),t=B9(),e=r.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(a,i){t.buildPath(a,i,!1)}});return Q0=e,Q0}var fv={},YO;function JM(){if(YO)return fv;YO=1;var r=Math.round;function t(i,n,o){if(n){var s=n.x1,l=n.x2,u=n.y1,v=n.y2;i.x1=s,i.x2=l,i.y1=u,i.y2=v;var h=o&&o.lineWidth;h&&(r(s*2)===r(l*2)&&(i.x1=i.x2=a(s,h,!0)),r(u*2)===r(v*2)&&(i.y1=i.y2=a(u,h,!0)))}}function e(i,n,o){if(n){var s=n.x,l=n.y,u=n.width,v=n.height;i.x=s,i.y=l,i.width=u,i.height=v;var h=o&&o.lineWidth;h&&(i.x=a(s,h,!0),i.y=a(l,h,!0),i.width=Math.max(a(s+u,h,!1)-i.x,u===0?0:1),i.height=Math.max(a(l+v,h,!1)-i.y,v===0?0:1))}}function a(i,n,o){if(!n)return i;var s=r(i*2);return(s+r(n))%2===0?s/2:(s+(o?1:-1))/2}return fv.subPixelOptimizeLine=t,fv.subPixelOptimizeRect=e,fv.subPixelOptimize=a,fv}var j0,ZO;function eD(){if(ZO)return j0;ZO=1;var r=ur(),t=L9(),e=JM(),a=e.subPixelOptimizeRect,i={},n=r.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(o,s){var l,u,v,h;this.subPixelOptimize?(a(i,s,this.style),l=i.x,u=i.y,v=i.width,h=i.height,i.r=s.r,s=i):(l=s.x,u=s.y,v=s.width,h=s.height),s.r?t.buildPath(o,s):o.rect(l,u,v,h),o.closePath()}});return j0=n,j0}var J0,XO;function F9(){if(XO)return J0;XO=1;var r=ur(),t=JM(),e=t.subPixelOptimizeLine,a={},i=r.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(n,o){var s,l,u,v;this.subPixelOptimize?(e(a,o,this.style),s=a.x1,l=a.y1,u=a.x2,v=a.y2):(s=o.x1,l=o.y1,u=o.x2,v=o.y2);var h=o.percent;h!==0&&(n.moveTo(s,l),h<1&&(u=s*(1-h)+u*h,v=l*(1-h)+v*h),n.lineTo(u,v))},pointAt:function(n){var o=this.shape;return[o.x1*(1-n)+o.x2*n,o.y1*(1-n)+o.y2*n]}});return J0=i,J0}var e_,KO;function Upe(){if(KO)return e_;KO=1;var r=ur(),t=Jt(),e=yo(),a=e.quadraticSubdivide,i=e.cubicSubdivide,n=e.quadraticAt,o=e.cubicAt,s=e.quadraticDerivativeAt,l=e.cubicDerivativeAt,u=[];function v(f,c,d){var p=f.cpx2,g=f.cpy2;return p===null||g===null?[(d?l:o)(f.x1,f.cpx1,f.cpx2,f.x2,c),(d?l:o)(f.y1,f.cpy1,f.cpy2,f.y2,c)]:[(d?s:n)(f.x1,f.cpx1,f.x2,c),(d?s:n)(f.y1,f.cpy1,f.y2,c)]}var h=r.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,c){var d=c.x1,p=c.y1,g=c.x2,m=c.y2,y=c.cpx1,_=c.cpy1,x=c.cpx2,S=c.cpy2,b=c.percent;b!==0&&(f.moveTo(d,p),x==null||S==null?(b<1&&(a(d,y,g,b,u),y=u[1],g=u[2],a(p,_,m,b,u),_=u[1],m=u[2]),f.quadraticCurveTo(y,_,g,m)):(b<1&&(i(d,y,x,g,b,u),y=u[1],x=u[2],g=u[3],i(p,_,S,m,b,u),_=u[1],S=u[2],m=u[3]),f.bezierCurveTo(y,_,x,S,g,m)))},pointAt:function(f){return v(this.shape,f,!1)},tangentAt:function(f){var c=v(this.shape,f,!0);return t.normalize(c,c)}});return e_=h,e_}var t_,QO;function $pe(){if(QO)return t_;QO=1;var r=ur(),t=r.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,a){var i=a.cx,n=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,v=Math.cos(s),h=Math.sin(s);e.moveTo(v*o+i,h*o+n),e.arc(i,n,o,s,l,!u)}});return t_=t,t_}var r_,jO;function Ype(){if(jO)return r_;jO=1;var r=ur(),t=r.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,a=this.shape.paths,i=0;i<a.length;i++)e=e||a[i].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(a[0],a[1],e[i].segmentIgnoreThreshold)},buildPath:function(e,a){for(var i=a.paths||[],n=0;n<i.length;n++)i[n].buildPath(e,i[n].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),r.prototype.getBoundingRect.call(this)}});return r_=t,r_}var a_,JO;function hg(){if(JO)return a_;JO=1;var r=function(e){this.colorStops=e||[]};r.prototype={constructor:r,addColorStop:function(e,a){this.colorStops.push({offset:e,color:a})}};var t=r;return a_=t,a_}var i_,eN;function tD(){if(eN)return i_;eN=1;var r=ie(),t=hg(),e=function(i,n,o,s,l,u){this.x=i==null?0:i,this.y=n==null?0:n,this.x2=o==null?1:o,this.y2=s==null?0:s,this.type="linear",this.global=u||!1,t.call(this,l)};e.prototype={constructor:e},r.inherits(e,t);var a=e;return i_=a,i_}var n_,tN;function Zpe(){if(tN)return n_;tN=1;var r=ie(),t=hg(),e=function(i,n,o,s,l){this.x=i==null?.5:i,this.y=n==null?.5:n,this.r=o==null?.5:o,this.type="radial",this.global=l||!1,t.call(this,s)};e.prototype={constructor:e},r.inherits(e,t);var a=e;return n_=a,n_}var o_,rN;function rD(){if(rN)return o_;rN=1;var r=ie(),t=r.inherits,e=lf(),a=rr();function i(s){e.call(this,s),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}i.prototype.incremental=!0,i.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},i.prototype.addDisplayable=function(s,l){l?this._temporaryDisplayables.push(s):this._displayables.push(s),this.dirty()},i.prototype.addDisplayables=function(s,l){l=l||!1;for(var u=0;u<s.length;u++)this.addDisplayable(s[u],l)},i.prototype.eachPendingDisplayable=function(s){for(var l=this._cursor;l<this._displayables.length;l++)s&&s(this._displayables[l]);for(var l=0;l<this._temporaryDisplayables.length;l++)s&&s(this._temporaryDisplayables[l])},i.prototype.update=function(){this.updateTransform();for(var s=this._cursor;s<this._displayables.length;s++){var l=this._displayables[s];l.parent=this,l.update(),l.parent=null}for(var s=0;s<this._temporaryDisplayables.length;s++){var l=this._temporaryDisplayables[s];l.parent=this,l.update(),l.parent=null}},i.prototype.brush=function(s,l){for(var u=this._cursor;u<this._displayables.length;u++){var v=this._displayables[u];v.beforeBrush&&v.beforeBrush(s),v.brush(s,u===this._cursor?null:this._displayables[u-1]),v.afterBrush&&v.afterBrush(s)}this._cursor=u;for(var u=0;u<this._temporaryDisplayables.length;u++){var v=this._temporaryDisplayables[u];v.beforeBrush&&v.beforeBrush(s),v.brush(s,u===0?null:this._temporaryDisplayables[u-1]),v.afterBrush&&v.afterBrush(s)}this._temporaryDisplayables=[],this.notClear=!0};var n=[];i.prototype.getBoundingRect=function(){if(!this._rect){for(var s=new a(1/0,1/0,-1/0,-1/0),l=0;l<this._displayables.length;l++){var u=this._displayables[l],v=u.getBoundingRect().clone();u.needLocalTransform()&&v.applyTransform(u.getLocalTransform(n)),s.union(v)}this._rect=s}return this._rect},i.prototype.contain=function(s,l){var u=this.transformCoordToLocal(s,l),v=this.getBoundingRect();if(v.contain(u[0],u[1]))for(var h=0;h<this._displayables.length;h++){var f=this._displayables[h];if(f.contain(s,l))return!0}return!1},t(i,e);var o=i;return o_=o,o_}var aN;function qe(){if(aN)return it;aN=1;var r=ie(),t=O9(),e=en(),a=ha(),i=Jt(),n=ur(),o=og(),s=wu();it.Image=s;var l=Us();it.Group=l;var u=$s();it.Text=u;var v=N9();it.Circle=v;var h=Fpe();it.Sector=h;var f=Hpe();it.Ring=f;var c=V9();it.Polygon=c;var d=G9();it.Polyline=d;var p=eD();it.Rect=p;var g=F9();it.Line=g;var m=Upe();it.BezierCurve=m;var y=$pe();it.Arc=y;var _=Ype();it.CompoundPath=_;var x=tD();it.LinearGradient=x;var S=Zpe();it.RadialGradient=S;var b=rr();it.BoundingRect=b;var w=rD();it.IncrementalDisplayable=w;var A=JM(),T=Math.max,C=Math.min,M={},L=1,D={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},P="emphasis",I="normal",R=1,E={},k={};function B(re){return n.extend(re)}function F(re,ce){return t.extendFromString(re,ce)}function V(re,ce){k[re]=ce}function N(re){if(k.hasOwnProperty(re))return k[re]}function O(re,ce,be,Ae){var De=t.createFromString(re,ce);return be&&(Ae==="center"&&(be=G(be,De.getBoundingRect())),H(De,be)),De}function z(re,ce,be){var Ae=new s({style:{image:re,x:ce.x,y:ce.y,width:ce.width,height:ce.height},onload:function(De){if(be==="center"){var je={width:De.width,height:De.height};Ae.setStyle(G(ce,je))}}});return Ae}function G(re,ce){var be=ce.width/ce.height,Ae=re.height*be,De;Ae<=re.width?De=re.height:(Ae=re.width,De=Ae/be);var je=re.x+re.width/2,Gt=re.y+re.height/2;return{x:je-Ae/2,y:Gt-De/2,width:Ae,height:De}}var q=t.mergePath;function H(re,ce){if(re.applyTransform){var be=re.getBoundingRect(),Ae=be.calculateTransform(ce);re.applyTransform(Ae)}}function U(re){return A.subPixelOptimizeLine(re.shape,re.shape,re.style),re}function W(re){return A.subPixelOptimizeRect(re.shape,re.shape,re.style),re}var Y=A.subPixelOptimize;function X(re){return re!=null&&re!=="none"}var K=r.createHashMap(),Q=0;function j(re){if(typeof re!="string")return re;var ce=K.get(re);return ce||(ce=e.lift(re,-.1),Q<1e4&&(K.set(re,ce),Q++)),ce}function te(re){if(re.__hoverStlDirty){re.__hoverStlDirty=!1;var ce=re.__hoverStl;if(!ce){re.__cachedNormalStl=re.__cachedNormalZ2=null;return}var be=re.__cachedNormalStl={};re.__cachedNormalZ2=re.z2;var Ae=re.style;for(var De in ce)ce[De]!=null&&(be[De]=Ae[De]);be.fill=Ae.fill,be.stroke=Ae.stroke}}function Z(re){var ce=re.__hoverStl;if(!(!ce||re.__highlighted)){var be=re.__zr,Ae=re.useHoverLayer&&be&&be.painter.type==="canvas";if(re.__highlighted=Ae?"layer":"plain",!(re.isGroup||!be&&re.useHoverLayer)){var De=re,je=re.style;Ae&&(De=be.addHover(re),je=De.style),Tt(je),Ae||te(De),je.extendFrom(ce),ee(je,ce,"fill"),ee(je,ce,"stroke"),Dt(je),Ae||(re.dirty(!1),re.z2+=L)}}}function ee(re,ce,be){!X(ce[be])&&X(re[be])&&(re[be]=j(re[be]))}function le(re){var ce=re.__highlighted;if(ce&&(re.__highlighted=!1,!re.isGroup))if(ce==="layer")re.__zr&&re.__zr.removeHover(re);else{var be=re.style,Ae=re.__cachedNormalStl;Ae&&(Tt(be),re.setStyle(Ae),Dt(be));var De=re.__cachedNormalZ2;De!=null&&re.z2-De===L&&(re.z2=De)}}function oe(re,ce,be){var Ae=I,De=I,je;re.__highlighted&&(Ae=P,je=!0),ce(re,be),re.__highlighted&&(De=P,je=!0),re.isGroup&&re.traverse(function(Gt){!Gt.isGroup&&ce(Gt,be)}),je&&re.__highDownOnUpdate&&re.__highDownOnUpdate(Ae,De)}function fe(re,ce){ce=re.__hoverStl=ce!==!1&&(re.hoverStyle||ce||{}),re.__hoverStlDirty=!0,re.__highlighted&&(re.__cachedNormalStl=null,le(re),Z(re))}function se(re){!J(this,re)&&!this.__highByOuter&&oe(this,Z)}function ve(re){!J(this,re)&&!this.__highByOuter&&oe(this,le)}function ye(re){this.__highByOuter|=1<<(re||0),oe(this,Z)}function Me(re){!(this.__highByOuter&=~(1<<(re||0)))&&oe(this,le)}function J(re,ce){return re.__highDownSilentOnTouch&&ce.zrByTouch}function ne(re,ce){ue(re,!0),oe(re,fe,ce)}function ue(re,ce){var be=ce===!1;if(re.__highDownSilentOnTouch=re.highDownSilentOnTouch,re.__highDownOnUpdate=re.highDownOnUpdate,!be||re.__highDownDispatcher){var Ae=be?"off":"on";re[Ae]("mouseover",se)[Ae]("mouseout",ve),re[Ae]("emphasis",ye)[Ae]("normal",Me),re.__highByOuter=re.__highByOuter||0,re.__highDownDispatcher=!be}}function me(re){return!!(re&&re.__highDownDispatcher)}function xe(re){var ce=E[re];return ce==null&&R<=32&&(ce=E[re]=R++),ce}function ge(re,ce,be,Ae,De,je,Gt){De=De||M;var At=De.labelFetcher,Ot=De.labelDataIndex,hr=De.labelDimIndex,Nr=De.labelProp,an=be.getShallow("show"),Ti=Ae.getShallow("show"),Ai;(an||Ti)&&(At&&(Ai=At.getFormattedLabel(Ot,"normal",null,hr,Nr)),Ai==null&&(Ai=r.isFunction(De.defaultText)?De.defaultText(Ot,De):De.defaultText));var To=an?Ai:null,Ao=Ti?r.retrieve2(At?At.getFormattedLabel(Ot,"emphasis",null,hr,Nr):null,Ai):null;(To!=null||Ao!=null)&&(Ce(re,be,je,De),Ce(ce,Ae,Gt,De,!0)),re.text=To,ce.text=Ao}function pe(re,ce,be){var Ae=re.style;ce&&(Tt(Ae),re.setStyle(ce),Dt(Ae)),Ae=re.__hoverStl,be&&Ae&&(Tt(Ae),r.extend(Ae,be),Dt(Ae))}function Ce(re,ce,be,Ae,De){return Ve(re,ce,Ae,De),be&&r.extend(re,be),re}function ze(re,ce,be){var Ae={isRectText:!0},De;be===!1?De=!0:Ae.autoColor=be,Ve(re,ce,Ae,De)}function Ve(re,ce,be,Ae){if(be=be||M,be.isRectText){var De;be.getTextPosition?De=be.getTextPosition(ce,Ae):(De=ce.getShallow("position")||(Ae?null:"inside"),De==="outside"&&(De="top")),re.textPosition=De,re.textOffset=ce.getShallow("offset");var je=ce.getShallow("rotate");je!=null&&(je*=Math.PI/180),re.textRotation=je,re.textDistance=r.retrieve2(ce.getShallow("distance"),Ae?null:5)}var Gt=ce.ecModel,At=Gt&&Gt.option.textStyle,Ot=ke(ce),hr;if(Ot){hr={};for(var Nr in Ot)if(Ot.hasOwnProperty(Nr)){var an=ce.getModel(["rich",Nr]);lt(hr[Nr]={},an,At,be,Ae)}}return re.rich=hr,lt(re,ce,At,be,Ae,!0),be.forceRich&&!be.textStyle&&(be.textStyle={}),re}function ke(re){for(var ce;re&&re!==re.ecModel;){var be=(re.option||M).rich;if(be){ce=ce||{};for(var Ae in be)be.hasOwnProperty(Ae)&&(ce[Ae]=1)}re=re.parentModel}return ce}function lt(re,ce,be,Ae,De,je){be=!De&&be||M,re.textFill=dt(ce.getShallow("color"),Ae)||be.color,re.textStroke=dt(ce.getShallow("textBorderColor"),Ae)||be.textBorderColor,re.textStrokeWidth=r.retrieve2(ce.getShallow("textBorderWidth"),be.textBorderWidth),De||(je&&(re.insideRollbackOpt=Ae,Dt(re)),re.textFill==null&&(re.textFill=Ae.autoColor)),re.fontStyle=ce.getShallow("fontStyle")||be.fontStyle,re.fontWeight=ce.getShallow("fontWeight")||be.fontWeight,re.fontSize=ce.getShallow("fontSize")||be.fontSize,re.fontFamily=ce.getShallow("fontFamily")||be.fontFamily,re.textAlign=ce.getShallow("align"),re.textVerticalAlign=ce.getShallow("verticalAlign")||ce.getShallow("baseline"),re.textLineHeight=ce.getShallow("lineHeight"),re.textWidth=ce.getShallow("width"),re.textHeight=ce.getShallow("height"),re.textTag=ce.getShallow("tag"),(!je||!Ae.disableBox)&&(re.textBackgroundColor=dt(ce.getShallow("backgroundColor"),Ae),re.textPadding=ce.getShallow("padding"),re.textBorderColor=dt(ce.getShallow("borderColor"),Ae),re.textBorderWidth=ce.getShallow("borderWidth"),re.textBorderRadius=ce.getShallow("borderRadius"),re.textBoxShadowColor=ce.getShallow("shadowColor"),re.textBoxShadowBlur=ce.getShallow("shadowBlur"),re.textBoxShadowOffsetX=ce.getShallow("shadowOffsetX"),re.textBoxShadowOffsetY=ce.getShallow("shadowOffsetY")),re.textShadowColor=ce.getShallow("textShadowColor")||be.textShadowColor,re.textShadowBlur=ce.getShallow("textShadowBlur")||be.textShadowBlur,re.textShadowOffsetX=ce.getShallow("textShadowOffsetX")||be.textShadowOffsetX,re.textShadowOffsetY=ce.getShallow("textShadowOffsetY")||be.textShadowOffsetY}function dt(re,ce){return re!=="auto"?re:ce&&ce.autoColor?ce.autoColor:null}function Dt(re){var ce=re.textPosition,be=re.insideRollbackOpt,Ae;if(be&&re.textFill==null){var De=be.autoColor,je=be.isRectText,Gt=be.useInsideStyle,At=Gt!==!1&&(Gt===!0||je&&ce&&typeof ce=="string"&&ce.indexOf("inside")>=0),Ot=!At&&De!=null;(At||Ot)&&(Ae={textFill:re.textFill,textStroke:re.textStroke,textStrokeWidth:re.textStrokeWidth}),At&&(re.textFill="#fff",re.textStroke==null&&(re.textStroke=De,re.textStrokeWidth==null&&(re.textStrokeWidth=2))),Ot&&(re.textFill=De)}re.insideRollback=Ae}function Tt(re){var ce=re.insideRollback;ce&&(re.textFill=ce.textFill,re.textStroke=ce.textStroke,re.textStrokeWidth=ce.textStrokeWidth,re.insideRollback=null)}function Bt(re,ce){var be=ce&&ce.getModel("textStyle");return r.trim([re.fontStyle||be&&be.getShallow("fontStyle")||"",re.fontWeight||be&&be.getShallow("fontWeight")||"",(re.fontSize||be&&be.getShallow("fontSize")||12)+"px",re.fontFamily||be&&be.getShallow("fontFamily")||"sans-serif"].join(" "))}function Vt(re,ce,be,Ae,De,je){typeof De=="function"&&(je=De,De=null);var Gt=Ae&&Ae.isAnimationEnabled();if(Gt){var At=re?"Update":"",Ot=Ae.getShallow("animationDuration"+At),hr=Ae.getShallow("animationEasing"+At),Nr=Ae.getShallow("animationDelay"+At);typeof Nr=="function"&&(Nr=Nr(De,Ae.getAnimationDelayParams?Ae.getAnimationDelayParams(ce,De):null)),typeof Ot=="function"&&(Ot=Ot(De)),Ot>0?ce.animateTo(be,Ot,Nr||0,hr,je,!!je):(ce.stopAnimation(),ce.attr(be),je&&je())}else ce.stopAnimation(),ce.attr(be),je&&je()}function Ke(re,ce,be,Ae,De){Vt(!0,re,ce,be,Ae,De)}function Et(re,ce,be,Ae,De){Vt(!1,re,ce,be,Ae,De)}function Lt(re,ce){for(var be=a.identity([]);re&&re!==ce;)a.mul(be,re.getLocalTransform(),be),re=re.parent;return be}function Zt(re,ce,be){return ce&&!r.isArrayLike(ce)&&(ce=o.getLocalTransform(ce)),be&&(ce=a.invert([],ce)),i.applyTransform([],re,ce)}function Xt(re,ce,be){var Ae=ce[4]===0||ce[5]===0||ce[0]===0?1:Math.abs(2*ce[4]/ce[0]),De=ce[4]===0||ce[5]===0||ce[2]===0?1:Math.abs(2*ce[4]/ce[2]),je=[re==="left"?-Ae:re==="right"?Ae:0,re==="top"?-De:re==="bottom"?De:0];return je=Zt(je,ce,be),Math.abs(je[0])>Math.abs(je[1])?je[0]>0?"right":"left":je[1]>0?"bottom":"top"}function Kt(re,ce,be,Ae){if(!re||!ce)return;function De(At){var Ot={};return At.traverse(function(hr){!hr.isGroup&&hr.anid&&(Ot[hr.anid]=hr)}),Ot}function je(At){var Ot={position:i.clone(At.position),rotation:At.rotation};return At.shape&&(Ot.shape=r.extend({},At.shape)),Ot}var Gt=De(re);ce.traverse(function(At){if(!At.isGroup&&At.anid){var Ot=Gt[At.anid];if(Ot){var hr=je(At);At.attr(je(Ot)),Ke(At,hr,be,At.dataIndex)}}})}function Pr(re,ce){return r.map(re,function(be){var Ae=be[0];Ae=T(Ae,ce.x),Ae=C(Ae,ce.x+ce.width);var De=be[1];return De=T(De,ce.y),De=C(De,ce.y+ce.height),[Ae,De]})}function fa(re,ce){var be=T(re.x,ce.x),Ae=C(re.x+re.width,ce.x+ce.width),De=T(re.y,ce.y),je=C(re.y+re.height,ce.y+ce.height);if(Ae>=be&&je>=De)return{x:be,y:De,width:Ae-be,height:je-De}}function Rr(re,ce,be){ce=r.extend({rectHover:!0},ce);var Ae=ce.style={strokeNoScale:!0};if(be=be||{x:-1,y:-1,width:2,height:2},re)return re.indexOf("image://")===0?(Ae.image=re.slice(8),r.defaults(Ae,be),new s(ce)):O(re.replace("path://",""),ce,be,"center")}function ta(re,ce,be,Ae,De){for(var je=0,Gt=De[De.length-1];je<De.length;je++){var At=De[je];if(vr(re,ce,be,Ae,At[0],At[1],Gt[0],Gt[1]))return!0;Gt=At}}function vr(re,ce,be,Ae,De,je,Gt,At){var Ot=be-re,hr=Ae-ce,Nr=Gt-De,an=At-je,Ti=jt(Nr,an,Ot,hr);if(mr(Ti))return!1;var Ai=re-De,To=ce-je,Ao=jt(Ai,To,Ot,hr)/Ti;if(Ao<0||Ao>1)return!1;var Eu=jt(Ai,To,Nr,an)/Ti;return!(Eu<0||Eu>1)}function jt(re,ce,be,Ae){return re*Ae-be*ce}function mr(re){return re<=1e-6&&re>=-1e-6}return V("circle",v),V("sector",h),V("ring",f),V("polygon",c),V("polyline",d),V("rect",p),V("line",g),V("bezierCurve",m),V("arc",y),it.Z2_EMPHASIS_LIFT=L,it.CACHED_LABEL_STYLE_PROPERTIES=D,it.extendShape=B,it.extendPath=F,it.registerShape=V,it.getShapeClass=N,it.makePath=O,it.makeImage=z,it.mergePath=q,it.resizePath=H,it.subPixelOptimizeLine=U,it.subPixelOptimizeRect=W,it.subPixelOptimize=Y,it.setElementHoverStyle=fe,it.setHoverStyle=ne,it.setAsHighDownDispatcher=ue,it.isHighDownDispatcher=me,it.getHighlightDigit=xe,it.setLabelStyle=ge,it.modifyLabelStyle=pe,it.setTextStyle=Ce,it.setText=ze,it.getFont=Bt,it.updateProps=Ke,it.initProps=Et,it.getTransform=Lt,it.applyTransform=Zt,it.transformDirection=Xt,it.groupTransition=Kt,it.clipPointsByRect=Pr,it.clipRectByRect=fa,it.createIcon=Rr,it.linePolygonIntersect=ta,it.lineLineIntersect=vr,it}var s_,iN;function Xpe(){if(iN)return s_;iN=1;var r=Da(),t=qe(),e=["textStyle","color"],a={getTextColor:function(i){var n=this.ecModel;return this.getShallow("color")||(!i&&n?n.get(e):null)},getFont:function(){return t.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(i){return r.getBoundingRect(i,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};return s_=a,s_}var l_,nN;function Kpe(){if(nN)return l_;nN=1;var r=Tu(),t=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),e={getItemStyle:function(a,i){var n=t(this,a,i),o=this.getBorderLineDash();return o&&(n.lineDash=o),n},getBorderLineDash:function(){var a=this.get("borderType");return a==="solid"||a==null?null:a==="dashed"?[5,5]:[1,1]}};return l_=e,l_}var u_,oN;function gr(){if(oN)return u_;oN=1;var r=ie(),t=pr(),e=_t(),a=e.makeInner,i=Dn(),n=i.enableClassExtend,o=i.enableClassCheck,s=Ope(),l=Npe(),u=Xpe(),v=Kpe(),h=r.mixin,f=a();function c(m,y,_){this.parentModel=y,this.ecModel=_,this.option=m}c.prototype={constructor:c,init:null,mergeOption:function(m){r.merge(this.option,m,!0)},get:function(m,y){return m==null?this.option:d(this.option,this.parsePath(m),!y&&p(this,m))},getShallow:function(m,y){var _=this.option,x=_==null?_:_[m],S=!y&&p(this,m);return x==null&&S&&(x=S.getShallow(m)),x},getModel:function(m,y){var _=m==null?this.option:d(this.option,m=this.parsePath(m)),x;return y=y||(x=p(this,m))&&x.getModel(m),new c(_,y,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var m=this.constructor;return new m(r.clone(this.option))},setReadOnly:function(m){},parsePath:function(m){return typeof m=="string"&&(m=m.split(".")),m},customizeGetParent:function(m){f(this).getParent=m},isAnimationEnabled:function(){if(!t.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function d(m,y,_){for(var x=0;x<y.length&&!(y[x]&&(m=m&&typeof m=="object"?m[y[x]]:null,m==null));x++);return m==null&&_&&(m=_.get(y)),m}function p(m,y){var _=f(m).getParent;return _?_.call(m,y):m.parentModel}n(c),o(c),h(c,s),h(c,l),h(c,u),h(c,v);var g=c;return u_=g,u_}var cv={},sN;function vf(){if(sN)return cv;sN=1;var r=ie(),t=Dn(),e=t.parseClassType,a=0;function i(s){return[s||"",a++,Math.random().toFixed(5)].join("_")}function n(s){var l={};return s.registerSubTypeDefaulter=function(u,v){u=e(u),l[u.main]=v},s.determineSubType=function(u,v){var h=v.type;if(!h){var f=e(u).main;s.hasSubTypes(u)&&l[f]&&(h=l[f](v))}return h},s}function o(s,l){s.topologicalTravel=function(f,c,d,p){if(!f.length)return;var g=u(c),m=g.graph,y=g.noEntryList,_={};for(r.each(f,function(T){_[T]=!0});y.length;){var x=y.pop(),S=m[x],b=!!_[x];b&&(d.call(p,x,S.originalDeps.slice()),delete _[x]),r.each(S.successor,b?A:w)}r.each(_,function(){throw new Error("Circle dependency may exists")});function w(T){m[T].entryCount--,m[T].entryCount===0&&y.push(T)}function A(T){_[T]=!0,w(T)}};function u(f){var c={},d=[];return r.each(f,function(p){var g=v(c,p),m=g.originalDeps=l(p),y=h(m,f);g.entryCount=y.length,g.entryCount===0&&d.push(p),r.each(y,function(_){r.indexOf(g.predecessor,_)<0&&g.predecessor.push(_);var x=v(c,_);r.indexOf(x.successor,_)<0&&x.successor.push(p)})}),{graph:c,noEntryList:d}}function v(f,c){return f[c]||(f[c]={predecessor:[],successor:[]}),f[c]}function h(f,c){var d=[];return r.each(f,function(p){r.indexOf(c,p)>=0&&d.push(p)}),d}}return cv.getUID=i,cv.enableSubTypeDefaulter=n,cv.enableTopologicalTravel=o,cv}var ga={},yr={},lN;function st(){if(lN)return yr;lN=1;var r=ie(),t=1e-4;function e(b){return b.replace(/^\s+|\s+$/g,"")}function a(b,w,A,T){var C=w[1]-w[0],M=A[1]-A[0];if(C===0)return M===0?A[0]:(A[0]+A[1])/2;if(T)if(C>0){if(b<=w[0])return A[0];if(b>=w[1])return A[1]}else{if(b>=w[0])return A[0];if(b<=w[1])return A[1]}else{if(b===w[0])return A[0];if(b===w[1])return A[1]}return(b-w[0])/C*M+A[0]}function i(b,w){switch(b){case"center":case"middle":b="50%";break;case"left":case"top":b="0%";break;case"right":case"bottom":b="100%";break}return typeof b=="string"?e(b).match(/%$/)?parseFloat(b)/100*w:parseFloat(b):b==null?NaN:+b}function n(b,w,A){return w==null&&(w=10),w=Math.min(Math.max(0,w),20),b=(+b).toFixed(w),A?b:+b}function o(b){return b.sort(function(w,A){return w-A}),b}function s(b){if(b=+b,isNaN(b))return 0;for(var w=1,A=0;Math.round(b*w)/w!==b;)w*=10,A++;return A}function l(b){var w=b.toString(),A=w.indexOf("e");if(A>0){var T=+w.slice(A+1);return T<0?-T:0}else{var C=w.indexOf(".");return C<0?0:w.length-1-C}}function u(b,w){var A=Math.log,T=Math.LN10,C=Math.floor(A(b[1]-b[0])/T),M=Math.round(A(Math.abs(w[1]-w[0]))/T),L=Math.min(Math.max(-C+M,0),20);return isFinite(L)?L:20}function v(b,w,A){if(!b[w])return 0;var T=r.reduce(b,function(F,V){return F+(isNaN(V)?0:V)},0);if(T===0)return 0;for(var C=Math.pow(10,A),M=r.map(b,function(F){return(isNaN(F)?0:F)/T*C*100}),L=C*100,D=r.map(M,function(F){return Math.floor(F)}),P=r.reduce(D,function(F,V){return F+V},0),I=r.map(M,function(F,V){return F-D[V]});P<L;){for(var R=Number.NEGATIVE_INFINITY,E=null,k=0,B=I.length;k<B;++k)I[k]>R&&(R=I[k],E=k);++D[E],I[E]=0,++P}return D[w]/C}var h=9007199254740991;function f(b){var w=Math.PI*2;return(b%w+w)%w}function c(b){return b>-t&&b<t}var d=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function p(b){if(b instanceof Date)return b;if(typeof b=="string"){var w=d.exec(b);if(!w)return new Date(NaN);if(w[8]){var A=+w[4]||0;return w[8].toUpperCase()!=="Z"&&(A-=w[8].slice(0,3)),new Date(Date.UTC(+w[1],+(w[2]||1)-1,+w[3]||1,A,+(w[5]||0),+w[6]||0,+w[7]||0))}else return new Date(+w[1],+(w[2]||1)-1,+w[3]||1,+w[4]||0,+(w[5]||0),+w[6]||0,+w[7]||0)}else if(b==null)return new Date(NaN);return new Date(Math.round(b))}function g(b){return Math.pow(10,m(b))}function m(b){if(b===0)return 0;var w=Math.floor(Math.log(b)/Math.LN10);return b/Math.pow(10,w)>=10&&w++,w}function y(b,w){var A=m(b),T=Math.pow(10,A),C=b/T,M;return w?C<1.5?M=1:C<2.5?M=2:C<4?M=3:C<7?M=5:M=10:C<1?M=1:C<2?M=2:C<3?M=3:C<5?M=5:M=10,b=M*T,A>=-20?+b.toFixed(A<0?-A:0):b}function _(b,w){var A=(b.length-1)*w+1,T=Math.floor(A),C=+b[T-1],M=A-T;return M?C+M*(b[T]-C):C}function x(b){b.sort(function(P,I){return D(P,I,0)?-1:1});for(var w=-1/0,A=1,T=0;T<b.length;){for(var C=b[T].interval,M=b[T].close,L=0;L<2;L++)C[L]<=w&&(C[L]=w,M[L]=L?1:1-A),w=C[L],A=M[L];C[0]===C[1]&&M[0]*M[1]!==1?b.splice(T,1):T++}return b;function D(P,I,R){return P.interval[R]<I.interval[R]||P.interval[R]===I.interval[R]&&(P.close[R]-I.close[R]===(R?-1:1)||!R&&D(P,I,1))}}function S(b){return b-parseFloat(b)>=0}return yr.linearMap=a,yr.parsePercent=i,yr.round=n,yr.asc=o,yr.getPrecision=s,yr.getPrecisionSafe=l,yr.getPixelPrecision=u,yr.getPercentWithPrecision=v,yr.MAX_SAFE_INTEGER=h,yr.remRadian=f,yr.isRadianAroundZero=c,yr.parseDate=p,yr.quantity=g,yr.quantityExponent=m,yr.nice=y,yr.quantile=_,yr.reformIntervals=x,yr.isNumeric=S,yr}var aa={},uN;function Yt(){if(uN)return aa;uN=1;var r=ie(),t=Da(),e=st();function a(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function i(S,b){return S=(S||"").toLowerCase().replace(/-(.)/g,function(w,A){return A.toUpperCase()}),b&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var n=r.normalizeCssArray,o=/([&<>"'])/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function l(S){return S==null?"":(S+"").replace(o,function(b,w){return s[w]})}var u=["a","b","c","d","e","f","g"],v=function(S,b){return"{"+S+(b==null?"":b)+"}"};function h(S,b,w){r.isArray(b)||(b=[b]);var A=b.length;if(!A)return"";for(var T=b[0].$vars||[],C=0;C<T.length;C++){var M=u[C];S=S.replace(v(M),v(M,0))}for(var L=0;L<A;L++)for(var D=0;D<T.length;D++){var P=b[L][T[D]];S=S.replace(v(u[D],L),w?l(P):P)}return S}function f(S,b,w){return r.each(b,function(A,T){S=S.replace("{"+T+"}",w?l(A):A)}),S}function c(S,T){S=r.isString(S)?{color:S,extraCssText:T}:S||{};var w=S.color,A=S.type,T=S.extraCssText,C=S.renderMode||"html",M=S.markerId||"X";return w?C==="html"?A==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+l(w)+";"+(T||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+l(w)+";"+(T||"")+'"></span>':{renderMode:C,content:"{marker"+M+"|} ",style:{color:w}}:""}function d(S,b){return S+="","0000".substr(0,b-S.length)+S}function p(S,b,w){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S="MM-dd\nyyyy");var A=e.parseDate(b),T=w?"UTC":"",C=A["get"+T+"FullYear"](),M=A["get"+T+"Month"]()+1,L=A["get"+T+"Date"](),D=A["get"+T+"Hours"](),P=A["get"+T+"Minutes"](),I=A["get"+T+"Seconds"](),R=A["get"+T+"Milliseconds"]();return S=S.replace("MM",d(M,2)).replace("M",M).replace("yyyy",C).replace("yy",C%100).replace("dd",d(L,2)).replace("d",L).replace("hh",d(D,2)).replace("h",D).replace("mm",d(P,2)).replace("m",P).replace("ss",d(I,2)).replace("s",I).replace("SSS",d(R,3)),S}function g(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var m=t.truncateText;function y(S){return t.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function _(S,b,w,A,T,C,M,L){return t.getBoundingRect(S,b,w,A,T,L,C,M)}function x(S,b){if(b==="_blank"||b==="blank"){var w=window.open();w.opener=null,w.location=S}else window.open(S,b)}return aa.addCommas=a,aa.toCamelCase=i,aa.normalizeCssArray=n,aa.encodeHTML=l,aa.formatTpl=h,aa.formatTplSimple=f,aa.getTooltipMarker=c,aa.formatTime=p,aa.capitalFirst=g,aa.truncateText=m,aa.getTextBoundingRect=y,aa.getTextRect=_,aa.windowOpen=x,aa}var vN;function Ut(){if(vN)return ga;vN=1;var r=ie(),t=rr(),e=st(),a=e.parsePercent,i=Yt(),n=r.each,o=["left","right","top","bottom","width","height"],s=[["width","left","right"],["height","top","bottom"]];function l(_,x,S,b,w){var A=0,T=0;b==null&&(b=1/0),w==null&&(w=1/0);var C=0;x.eachChild(function(M,L){var D=M.position,P=M.getBoundingRect(),I=x.childAt(L+1),R=I&&I.getBoundingRect(),E,k;if(_==="horizontal"){var B=P.width+(R?-R.x+P.x:0);E=A+B,E>b||M.newline?(A=0,E=B,T+=C+S,C=P.height):C=Math.max(C,P.height)}else{var F=P.height+(R?-R.y+P.y:0);k=T+F,k>w||M.newline?(A+=C+S,T=0,k=F,C=P.width):C=Math.max(C,P.width)}M.newline||(D[0]=A,D[1]=T,_==="horizontal"?A=E+S:T=k+S)})}var u=l,v=r.curry(l,"vertical"),h=r.curry(l,"horizontal");function f(_,x,S){var b=x.width,w=x.height,A=a(_.x,b),T=a(_.y,w),C=a(_.x2,b),M=a(_.y2,w);return(isNaN(A)||isNaN(parseFloat(_.x)))&&(A=0),(isNaN(C)||isNaN(parseFloat(_.x2)))&&(C=b),(isNaN(T)||isNaN(parseFloat(_.y)))&&(T=0),(isNaN(M)||isNaN(parseFloat(_.y2)))&&(M=w),S=i.normalizeCssArray(S||0),{width:Math.max(C-A-S[1]-S[3],0),height:Math.max(M-T-S[0]-S[2],0)}}function c(_,x,S){S=i.normalizeCssArray(S||0);var b=x.width,w=x.height,A=a(_.left,b),T=a(_.top,w),C=a(_.right,b),M=a(_.bottom,w),L=a(_.width,b),D=a(_.height,w),P=S[2]+S[0],I=S[1]+S[3],R=_.aspect;switch(isNaN(L)&&(L=b-C-I-A),isNaN(D)&&(D=w-M-P-T),R!=null&&(isNaN(L)&&isNaN(D)&&(R>b/w?L=b*.8:D=w*.8),isNaN(L)&&(L=R*D),isNaN(D)&&(D=L/R)),isNaN(A)&&(A=b-C-L-I),isNaN(T)&&(T=w-M-D-P),_.left||_.right){case"center":A=b/2-L/2-S[3];break;case"right":A=b-L-I;break}switch(_.top||_.bottom){case"middle":case"center":T=w/2-D/2-S[0];break;case"bottom":T=w-D-P;break}A=A||0,T=T||0,isNaN(L)&&(L=b-I-A-(C||0)),isNaN(D)&&(D=w-P-T-(M||0));var E=new t(A+S[3],T+S[0],L,D);return E.margin=S,E}function d(_,x,S,b,w){var A=!w||!w.hv||w.hv[0],T=!w||!w.hv||w.hv[1],C=w&&w.boundingMode||"all";if(!(!A&&!T)){var M;if(C==="raw")M=_.type==="group"?new t(0,0,+x.width||0,+x.height||0):_.getBoundingRect();else if(M=_.getBoundingRect(),_.needLocalTransform()){var L=_.getLocalTransform();M=M.clone(),M.applyTransform(L)}x=c(r.defaults({width:M.width,height:M.height},x),S,b);var D=_.position,P=A?x.x-M.x:0,I=T?x.y-M.y:0;_.attr("position",C==="raw"?[P,I]:[D[0]+P,D[1]+I])}}function p(_,x){return _[s[x][0]]!=null||_[s[x][1]]!=null&&_[s[x][2]]!=null}function g(_,x,S){!r.isObject(S)&&(S={});var b=S.ignoreSize;!r.isArray(b)&&(b=[b,b]);var w=T(s[0],0),A=T(s[1],1);L(s[0],_,w),L(s[1],_,A);function T(D,P){var I={},R=0,E={},k=0,B=2;if(n(D,function(N){E[N]=_[N]}),n(D,function(N){C(x,N)&&(I[N]=E[N]=x[N]),M(I,N)&&R++,M(E,N)&&k++}),b[P])return M(x,D[1])?E[D[2]]=null:M(x,D[2])&&(E[D[1]]=null),E;if(k===B||!R)return E;if(R>=B)return I;for(var F=0;F<D.length;F++){var V=D[F];if(!C(I,V)&&C(_,V)){I[V]=_[V];break}}return I}function C(D,P){return D.hasOwnProperty(P)}function M(D,P){return D[P]!=null&&D[P]!=="auto"}function L(D,P,I){n(D,function(R){P[R]=I[R]})}}function m(_){return y({},_)}function y(_,x){return x&&_&&n(o,function(S){x.hasOwnProperty(S)&&(_[S]=x[S])}),_}return ga.LOCATION_PARAMS=o,ga.HV_NAMES=s,ga.box=u,ga.vbox=v,ga.hbox=h,ga.getAvailableSize=f,ga.getLayoutRect=c,ga.positionElement=d,ga.sizeCalculable=p,ga.mergeLayoutParam=g,ga.getLayoutParams=m,ga.copyLayoutParams=y,ga}var v_,hN;function Qpe(){if(hN)return v_;hN=1;var r={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};return v_=r,v_}var h_,fN;function Lr(){if(fN)return h_;fN=1;var r=ie(),t=gr(),e=vf(),a=Dn(),i=a.enableClassManagement,n=a.parseClassType,o=_t(),s=o.makeInner,l=Ut(),u=Qpe(),v=s(),h=t.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(d,p,g,m){t.call(this,d,p,g,m),this.uid=e.getUID("ec_cpt_model")},init:function(d,p,g,m){this.mergeDefaultAndTheme(d,g)},mergeDefaultAndTheme:function(d,p){var g=this.layoutMode,m=g?l.getLayoutParams(d):{},y=p.getTheme();r.merge(d,y.get(this.mainType)),r.merge(d,this.getDefaultOption()),g&&l.mergeLayoutParam(d,m,g)},mergeOption:function(d,p){r.merge(this.option,d,!0);var g=this.layoutMode;g&&l.mergeLayoutParam(this.option,d,g)},optionUpdated:function(d,p){},getDefaultOption:function(){var d=v(this);if(!d.defaultOption){for(var p=[],g=this.constructor;g;){var m=g.prototype.defaultOption;m&&p.push(m),g=g.superClass}for(var y={},_=p.length-1;_>=0;_--)y=r.merge(y,p[_],!0);d.defaultOption=y}return d.defaultOption},getReferringComponents:function(d){return this.ecModel.queryComponents({mainType:d,index:this.get(d+"Index",!0),id:this.get(d+"Id",!0)})}});i(h,{registerWhenExtend:!0}),e.enableSubTypeDefaulter(h),e.enableTopologicalTravel(h,f);function f(d){var p=[];return r.each(h.getClassesByMainType(d),function(g){p=p.concat(g.prototype.dependencies||[])}),p=r.map(p,function(g){return n(g).main}),d!=="dataset"&&r.indexOf(p,"dataset")<=0&&p.unshift("dataset"),p}r.mixin(h,u);var c=h;return h_=c,h_}var f_,cN;function jpe(){if(cN)return f_;cN=1;var r="";typeof navigator<"u"&&(r=navigator.platform||"");var t={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:r.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};return f_=t,f_}var c_,dN;function H9(){if(dN)return c_;dN=1;var r=_t(),t=r.makeInner,e=r.normalizeToArray,a=t();function i(o,s){for(var l=o.length,u=0;u<l;u++)if(o[u].length>s)return o[u];return o[l-1]}var n={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(o,s,l){s=s||this;var u=a(s),v=u.colorIdx||0,h=u.colorNameMap=u.colorNameMap||{};if(h.hasOwnProperty(o))return h[o];var f=e(this.get("color",!0)),c=this.get("colorLayer",!0),d=l==null||!c?f:i(c,l);if(d=d||f,!(!d||!d.length)){var p=d[v];return o&&(h[o]=p),u.colorIdx=(v+1)%d.length,p}}};return c_=n,c_}var Pi={},Ri={},pN;function hf(){if(pN)return Ri;pN=1;var r="original",t="arrayRows",e="objectRows",a="keyedColumns",i="unknown",n="typedArray",o="column",s="row";return Ri.SOURCE_FORMAT_ORIGINAL=r,Ri.SOURCE_FORMAT_ARRAY_ROWS=t,Ri.SOURCE_FORMAT_OBJECT_ROWS=e,Ri.SOURCE_FORMAT_KEYED_COLUMNS=a,Ri.SOURCE_FORMAT_UNKNOWN=i,Ri.SOURCE_FORMAT_TYPED_ARRAY=n,Ri.SERIES_LAYOUT_BY_COLUMN=o,Ri.SERIES_LAYOUT_BY_ROW=s,Ri}var d_,gN;function ff(){if(gN)return d_;gN=1;var r=ie(),t=r.createHashMap,e=r.isTypedArray,a=Dn(),i=a.enableClassCheck,n=hf(),o=n.SOURCE_FORMAT_ORIGINAL,s=n.SERIES_LAYOUT_BY_COLUMN,l=n.SOURCE_FORMAT_UNKNOWN,u=n.SOURCE_FORMAT_TYPED_ARRAY,v=n.SOURCE_FORMAT_KEYED_COLUMNS;function h(c){this.fromDataset=c.fromDataset,this.data=c.data||(c.sourceFormat===v?{}:[]),this.sourceFormat=c.sourceFormat||l,this.seriesLayoutBy=c.seriesLayoutBy||s,this.dimensionsDefine=c.dimensionsDefine,this.encodeDefine=c.encodeDefine&&t(c.encodeDefine),this.startIndex=c.startIndex||0,this.dimensionsDetectCount=c.dimensionsDetectCount}h.seriesDataToSource=function(c){return new h({data:c,sourceFormat:e(c)?u:o,fromDataset:!1})},i(h);var f=h;return d_=f,d_}var mN;function Ln(){if(mN)return Pi;mN=1;var r=It();r.__DEV__;var t=_t(),e=t.makeInner,a=t.getDataItemValue,i=ie(),n=i.createHashMap,o=i.each,s=i.map,l=i.isArray,u=i.isString,v=i.isObject,h=i.isTypedArray,f=i.isArrayLike,c=i.extend;i.assert;var d=ff(),p=hf(),g=p.SOURCE_FORMAT_ORIGINAL,m=p.SOURCE_FORMAT_ARRAY_ROWS,y=p.SOURCE_FORMAT_OBJECT_ROWS,_=p.SOURCE_FORMAT_KEYED_COLUMNS,x=p.SOURCE_FORMAT_UNKNOWN,S=p.SOURCE_FORMAT_TYPED_ARRAY,b=p.SERIES_LAYOUT_BY_ROW,w={Must:1,Might:2,Not:3},A=e();function T(N){var O=N.option.source,z=x;if(h(O))z=S;else if(l(O)){O.length===0&&(z=m);for(var G=0,q=O.length;G<q;G++){var H=O[G];if(H!=null){if(l(H)){z=m;break}else if(v(H)){z=y;break}}}}else if(v(O)){for(var U in O)if(O.hasOwnProperty(U)&&f(O[U])){z=_;break}}else if(O!=null)throw new Error("Invalid data");A(N).sourceFormat=z}function C(N){return A(N).source}function M(N){A(N).datasetMap=n()}function L(N){var O=N.option,z=O.data,G=h(z)?S:g,q=!1,H=O.seriesLayoutBy,U=O.sourceHeader,W=O.dimensions,Y=B(N);if(Y){var X=Y.option;z=X.source,G=A(Y).sourceFormat,q=!0,H=H||X.seriesLayoutBy,U==null&&(U=X.sourceHeader),W=W||X.dimensions}var K=D(z,G,H,U,W);A(N).source=new d({data:z,fromDataset:q,seriesLayoutBy:H,sourceFormat:G,dimensionsDefine:K.dimensionsDefine,startIndex:K.startIndex,dimensionsDetectCount:K.dimensionsDetectCount,encodeDefine:O.encode})}function D(N,O,z,G,q){if(!N)return{dimensionsDefine:P(q)};var H,U;if(O===m)G==="auto"||G==null?I(function(Y){Y!=null&&Y!=="-"&&(u(Y)?U==null&&(U=1):U=0)},z,N,10):U=G?1:0,!q&&U===1&&(q=[],I(function(Y,X){q[X]=Y!=null?Y:""},z,N)),H=q?q.length:z===b?N.length:N[0]?N[0].length:null;else if(O===y)q||(q=R(N));else if(O===_)q||(q=[],o(N,function(Y,X){q.push(X)}));else if(O===g){var W=a(N[0]);H=l(W)&&W.length||1}return{startIndex:U,dimensionsDefine:P(q),dimensionsDetectCount:H}}function P(N){if(N){var O=n();return s(N,function(z,G){if(z=c({},v(z)?z:{name:z}),z.name==null)return z;z.name+="",z.displayName==null&&(z.displayName=z.name);var q=O.get(z.name);return q?z.name+="-"+q.count++:O.set(z.name,{count:1}),z})}}function I(N,O,z,G){if(G==null&&(G=1/0),O===b)for(var q=0;q<z.length&&q<G;q++)N(z[q]?z[q][0]:null,q);else for(var H=z[0]||[],q=0;q<H.length&&q<G;q++)N(H[q],q)}function R(N){for(var O=0,z;O<N.length&&!(z=N[O++]););if(z){var G=[];return o(z,function(q,H){G.push(H)}),G}}function E(N,O,z){var G={},q=B(O);if(!q||!N)return G;var H=[],U=[],W=O.ecModel,Y=A(W).datasetMap,X=q.uid+"_"+z.seriesLayoutBy,K,Q;N=N.slice(),o(N,function(ee,le){!v(ee)&&(N[le]={name:ee}),ee.type==="ordinal"&&K==null&&(K=le,Q=Z(N[le])),G[ee.name]=[]});var j=Y.get(X)||Y.set(X,{categoryWayDim:Q,valueWayDim:0});o(N,function(ee,le){var oe=ee.name,fe=Z(ee);if(K==null){var se=j.valueWayDim;te(G[oe],se,fe),te(U,se,fe),j.valueWayDim+=fe}else if(K===le)te(G[oe],0,fe),te(H,0,fe);else{var se=j.categoryWayDim;te(G[oe],se,fe),te(U,se,fe),j.categoryWayDim+=fe}});function te(ee,le,oe){for(var fe=0;fe<oe;fe++)ee.push(le+fe)}function Z(ee){var le=ee.dimsDef;return le?le.length:1}return H.length&&(G.itemName=H),U.length&&(G.seriesName=U),G}function k(N,O,z){var G={},q=B(N);if(!q)return G;var H=O.sourceFormat,U=O.dimensionsDefine,W;(H===y||H===_)&&o(U,function(K,Q){(v(K)?K.name:K)==="name"&&(W=Q)});var Y=(function(){for(var K={},Q={},j=[],te=0,Z=Math.min(5,z);te<Z;te++){var ee=V(O.data,H,O.seriesLayoutBy,U,O.startIndex,te);j.push(ee);var le=ee===w.Not;if(le&&K.v==null&&te!==W&&(K.v=te),(K.n==null||K.n===K.v||!le&&j[K.n]===w.Not)&&(K.n=te),oe(K)&&j[K.n]!==w.Not)return K;le||(ee===w.Might&&Q.v==null&&te!==W&&(Q.v=te),(Q.n==null||Q.n===Q.v)&&(Q.n=te))}function oe(fe){return fe.v!=null&&fe.n!=null}return oe(K)?K:oe(Q)?Q:null})();if(Y){G.value=Y.v;var X=W!=null?W:Y.n;G.itemName=[X],G.seriesName=[X]}return G}function B(N){var O=N.option,z=O.data;if(!z)return N.ecModel.getComponent("dataset",O.datasetIndex||0)}function F(N,O){return V(N.data,N.sourceFormat,N.seriesLayoutBy,N.dimensionsDefine,N.startIndex,O)}function V(N,O,z,G,q,H){var U,W=5;if(h(N))return w.Not;var Y,X;if(G){var K=G[H];v(K)?(Y=K.name,X=K.type):u(K)&&(Y=K)}if(X!=null)return X==="ordinal"?w.Must:w.Not;if(O===m)if(z===b){for(var Q=N[H],j=0;j<(Q||[]).length&&j<W;j++)if((U=le(Q[q+j]))!=null)return U}else for(var j=0;j<N.length&&j<W;j++){var te=N[q+j];if(te&&(U=le(te[H]))!=null)return U}else if(O===y){if(!Y)return w.Not;for(var j=0;j<N.length&&j<W;j++){var Z=N[j];if(Z&&(U=le(Z[Y]))!=null)return U}}else if(O===_){if(!Y)return w.Not;var Q=N[Y];if(!Q||h(Q))return w.Not;for(var j=0;j<Q.length&&j<W;j++)if((U=le(Q[j]))!=null)return U}else if(O===g)for(var j=0;j<N.length&&j<W;j++){var Z=N[j],ee=a(Z);if(!l(ee))return w.Not;if((U=le(ee[H]))!=null)return U}function le(oe){var fe=u(oe);if(oe!=null&&isFinite(oe)&&oe!=="")return fe?w.Might:w.Not;if(fe&&oe!=="-")return w.Must}return w.Not}return Pi.BE_ORDINAL=w,Pi.detectSourceFormat=T,Pi.getSource=C,Pi.resetSourceDefaulter=M,Pi.prepareSource=L,Pi.makeSeriesEncodeForAxisCoordSys=E,Pi.makeSeriesEncodeForNameBased=k,Pi.guessOrdinal=F,Pi}var p_,yN;function q9(){if(yN)return p_;yN=1;var r=It();r.__DEV__;var t=ie(),e=t.each,a=t.filter,i=t.map,n=t.isArray,o=t.indexOf,s=t.isObject,l=t.isString,u=t.createHashMap,v=t.assert,h=t.clone,f=t.merge,c=t.extend,d=t.mixin,p=_t(),g=gr(),m=Lr(),y=jpe(),_=H9(),x=Ln(),S=x.resetSourceDefaulter,b="\0_ec_inner",w=g.extend({init:function(R,E,k,B){k=k||{},this.option=null,this._theme=new g(k),this._optionManager=B},setOption:function(R,E){v(!(b in R),"please use chart.getOption()"),this._optionManager.setOption(R,E),this.resetOption(null)},resetOption:function(R){var E=!1,k=this._optionManager;if(!R||R==="recreate"){var B=k.mountOption(R==="recreate");!this.option||R==="recreate"?C.call(this,B):(this.restoreData(),this.mergeOption(B)),E=!0}if((R==="timeline"||R==="media")&&this.restoreData(),!R||R==="recreate"||R==="timeline"){var F=k.getTimelineOption(this);F&&(this.mergeOption(F),E=!0)}if(!R||R==="recreate"||R==="media"){var V=k.getMediaOption(this,this._api);V.length&&e(V,function(N){this.mergeOption(N,E=!0)},this)}return E},mergeOption:function(R){var E=this.option,k=this._componentsMap,B=[];S(this),e(R,function(V,N){V!=null&&(m.hasClass(N)?N&&B.push(N):E[N]=E[N]==null?h(V):f(E[N],V,!0))}),m.topologicalTravel(B,m.getAllClassMainTypes(),F,this);function F(V,N){var O=p.normalizeToArray(R[V]),z=p.mappingToExists(k.get(V),O);p.makeIdAndName(z),e(z,function(q,H){var U=q.option;s(U)&&(q.keyInfo.mainType=V,q.keyInfo.subType=L(V,U,q.exist))});var G=M(k,N);E[V]=[],k.set(V,[]),e(z,function(q,H){var U=q.exist,W=q.option;if(v(s(W)||U,"Empty component definition"),!W)U.mergeOption({},this),U.optionUpdated({},!1);else{var Y=m.getClass(V,q.keyInfo.subType,!0);if(U&&U.constructor===Y)U.name=q.keyInfo.name,U.mergeOption(W,this),U.optionUpdated(W,!1);else{var X=c({dependentModels:G,componentIndex:H},q.keyInfo);U=new Y(W,this,this,X),c(U,X),U.init(W,this,this,X),U.optionUpdated(null,!0)}}k.get(V)[H]=U,E[V][H]=U.option},this),V==="series"&&D(this,k.get("series"))}this._seriesIndicesMap=u(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var R=h(this.option);return e(R,function(E,k){if(m.hasClass(k)){for(var E=p.normalizeToArray(E),B=E.length-1;B>=0;B--)p.isIdInner(E[B])&&E.splice(B,1);R[k]=E}}),delete R[b],R},getTheme:function(){return this._theme},getComponent:function(R,E){var k=this._componentsMap.get(R);if(k)return k[E||0]},queryComponents:function(R){var E=R.mainType;if(!E)return[];var k=R.index,B=R.id,F=R.name,V=this._componentsMap.get(E);if(!V||!V.length)return[];var N;if(k!=null)n(k)||(k=[k]),N=a(i(k,function(G){return V[G]}),function(G){return!!G});else if(B!=null){var O=n(B);N=a(V,function(G){return O&&o(B,G.id)>=0||!O&&G.id===B})}else if(F!=null){var z=n(F);N=a(V,function(G){return z&&o(F,G.name)>=0||!z&&G.name===F})}else N=V.slice();return P(N,R)},findComponents:function(R){var E=R.query,k=R.mainType,B=V(E),F=B?this.queryComponents(B):this._componentsMap.get(k);return N(P(F,R));function V(O){var z=k+"Index",G=k+"Id",q=k+"Name";return O&&(O[z]!=null||O[G]!=null||O[q]!=null)?{mainType:k,index:O[z],id:O[G],name:O[q]}:null}function N(O){return R.filter?a(O,R.filter):O}},eachComponent:function(R,E,k){var B=this._componentsMap;if(typeof R=="function")k=E,E=R,B.each(function(V,N){e(V,function(O,z){E.call(k,N,O,z)})});else if(l(R))e(B.get(R),E,k);else if(s(R)){var F=this.findComponents(R);e(F,E,k)}},getSeriesByName:function(R){var E=this._componentsMap.get("series");return a(E,function(k){return k.name===R})},getSeriesByIndex:function(R){return this._componentsMap.get("series")[R]},getSeriesByType:function(R){var E=this._componentsMap.get("series");return a(E,function(k){return k.subType===R})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(R,E){e(this._seriesIndices,function(k){var B=this._componentsMap.get("series")[k];R.call(E,B,k)},this)},eachRawSeries:function(R,E){e(this._componentsMap.get("series"),R,E)},eachSeriesByType:function(R,E,k){e(this._seriesIndices,function(B){var F=this._componentsMap.get("series")[B];F.subType===R&&E.call(k,F,B)},this)},eachRawSeriesByType:function(R,E,k){return e(this.getSeriesByType(R),E,k)},isSeriesFiltered:function(R){return this._seriesIndicesMap.get(R.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(R,E){var k=a(this._componentsMap.get("series"),R,E);D(this,k)},restoreData:function(R){var E=this._componentsMap;D(this,E.get("series"));var k=[];E.each(function(B,F){k.push(F)}),m.topologicalTravel(k,m.getAllClassMainTypes(),function(B,F){e(E.get(B),function(V){(B!=="series"||!A(V,R))&&V.restoreData()})})}});function A(R,E){if(E){var k=E.seiresIndex,B=E.seriesId,F=E.seriesName;return k!=null&&R.componentIndex!==k||B!=null&&R.id!==B||F!=null&&R.name!==F}}function T(R,E){var k=R.color&&!R.colorLayer;e(E,function(B,F){F==="colorLayer"&&k||m.hasClass(F)||(typeof B=="object"?R[F]=R[F]?f(R[F],B,!1):h(B):R[F]==null&&(R[F]=B))})}function C(R){R=R,this.option={},this.option[b]=1,this._componentsMap=u({series:[]}),this._seriesIndices,this._seriesIndicesMap,T(R,this._theme.option),f(R,y,!1),this.mergeOption(R)}function M(R,E){n(E)||(E=E?[E]:[]);var k={};return e(E,function(B){k[B]=(R.get(B)||[]).slice()}),k}function L(R,E,k){var B=E.type?E.type:k?k.subType:m.determineSubType(R,E);return B}function D(R,E){R._seriesIndicesMap=u(R._seriesIndices=i(E,function(k){return k.componentIndex})||[])}function P(R,E){return E.hasOwnProperty("subType")?a(R,function(k){return k.subType===E.subType}):R}d(w,_);var I=w;return p_=I,p_}var g_,_N;function W9(){if(_N)return g_;_N=1;var r=ie(),t=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function e(i){r.each(t,function(n){this[n]=r.bind(i[n],i)},this)}var a=e;return g_=a,g_}var m_,xN;function bi(){if(xN)return m_;xN=1;var r=ie(),t={};function e(){this._coordinateSystems=[]}e.prototype={constructor:e,create:function(i,n){var o=[];r.each(t,function(s,l){var u=s.create(i,n);o=o.concat(u||[])}),this._coordinateSystems=o},update:function(i,n){r.each(this._coordinateSystems,function(o){o.update&&o.update(i,n)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(i,n){t[i]=n},e.get=function(i){return t[i]};var a=e;return m_=a,m_}var y_,SN;function Jpe(){if(SN)return y_;SN=1;var r=ie(),t=_t(),e=Lr(),a=r.each,i=r.clone,n=r.map,o=r.merge,s=/^(min|max)?(.+)$/;function l(p){this._api=p,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}l.prototype={constructor:l,setOption:function(p,g){p&&r.each(t.normalizeToArray(p.series),function(_){_&&_.data&&r.isTypedArray(_.data)&&r.setAsPrimitive(_.data)}),p=i(p);var m=this._optionBackup,y=u.call(this,p,g,!m);this._newBaseOption=y.baseOption,m?(c(m.baseOption,y.baseOption),y.timelineOptions.length&&(m.timelineOptions=y.timelineOptions),y.mediaList.length&&(m.mediaList=y.mediaList),y.mediaDefault&&(m.mediaDefault=y.mediaDefault)):this._optionBackup=y},mountOption:function(p){var g=this._optionBackup;return this._timelineOptions=n(g.timelineOptions,i),this._mediaList=n(g.mediaList,i),this._mediaDefault=i(g.mediaDefault),this._currentMediaIndices=[],i(p?g.baseOption:this._newBaseOption)},getTimelineOption:function(p){var g,m=this._timelineOptions;if(m.length){var y=p.getComponent("timeline");y&&(g=i(m[y.getCurrentIndex()],!0))}return g},getMediaOption:function(p){var g=this._api.getWidth(),m=this._api.getHeight(),y=this._mediaList,_=this._mediaDefault,x=[],S=[];if(!y.length&&!_)return S;for(var b=0,w=y.length;b<w;b++)v(y[b].query,g,m)&&x.push(b);return!x.length&&_&&(x=[-1]),x.length&&!f(x,this._currentMediaIndices)&&(S=n(x,function(A){return i(A===-1?_.option:y[A].option)})),this._currentMediaIndices=x,S}};function u(p,g,m){var y=[],_=[],x,S,b=p.timeline;if(p.baseOption&&(S=p.baseOption),(b||p.options)&&(S=S||{},y=(p.options||[]).slice()),p.media){S=S||{};var w=p.media;a(w,function(A){A&&A.option&&(A.query?_.push(A):x||(x=A))})}return S||(S=p),S.timeline||(S.timeline=b),a([S].concat(y).concat(r.map(_,function(A){return A.option})),function(A){a(g,function(T){T(A,m)})}),{baseOption:S,timelineOptions:y,mediaDefault:x,mediaList:_}}function v(p,g,m){var y={width:g,height:m,aspectratio:g/m},_=!0;return r.each(p,function(x,S){var b=S.match(s);if(!(!b||!b[1]||!b[2])){var w=b[1],A=b[2].toLowerCase();h(y[A],x,w)||(_=!1)}}),_}function h(p,g,m){return m==="min"?p>=g:m==="max"?p<=g:p===g}function f(p,g){return p.join(",")===g.join(",")}function c(p,g){g=g||{},a(g,function(m,y){if(m!=null){var _=p[y];if(!e.hasClass(y))p[y]=o(_,m,!0);else{m=t.normalizeToArray(m),_=t.normalizeToArray(_);var x=t.mappingToExists(_,m);p[y]=n(x,function(S){return S.option&&S.exist?o(S.exist,S.option,!0):S.exist||S.option})}}})}var d=l;return y_=d,y_}var __,bN;function ege(){if(bN)return __;bN=1;var r=ie(),t=_t(),e=r.each,a=r.isObject,i=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function n(d){var p=d&&d.itemStyle;if(p)for(var g=0,m=i.length;g<m;g++){var y=i[g],_=p.normal,x=p.emphasis;_&&_[y]&&(d[y]=d[y]||{},d[y].normal?r.merge(d[y].normal,_[y]):d[y].normal=_[y],_[y]=null),x&&x[y]&&(d[y]=d[y]||{},d[y].emphasis?r.merge(d[y].emphasis,x[y]):d[y].emphasis=x[y],x[y]=null)}}function o(d,p,g){if(d&&d[p]&&(d[p].normal||d[p].emphasis)){var m=d[p].normal,y=d[p].emphasis;m&&(g?(d[p].normal=d[p].emphasis=null,r.defaults(d[p],m)):d[p]=m),y&&(d.emphasis=d.emphasis||{},d.emphasis[p]=y)}}function s(d){o(d,"itemStyle"),o(d,"lineStyle"),o(d,"areaStyle"),o(d,"label"),o(d,"labelLine"),o(d,"upperLabel"),o(d,"edgeLabel")}function l(d,p){var g=a(d)&&d[p],m=a(g)&&g.textStyle;if(m)for(var y=0,_=t.TEXT_STYLE_OPTIONS.length;y<_;y++){var p=t.TEXT_STYLE_OPTIONS[y];m.hasOwnProperty(p)&&(g[p]=m[p])}}function u(d){d&&(s(d),l(d,"label"),d.emphasis&&l(d.emphasis,"label"))}function v(d){if(a(d)){n(d),s(d),l(d,"label"),l(d,"upperLabel"),l(d,"edgeLabel"),d.emphasis&&(l(d.emphasis,"label"),l(d.emphasis,"upperLabel"),l(d.emphasis,"edgeLabel"));var _=d.markPoint;_&&(n(_),u(_));var S=d.markLine;S&&(n(S),u(S));var p=d.markArea;p&&u(p);var g=d.data;if(d.type==="graph"){g=g||d.nodes;var m=d.links||d.edges;if(m&&!r.isTypedArray(m))for(var y=0;y<m.length;y++)u(m[y]);r.each(d.categories,function(w){s(w)})}if(g&&!r.isTypedArray(g))for(var y=0;y<g.length;y++)u(g[y]);var _=d.markPoint;if(_&&_.data)for(var x=_.data,y=0;y<x.length;y++)u(x[y]);var S=d.markLine;if(S&&S.data)for(var b=S.data,y=0;y<b.length;y++)r.isArray(b[y])?(u(b[y][0]),u(b[y][1])):u(b[y]);d.type==="gauge"?(l(d,"axisLabel"),l(d,"title"),l(d,"detail")):d.type==="treemap"?(o(d.breadcrumb,"itemStyle"),r.each(d.levels,function(w){s(w)})):d.type==="tree"&&s(d.leaves)}}function h(d){return r.isArray(d)?d:d?[d]:[]}function f(d){return(r.isArray(d)?d[0]:d)||{}}function c(d,p){e(h(d.series),function(m){a(m)&&v(m)});var g=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];p&&g.push("valueAxis","categoryAxis","logAxis","timeAxis"),e(g,function(m){e(h(d[m]),function(y){y&&(l(y,"axisLabel"),l(y.axisPointer,"label"))})}),e(h(d.parallel),function(m){var y=m&&m.parallelAxisDefault;l(y,"axisLabel"),l(y&&y.axisPointer,"label")}),e(h(d.calendar),function(m){o(m,"itemStyle"),l(m,"dayLabel"),l(m,"monthLabel"),l(m,"yearLabel")}),e(h(d.radar),function(m){l(m,"name")}),e(h(d.geo),function(m){a(m)&&(u(m),e(h(m.regions),function(y){u(y)}))}),e(h(d.timeline),function(m){u(m),o(m,"label"),o(m,"itemStyle"),o(m,"controlStyle",!0);var y=m.data;r.isArray(y)&&r.each(y,function(_){r.isObject(_)&&(o(_,"label"),o(_,"itemStyle"))})}),e(h(d.toolbox),function(m){o(m,"iconStyle"),e(m.feature,function(y){o(y,"iconStyle")})}),l(f(d.axisPointer),"label"),l(f(d.tooltip).axisPointer,"label")}return __=c,__}var x_,wN;function tge(){if(wN)return x_;wN=1;var r=ie(),t=r.each,e=r.isArray,a=r.isObject,i=ege(),n=_t(),o=n.normalizeToArray;function s(c,d){d=d.split(",");for(var p=c,g=0;g<d.length&&(p=p&&p[d[g]],p!=null);g++);return p}function l(c,d,p,g){d=d.split(",");for(var m=c,y,_=0;_<d.length-1;_++)y=d[_],m[y]==null&&(m[y]={}),m=m[y];m[d[_]]==null&&(m[d[_]]=p)}function u(c){t(v,function(d){d[0]in c&&!(d[1]in c)&&(c[d[1]]=c[d[0]])})}var v=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function f(c,d){i(c,d),c.series=o(c.series),t(c.series,function(p){if(a(p)){var g=p.type;if(g==="line")p.clipOverflow!=null&&(p.clip=p.clipOverflow);else if(g==="pie"||g==="gauge")p.clockWise!=null&&(p.clockwise=p.clockWise);else if(g==="gauge"){var m=s(p,"pointer.color");m!=null&&l(p,"itemStyle.color",m)}u(p)}}),c.dataRange&&(c.visualMap=c.dataRange),t(h,function(p){var g=c[p];g&&(e(g)||(g=[g]),t(g,function(m){u(m)}))})}return x_=f,x_}var S_,TN;function rge(){if(TN)return S_;TN=1;var r=ie(),t=r.createHashMap,e=r.each;function a(n){var o=t();n.eachSeries(function(s){var l=s.get("stack");if(l){var u=o.get(l)||o.set(l,[]),v=s.getData(),h={stackResultDimension:v.getCalculationInfo("stackResultDimension"),stackedOverDimension:v.getCalculationInfo("stackedOverDimension"),stackedDimension:v.getCalculationInfo("stackedDimension"),stackedByDimension:v.getCalculationInfo("stackedByDimension"),isStackedByIndex:v.getCalculationInfo("isStackedByIndex"),data:v,seriesModel:s};if(!h.stackedDimension||!(h.isStackedByIndex||h.stackedByDimension))return;u.length&&v.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(h)}}),o.each(i)}function i(n){e(n,function(o,s){var l=[],u=[NaN,NaN],v=[o.stackResultDimension,o.stackedOverDimension],h=o.data,f=o.isStackedByIndex,c=h.map(v,function(d,p,g){var m=h.get(o.stackedDimension,g);if(isNaN(m))return u;var y,_;f?_=h.getRawIndex(g):y=h.get(o.stackedByDimension,g);for(var x=NaN,S=s-1;S>=0;S--){var b=n[S];if(f||(_=b.data.rawIndexOf(b.stackedByDimension,y)),_>=0){var w=b.data.getByRawIndex(b.stackResultDimension,_);if(m>=0&&w>0||m<=0&&w<0){m+=w,x=w;break}}}return l[0]=m,l[1]=x,l});h.hostModel.setData(c),o.data=c})}return S_=a,S_}var bl={},AN;function Ys(){if(AN)return bl;AN=1;var r=It();r.__DEV__;var t=ie();t.isTypedArray;var e=t.extend;t.assert;var a=t.each,i=t.isObject,n=_t(),o=n.getDataItemValue,s=n.isDataItemOption,l=st(),u=l.parseDate,v=ff(),h=hf(),f=h.SOURCE_FORMAT_TYPED_ARRAY,c=h.SOURCE_FORMAT_ARRAY_ROWS,d=h.SOURCE_FORMAT_ORIGINAL,p=h.SOURCE_FORMAT_OBJECT_ROWS;function g(D,P){v.isInstance(D)||(D=v.seriesDataToSource(D)),this._source=D;var I=this._data=D.data,R=D.sourceFormat;R===f&&(this._offset=0,this._dimSize=P,this._data=I);var E=y[R===c?R+"_"+D.seriesLayoutBy:R];e(this,E)}var m=g.prototype;m.pure=!1,m.persistent=!0,m.getSource=function(){return this._source};var y={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(D){return this._data[D+this._source.startIndex]},appendData:S},arrayRows_row:{pure:!0,count:function(){var D=this._data[0];return D?Math.max(0,D.length-this._source.startIndex):0},getItem:function(D){D+=this._source.startIndex;for(var P=[],I=this._data,R=0;R<I.length;R++){var E=I[R];P.push(E?E[D]:null)}return P},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:_,getItem:x,appendData:S},keyedColumns:{pure:!0,count:function(){var D=this._source.dimensionsDefine[0].name,P=this._data[D];return P?P.length:0},getItem:function(D){for(var P=[],I=this._source.dimensionsDefine,R=0;R<I.length;R++){var E=this._data[I[R].name];P.push(E?E[D]:null)}return P},appendData:function(D){var P=this._data;a(D,function(I,R){for(var E=P[R]||(P[R]=[]),k=0;k<(I||[]).length;k++)E.push(I[k])})}},original:{count:_,getItem:x,appendData:S},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(D,P){D=D-this._offset,P=P||[];for(var I=this._dimSize*D,R=0;R<this._dimSize;R++)P[R]=this._data[I+R];return P},appendData:function(D){this._data=D},clean:function(){this._offset+=this.count(),this._data=null}}};function _(){return this._data.length}function x(D){return this._data[D]}function S(D){for(var P=0;P<D.length;P++)this._data.push(D[P])}var b={arrayRows:w,objectRows:function(D,P,I,R){return I!=null?D[R]:D},keyedColumns:w,original:function(D,P,I,R){var E=o(D);return I==null||!(E instanceof Array)?E:E[I]},typedArray:w};function w(D,P,I,R){return I!=null?D[I]:D}var A={arrayRows:T,objectRows:function(D,P,I,R){return C(D[P],this._dimensionInfos[P])},keyedColumns:T,original:function(D,P,I,R){var E=D&&(D.value==null?D:D.value);return!this._rawData.pure&&s(D)&&(this.hasItemOption=!0),C(E instanceof Array?E[R]:E,this._dimensionInfos[P])},typedArray:function(D,P,I,R){return D[R]}};function T(D,P,I,R){return C(D[R],this._dimensionInfos[P])}function C(D,P){var I=P&&P.type;if(I==="ordinal"){var R=P&&P.ordinalMeta;return R?R.parseAndCollect(D):D}return I==="time"&&typeof D!="number"&&D!=null&&D!=="-"&&(D=+u(D)),D==null||D===""?NaN:+D}function M(D,P,I){if(D){var R=D.getRawDataItem(P);if(R!=null){var E=D.getProvider().getSource().sourceFormat,k,B,F=D.getDimensionInfo(I);return F&&(k=F.name,B=F.index),b[E](R,P,B,k)}}}function L(D,P,I){if(D){var R=D.getProvider().getSource().sourceFormat;if(!(R!==d&&R!==p)){var E=D.getRawDataItem(P);if(R===d&&!i(E)&&(E=null),E)return E[I]}}}return bl.DefaultDataProvider=g,bl.defaultDimValueGetters=A,bl.retrieveRawValue=M,bl.retrieveRawAttr=L,bl}var b_,CN;function aD(){if(CN)return b_;CN=1;var r=Ys(),t=r.retrieveRawValue,e=Yt(),a=e.getTooltipMarker,i=e.formatTpl,n=_t(),o=n.getTooltipRenderMode,s=/\{@(.+?)\}/g,l={getDataParams:function(u,v){var h=this.getData(v),f=this.getRawValue(u,v),c=h.getRawIndex(u),d=h.getName(u),p=h.getRawDataItem(u),g=h.getItemVisual(u,"color"),m=h.getItemVisual(u,"borderColor"),y=this.ecModel.getComponent("tooltip"),_=y&&y.get("renderMode"),x=o(_),S=this.mainType,b=S==="series",w=h.userOutput;return{componentType:S,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:b?this.subType:null,seriesIndex:this.seriesIndex,seriesId:b?this.id:null,seriesName:b?this.name:null,name:d,dataIndex:c,data:p,dataType:v,value:f,color:g,borderColor:m,dimensionNames:w?w.dimensionNames:null,encode:w?w.encode:null,marker:a({color:g,renderMode:x}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(u,v,h,f,c){v=v||"normal";var d=this.getData(h),p=d.getItemModel(u),g=this.getDataParams(u,h);f!=null&&g.value instanceof Array&&(g.value=g.value[f]);var m=p.get(v==="normal"?[c||"label","formatter"]:[v,c||"label","formatter"]);if(typeof m=="function")return g.status=v,g.dimensionIndex=f,m(g);if(typeof m=="string"){var y=i(m,g);return y.replace(s,function(_,x){var S=x.length;return x.charAt(0)==="["&&x.charAt(S-1)==="]"&&(x=+x.slice(1,S-1)),t(d,u,x)})}},getRawValue:function(u,v){return t(this.getData(v),u)},formatTooltip:function(){}};return b_=l,b_}var w_={},MN;function iD(){if(MN)return w_;MN=1;var r=ie();r.assert;var t=r.isArray,e=It();e.__DEV__;function a(u){return new i(u)}function i(u){u=u||{},this._reset=u.reset,this._plan=u.plan,this._count=u.count,this._onDirty=u.onDirty,this._dirty=!0,this.context}var n=i.prototype;n.perform=function(u){var v=this._upstream,h=u&&u.skip;if(this._dirty&&v){var f=this.context;f.data=f.outputData=v.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var c;this._plan&&!h&&(c=this._plan(this.context));var d=y(this._modBy),p=this._modDataCount||0,g=y(u&&u.modBy),m=u&&u.modDataCount||0;(d!==g||p!==m)&&(c="reset");function y(C){return!(C>=1)&&(C=1),C}var _;(this._dirty||c==="reset")&&(this._dirty=!1,_=l(this,h)),this._modBy=g,this._modDataCount=m;var x=u&&u.step;if(v?this._dueEnd=v._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var S=this._dueIndex,b=Math.min(x!=null?this._dueIndex+x:1/0,this._dueEnd);if(!h&&(_||S<b)){var w=this._progress;if(t(w))for(var A=0;A<w.length;A++)s(this,w[A],S,b,g,m);else s(this,w,S,b,g,m)}this._dueIndex=b;var T=this._settedOutputEnd!=null?this._settedOutputEnd:b;this._outputDueEnd=T}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=(function(){var u,v,h,f,c,d={reset:function(m,y,_,x){v=m,u=y,h=_,f=x,c=Math.ceil(f/h),d.next=h>1&&f>0?g:p}};return d;function p(){return v<u?v++:null}function g(){var m=v%c*h+Math.ceil(v/c),y=v>=u?null:m<f?m:v;return v++,y}})();n.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function s(u,v,h,f,c,d){o.reset(h,f,c,d),u._callingProgress=v,u._callingProgress({start:h,end:f,count:f-h,next:o.next},u.context)}function l(u,v){u._dueIndex=u._outputDueEnd=u._dueEnd=0,u._settedOutputEnd=null;var h,f;!v&&u._reset&&(h=u._reset(u.context),h&&h.progress&&(f=h.forceFirstProgress,h=h.progress),t(h)&&!h.length&&(h=null)),u._progress=h,u._modBy=u._modDataCount=null;var c=u._downstream;return c&&c.dirty(),f}return n.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.pipe=function(u){(this._downstream!==u||this._dirty)&&(this._downstream=u,u._upstream=this,u.dirty())},n.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.getUpstream=function(){return this._upstream},n.getDownstream=function(){return this._downstream},n.setOutputEnd=function(u){this._outputDueEnd=this._settedOutputEnd=u},w_.createTask=a,w_}var T_,DN;function Ir(){if(DN)return T_;DN=1;var r=It();r.__DEV__;var t=ie(),e=pr(),a=Yt(),i=a.formatTime,n=a.encodeHTML,o=a.addCommas,s=a.getTooltipMarker,l=_t(),u=Lr(),v=H9(),h=aD(),f=Ut(),c=f.getLayoutParams,d=f.mergeLayoutParam,p=iD(),g=p.createTask,m=Ln(),y=m.prepareSource,_=m.getSource,x=Ys(),S=x.retrieveRawValue,b=l.makeInner(),w=u.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(E,k,B,F){this.seriesIndex=this.componentIndex,this.dataTask=g({count:C,reset:M}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(E,B),y(this);var V=this.getInitialData(E,B);D(V,this),this.dataTask.context.data=V,b(this).dataBeforeProcessed=V,A(this)},mergeDefaultAndTheme:function(E,k){var B=this.layoutMode,F=B?c(E):{},V=this.subType;u.hasClass(V)&&(V+="Series"),t.merge(E,k.getTheme().get(this.subType)),t.merge(E,this.getDefaultOption()),l.defaultEmphasis(E,"label",["show"]),this.fillDataTextStyle(E.data),B&&d(E,F,B)},mergeOption:function(E,k){E=t.merge(this.option,E,!0),this.fillDataTextStyle(E.data);var B=this.layoutMode;B&&d(this.option,E,B),y(this);var F=this.getInitialData(E,k);D(F,this),this.dataTask.dirty(),this.dataTask.context.data=F,b(this).dataBeforeProcessed=F,A(this)},fillDataTextStyle:function(E){if(E&&!t.isTypedArray(E))for(var k=["show"],B=0;B<E.length;B++)E[B]&&E[B].label&&l.defaultEmphasis(E[B],"label",k)},getInitialData:function(){},appendData:function(E){var k=this.getRawData();k.appendData(E.data)},getData:function(E){var k=I(this);if(k){var B=k.context.data;return E==null?B:B.getLinkedData(E)}else return b(this).data},setData:function(E){var k=I(this);if(k){var B=k.context;B.data!==E&&k.modifyOutputEnd&&k.setOutputEnd(E.count()),B.outputData=E,k!==this.dataTask&&(B.data=E)}b(this).data=E},getSource:function(){return _(this)},getRawData:function(){return b(this).dataBeforeProcessed},getBaseAxis:function(){var E=this.coordinateSystem;return E&&E.getBaseAxis&&E.getBaseAxis()},formatTooltip:function(E,k,B,F){var V=this;F=F||"html";var N=F==="html"?"<br/>":"\n",O=F==="richText",z={},G=0;function q(ve){var ye=t.reduce(ve,function(me,xe,ge){var pe=U.getDimensionInfo(ge);return me|=pe&&pe.tooltip!==!1&&pe.displayName!=null},0),Me=[];W.length?t.each(W,function(me){J(S(U,E,me),me)}):t.each(ve,J);function J(me,xe){var ge=U.getDimensionInfo(xe);if(!(!ge||ge.otherDims.tooltip===!1)){var pe=ge.type,Ce="sub"+V.seriesIndex+"at"+G,ze=s({color:Q,type:"subItem",renderMode:F,markerId:Ce}),Ve=typeof ze=="string"?ze:ze.content,ke=(ye?Ve+n(ge.displayName||"-")+": ":"")+n(pe==="ordinal"?me+"":pe==="time"?k?"":i("yyyy/MM/dd hh:mm:ss",me):o(me));ke&&Me.push(ke),O&&(z[Ce]=Q,++G)}}var ne=ye?O?"\n":"<br/>":"",ue=ne+Me.join(ne||", ");return{renderMode:F,content:ue,style:z}}function H(ve){return{renderMode:F,content:n(o(ve)),style:z}}var U=this.getData(),W=U.mapDimension("defaultedTooltip",!0),Y=W.length,X=this.getRawValue(E),K=t.isArray(X),Q=U.getItemVisual(E,"color");t.isObject(Q)&&Q.colorStops&&(Q=(Q.colorStops[0]||{}).color),Q=Q||"transparent";var j=Y>1||K&&!Y?q(X):H(Y?S(U,E,W[0]):K?X[0]:X),te=j.content,Z=V.seriesIndex+"at"+G,ee=s({color:Q,type:"item",renderMode:F,markerId:Z});z[Z]=Q,++G;var le=U.getName(E),oe=this.name;l.isNameSpecified(this)||(oe=""),oe=oe?n(oe)+(k?": ":N):"";var fe=typeof ee=="string"?ee:ee.content,se=k?fe+oe+te:oe+fe+(le?n(le)+": "+te:te);return{html:se,markers:z}},isAnimationEnabled:function(){if(e.node)return!1;var E=this.getShallow("animation");return E&&this.getData().count()>this.getShallow("animationThreshold")&&(E=!1),E},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(E,k,B){var F=this.ecModel,V=v.getColorFromPalette.call(this,E,k,B);return V||(V=F.getColorFromPalette(E,k,B)),V},coordDimToDataDim:function(E){return this.getRawData().mapDimension(E,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});t.mixin(w,h),t.mixin(w,v);function A(E){var k=E.name;l.isNameSpecified(E)||(E.name=T(E)||k)}function T(E){var k=E.getRawData(),B=k.mapDimension("seriesName",!0),F=[];return t.each(B,function(V){var N=k.getDimensionInfo(V);N.displayName&&F.push(N.displayName)}),F.join(" ")}function C(E){return E.model.getRawData().count()}function M(E){var k=E.model;return k.setData(k.getRawData().cloneShallow()),L}function L(E,k){k.outputData&&E.end>k.outputData.count()&&k.model.getRawData().cloneShallow(k.outputData)}function D(E,k){t.each(E.CHANGABLE_METHODS,function(B){E.wrapMethod(B,t.curry(P,k))})}function P(E){var k=I(E);k&&k.setOutputEnd(this.count())}function I(E){var k=(E.ecModel||{}).scheduler,B=k&&k.getPipeline(E.uid);if(B){var F=B.currentTask;if(F){var V=F.agentStubMap;V&&(F=V.get(E.uid))}return F}}var R=w;return T_=R,T_}var A_,LN;function fg(){if(LN)return A_;LN=1;var r=Us(),t=vf(),e=Dn(),a=function(){this.group=new r,this.uid=t.getUID("viewComponent")};a.prototype={constructor:a,init:function(o,s){},render:function(o,s,l,u){},dispose:function(){},filterForExposedEvent:null};var i=a.prototype;i.updateView=i.updateLayout=i.updateVisual=function(o,s,l,u){},e.enableClassExtend(a),e.enableClassManagement(a,{registerWhenExtend:!0});var n=a;return A_=n,A_}var C_,IN;function Cu(){if(IN)return C_;IN=1;var r=_t(),t=r.makeInner;function e(){var a=t();return function(i){var n=a(i),o=i.pipelineContext,s=n.large,l=n.progressiveRender,u=n.large=o&&o.large,v=n.progressiveRender=o&&o.progressiveRender;return!!(s^u||l^v)&&"reset"}}return C_=e,C_}var M_,PN;function tn(){if(PN)return M_;PN=1;var r=ie(),t=r.each,e=Us(),a=vf(),i=Dn(),n=_t(),o=qe(),s=iD(),l=s.createTask,u=Cu(),v=n.makeInner(),h=u();function f(){this.group=new e,this.uid=a.getUID("viewChart"),this.renderTask=l({plan:g,reset:m}),this.renderTask.context={view:this}}f.prototype={type:"chart",init:function(x,S){},render:function(x,S,b,w){},highlight:function(x,S,b,w){p(x.getData(),w,"emphasis")},downplay:function(x,S,b,w){p(x.getData(),w,"normal")},remove:function(x,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var c=f.prototype;c.updateView=c.updateLayout=c.updateVisual=function(x,S,b,w){this.render(x,S,b,w)};function d(x,S,b){if(x&&(x.trigger(S,b),x.isGroup&&!o.isHighDownDispatcher(x)))for(var w=0,A=x.childCount();w<A;w++)d(x.childAt(w),S,b)}function p(x,S,b){var w=n.queryDataIndex(x,S),A=S&&S.highlightKey!=null?o.getHighlightDigit(S.highlightKey):null;w!=null?t(n.normalizeToArray(w),function(T){d(x.getItemGraphicEl(T),b,A)}):x.eachItemGraphicEl(function(T){d(T,b,A)})}i.enableClassExtend(f,["dispose"]),i.enableClassManagement(f,{registerWhenExtend:!0}),f.markUpdateMethod=function(x,S){v(x).updateMethod=S};function g(x){return h(x.model)}function m(x){var S=x.model,b=x.ecModel,w=x.api,A=x.payload,T=S.pipelineContext.progressiveRender,C=x.view,M=A&&v(A).updateMethod,L=T?"incrementalPrepareRender":M&&C[M]?M:"render";return L!=="render"&&C[L](S,b,w,A),y[L]}var y={incrementalPrepareRender:{progress:function(x,S){S.view.incrementalRender(x,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(x,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}},_=f;return M_=_,M_}var dv={},RN;function _o(){if(RN)return dv;RN=1;var r="\0__throttleOriginMethod",t="\0__throttleRate",e="\0__throttleType";function a(o,s,l){var u,v=0,h=0,f=null,c,d,p,g;s=s||0;function m(){h=new Date().getTime(),f=null,o.apply(d,p||[])}var y=function(){u=new Date().getTime(),d=this,p=arguments;var _=g||s,x=g||l;g=null,c=u-(x?v:h)-_,clearTimeout(f),x?f=setTimeout(m,_):c>=0?m():f=setTimeout(m,-c),v=u};return y.clear=function(){f&&(clearTimeout(f),f=null)},y.debounceNextCall=function(_){g=_},y}function i(o,s,l,u){var v=o[s];if(v){var h=v[r]||v,f=v[e],c=v[t];if(c!==l||f!==u){if(l==null||!u)return o[s]=h;v=o[s]=a(h,l,u==="debounce"),v[r]=h,v[e]=u,v[t]=l}return v}}function n(o,s){var l=o[s];l&&l[r]&&(o[s]=l[r])}return dv.throttle=a,dv.createOrUpdate=i,dv.clear=n,dv}var D_,EN;function age(){if(EN)return D_;EN=1;var r=hg(),t=ie(),e=t.isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,n){var o=i.getData(),s=(i.visualColorAccessPath||"itemStyle.color").split("."),l=i.get(s),u=e(l)&&!(l instanceof r)?l:null;(!l||u)&&(l=i.getColorFromPalette(i.name,null,n.getSeriesCount())),o.setVisual("color",l);var v=(i.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),h=i.get(v);if(o.setVisual("borderColor",h),!n.isSeriesFiltered(i)){u&&o.each(function(c){o.setItemVisual(c,"color",u(i.getDataParams(c)))});var f=function(c,d){var p=c.getItemModel(d),g=p.get(s,!0),m=p.get(v,!0);g!=null&&c.setItemVisual(d,"color",g),m!=null&&c.setItemVisual(d,"borderColor",m)};return{dataEach:o.hasItemOption?f:null}}}};return D_=a,D_}var L_,kN;function xo(){if(kN)return L_;kN=1;var r={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};return L_=r,L_}var I_,ON;function ige(){if(ON)return I_;ON=1;var r=ie(),t=xo(),e=Ys(),a=e.retrieveRawValue;function i(n,o){var s=o.getModel("aria");if(s.get("show")){if(s.get("description")){n.setAttribute("aria-label",s.get("description"));return}}else return;var l=0;o.eachSeries(function(x,S){++l},this);var u=s.get("data.maxCount")||10,v=s.get("series.maxCount")||10,h=Math.min(l,v),f;if(l<1)return;var c=y();c?f=g(m("general.withTitle"),{title:c}):f=m("general.withoutTitle");var d=[],p=l>1?"series.multiple.prefix":"series.single.prefix";f+=g(m(p),{seriesCount:l}),o.eachSeries(function(x,S){if(S<h){var b,w=x.get("name"),A="series."+(l>1?"multiple":"single")+".";b=m(w?A+"withName":A+"withoutName"),b=g(b,{seriesId:x.seriesIndex,seriesName:x.get("name"),seriesType:_(x.subType)});var T=x.getData();window.data=T,T.count()>u?b+=g(m("data.partialData"),{displayCnt:u}):b+=m("data.allData");for(var C=[],M=0;M<T.count();M++)if(M<u){var L=T.getName(M),D=a(T,M);C.push(g(m(L?"data.withName":"data.withoutName"),{name:L,value:D}))}b+=C.join(m("data.separator.middle"))+m("data.separator.end"),d.push(b)}}),f+=d.join(m("series.multiple.separator.middle"))+m("series.multiple.separator.end"),n.setAttribute("aria-label",f);function g(x,S){if(typeof x!="string")return x;var b=x;return r.each(S,function(w,A){b=b.replace(new RegExp("\\{\\s*"+A+"\\s*\\}","g"),w)}),b}function m(x){var S=s.get(x);if(S==null){for(var b=x.split("."),w=t.aria,A=0;A<b.length;++A)w=w[b[A]];return w}else return S}function y(){var x=o.getModel("title").option;return x&&x.length&&(x=x[0]),x&&x.text}function _(x){return t.series.typeNames[x]||"自定义图"}}return I_=i,I_}var P_,NN;function nge(){if(NN)return P_;NN=1;var r=ie(),t=qe(),e=Da(),a=Math.PI;function i(n,o){o=o||{},r.defaults(o,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var s=new t.Group,l=new t.Rect({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});s.add(l);var u=o.fontSize+" sans-serif",v=new t.Rect({style:{fill:"none",text:o.text,font:u,textPosition:"right",textDistance:10,textFill:o.textColor},zlevel:o.zlevel,z:10001});if(s.add(v),o.showSpinner){var h=new t.Arc({shape:{startAngle:-a/2,endAngle:-a/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:"round",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001});h.animateShape(!0).when(1e3,{endAngle:a*3/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:a*3/2}).delay(300).start("circularInOut"),s.add(h)}return s.resize=function(){var f=e.getWidth(o.text,u),c=o.showSpinner?o.spinnerRadius:0,d=(n.getWidth()-c*2-(o.showSpinner&&f?10:0)-f)/2-(o.showSpinner?0:f/2),p=n.getHeight()/2;o.showSpinner&&h.setShape({cx:d,cy:p}),v.setShape({x:d-c,y:p-c,width:c*2,height:c*2}),l.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},s.resize(),s}return P_=i,P_}var R_,zN;function oge(){if(zN)return R_;zN=1;var r=ie(),t=r.each,e=r.map,a=r.isFunction,i=r.createHashMap,n=r.noop,o=iD(),s=o.createTask,l=vf(),u=l.getUID,v=q9(),h=W9(),f=_t(),c=f.normalizeToArray;function d(F,V,z,G){this.ecInstance=F,this.api=V,this.unfinished;var z=this._dataProcessorHandlers=z.slice(),G=this._visualHandlers=G.slice();this._allHandlers=z.concat(G),this._stageTaskMap=i()}var p=d.prototype;p.restoreData=function(F,V){F.restoreData(V),this._stageTaskMap.each(function(N){var O=N.overallTask;O&&O.dirty()})},p.getPerformArgs=function(F,V){if(F.__pipeline){var N=this._pipelineMap.get(F.__pipeline.id),O=N.context,z=!V&&N.progressiveEnabled&&(!O||O.progressiveRender)&&F.__idxInPipeline>N.blockIndex,G=z?N.step:null,q=O&&O.modDataCount,H=q!=null?Math.ceil(q/G):null;return{step:G,modBy:H,modDataCount:q}}},p.getPipeline=function(F){return this._pipelineMap.get(F)},p.updateStreamModes=function(F,V){var N=this._pipelineMap.get(F.uid),O=F.getData(),z=O.count(),G=N.progressiveEnabled&&V.incrementalPrepareRender&&z>=N.threshold,q=F.get("large")&&z>=F.get("largeThreshold"),H=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=N.context={progressiveRender:G,modDataCount:H,large:q}},p.restorePipelines=function(F){var V=this,N=V._pipelineMap=i();F.eachSeries(function(O){var z=O.getProgressive(),G=O.uid;N.set(G,{id:G,head:null,tail:null,threshold:O.getProgressiveThreshold(),progressiveEnabled:z&&!(O.preventIncremental&&O.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),D(V,O,O.dataTask)})},p.prepareStageTasks=function(){var F=this._stageTaskMap,V=this.ecInstance.getModel(),N=this.api;t(this._allHandlers,function(O){var z=F.get(O.uid)||F.set(O.uid,[]);O.reset&&y(this,O,z,V,N),O.overallReset&&_(this,O,z,V,N)},this)},p.prepareView=function(F,V,N,O){var z=F.renderTask,G=z.context;G.model=V,G.ecModel=N,G.api=O,z.__block=!F.incrementalPrepareRender,D(this,V,z)},p.performDataProcessorTasks=function(F,V){g(this,this._dataProcessorHandlers,F,V,{block:!0})},p.performVisualTasks=function(F,V,N){g(this,this._visualHandlers,F,V,N)};function g(F,V,N,O,z){z=z||{};var G;t(V,function(H,U){if(!(z.visualType&&z.visualType!==H.visualType)){var W=F._stageTaskMap.get(H.uid),Y=W.seriesTaskMap,X=W.overallTask;if(X){var K,Q=X.agentStubMap;Q.each(function(te){q(z,te)&&(te.dirty(),K=!0)}),K&&X.dirty(),m(X,O);var j=F.getPerformArgs(X,z.block);Q.each(function(te){te.perform(j)}),G|=X.perform(j)}else Y&&Y.each(function(te,Z){q(z,te)&&te.dirty();var ee=F.getPerformArgs(te,z.block);ee.skip=!H.performRawSeries&&N.isSeriesFiltered(te.context.model),m(te,O),G|=te.perform(ee)})}});function q(H,U){return H.setDirty&&(!H.dirtyMap||H.dirtyMap.get(U.__pipeline.id))}F.unfinished|=G}p.performSeriesTasks=function(F){var V;F.eachSeries(function(N){V|=N.dataTask.perform()}),this.unfinished|=V},p.plan=function(){this._pipelineMap.each(function(F){var V=F.tail;do{if(V.__block){F.blockIndex=V.__idxInPipeline;break}V=V.getUpstream()}while(V)})};var m=p.updatePayload=function(F,V){V!=="remain"&&(F.context.payload=V)};function y(F,V,N,O,z){var G=N.seriesTaskMap||(N.seriesTaskMap=i()),q=V.seriesType,H=V.getTargetSeries;V.createOnAllSeries?O.eachRawSeries(U):q?O.eachRawSeriesByType(q,U):H&&H(O,z).each(U);function U(Y){var X=Y.uid,K=G.get(X)||G.set(X,s({plan:A,reset:T,count:L}));K.context={model:Y,ecModel:O,api:z,useClearVisual:V.isVisual&&!V.isLayout,plan:V.plan,reset:V.reset,scheduler:F},D(F,Y,K)}var W=F._pipelineMap;G.each(function(Y,X){W.get(X)||(Y.dispose(),G.removeKey(X))})}function _(F,V,N,O,z){var G=N.overallTask=N.overallTask||s({reset:x});G.context={ecModel:O,api:z,overallReset:V.overallReset,scheduler:F};var q=G.agentStubMap=G.agentStubMap||i(),H=V.seriesType,U=V.getTargetSeries,W=!0,Y=V.modifyOutputEnd;H?O.eachRawSeriesByType(H,X):U?U(O,z).each(X):(W=!1,t(O.getSeries(),X));function X(Q){var j=Q.uid,te=q.get(j);te||(te=q.set(j,s({reset:S,onDirty:w})),G.dirty()),te.context={model:Q,overallProgress:W,modifyOutputEnd:Y},te.agent=G,te.__block=W,D(F,Q,te)}var K=F._pipelineMap;q.each(function(Q,j){K.get(j)||(Q.dispose(),G.dirty(),q.removeKey(j))})}function x(F){F.overallReset(F.ecModel,F.api,F.payload)}function S(F,V){return F.overallProgress&&b}function b(){this.agent.dirty(),this.getDownstream().dirty()}function w(){this.agent&&this.agent.dirty()}function A(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function T(F){F.useClearVisual&&F.data.clearAllVisual();var V=F.resetDefines=c(F.reset(F.model,F.ecModel,F.api,F.payload));return V.length>1?e(V,function(N,O){return M(O)}):C}var C=M(0);function M(F){return function(V,N){var O=N.data,z=N.resetDefines[F];if(z&&z.dataEach)for(var G=V.start;G<V.end;G++)z.dataEach(O,G);else z&&z.progress&&z.progress(V,O)}}function L(F){return F.data.count()}function D(F,V,N){var O=V.uid,z=F._pipelineMap.get(O);!z.head&&(z.head=N),z.tail&&z.tail.pipe(N),z.tail=N,N.__idxInPipeline=z.count++,N.__pipeline=z}d.wrapStageHandler=function(F,V){return a(F)&&(F={overallReset:F,seriesType:P(F)}),F.uid=u("stageHandler"),V&&(F.visualType=V),F};function P(F){E=null;try{F(I,R)}catch(V){}return E}var I={},R={},E;k(I,v),k(R,h),I.eachSeriesByType=I.eachRawSeriesByType=function(F){E=F},I.eachComponent=function(F){F.mainType==="series"&&F.subType&&(E=F.subType)};function k(F,V){for(var N in V.prototype)F[N]=n}var B=d;return R_=B,R_}var E_,BN;function sge(){if(BN)return E_;BN=1;var r=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],t={color:r,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],r]};return E_=t,E_}var k_,VN;function lge(){if(VN)return k_;VN=1;var r="#eee",t=function(){return{axisLine:{lineStyle:{color:r}},axisTick:{lineStyle:{color:r}},axisLabel:{textStyle:{color:r}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:r}}}},e=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],a={color:e,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:r},crossStyle:{color:r},label:{color:"#000"}}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:r}},toolbox:{iconStyle:{normal:{borderColor:r}}},dataZoom:{textStyle:{color:r}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},itemStyle:{normal:{color:e[1]}},label:{normal:{textStyle:{color:r}}},controlStyle:{normal:{color:r,borderColor:r}}},timeAxis:t(),logAxis:t(),valueAxis:t(),categoryAxis:t(),line:{symbol:"circle"},graph:{color:e},gauge:{title:{textStyle:{color:r}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};a.categoryAxis.splitLine.show=!1;var i=a;return k_=i,k_}var GN={},FN;function U9(){if(FN)return GN;FN=1;var r=Lr(),t=fg(),e=Ln(),a=e.detectSourceFormat,i=hf(),n=i.SERIES_LAYOUT_BY_COLUMN;return r.extend({type:"dataset",defaultOption:{seriesLayoutBy:n,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),t.extend({type:"dataset"}),GN}var pv={},O_,HN;function uge(){if(HN)return O_;HN=1;var r=ur(),t=r.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,a){var i=.5522848,n=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*i,v=l*i;e.moveTo(n-s,o),e.bezierCurveTo(n-s,o-v,n-u,o-l,n,o-l),e.bezierCurveTo(n+u,o-l,n+s,o-v,n+s,o),e.bezierCurveTo(n+s,o+v,n+u,o+l,n,o+l),e.bezierCurveTo(n-u,o+l,n-s,o+v,n-s,o),e.closePath()}});return O_=t,O_}var qN;function $9(){if(qN)return pv;qN=1;var r=Us(),t=wu(),e=$s(),a=N9(),i=eD(),n=uge(),o=F9(),s=ur(),l=V9(),u=G9(),v=tD(),h=QM(),f=ha(),c=O9(),d=c.createFromString,p=ie(),g=p.isString,m=p.extend,y=p.defaults,_=p.trim,x=p.each,S=/[\s,]+/;function b(O){if(g(O)){var z=new DOMParser;O=z.parseFromString(O,"text/xml")}for(O.nodeType===9&&(O=O.firstChild);O.nodeName.toLowerCase()!=="svg"||O.nodeType!==1;)O=O.nextSibling;return O}function w(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}w.prototype.parse=function(O,z){z=z||{};var G=b(O);if(!G)throw new Error("Illegal svg");var q=new r;this._root=q;var H=G.getAttribute("viewBox")||"",U=parseFloat(G.getAttribute("width")||z.width),W=parseFloat(G.getAttribute("height")||z.height);isNaN(U)&&(U=null),isNaN(W)&&(W=null),P(G,q,null,!0);for(var Y=G.firstChild;Y;)this._parseNode(Y,q),Y=Y.nextSibling;var X,K;if(H){var Q=_(H).split(S);Q.length>=4&&(X={x:parseFloat(Q[0]||0),y:parseFloat(Q[1]||0),width:parseFloat(Q[2]),height:parseFloat(Q[3])})}if(X&&U!=null&&W!=null&&(K=V(X,U,W),!z.ignoreViewBox)){var j=q;q=new r,q.add(j),j.scale=K.scale.slice(),j.position=K.position.slice()}return!z.ignoreRootClip&&U!=null&&W!=null&&q.setClipPath(new i({shape:{x:0,y:0,width:U,height:W}})),{root:q,width:U,height:W,viewBoxRect:X,viewBoxTransform:K}},w.prototype._parseNode=function(O,z){var G=O.nodeName.toLowerCase();G==="defs"?this._isDefine=!0:G==="text"&&(this._isText=!0);var q;if(this._isDefine){var H=T[G];if(H){var U=H.call(this,O),W=O.getAttribute("id");W&&(this._defs[W]=U)}}else{var H=A[G];H&&(q=H.call(this,O,z),z.add(q))}for(var Y=O.firstChild;Y;)Y.nodeType===1&&this._parseNode(Y,q),Y.nodeType===3&&this._isText&&this._parseText(Y,q),Y=Y.nextSibling;G==="defs"?this._isDefine=!1:G==="text"&&(this._isText=!1)},w.prototype._parseText=function(O,z){if(O.nodeType===1){var G=O.getAttribute("dx")||0,q=O.getAttribute("dy")||0;this._textX+=parseFloat(G),this._textY+=parseFloat(q)}var H=new e({style:{text:O.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});M(z,H),P(O,H,this._defs);var U=H.style.fontSize;U&&U<9&&(H.style.fontSize=9,H.scale=H.scale||[1,1],H.scale[0]*=U/9,H.scale[1]*=U/9);var W=H.getBoundingRect();return this._textX+=W.width,z.add(H),H};var A={g:function(O,z){var G=new r;return M(z,G),P(O,G,this._defs),G},rect:function(O,z){var G=new i;return M(z,G),P(O,G,this._defs),G.setShape({x:parseFloat(O.getAttribute("x")||0),y:parseFloat(O.getAttribute("y")||0),width:parseFloat(O.getAttribute("width")||0),height:parseFloat(O.getAttribute("height")||0)}),G},circle:function(O,z){var G=new a;return M(z,G),P(O,G,this._defs),G.setShape({cx:parseFloat(O.getAttribute("cx")||0),cy:parseFloat(O.getAttribute("cy")||0),r:parseFloat(O.getAttribute("r")||0)}),G},line:function(O,z){var G=new o;return M(z,G),P(O,G,this._defs),G.setShape({x1:parseFloat(O.getAttribute("x1")||0),y1:parseFloat(O.getAttribute("y1")||0),x2:parseFloat(O.getAttribute("x2")||0),y2:parseFloat(O.getAttribute("y2")||0)}),G},ellipse:function(O,z){var G=new n;return M(z,G),P(O,G,this._defs),G.setShape({cx:parseFloat(O.getAttribute("cx")||0),cy:parseFloat(O.getAttribute("cy")||0),rx:parseFloat(O.getAttribute("rx")||0),ry:parseFloat(O.getAttribute("ry")||0)}),G},polygon:function(O,z){var G=O.getAttribute("points");G&&(G=L(G));var q=new l({shape:{points:G||[]}});return M(z,q),P(O,q,this._defs),q},polyline:function(O,z){var G=new s;M(z,G),P(O,G,this._defs);var q=O.getAttribute("points");q&&(q=L(q));var H=new u({shape:{points:q||[]}});return H},image:function(O,z){var G=new t;return M(z,G),P(O,G,this._defs),G.setStyle({image:O.getAttribute("xlink:href"),x:O.getAttribute("x"),y:O.getAttribute("y"),width:O.getAttribute("width"),height:O.getAttribute("height")}),G},text:function(O,z){var G=O.getAttribute("x")||0,q=O.getAttribute("y")||0,H=O.getAttribute("dx")||0,U=O.getAttribute("dy")||0;this._textX=parseFloat(G)+parseFloat(H),this._textY=parseFloat(q)+parseFloat(U);var W=new r;return M(z,W),P(O,W,this._defs),W},tspan:function(O,z){var G=O.getAttribute("x"),q=O.getAttribute("y");G!=null&&(this._textX=parseFloat(G)),q!=null&&(this._textY=parseFloat(q));var H=O.getAttribute("dx")||0,U=O.getAttribute("dy")||0,W=new r;return M(z,W),P(O,W,this._defs),this._textX+=H,this._textY+=U,W},path:function(O,z){var G=O.getAttribute("d")||"",q=d(G);return M(z,q),P(O,q,this._defs),q}},T={lineargradient:function(O){var z=parseInt(O.getAttribute("x1")||0,10),G=parseInt(O.getAttribute("y1")||0,10),q=parseInt(O.getAttribute("x2")||10,10),H=parseInt(O.getAttribute("y2")||0,10),U=new v(z,G,q,H);return C(O,U),U},radialgradient:function(O){}};function C(O,z){for(var G=O.firstChild;G;){if(G.nodeType===1){var q=G.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var H=G.getAttribute("stop-color")||"#000000";z.addColorStop(q,H)}G=G.nextSibling}}function M(O,z){O&&O.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),y(z.__inheritedStyle,O.__inheritedStyle))}function L(O){for(var z=_(O).split(S),G=[],q=0;q<z.length;q+=2){var H=parseFloat(z[q]),U=parseFloat(z[q+1]);G.push([H,U])}return G}var D={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function P(O,z,G,q){var H=z.__inheritedStyle||{},U=z.type==="text";if(O.nodeType===1&&(k(O,z),m(H,F(O)),!q)){for(var W in D)if(D.hasOwnProperty(W)){var Y=O.getAttribute(W);Y!=null&&(H[D[W]]=Y)}}var X=U?"textFill":"fill",K=U?"textStroke":"stroke";z.style=z.style||new h;var Q=z.style;H.fill!=null&&Q.set(X,R(H.fill,G)),H.stroke!=null&&Q.set(K,R(H.stroke,G)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(j){var te=j==="lineWidth"&&U?"textStrokeWidth":j;H[j]!=null&&Q.set(te,parseFloat(H[j]))}),(!H.textBaseline||H.textBaseline==="auto")&&(H.textBaseline="alphabetic"),H.textBaseline==="alphabetic"&&(H.textBaseline="bottom"),H.textAlign==="start"&&(H.textAlign="left"),H.textAlign==="end"&&(H.textAlign="right"),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(j){H[j]!=null&&Q.set(j,H[j])}),H.lineDash&&(z.style.lineDash=_(H.lineDash).split(S)),Q[K]&&Q[K]!=="none"&&(z[K]=!0),z.__inheritedStyle=H}var I=/url\(\s*#(.*?)\)/;function R(O,z){var G=z&&O&&O.match(I);if(G){var q=_(G[1]),H=z[q];return H}return O}var E=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function k(O,z){var G=O.getAttribute("transform");if(G){G=G.replace(/,/g," ");var q=null,H=[];G.replace(E,function(X,K,Q){H.push(K,Q)});for(var U=H.length-1;U>0;U-=2){var W=H[U],Y=H[U-1];switch(q=q||f.create(),Y){case"translate":W=_(W).split(S),f.translate(q,q,[parseFloat(W[0]),parseFloat(W[1]||0)]);break;case"scale":W=_(W).split(S),f.scale(q,q,[parseFloat(W[0]),parseFloat(W[1]||W[0])]);break;case"rotate":W=_(W).split(S),f.rotate(q,q,parseFloat(W[0]));break;case"skew":W=_(W).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var W=_(W).split(S);q[0]=parseFloat(W[0]),q[1]=parseFloat(W[1]),q[2]=parseFloat(W[2]),q[3]=parseFloat(W[3]),q[4]=parseFloat(W[4]),q[5]=parseFloat(W[5]);break}}z.setLocalTransform(q)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(O){var z=O.getAttribute("style"),G={};if(!z)return G;var q={};B.lastIndex=0;for(var H;(H=B.exec(z))!=null;)q[H[1]]=H[2];for(var U in D)D.hasOwnProperty(U)&&q[U]!=null&&(G[D[U]]=q[U]);return G}function V(O,z,G){var q=z/O.width,H=G/O.height,U=Math.min(q,H),W=[U,U],Y=[-(O.x+O.width/2)*U+z/2,-(O.y+O.height/2)*U+G/2];return{scale:W,position:Y}}function N(O,z){var G=new w;return G.parse(O,z)}return pv.parseXML=b,pv.makeViewBoxTransform=V,pv.parseSVG=N,pv}var N_,WN;function nD(){if(WN)return N_;WN=1;var r=It();r.__DEV__;var t=ie(),e=t.createHashMap,a=t.isString,i=t.isArray,n=t.each;t.assert;var o=$9(),s=o.parseXML,l=e(),u={registerMap:function(h,f,c){var d;return i(f)?d=f:f.svg?d=[{type:"svg",source:f.svg,specialAreas:f.specialAreas}]:(f.geoJson&&!f.features&&(c=f.specialAreas,f=f.geoJson),d=[{type:"geoJSON",source:f,specialAreas:c}]),n(d,function(p){var g=p.type;g==="geoJson"&&(g=p.type="geoJSON");var m=v[g];m(p)}),l.set(h,d)},retrieveMap:function(h){return l.get(h)}},v={geoJSON:function(h){var f=h.source;h.geoJSON=a(f)?typeof JSON<"u"&&JSON.parse?JSON.parse(f):new Function("return ("+f+");")():f},svg:function(h){h.svgXML=s(h.source)}};return N_=u,N_}var Er={},Ei={},z_,UN;function Zs(){if(UN)return z_;UN=1;function r(i){return i}function t(i,n,o,s,l){this._old=i,this._new=n,this._oldKeyGetter=o||r,this._newKeyGetter=s||r,this.context=l}t.prototype={constructor:t,add:function(i){return this._add=i,this},update:function(i){return this._update=i,this},remove:function(i){return this._remove=i,this},execute:function(){var i=this._old,n=this._new,o={},s={},l=[],u=[],v;for(e(i,o,l,"_oldKeyGetter",this),e(n,s,u,"_newKeyGetter",this),v=0;v<i.length;v++){var h=l[v],f=s[h];if(f!=null){var c=f.length;c?(c===1&&(s[h]=null),f=f.shift()):s[h]=null,this._update&&this._update(f,v)}else this._remove&&this._remove(v)}for(var v=0;v<u.length;v++){var h=u[v];if(s.hasOwnProperty(h)){var f=s[h];if(f==null)continue;if(!f.length)this._add&&this._add(f);else for(var d=0,c=f.length;d<c;d++)this._add&&this._add(f[d])}}}};function e(i,n,o,s,l){for(var u=0;u<i.length;u++){var v="_ec_"+l[s](i[u],u),h=n[v];h==null?(o.push(v),n[v]=u):(h.length||(n[v]=h=[h]),h.push(u))}}var a=t;return z_=a,z_}var gv={},$N;function cf(){if($N)return gv;$N=1;var r=ie(),t=r.each,e=r.createHashMap;r.assert;var a=It();a.__DEV__;var i=e(["tooltip","label","itemName","itemId","seriesName"]);function n(u){var v={},h=v.encode={},f=e(),c=[],d=[],p=v.userOutput={dimensionNames:u.dimensions.slice(),encode:{}};t(u.dimensions,function(x){var S=u.getDimensionInfo(x),b=S.coordDim;if(b){var w=S.coordDimIndex;o(h,b)[w]=x,S.isExtraCoord||(f.set(b,1),l(S.type)&&(c[0]=x),o(p.encode,b)[w]=S.index),S.defaultTooltip&&d.push(x)}i.each(function(A,T){var C=o(h,T),M=S.otherDims[T];M!=null&&M!==!1&&(C[M]=S.name)})});var g=[],m={};f.each(function(x,S){var b=h[S];m[S]=b[0],g=g.concat(b)}),v.dataDimsOnCoord=g,v.encodeFirstDimNotExtra=m;var y=h.label;y&&y.length&&(c=y.slice());var _=h.tooltip;return _&&_.length?d=_.slice():d.length||(d=c.slice()),h.defaultedLabel=c,h.defaultedTooltip=d,v}function o(u,v){return u.hasOwnProperty(v)||(u[v]=[]),u[v]}function s(u){return u==="category"?"ordinal":u==="time"?"time":"float"}function l(u){return!(u==="ordinal"||u==="time")}return gv.OTHER_DIMENSIONS=i,gv.summarizeDimensions=n,gv.getDimensionTypeByAxis=s,gv}var B_,YN;function Y9(){if(YN)return B_;YN=1;var r=ie();function t(a){a!=null&&r.extend(this,a),this.otherDims={}}var e=t;return B_=e,B_}var V_,ZN;function ei(){if(ZN)return V_;ZN=1;var r=It();r.__DEV__;var t=ie(),e=gr(),a=Zs(),i=ff(),n=Ys(),o=n.defaultDimValueGetters,s=n.DefaultDataProvider,l=cf(),u=l.summarizeDimensions,v=Y9(),h=t.isObject,f="undefined",c=-1,d="e\0\0",p={float:typeof Float64Array===f?Array:Float64Array,int:typeof Int32Array===f?Array:Int32Array,ordinal:Array,number:Array,time:Array},g=typeof Uint32Array===f?Array:Uint32Array,m=typeof Int32Array===f?Array:Int32Array,y=typeof Uint16Array===f?Array:Uint16Array;function _(N){return N._rawCount>65535?g:y}function x(N){var O=N.constructor;return O===Array?N.slice():new O(N)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],b=["_extent","_approximateExtent","_rawExtent"];function w(N,O){t.each(S.concat(O.__wrappedMethods||[]),function(z){O.hasOwnProperty(z)&&(N[z]=O[z])}),N.__wrappedMethods=O.__wrappedMethods,t.each(b,function(z){N[z]=t.clone(O[z])}),N._calculationInfo=t.extend(O._calculationInfo)}var A=function(N,O){N=N||["x","y"];for(var z={},G=[],q={},H=0;H<N.length;H++){var U=N[H];t.isString(U)?U=new v({name:U}):U instanceof v||(U=new v(U));var W=U.name;U.type=U.type||"float",U.coordDim||(U.coordDim=W,U.coordDimIndex=0),U.otherDims=U.otherDims||{},G.push(W),z[W]=U,U.index=H,U.createInvertedIndices&&(q[W]=[])}this.dimensions=G,this._dimensionInfos=z,this.hostModel=O,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=u(this),this._invertedIndicesMap=q,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},T=A.prototype;T.type="list",T.hasItemOption=!0,T.getDimension=function(N){return(typeof N=="number"||!isNaN(N)&&!this._dimensionInfos.hasOwnProperty(N))&&(N=this.dimensions[N]),N},T.getDimensionInfo=function(N){return this._dimensionInfos[this.getDimension(N)]},T.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},T.mapDimension=function(N,O){var z=this._dimensionsSummary;if(O==null)return z.encodeFirstDimNotExtra[N];var G=z.encode[N];return O===!0?(G||[]).slice():G&&G[O]},T.initData=function(N,O,z){var G=i.isInstance(N)||t.isArrayLike(N);G&&(N=new s(N,this.dimensions.length)),this._rawData=N,this._storage={},this._indices=null,this._nameList=O||[],this._idList=[],this._nameRepeatCount={},z||(this.hasItemOption=!1),this.defaultDimValueGetter=o[this._rawData.getSource().sourceFormat],this._dimValueGetter=z=z||this.defaultDimValueGetter,this._dimValueGetterArrayRows=o.arrayRows,this._rawExtent={},this._initDataFromProvider(0,N.count()),N.pure&&(this.hasItemOption=!1)},T.getProvider=function(){return this._rawData},T.appendData=function(N){var O=this._rawData,z=this.count();O.appendData(N);var G=O.count();O.persistent||(G+=z),this._initDataFromProvider(z,G)},T.appendValues=function(N,O){for(var z=this._chunkSize,G=this._storage,q=this.dimensions,H=q.length,U=this._rawExtent,W=this.count(),Y=W+Math.max(N.length,O?O.length:0),X=this._chunkCount,K=0;K<H;K++){var Q=q[K];U[Q]||(U[Q]=B()),G[Q]||(G[Q]=[]),C(G,this._dimensionInfos[Q],z,X,Y),this._chunkCount=G[Q].length}for(var j=new Array(H),te=W;te<Y;te++){for(var Z=te-W,ee=Math.floor(te/z),le=te%z,oe=0;oe<H;oe++){var Q=q[oe],fe=this._dimValueGetterArrayRows(N[Z]||j,Q,Z,oe);G[Q][ee][le]=fe;var se=U[Q];fe<se[0]&&(se[0]=fe),fe>se[1]&&(se[1]=fe)}O&&(this._nameList[te]=O[Z])}this._rawCount=this._count=Y,this._extent={},M(this)},T._initDataFromProvider=function(N,O){if(!(N>=O)){for(var z=this._chunkSize,G=this._rawData,q=this._storage,H=this.dimensions,U=H.length,W=this._dimensionInfos,Y=this._nameList,X=this._idList,K=this._rawExtent,Q=this._nameRepeatCount={},j,te=this._chunkCount,Z=0;Z<U;Z++){var ee=H[Z];K[ee]||(K[ee]=B());var le=W[ee];le.otherDims.itemName===0&&(j=this._nameDimIdx=Z),le.otherDims.itemId===0&&(this._idDimIdx=Z),q[ee]||(q[ee]=[]),C(q,le,z,te,O),this._chunkCount=q[ee].length}for(var oe=new Array(U),fe=N;fe<O;fe++){oe=G.getItem(fe,oe);for(var se=Math.floor(fe/z),ve=fe%z,ye=0;ye<U;ye++){var ee=H[ye],Me=q[ee][se],J=this._dimValueGetter(oe,ee,fe,ye);Me[ve]=J;var ne=K[ee];J<ne[0]&&(ne[0]=J),J>ne[1]&&(ne[1]=J)}if(!G.pure){var ue=Y[fe];if(oe&&ue==null){if(oe.name!=null)Y[fe]=ue=oe.name;else if(j!=null){var me=H[j],xe=q[me][se];if(xe){ue=xe[ve];var ge=W[me].ordinalMeta;ge&&ge.categories.length&&(ue=ge.categories[ue])}}}var pe=oe==null?null:oe.id;pe==null&&ue!=null&&(Q[ue]=Q[ue]||0,pe=ue,Q[ue]>0&&(pe+="__ec__"+Q[ue]),Q[ue]++),pe!=null&&(X[fe]=pe)}}!G.persistent&&G.clean&&G.clean(),this._rawCount=this._count=O,this._extent={},M(this)}};function C(N,O,z,G,q){var H=p[O.type],U=G-1,W=O.name,Y=N[W][U];if(Y&&Y.length<z){for(var X=new H(Math.min(q-U*z,z)),K=0;K<Y.length;K++)X[K]=Y[K];N[W][U]=X}for(var Q=G*z;Q<q;Q+=z)N[W].push(new H(Math.min(q-Q,z)))}function M(N){var O=N._invertedIndicesMap;t.each(O,function(z,G){var q=N._dimensionInfos[G],H=q.ordinalMeta;if(H){z=O[G]=new m(H.categories.length);for(var U=0;U<z.length;U++)z[U]=c;for(var U=0;U<N._count;U++)z[N.get(G,U)]=U}})}function L(N,O,z){var G;if(O!=null){var q=N._chunkSize,H=Math.floor(z/q),U=z%q,W=N.dimensions[O],Y=N._storage[W][H];if(Y){G=Y[U];var X=N._dimensionInfos[W].ordinalMeta;X&&X.categories.length&&(G=X.categories[G])}}return G}T.count=function(){return this._count},T.getIndices=function(){var N,O=this._indices;if(O){var z=O.constructor,G=this._count;if(z===Array){N=new z(G);for(var q=0;q<G;q++)N[q]=O[q]}else N=new z(O.buffer,0,G)}else for(var z=_(this),N=new z(this.count()),q=0;q<N.length;q++)N[q]=q;return N},T.get=function(N,O){if(!(O>=0&&O<this._count))return NaN;var z=this._storage;if(!z[N])return NaN;O=this.getRawIndex(O);var G=Math.floor(O/this._chunkSize),q=O%this._chunkSize,H=z[N][G],U=H[q];return U},T.getByRawIndex=function(N,O){if(!(O>=0&&O<this._rawCount))return NaN;var z=this._storage[N];if(!z)return NaN;var G=Math.floor(O/this._chunkSize),q=O%this._chunkSize,H=z[G];return H[q]},T._getFast=function(N,O){var z=Math.floor(O/this._chunkSize),G=O%this._chunkSize,q=this._storage[N][z];return q[G]},T.getValues=function(N,O){var z=[];t.isArray(N)||(O=N,N=this.dimensions);for(var G=0,q=N.length;G<q;G++)z.push(this.get(N[G],O));return z},T.hasValue=function(N){for(var O=this._dimensionsSummary.dataDimsOnCoord,z=0,G=O.length;z<G;z++)if(isNaN(this.get(O[z],N)))return!1;return!0},T.getDataExtent=function(N){N=this.getDimension(N);var O=this._storage[N],z=B();if(!O)return z;var G=this.count(),q=!this._indices,H;if(q)return this._rawExtent[N].slice();if(H=this._extent[N],H)return H.slice();H=z;for(var U=H[0],W=H[1],Y=0;Y<G;Y++){var X=this._getFast(N,this.getRawIndex(Y));X<U&&(U=X),X>W&&(W=X)}return H=[U,W],this._extent[N]=H,H},T.getApproximateExtent=function(N){return N=this.getDimension(N),this._approximateExtent[N]||this.getDataExtent(N)},T.setApproximateExtent=function(N,O){O=this.getDimension(O),this._approximateExtent[O]=N.slice()},T.getCalculationInfo=function(N){return this._calculationInfo[N]},T.setCalculationInfo=function(N,O){h(N)?t.extend(this._calculationInfo,N):this._calculationInfo[N]=O},T.getSum=function(N){var O=this._storage[N],z=0;if(O)for(var G=0,q=this.count();G<q;G++){var H=this.get(N,G);isNaN(H)||(z+=H)}return z},T.getMedian=function(N){var O=[];this.each(N,function(q,H){isNaN(q)||O.push(q)});var z=[].concat(O).sort(function(q,H){return q-H}),G=this.count();return G===0?0:G%2===1?z[(G-1)/2]:(z[G/2]+z[G/2-1])/2},T.rawIndexOf=function(N,O){var z=N&&this._invertedIndicesMap[N],G=z[O];return G==null||isNaN(G)?c:G},T.indexOfName=function(N){for(var O=0,z=this.count();O<z;O++)if(this.getName(O)===N)return O;return-1},T.indexOfRawIndex=function(N){if(N>=this._rawCount||N<0)return-1;if(!this._indices)return N;var O=this._indices,z=O[N];if(z!=null&&z<this._count&&z===N)return N;for(var G=0,q=this._count-1;G<=q;){var H=(G+q)/2|0;if(O[H]<N)G=H+1;else if(O[H]>N)q=H-1;else return H}return-1},T.indicesOfNearest=function(N,O,z){var G=this._storage,q=G[N],H=[];if(!q)return H;z==null&&(z=1/0);for(var U=1/0,W=-1,Y=0,X=0,K=this.count();X<K;X++){var Q=O-this.get(N,X),j=Math.abs(Q);j<=z&&((j<U||j===U&&Q>=0&&W<0)&&(U=j,W=Q,Y=0),Q===W&&(H[Y++]=X))}return H.length=Y,H},T.getRawIndex=D;function D(N){return N}function P(N){return N<this._count&&N>=0?this._indices[N]:-1}T.getRawDataItem=function(N){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(N));for(var O=[],z=0;z<this.dimensions.length;z++){var G=this.dimensions[z];O.push(this.get(G,N))}return O},T.getName=function(N){var O=this.getRawIndex(N);return this._nameList[O]||L(this,this._nameDimIdx,O)||""},T.getId=function(N){return I(this,this.getRawIndex(N))};function I(N,O){var z=N._idList[O];return z==null&&(z=L(N,N._idDimIdx,O)),z==null&&(z=d+O),z}function R(N){return t.isArray(N)||(N=[N]),N}T.each=function(N,O,z,G){if(this._count){typeof N=="function"&&(G=z,z=O,O=N,N=[]),z=z||G||this,N=t.map(R(N),this.getDimension,this);for(var q=N.length,H=0;H<this.count();H++)switch(q){case 0:O.call(z,H);break;case 1:O.call(z,this.get(N[0],H),H);break;case 2:O.call(z,this.get(N[0],H),this.get(N[1],H),H);break;default:for(var U=0,W=[];U<q;U++)W[U]=this.get(N[U],H);W[U]=H,O.apply(z,W)}}},T.filterSelf=function(N,O,z,G){if(this._count){typeof N=="function"&&(G=z,z=O,O=N,N=[]),z=z||G||this,N=t.map(R(N),this.getDimension,this);for(var q=this.count(),H=_(this),U=new H(q),W=[],Y=N.length,X=0,K=N[0],Q=0;Q<q;Q++){var j,te=this.getRawIndex(Q);if(Y===0)j=O.call(z,Q);else if(Y===1){var Z=this._getFast(K,te);j=O.call(z,Z,Q)}else{for(var ee=0;ee<Y;ee++)W[ee]=this._getFast(K,te);W[ee]=Q,j=O.apply(z,W)}j&&(U[X++]=te)}return X<q&&(this._indices=U),this._count=X,this._extent={},this.getRawIndex=this._indices?P:D,this}},T.selectRange=function(N){if(this._count){var O=[];for(var z in N)N.hasOwnProperty(z)&&O.push(z);var G=O.length;if(G){var q=this.count(),H=_(this),U=new H(q),W=0,Y=O[0],X=N[Y][0],K=N[Y][1],Q=!1;if(!this._indices){var j=0;if(G===1){for(var te=this._storage[O[0]],Z=0;Z<this._chunkCount;Z++)for(var ee=te[Z],le=Math.min(this._count-Z*this._chunkSize,this._chunkSize),oe=0;oe<le;oe++){var fe=ee[oe];(fe>=X&&fe<=K||isNaN(fe))&&(U[W++]=j),j++}Q=!0}else if(G===2){for(var te=this._storage[Y],se=this._storage[O[1]],ve=N[O[1]][0],ye=N[O[1]][1],Z=0;Z<this._chunkCount;Z++)for(var ee=te[Z],Me=se[Z],le=Math.min(this._count-Z*this._chunkSize,this._chunkSize),oe=0;oe<le;oe++){var fe=ee[oe],J=Me[oe];(fe>=X&&fe<=K||isNaN(fe))&&(J>=ve&&J<=ye||isNaN(J))&&(U[W++]=j),j++}Q=!0}}if(!Q)if(G===1)for(var oe=0;oe<q;oe++){var ne=this.getRawIndex(oe),fe=this._getFast(Y,ne);(fe>=X&&fe<=K||isNaN(fe))&&(U[W++]=ne)}else for(var oe=0;oe<q;oe++){for(var ue=!0,ne=this.getRawIndex(oe),Z=0;Z<G;Z++){var me=O[Z],fe=this._getFast(z,ne);(fe<N[me][0]||fe>N[me][1])&&(ue=!1)}ue&&(U[W++]=this.getRawIndex(oe))}return W<q&&(this._indices=U),this._count=W,this._extent={},this.getRawIndex=this._indices?P:D,this}}},T.mapArray=function(N,O,z,G){typeof N=="function"&&(G=z,z=O,O=N,N=[]),z=z||G||this;var q=[];return this.each(N,function(){q.push(O&&O.apply(this,arguments))},z),q};function E(N,O){var z=N.dimensions,G=new A(t.map(z,N.getDimensionInfo,N),N.hostModel);w(G,N);for(var q=G._storage={},H=N._storage,U=0;U<z.length;U++){var W=z[U];H[W]&&(t.indexOf(O,W)>=0?(q[W]=k(H[W]),G._rawExtent[W]=B(),G._extent[W]=null):q[W]=H[W])}return G}function k(N){for(var O=new Array(N.length),z=0;z<N.length;z++)O[z]=x(N[z]);return O}function B(){return[1/0,-1/0]}T.map=function(N,O,z,G){z=z||G||this,N=t.map(R(N),this.getDimension,this);var q=E(this,N);q._indices=this._indices,q.getRawIndex=q._indices?P:D;for(var H=q._storage,U=[],W=this._chunkSize,Y=N.length,X=this.count(),K=[],Q=q._rawExtent,j=0;j<X;j++){for(var te=0;te<Y;te++)K[te]=this.get(N[te],j);K[Y]=j;var Z=O&&O.apply(z,K);if(Z!=null){typeof Z!="object"&&(U[0]=Z,Z=U);for(var ee=this.getRawIndex(j),le=Math.floor(ee/W),oe=ee%W,fe=0;fe<Z.length;fe++){var se=N[fe],ve=Z[fe],ye=Q[se],Me=H[se];Me&&(Me[le][oe]=ve),ve<ye[0]&&(ye[0]=ve),ve>ye[1]&&(ye[1]=ve)}}}return q},T.downSample=function(N,O,z,G){for(var q=E(this,[N]),H=q._storage,U=[],W=Math.floor(1/O),Y=H[N],X=this.count(),K=this._chunkSize,Q=q._rawExtent[N],j=new(_(this))(X),te=0,Z=0;Z<X;Z+=W){W>X-Z&&(W=X-Z,U.length=W);for(var ee=0;ee<W;ee++){var le=this.getRawIndex(Z+ee),oe=Math.floor(le/K),fe=le%K;U[ee]=Y[oe][fe]}var se=z(U),ve=this.getRawIndex(Math.min(Z+G(U,se)||0,X-1)),ye=Math.floor(ve/K),Me=ve%K;Y[ye][Me]=se,se<Q[0]&&(Q[0]=se),se>Q[1]&&(Q[1]=se),j[te++]=ve}return q._count=te,q._indices=j,q.getRawIndex=P,q},T.getItemModel=function(N){var O=this.hostModel;return new e(this.getRawDataItem(N),O,O&&O.ecModel)},T.diff=function(N){var O=this;return new a(N?N.getIndices():[],this.getIndices(),function(z){return I(N,z)},function(z){return I(O,z)})},T.getVisual=function(N){var O=this._visual;return O&&O[N]},T.setVisual=function(N,O){if(h(N)){for(var z in N)N.hasOwnProperty(z)&&this.setVisual(z,N[z]);return}this._visual=this._visual||{},this._visual[N]=O},T.setLayout=function(N,O){if(h(N)){for(var z in N)N.hasOwnProperty(z)&&this.setLayout(z,N[z]);return}this._layout[N]=O},T.getLayout=function(N){return this._layout[N]},T.getItemLayout=function(N){return this._itemLayouts[N]},T.setItemLayout=function(N,O,z){this._itemLayouts[N]=z?t.extend(this._itemLayouts[N]||{},O):O},T.clearItemLayouts=function(){this._itemLayouts.length=0},T.getItemVisual=function(N,O,z){var G=this._itemVisuals[N],q=G&&G[O];return q==null&&!z?this.getVisual(O):q},T.setItemVisual=function(N,O,z){var G=this._itemVisuals[N]||{},q=this.hasItemVisual;if(this._itemVisuals[N]=G,h(O)){for(var H in O)O.hasOwnProperty(H)&&(G[H]=O[H],q[H]=!0);return}G[O]=z,q[O]=!0},T.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var F=function(N){N.seriesIndex=this.seriesIndex,N.dataIndex=this.dataIndex,N.dataType=this.dataType};T.setItemGraphicEl=function(N,O){var z=this.hostModel;O&&(O.dataIndex=N,O.dataType=this.dataType,O.seriesIndex=z&&z.seriesIndex,O.type==="group"&&O.traverse(F,O)),this._graphicEls[N]=O},T.getItemGraphicEl=function(N){return this._graphicEls[N]},T.eachItemGraphicEl=function(N,O){t.each(this._graphicEls,function(z,G){z&&N&&N.call(O,z,G)})},T.cloneShallow=function(N){if(!N){var O=t.map(this.dimensions,this.getDimensionInfo,this);N=new A(O,this.hostModel)}if(N._storage=this._storage,w(N,this),this._indices){var z=this._indices.constructor;N._indices=new z(this._indices)}else N._indices=null;return N.getRawIndex=N._indices?P:D,N},T.wrapMethod=function(N,O){var z=this[N];typeof z=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(N),this[N]=function(){var G=z.apply(this,arguments);return O.apply(this,[G].concat(t.slice(arguments)))})},T.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],T.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=A;return V_=V,V_}var G_,XN;function Z9(){if(XN)return G_;XN=1;var r=ie(),t=r.createHashMap,e=r.each,a=r.isString,i=r.defaults,n=r.extend,o=r.isObject,s=r.clone,l=_t(),u=l.normalizeToArray,v=Ln(),h=v.guessOrdinal,f=v.BE_ORDINAL,c=ff(),d=cf(),p=d.OTHER_DIMENSIONS,g=Y9();function m(S,b,w){c.isInstance(b)||(b=c.seriesDataToSource(b)),w=w||{},S=(S||[]).slice();for(var A=(w.dimsDef||[]).slice(),T=t(),C=t(),M=[],L=y(b,S,A,w.dimCount),D=0;D<L;D++){var P=A[D]=n({},o(A[D])?A[D]:{name:A[D]}),I=P.name,R=M[D]=new g;I!=null&&T.get(I)==null&&(R.name=R.displayName=I,T.set(I,D)),P.type!=null&&(R.type=P.type),P.displayName!=null&&(R.displayName=P.displayName)}var E=w.encodeDef;!E&&w.encodeDefaulter&&(E=w.encodeDefaulter(b,L)),E=t(E),E.each(function(q,H){if(q=u(q).slice(),q.length===1&&!a(q[0])&&q[0]<0){E.set(H,!1);return}var U=E.set(H,[]);e(q,function(W,Y){a(W)&&(W=T.get(W)),W!=null&&W<L&&(U[Y]=W,B(M[W],H,Y))})});var k=0;e(S,function(W,H){var U,W,Y,X;if(a(W))U=W,W={};else{U=W.name;var K=W.ordinalMeta;W.ordinalMeta=null,W=s(W),W.ordinalMeta=K,Y=W.dimsDef,X=W.otherDims,W.name=W.coordDim=W.coordDimIndex=W.dimsDef=W.otherDims=null}var Q=E.get(U);if(Q!==!1){var Q=u(Q);if(!Q.length)for(var j=0;j<(Y&&Y.length||1);j++){for(;k<M.length&&M[k].coordDim!=null;)k++;k<M.length&&Q.push(k++)}e(Q,function(te,Z){var ee=M[te];if(B(i(ee,W),U,Z),ee.name==null&&Y){var le=Y[Z];!o(le)&&(le={name:le}),ee.name=ee.displayName=le.name,ee.defaultTooltip=le.defaultTooltip}X&&i(ee.otherDims,X)})}});function B(q,H,U){p.get(H)!=null?q.otherDims[H]=U:(q.coordDim=H,q.coordDimIndex=U,C.set(H,!0))}var F=w.generateCoord,V=w.generateCoordCount,N=V!=null;V=F?V||1:0;for(var O=F||"value",z=0;z<L;z++){var R=M[z]=M[z]||new g,G=R.coordDim;G==null&&(R.coordDim=_(O,C,N),R.coordDimIndex=0,(!F||V<=0)&&(R.isExtraCoord=!0),V--),R.name==null&&(R.name=_(R.coordDim,T)),R.type==null&&(h(b,z,R.name)===f.Must||R.isExtraCoord&&(R.otherDims.itemName!=null||R.otherDims.seriesName!=null))&&(R.type="ordinal")}return M}function y(S,b,w,A){var T=Math.max(S.dimensionsDetectCount||1,b.length,w.length,A||0);return e(b,function(C){var M=C.dimsDef;M&&(T=Math.max(T,M.length))}),T}function _(S,b,w){if(w||b.get(S)!=null){for(var A=0;b.get(S+A)!=null;)A++;S+=A}return b.set(S,!0),S}var x=m;return G_=x,G_}var F_,KN;function Mu(){if(KN)return F_;KN=1;var r=Z9();function t(e,a){return a=a||{},r(a.coordDimensions||[],e,{dimsDef:a.dimensionsDefine||e.dimensionsDefine,encodeDef:a.encodeDefine||e.encodeDefine,dimCount:a.dimensionsCount,encodeDefaulter:a.encodeDefaulter,generateCoord:a.generateCoord,generateCoordCount:a.generateCoordCount})}return F_=t,F_}var H_={},QN;function vge(){if(QN)return H_;QN=1;var r=It();r.__DEV__;var t=ie(),e=t.createHashMap;t.retrieve;var a=t.each;function i(l){this.coordSysName=l,this.coordSysDims=[],this.axisMap=e(),this.categoryAxisMap=e(),this.firstCategoryDimIndex=null}function n(l){var u=l.get("coordinateSystem"),v=new i(u),h=o[u];if(h)return h(l,v,v.axisMap,v.categoryAxisMap),v}var o={cartesian2d:function(l,u,v,h){var f=l.getReferringComponents("xAxis")[0],c=l.getReferringComponents("yAxis")[0];u.coordSysDims=["x","y"],v.set("x",f),v.set("y",c),s(f)&&(h.set("x",f),u.firstCategoryDimIndex=0),s(c)&&(h.set("y",c),u.firstCategoryDimIndex==null&(u.firstCategoryDimIndex=1))},singleAxis:function(l,u,v,h){var f=l.getReferringComponents("singleAxis")[0];u.coordSysDims=["single"],v.set("single",f),s(f)&&(h.set("single",f),u.firstCategoryDimIndex=0)},polar:function(l,u,v,h){var f=l.getReferringComponents("polar")[0],c=f.findAxisModel("radiusAxis"),d=f.findAxisModel("angleAxis");u.coordSysDims=["radius","angle"],v.set("radius",c),v.set("angle",d),s(c)&&(h.set("radius",c),u.firstCategoryDimIndex=0),s(d)&&(h.set("angle",d),u.firstCategoryDimIndex==null&&(u.firstCategoryDimIndex=1))},geo:function(l,u,v,h){u.coordSysDims=["lng","lat"]},parallel:function(l,u,v,h){var f=l.ecModel,c=f.getComponent("parallel",l.get("parallelIndex")),d=u.coordSysDims=c.dimensions.slice();a(c.parallelAxisIndex,function(p,g){var m=f.getComponent("parallelAxis",p),y=d[g];v.set(y,m),s(m)&&u.firstCategoryDimIndex==null&&(h.set(y,m),u.firstCategoryDimIndex=g)})}};function s(l){return l.get("type")==="category"}return H_.getCoordSysInfoBySeries=n,H_}var mv={},jN;function rn(){if(jN)return mv;jN=1;var r=ie(),t=r.each,e=r.isString;function a(o,s,l){l=l||{};var u=l.byIndex,v=l.stackedCoordDimension,h=!!(o&&o.get("stack")),f,c,d,p;if(t(s,function(_,x){e(_)&&(s[x]=_={name:_}),h&&!_.isExtraCoord&&(!u&&!f&&_.ordinalMeta&&(f=_),!c&&_.type!=="ordinal"&&_.type!=="time"&&(!v||v===_.coordDim)&&(c=_))}),c&&!u&&!f&&(u=!0),c){d="__\0ecstackresult",p="__\0ecstackedover",f&&(f.createInvertedIndices=!0);var g=c.coordDim,m=c.type,y=0;t(s,function(_){_.coordDim===g&&y++}),s.push({name:d,coordDim:g,coordDimIndex:y,type:m,isExtraCoord:!0,isCalculationCoord:!0}),y++,s.push({name:p,coordDim:p,coordDimIndex:y,type:m,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:c&&c.name,stackedByDimension:f&&f.name,isStackedByIndex:u,stackedOverDimension:p,stackResultDimension:d}}function i(o,s){return!!s&&s===o.getCalculationInfo("stackedDimension")}function n(o,s){return i(o,s)?o.getCalculationInfo("stackResultDimension"):s}return mv.enableDataStack=a,mv.isDimensionStacked=i,mv.getStackedDimension=n,mv}var q_,JN;function In(){if(JN)return q_;JN=1;var r=ie(),t=ei(),e=Mu(),a=hf(),i=a.SOURCE_FORMAT_ORIGINAL,n=cf(),o=n.getDimensionTypeByAxis,s=_t(),l=s.getDataItemValue,u=bi(),v=vge(),h=v.getCoordSysInfoBySeries,f=ff(),c=rn(),d=c.enableDataStack,p=Ln(),g=p.makeSeriesEncodeForAxisCoordSys;function m(S,b,w){w=w||{},f.isInstance(S)||(S=f.seriesDataToSource(S));var A=b.get("coordinateSystem"),T=u.get(A),C=h(b),M;C&&(M=r.map(C.coordSysDims,function(k){var B={name:k},F=C.axisMap.get(k);if(F){var V=F.get("type");B.type=o(V)}return B})),M||(M=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var L=e(S,{coordDimensions:M,generateCoord:w.generateCoord,encodeDefaulter:w.useEncodeDefaulter?r.curry(g,M,b):null}),D,P;C&&r.each(L,function(k,B){var F=k.coordDim,V=C.categoryAxisMap.get(F);V&&(D==null&&(D=B),k.ordinalMeta=V.getOrdinalMeta()),k.otherDims.itemName!=null&&(P=!0)}),!P&&D!=null&&(L[D].otherDims.itemName=0);var I=d(b,L),R=new t(L,b);R.setCalculationInfo(I);var E=D!=null&&y(S)?function(k,B,F,V){return V===D?F:this.defaultDimValueGetter(k,B,F,V)}:null;return R.hasItemOption=!1,R.initData(S,null,E),R}function y(S){if(S.sourceFormat===i){var b=_(S.data||[]);return b!=null&&!r.isArray(l(b))}}function _(S){for(var b=0;b<S.length&&S[b]==null;)b++;return S[b]}var x=m;return q_=x,q_}var oi={},W_,ez;function cg(){if(ez)return W_;ez=1;var r=Dn();function t(a){this._setting=a||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}t.prototype.parse=function(a){return a},t.prototype.getSetting=function(a){return this._setting[a]},t.prototype.contain=function(a){var i=this._extent;return a>=i[0]&&a<=i[1]},t.prototype.normalize=function(a){var i=this._extent;return i[1]===i[0]?.5:(a-i[0])/(i[1]-i[0])},t.prototype.scale=function(a){var i=this._extent;return a*(i[1]-i[0])+i[0]},t.prototype.unionExtent=function(a){var i=this._extent;a[0]<i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])},t.prototype.unionExtentFromData=function(a,i){this.unionExtent(a.getApproximateExtent(i))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(a,i){var n=this._extent;isNaN(a)||(n[0]=a),isNaN(i)||(n[1]=i)},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(a){this._isBlank=a},t.prototype.getLabel=null,r.enableClassExtend(t),r.enableClassManagement(t,{registerWhenExtend:!0});var e=t;return W_=e,W_}var U_,tz;function X9(){if(tz)return U_;tz=1;var r=ie(),t=r.createHashMap,e=r.isObject,a=r.map;function i(u){this.categories=u.categories||[],this._needCollect=u.needCollect,this._deduplication=u.deduplication,this._map}i.createByAxisModel=function(u){var v=u.option,h=v.data,f=h&&a(h,s);return new i({categories:f,needCollect:!f,deduplication:v.dedplication!==!1})};var n=i.prototype;n.getOrdinal=function(u){return o(this).get(u)},n.parseAndCollect=function(u){var v,h=this._needCollect;if(typeof u!="string"&&!h)return u;if(h&&!this._deduplication)return v=this.categories.length,this.categories[v]=u,v;var f=o(this);return v=f.get(u),v==null&&(h?(v=this.categories.length,this.categories[v]=u,f.set(u,v)):v=NaN),v};function o(u){return u._map||(u._map=t(u.categories))}function s(u){return e(u)&&u.value!=null?u.value:u+""}var l=i;return U_=l,U_}var $_,rz;function hge(){if(rz)return $_;rz=1;var r=ie(),t=cg(),e=X9(),a=t.prototype,i=t.extend({type:"ordinal",init:function(o,s){(!o||r.isArray(o))&&(o=new e({categories:o})),this._ordinalMeta=o,this._extent=s||[0,o.categories.length-1]},parse:function(o){return typeof o=="string"?this._ordinalMeta.getOrdinal(o):Math.round(o)},contain:function(o){return o=this.parse(o),a.contain.call(this,o)&&this._ordinalMeta.categories[o]!=null},normalize:function(o){return a.normalize.call(this,this.parse(o))},scale:function(o){return Math.round(a.scale.call(this,o))},getTicks:function(){for(var o=[],s=this._extent,l=s[0];l<=s[1];)o.push(l),l++;return o},getLabel:function(o){if(!this.isBlank())return this._ordinalMeta.categories[o]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(o,s){this.unionExtent(o.getApproximateExtent(s))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:r.noop,niceExtent:r.noop});i.create=function(){return new i};var n=i;return $_=n,$_}var yv={},az;function K9(){if(az)return yv;az=1;var r=st(),t=r.round;function e(o,s,l,u){var v={},h=o[1]-o[0],f=v.interval=r.nice(h/s,!0);l!=null&&f<l&&(f=v.interval=l),u!=null&&f>u&&(f=v.interval=u);var c=v.intervalPrecision=a(f),d=v.niceTickExtent=[t(Math.ceil(o[0]/f)*f,c),t(Math.floor(o[1]/f)*f,c)];return n(d,o),v}function a(o){return r.getPrecisionSafe(o)+2}function i(o,s,l){o[s]=Math.max(Math.min(o[s],l[1]),l[0])}function n(o,s){!isFinite(o[0])&&(o[0]=s[0]),!isFinite(o[1])&&(o[1]=s[1]),i(o,0,s),i(o,1,s),o[0]>o[1]&&(o[0]=o[1])}return yv.intervalScaleNiceTicks=e,yv.getIntervalPrecision=a,yv.fixExtent=n,yv}var Y_,iz;function dg(){if(iz)return Y_;iz=1;var r=st(),t=Yt(),e=cg(),a=K9(),i=r.round,n=e.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(s,l){var u=this._extent;isNaN(s)||(u[0]=parseFloat(s)),isNaN(l)||(u[1]=parseFloat(l))},unionExtent:function(s){var l=this._extent;s[0]<l[0]&&(l[0]=s[0]),s[1]>l[1]&&(l[1]=s[1]),n.prototype.setExtent.call(this,l[0],l[1])},getInterval:function(){return this._interval},setInterval:function(s){this._interval=s,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(s)},getTicks:function(s){var l=this._interval,u=this._extent,v=this._niceExtent,h=this._intervalPrecision,f=[];if(!l)return f;var c=1e4;u[0]<v[0]&&(s?f.push(i(v[0]-l,h)):f.push(u[0]));for(var d=v[0];d<=v[1]&&(f.push(d),d=i(d+l,h),d!==f[f.length-1]);)if(f.length>c)return[];var p=f.length?f[f.length-1]:v[1];return u[1]>p&&(s?f.push(i(p+l,h)):f.push(u[1])),f},getMinorTicks:function(s){for(var l=this.getTicks(!0),u=[],v=this.getExtent(),h=1;h<l.length;h++){for(var f=l[h],c=l[h-1],d=0,p=[],g=f-c,m=g/s;d<s-1;){var y=r.round(c+(d+1)*m);y>v[0]&&y<v[1]&&p.push(y),d++}u.push(p)}return u},getLabel:function(s,l){if(s==null)return"";var u=l&&l.precision;return u==null?u=r.getPrecisionSafe(s)||0:u==="auto"&&(u=this._intervalPrecision),s=i(s,u,!0),t.addCommas(s)},niceTicks:function(s,l,u){s=s||5;var v=this._extent,h=v[1]-v[0];if(isFinite(h)){h<0&&(h=-h,v.reverse());var f=a.intervalScaleNiceTicks(v,s,l,u);this._intervalPrecision=f.intervalPrecision,this._interval=f.interval,this._niceExtent=f.niceTickExtent}},niceExtent:function(s){var l=this._extent;if(l[0]===l[1])if(l[0]!==0){var u=l[0];s.fixMax||(l[1]+=u/2),l[0]-=u/2}else l[1]=1;var v=l[1]-l[0];isFinite(v)||(l[0]=0,l[1]=1),this.niceTicks(s.splitNumber,s.minInterval,s.maxInterval);var h=this._interval;s.fixMin||(l[0]=i(Math.floor(l[0]/h)*h)),s.fixMax||(l[1]=i(Math.ceil(l[1]/h)*h))}});n.create=function(){return new n};var o=n;return Y_=o,Y_}var Vn={},nz;function pg(){if(nz)return Vn;nz=1;var r=ie(),t=st(),e=t.parsePercent,a=rn(),i=a.isDimensionStacked,n=Cu(),o="__ec_stack_",s=.5,l=typeof Float32Array<"u"?Float32Array:Array;function u(b){return b.get("stack")||o+b.seriesIndex}function v(b){return b.dim+b.index}function h(b){var w=[],A=b.axis,T="axis0";if(A.type==="category"){for(var C=A.getBandWidth(),M=0;M<b.count;M++)w.push(r.defaults({bandWidth:C,axisKey:T,stackId:o+M},b));for(var L=p(w),D=[],M=0;M<b.count;M++){var P=L[T][o+M];P.offsetCenter=P.offset+P.width/2,D.push(P)}return D}}function f(b,w){var A=[];return w.eachSeriesByType(b,function(T){_(T)&&!x(T)&&A.push(T)}),A}function c(b){var w={};r.each(b,function(P){var I=P.coordinateSystem,R=I.getBaseAxis();if(!(R.type!=="time"&&R.type!=="value"))for(var E=P.getData(),k=R.dim+"_"+R.index,B=E.mapDimension(R.dim),F=0,V=E.count();F<V;++F){var N=E.get(B,F);w[k]?w[k].push(N):w[k]=[N]}});var A=[];for(var T in w)if(w.hasOwnProperty(T)){var C=w[T];if(C){C.sort(function(P,I){return P-I});for(var M=null,L=1;L<C.length;++L){var D=C[L]-C[L-1];D>0&&(M=M===null?D:Math.min(M,D))}A[T]=M}}return A}function d(b){var w=c(b),A=[];return r.each(b,function(T){var C=T.coordinateSystem,M=C.getBaseAxis(),L=M.getExtent(),D;if(M.type==="category")D=M.getBandWidth();else if(M.type==="value"||M.type==="time"){var P=M.dim+"_"+M.index,I=w[P],R=Math.abs(L[1]-L[0]),E=M.scale.getExtent(),k=Math.abs(E[1]-E[0]);D=I?R/k*I:R}else{var B=T.getData();D=Math.abs(L[1]-L[0])/B.count()}var F=e(T.get("barWidth"),D),V=e(T.get("barMaxWidth"),D),N=e(T.get("barMinWidth")||1,D),O=T.get("barGap"),z=T.get("barCategoryGap");A.push({bandWidth:D,barWidth:F,barMaxWidth:V,barMinWidth:N,barGap:O,barCategoryGap:z,axisKey:v(M),stackId:u(T)})}),p(A)}function p(b){var w={};r.each(b,function(T,C){var M=T.axisKey,L=T.bandWidth,D=w[M]||{bandWidth:L,remainedWidth:L,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},P=D.stacks;w[M]=D;var I=T.stackId;P[I]||D.autoWidthCount++,P[I]=P[I]||{width:0,maxWidth:0};var R=T.barWidth;R&&!P[I].width&&(P[I].width=R,R=Math.min(D.remainedWidth,R),D.remainedWidth-=R);var E=T.barMaxWidth;E&&(P[I].maxWidth=E);var k=T.barMinWidth;k&&(P[I].minWidth=k);var B=T.barGap;B!=null&&(D.gap=B);var F=T.barCategoryGap;F!=null&&(D.categoryGap=F)});var A={};return r.each(w,function(T,C){A[C]={};var M=T.stacks,L=T.bandWidth,D=e(T.categoryGap,L),P=e(T.gap,1),I=T.remainedWidth,R=T.autoWidthCount,E=(I-D)/(R+(R-1)*P);E=Math.max(E,0),r.each(M,function(V){var N=V.maxWidth,O=V.minWidth;if(V.width){var z=V.width;N&&(z=Math.min(z,N)),O&&(z=Math.max(z,O)),V.width=z,I-=z+P*z,R--}else{var z=E;N&&N<z&&(z=Math.min(N,I)),O&&O>z&&(z=O),z!==E&&(V.width=z,I-=z+P*z,R--)}}),E=(I-D)/(R+(R-1)*P),E=Math.max(E,0);var k=0,B;r.each(M,function(V,N){V.width||(V.width=E),B=V,k+=V.width*(1+P)}),B&&(k-=B.width*P);var F=-k/2;r.each(M,function(V,N){A[C][N]=A[C][N]||{bandWidth:L,offset:F,width:V.width},F+=V.width*(1+P)})}),A}function g(b,w,A){if(b&&w){var T=b[v(w)];return T!=null&&A!=null&&(T=T[u(A)]),T}}function m(b,w){var A=f(b,w),T=d(A),C={};r.each(A,function(M){var L=M.getData(),D=M.coordinateSystem,P=D.getBaseAxis(),I=u(M),R=T[v(P)][I],E=R.offset,k=R.width,B=D.getOtherAxis(P),F=M.get("barMinHeight")||0;C[I]=C[I]||[],L.setLayout({bandWidth:R.bandWidth,offset:E,size:k});for(var V=L.mapDimension(B.dim),N=L.mapDimension(P.dim),O=i(L,V),z=B.isHorizontal(),G=S(P,B),q=0,H=L.count();q<H;q++){var U=L.get(V,q),W=L.get(N,q),Y=U>=0?"p":"n",X=G;O&&(C[I][W]||(C[I][W]={p:G,n:G}),X=C[I][W][Y]);var K,Q,j,te;if(z){var Z=D.dataToPoint([U,W]);K=X,Q=Z[1]+E,j=Z[0]-G,te=k,Math.abs(j)<F&&(j=(j<0?-1:1)*F),isNaN(j)||O&&(C[I][W][Y]+=j)}else{var Z=D.dataToPoint([W,U]);K=Z[0]+E,Q=X,j=k,te=Z[1]-G,Math.abs(te)<F&&(te=(te<=0?-1:1)*F),isNaN(te)||O&&(C[I][W][Y]+=te)}L.setItemLayout(q,{x:K,y:Q,width:j,height:te})}},this)}var y={seriesType:"bar",plan:n(),reset:function(b){if(!_(b)||!x(b))return;var w=b.getData(),A=b.coordinateSystem,T=A.grid.getRect(),C=A.getBaseAxis(),M=A.getOtherAxis(C),L=w.mapDimension(M.dim),D=w.mapDimension(C.dim),P=M.isHorizontal(),I=P?0:1,R=g(d([b]),C,b).width;return R>s||(R=s),{progress:E};function E(k,B){for(var F=k.count,V=new l(F*2),N=new l(F*2),O=new l(F),z,G=[],q=[],H=0,U=0;(z=k.next())!=null;)q[I]=B.get(L,z),q[1-I]=B.get(D,z),G=A.dataToPoint(q,null,G),N[H]=P?T.x+T.width:G[0],V[H++]=G[0],N[H]=P?G[1]:T.y+T.height,V[H++]=G[1],O[U++]=z;B.setLayout({largePoints:V,largeDataIndices:O,largeBackgroundPoints:N,barWidth:R,valueAxisStart:S(C,M),backgroundStart:P?T.x:T.y,valueAxisHorizontal:P})}}};function _(b){return b.coordinateSystem&&b.coordinateSystem.type==="cartesian2d"}function x(b){return b.pipelineContext&&b.pipelineContext.large}function S(b,w,A){return w.toGlobalCoord(w.dataToCoord(w.type==="log"?1:0))}return Vn.getLayoutOnAxis=h,Vn.prepareLayoutBarSeries=f,Vn.makeColumnLayout=d,Vn.retrieveColumnLayout=g,Vn.layout=m,Vn.largeLayout=y,Vn}var Z_,oz;function fge(){if(oz)return Z_;oz=1;var r=ie(),t=st(),e=Yt(),a=K9(),i=dg(),n=i.prototype,o=Math.ceil,s=Math.floor,l=1e3,u=l*60,v=u*60,h=v*24,f=function(g,m,y,_){for(;y<_;){var x=y+_>>>1;g[x][1]<m?y=x+1:_=x}return y},c=i.extend({type:"time",getLabel:function(g){var m=this._stepLvl,y=new Date(g);return e.formatTime(m[0],y,this.getSetting("useUTC"))},niceExtent:function(g){var m=this._extent;if(m[0]===m[1]&&(m[0]-=h,m[1]+=h),m[1]===-1/0&&m[0]===1/0){var y=new Date;m[1]=+new Date(y.getFullYear(),y.getMonth(),y.getDate()),m[0]=m[1]-h}this.niceTicks(g.splitNumber,g.minInterval,g.maxInterval);var _=this._interval;g.fixMin||(m[0]=t.round(s(m[0]/_)*_)),g.fixMax||(m[1]=t.round(o(m[1]/_)*_))},niceTicks:function(g,m,y){g=g||10;var _=this._extent,x=_[1]-_[0],S=x/g;m!=null&&S<m&&(S=m),y!=null&&S>y&&(S=y);var b=d.length,w=f(d,S,0,b),A=d[Math.min(w,b-1)],T=A[1];if(A[0]==="year"){var C=x/T,M=t.nice(C/g,!0);T*=M}var L=this.getSetting("useUTC")?0:new Date(+_[0]||+_[1]).getTimezoneOffset()*60*1e3,D=[Math.round(o((_[0]-L)/T)*T+L),Math.round(s((_[1]-L)/T)*T+L)];a.fixExtent(D,_),this._stepLvl=A,this._interval=T,this._niceExtent=D},parse:function(g){return+t.parseDate(g)}});r.each(["contain","normalize"],function(g){c.prototype[g]=function(m){return n[g].call(this,this.parse(m))}});var d=[["hh:mm:ss",l],["hh:mm:ss",l*5],["hh:mm:ss",l*10],["hh:mm:ss",l*15],["hh:mm:ss",l*30],["hh:mm\nMM-dd",u],["hh:mm\nMM-dd",u*5],["hh:mm\nMM-dd",u*10],["hh:mm\nMM-dd",u*15],["hh:mm\nMM-dd",u*30],["hh:mm\nMM-dd",v],["hh:mm\nMM-dd",v*2],["hh:mm\nMM-dd",v*6],["hh:mm\nMM-dd",v*12],["MM-dd\nyyyy",h],["MM-dd\nyyyy",h*2],["MM-dd\nyyyy",h*3],["MM-dd\nyyyy",h*4],["MM-dd\nyyyy",h*5],["MM-dd\nyyyy",h*6],["week",h*7],["MM-dd\nyyyy",h*10],["week",h*14],["week",h*21],["month",h*31],["week",h*42],["month",h*62],["week",h*70],["quarter",h*95],["month",h*31*4],["month",h*31*5],["half-year",h*380/2],["month",h*31*8],["month",h*31*10],["year",h*380]];c.create=function(g){return new c({useUTC:g.ecModel.get("useUTC")})};var p=c;return Z_=p,Z_}var X_,sz;function Q9(){if(sz)return X_;sz=1;var r=ie(),t=cg(),e=st(),a=dg(),i=t.prototype,n=a.prototype,o=e.getPrecisionSafe,s=e.round,l=Math.floor,u=Math.ceil,v=Math.pow,h=Math.log,f=t.extend({type:"log",base:10,$constructor:function(){t.apply(this,arguments),this._originalScale=new a},getTicks:function(p){var g=this._originalScale,m=this._extent,y=g.getExtent();return r.map(n.getTicks.call(this,p),function(_){var x=e.round(v(this.base,_));return x=_===m[0]&&g.__fixMin?c(x,y[0]):x,x=_===m[1]&&g.__fixMax?c(x,y[1]):x,x},this)},getMinorTicks:n.getMinorTicks,getLabel:n.getLabel,scale:function(p){return p=i.scale.call(this,p),v(this.base,p)},setExtent:function(p,g){var m=this.base;p=h(p)/h(m),g=h(g)/h(m),n.setExtent.call(this,p,g)},getExtent:function(){var p=this.base,g=i.getExtent.call(this);g[0]=v(p,g[0]),g[1]=v(p,g[1]);var m=this._originalScale,y=m.getExtent();return m.__fixMin&&(g[0]=c(g[0],y[0])),m.__fixMax&&(g[1]=c(g[1],y[1])),g},unionExtent:function(p){this._originalScale.unionExtent(p);var g=this.base;p[0]=h(p[0])/h(g),p[1]=h(p[1])/h(g),i.unionExtent.call(this,p)},unionExtentFromData:function(p,g){this.unionExtent(p.getApproximateExtent(g))},niceTicks:function(p){p=p||10;var g=this._extent,m=g[1]-g[0];if(!(m===1/0||m<=0)){var y=e.quantity(m),_=p/m*y;for(_<=.5&&(y*=10);!isNaN(y)&&Math.abs(y)<1&&Math.abs(y)>0;)y*=10;var x=[e.round(u(g[0]/y)*y),e.round(l(g[1]/y)*y)];this._interval=y,this._niceExtent=x}},niceExtent:function(p){n.niceExtent.call(this,p);var g=this._originalScale;g.__fixMin=p.fixMin,g.__fixMax=p.fixMax}});r.each(["contain","normalize"],function(p){f.prototype[p]=function(g){return g=h(g)/h(this.base),i[p].call(this,g)}}),f.create=function(){return new f};function c(p,g){return s(p,o(g))}var d=f;return X_=d,X_}var lz;function wi(){if(lz)return oi;lz=1;var r=It();r.__DEV__;var t=ie(),e=hge(),a=dg(),i=cg(),n=st(),o=pg(),s=o.prepareLayoutBarSeries,l=o.makeColumnLayout,u=o.retrieveColumnLayout,v=rr();fge(),Q9();function h(b,w){var A=b.type,T=w.getMin(),C=w.getMax(),M=b.getExtent(),L,D,P;A==="ordinal"?L=w.getCategories().length:(D=w.get("boundaryGap"),t.isArray(D)||(D=[D||0,D||0]),typeof D[0]=="boolean"&&(D=[0,0]),D[0]=n.parsePercent(D[0],1),D[1]=n.parsePercent(D[1],1),P=M[1]-M[0]||Math.abs(M[0])),T==="dataMin"?T=M[0]:typeof T=="function"&&(T=T({min:M[0],max:M[1]})),C==="dataMax"?C=M[1]:typeof C=="function"&&(C=C({min:M[0],max:M[1]}));var I=T!=null,R=C!=null;T==null&&(T=A==="ordinal"?L?0:NaN:M[0]-D[0]*P),C==null&&(C=A==="ordinal"?L?L-1:NaN:M[1]+D[1]*P),(T==null||!isFinite(T))&&(T=NaN),(C==null||!isFinite(C))&&(C=NaN),b.setBlank(t.eqNaN(T)||t.eqNaN(C)||A==="ordinal"&&!b.getOrdinalMeta().categories.length),w.getNeedCrossZero()&&(T>0&&C>0&&!I&&(T=0),T<0&&C<0&&!R&&(C=0));var E=w.ecModel;if(E&&A==="time"){var k=s("bar",E),B;if(t.each(k,function(N){B|=N.getBaseAxis()===w.axis}),B){var F=l(k),V=f(T,C,w,F);T=V.min,C=V.max}}return{extent:[T,C],fixMin:I,fixMax:R}}function f(b,w,A,T){var C=A.axis.getExtent(),M=C[1]-C[0],L=u(T,A.axis);if(L===void 0)return{min:b,max:w};var D=1/0;t.each(L,function(B){D=Math.min(B.offset,D)});var P=-1/0;t.each(L,function(B){P=Math.max(B.offset+B.width,P)}),D=Math.abs(D),P=Math.abs(P);var I=D+P,R=w-b,E=1-(D+P)/M,k=R/E-R;return w+=k*(P/I),b-=k*(D/I),{min:b,max:w}}function c(b,w){var A=h(b,w),T=A.extent,C=w.get("splitNumber");b.type==="log"&&(b.base=w.get("logBase"));var M=b.type;b.setExtent(T[0],T[1]),b.niceExtent({splitNumber:C,fixMin:A.fixMin,fixMax:A.fixMax,minInterval:M==="interval"||M==="time"?w.get("minInterval"):null,maxInterval:M==="interval"||M==="time"?w.get("maxInterval"):null});var L=w.get("interval");L!=null&&b.setInterval&&b.setInterval(L)}function d(b,w){if(w=w||b.get("type"),w)switch(w){case"category":return new e(b.getOrdinalMeta?b.getOrdinalMeta():b.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(i.getClass(w)||a).create(b)}}function p(b){var w=b.scale.getExtent(),A=w[0],T=w[1];return!(A>0&&T>0||A<0&&T<0)}function g(b){var w=b.getLabelModel().get("formatter"),A=b.type==="category"?b.scale.getExtent()[0]:null;return typeof w=="string"?(w=(function(T){return function(C){return C=b.scale.getLabel(C),T.replace("{value}",C!=null?C:"")}})(w),w):typeof w=="function"?function(T,C){return A!=null&&(C=T-A),w(m(b,T),C)}:function(T){return b.scale.getLabel(T)}}function m(b,w){return b.type==="category"?b.scale.getLabel(w):w}function y(b){var w=b.model,A=b.scale;if(!(!w.get("axisLabel.show")||A.isBlank())){var T=b.type==="category",C,M,L=A.getExtent();T?M=A.count():(C=A.getTicks(),M=C.length);var D=b.getLabelModel(),P=g(b),I,R=1;M>40&&(R=Math.ceil(M/40));for(var E=0;E<M;E+=R){var k=C?C[E]:L[0]+E,B=P(k),F=D.getTextRect(B),V=_(F,D.get("rotate")||0);I?I.union(V):I=V}return I}}function _(b,w){var A=w*Math.PI/180,T=b.plain(),C=T.width,M=T.height,L=C*Math.abs(Math.cos(A))+Math.abs(M*Math.sin(A)),D=C*Math.abs(Math.sin(A))+Math.abs(M*Math.cos(A)),P=new v(T.x,T.y,L,D);return P}function x(b){var w=b.get("interval");return w==null?"auto":w}function S(b){return b.type==="category"&&x(b.getLabelModel())===0}return oi.getScaleExtent=h,oi.niceScaleExtent=c,oi.createScaleByModel=d,oi.ifAxisCrossZero=p,oi.makeLabelFormatter=g,oi.getAxisRawValue=m,oi.estimateLabelUnionRect=y,oi.getOptionCategoryInterval=x,oi.shouldShowAllLabels=S,oi}var K_,uz;function Du(){if(uz)return K_;uz=1;var r=ie(),t={getMin:function(e){var a=this.option,i=!e&&a.rangeStart!=null?a.rangeStart:a.min;return this.axis&&i!=null&&i!=="dataMin"&&typeof i!="function"&&!r.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(e){var a=this.option,i=!e&&a.rangeEnd!=null?a.rangeEnd:a.max;return this.axis&&i!=null&&i!=="dataMax"&&typeof i!="function"&&!r.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var e=this.option;return e.rangeStart!=null||e.rangeEnd!=null?!1:!e.scale},getCoordSysModel:r.noop,setRange:function(e,a){this.option.rangeStart=e,this.option.rangeEnd=a},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};return K_=t,K_}var Q_={},vz;function ti(){if(vz)return Q_;vz=1;var r=ie(),t=qe(),e=rr(),a=Da(),i=a.calculateTextPosition,n=t.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(p,g){var m=g.cx,y=g.cy,_=g.width/2,x=g.height/2;p.moveTo(m,y-x),p.lineTo(m+_,y+x),p.lineTo(m-_,y+x),p.closePath()}}),o=t.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(p,g){var m=g.cx,y=g.cy,_=g.width/2,x=g.height/2;p.moveTo(m,y-x),p.lineTo(m+_,y),p.lineTo(m,y+x),p.lineTo(m-_,y),p.closePath()}}),s=t.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(p,g){var m=g.x,y=g.y,_=g.width/5*3,x=Math.max(_,g.height),S=_/2,b=S*S/(x-S),w=y-x+S+b,A=Math.asin(b/S),T=Math.cos(A)*S,C=Math.sin(A),M=Math.cos(A),L=S*.6,D=S*.7;p.moveTo(m-T,w+b),p.arc(m,w,S,Math.PI-A,Math.PI*2+A),p.bezierCurveTo(m+T-C*L,w+b+M*L,m,y-D,m,y),p.bezierCurveTo(m,y-D,m-T+C*L,w+b+M*L,m-T,w+b),p.closePath()}}),l=t.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(p,g){var m=g.height,y=g.width,_=g.x,x=g.y,S=y/3*2;p.moveTo(_,x),p.lineTo(_+S,x+m),p.lineTo(_,x+m/4*3),p.lineTo(_-S,x+m),p.lineTo(_,x),p.closePath()}}),u={line:t.Line,rect:t.Rect,roundRect:t.Rect,square:t.Rect,circle:t.Circle,diamond:o,pin:s,arrow:l,triangle:n},v={line:function(p,g,m,y,_){_.x1=p,_.y1=g+y/2,_.x2=p+m,_.y2=g+y/2},rect:function(p,g,m,y,_){_.x=p,_.y=g,_.width=m,_.height=y},roundRect:function(p,g,m,y,_){_.x=p,_.y=g,_.width=m,_.height=y,_.r=Math.min(m,y)/4},square:function(p,g,m,y,_){var x=Math.min(m,y);_.x=p,_.y=g,_.width=x,_.height=x},circle:function(p,g,m,y,_){_.cx=p+m/2,_.cy=g+y/2,_.r=Math.min(m,y)/2},diamond:function(p,g,m,y,_){_.cx=p+m/2,_.cy=g+y/2,_.width=m,_.height=y},pin:function(p,g,m,y,_){_.x=p+m/2,_.y=g+y/2,_.width=m,_.height=y},arrow:function(p,g,m,y,_){_.x=p+m/2,_.y=g+y/2,_.width=m,_.height=y},triangle:function(p,g,m,y,_){_.cx=p+m/2,_.cy=g+y/2,_.width=m,_.height=y}},h={};r.each(u,function(p,g){h[g]=new p});var f=t.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(p,g,m){var y=i(p,g,m),_=this.shape;return _&&_.symbolType==="pin"&&g.textPosition==="inside"&&(y.y=m.y+m.height*.4),y},buildPath:function(p,g,m){var y=g.symbolType;if(y!=="none"){var _=h[y];_||(y="rect",_=h[y]),v[y](g.x,g.y,g.width,g.height,_.shape),_.buildPath(p,_.shape,m)}}});function c(p,g){if(this.type!=="image"){var m=this.style,y=this.shape;y&&y.symbolType==="line"?m.stroke=p:this.__isEmptyBrush?(m.stroke=p,m.fill=g||"#fff"):(m.fill&&(m.fill=p),m.stroke&&(m.stroke=p)),this.dirty(!1)}}function d(p,g,m,y,_,x,S){var b=p.indexOf("empty")===0;b&&(p=p.substr(5,1).toLowerCase()+p.substr(6));var w;return p.indexOf("image://")===0?w=t.makeImage(p.slice(8),new e(g,m,y,_),S?"center":"cover"):p.indexOf("path://")===0?w=t.makePath(p.slice(7),{},new e(g,m,y,_),S?"center":"cover"):w=new f({shape:{symbolType:p,x:g,y:m,width:y,height:_}}),w.__isEmptyBrush=b,w.setColor=c,w.setColor(x),w}return Q_.createSymbol=d,Q_}var hz;function cge(){if(hz)return Ei;hz=1;var r=ie(),t=In(),e=wi(),a=Du(),i=gr(),n=Ut();n.getLayoutRect,Ei.getLayoutRect=n.getLayoutRect;var o=rn(),s=o.enableDataStack,l=o.isDimensionStacked,u=o.getStackedDimension,v=Z9();Ei.completeDimensions=v;var h=Mu();Ei.createDimensions=h;var f=ti();Ei.createSymbol=f.createSymbol;function c(m){return t(m.getSource(),m)}var d={isDimensionStacked:l,enableDataStack:s,getStackedDimension:u};function p(m,y){var _=y;i.isInstance(y)||(_=new i(y),r.mixin(_,a));var x=e.createScaleByModel(_);return x.setExtent(m[0],m[1]),e.niceScaleExtent(x,_),x}function g(m){r.mixin(m,a)}return Ei.createList=c,Ei.dataStack=d,Ei.createScale=p,Ei.mixinAxisModelCommonMethods=g,Ei}var j_={},fz;function j9(){if(fz)return j_;fz=1;var r=k9(),t=1e-8;function e(i,n){return Math.abs(i-n)<t}function a(i,n,o){var s=0,l=i[0];if(!l)return!1;for(var u=1;u<i.length;u++){var v=i[u];s+=r(l[0],l[1],v[0],v[1],n,o),l=v}var h=i[0];return(!e(l[0],h[0])||!e(l[1],h[1]))&&(s+=r(l[0],l[1],h[0],h[1],n,o)),s!==0}return j_.contain=a,j_}var J_,cz;function J9(){if(cz)return J_;cz=1;var r=rr(),t=uf(),e=Jt(),a=j9();function i(o,s,l){if(this.name=o,this.geometries=s,l)l=[l[0],l[1]];else{var u=this.getBoundingRect();l=[u.x+u.width/2,u.y+u.height/2]}this.center=l}i.prototype={constructor:i,properties:null,getBoundingRect:function(){var o=this._rect;if(o)return o;for(var s=Number.MAX_VALUE,l=[s,s],u=[-s,-s],v=[],h=[],f=this.geometries,c=0;c<f.length;c++)if(f[c].type==="polygon"){var d=f[c].exterior;t.fromPoints(d,v,h),e.min(l,l,v),e.max(u,u,h)}return c===0&&(l[0]=l[1]=u[0]=u[1]=0),this._rect=new r(l[0],l[1],u[0]-l[0],u[1]-l[1])},contain:function(o){var s=this.getBoundingRect(),l=this.geometries;if(!s.contain(o[0],o[1]))return!1;e:for(var u=0,v=l.length;u<v;u++)if(l[u].type==="polygon"){var h=l[u].exterior,f=l[u].interiors;if(a.contain(h,o[0],o[1])){for(var c=0;c<(f?f.length:0);c++)if(a.contain(f[c]))continue e;return!0}}return!1},transformTo:function(o,s,l,u){var v=this.getBoundingRect(),h=v.width/v.height;l?u||(u=l/h):l=h*u;for(var f=new r(o,s,l,u),c=v.calculateTransform(f),d=this.geometries,p=0;p<d.length;p++)if(d[p].type==="polygon"){for(var g=d[p].exterior,m=d[p].interiors,y=0;y<g.length;y++)e.applyTransform(g[y],g[y],c);for(var _=0;_<(m?m.length:0);_++)for(var y=0;y<m[_].length;y++)e.applyTransform(m[_][y],m[_][y],c)}v=this._rect,v.copy(f),this.center=[v.x+v.width/2,v.y+v.height/2]},cloneShallow:function(o){o==null&&(o=this.name);var s=new i(o,this.geometries,this.center);return s._rect=this._rect,s.transformTo=null,s}};var n=i;return J_=n,J_}var e1,dz;function e$(){if(dz)return e1;dz=1;var r=ie(),t=J9();function e(n){if(!n.UTF8Encoding)return n;var o=n.UTF8Scale;o==null&&(o=1024);for(var s=n.features,l=0;l<s.length;l++)for(var u=s[l],v=u.geometry,h=v.coordinates,f=v.encodeOffsets,c=0;c<h.length;c++){var d=h[c];if(v.type==="Polygon")h[c]=a(d,f[c],o);else if(v.type==="MultiPolygon")for(var p=0;p<d.length;p++){var g=d[p];d[p]=a(g,f[c][p],o)}}return n.UTF8Encoding=!1,n}function a(n,o,s){for(var l=[],u=o[0],v=o[1],h=0;h<n.length;h+=2){var f=n.charCodeAt(h)-64,c=n.charCodeAt(h+1)-64;f=f>>1^-(f&1),c=c>>1^-(c&1),f+=u,c+=v,u=f,v=c,l.push([f/s,c/s])}return l}function i(n,o){return e(n),r.map(r.filter(n.features,function(s){return s.geometry&&s.properties&&s.geometry.coordinates.length>0}),function(s){var l=s.properties,u=s.geometry,v=u.coordinates,h=[];u.type==="Polygon"&&h.push({type:"polygon",exterior:v[0],interiors:v.slice(1)}),u.type==="MultiPolygon"&&r.each(v,function(c){c[0]&&h.push({type:"polygon",exterior:c[0],interiors:c.slice(1)})});var f=new t(l[o||"name"],h,l.cp);return f.properties=l,f})}return e1=i,e1}var _v={},pz;function dge(){if(pz)return _v;pz=1;var r=ie(),t=Da(),e=_t(),a=e.makeInner,i=wi(),n=i.makeLabelFormatter,o=i.getOptionCategoryInterval,s=i.shouldShowAllLabels,l=a();function u(w){return w.type==="category"?h(w):d(w)}function v(w,A){return w.type==="category"?c(w,A):{ticks:w.scale.getTicks()}}function h(w){var A=w.getLabelModel(),T=f(w,A);return!A.get("show")||w.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function f(w,A){var T=p(w,"labels"),C=o(A),M=g(T,C);if(M)return M;var L,D;return r.isFunction(C)?L=b(w,C):(D=C==="auto"?y(w):C,L=S(w,D)),m(T,C,{labels:L,labelCategoryInterval:D})}function c(w,A){var T=p(w,"ticks"),C=o(A),M=g(T,C);if(M)return M;var L,D;if((!A.get("show")||w.scale.isBlank())&&(L=[]),r.isFunction(C))L=b(w,C,!0);else if(C==="auto"){var P=f(w,w.getLabelModel());D=P.labelCategoryInterval,L=r.map(P.labels,function(I){return I.tickValue})}else D=C,L=S(w,D,!0);return m(T,C,{ticks:L,tickCategoryInterval:D})}function d(w){var A=w.scale.getTicks(),T=n(w);return{labels:r.map(A,function(C,M){return{formattedLabel:T(C,M),rawLabel:w.scale.getLabel(C),tickValue:C}})}}function p(w,A){return l(w)[A]||(l(w)[A]=[])}function g(w,A){for(var T=0;T<w.length;T++)if(w[T].key===A)return w[T].value}function m(w,A,T){return w.push({key:A,value:T}),T}function y(w){var A=l(w).autoInterval;return A!=null?A:l(w).autoInterval=w.calculateCategoryInterval()}function _(w){var A=x(w),T=n(w),C=(A.axisRotate-A.labelRotate)/180*Math.PI,M=w.scale,L=M.getExtent(),D=M.count();if(L[1]-L[0]<1)return 0;var P=1;D>40&&(P=Math.max(1,Math.floor(D/40)));for(var I=L[0],R=w.dataToCoord(I+1)-w.dataToCoord(I),E=Math.abs(R*Math.cos(C)),k=Math.abs(R*Math.sin(C)),B=0,F=0;I<=L[1];I+=P){var V=0,N=0,O=t.getBoundingRect(T(I),A.font,"center","top");V=O.width*1.3,N=O.height*1.3,B=Math.max(B,V,7),F=Math.max(F,N,7)}var z=B/E,G=F/k;isNaN(z)&&(z=1/0),isNaN(G)&&(G=1/0);var q=Math.max(0,Math.floor(Math.min(z,G))),H=l(w.model),U=w.getExtent(),W=H.lastAutoInterval,Y=H.lastTickCount;return W!=null&&Y!=null&&Math.abs(W-q)<=1&&Math.abs(Y-D)<=1&&W>q&&H.axisExtend0===U[0]&&H.axisExtend1===U[1]?q=W:(H.lastTickCount=D,H.lastAutoInterval=q,H.axisExtend0=U[0],H.axisExtend1=U[1]),q}function x(w){var A=w.getLabelModel();return{axisRotate:w.getRotate?w.getRotate():w.isHorizontal&&!w.isHorizontal()?90:0,labelRotate:A.get("rotate")||0,font:A.getFont()}}function S(w,A,T){var C=n(w),M=w.scale,L=M.getExtent(),D=w.getLabelModel(),P=[],I=Math.max((A||0)+1,1),R=L[0],E=M.count();R!==0&&I>1&&E/I>2&&(R=Math.round(Math.ceil(R/I)*I));var k=s(w),B=D.get("showMinLabel")||k,F=D.get("showMaxLabel")||k;B&&R!==L[0]&&N(L[0]);for(var V=R;V<=L[1];V+=I)N(V);F&&V-I!==L[1]&&N(L[1]);function N(O){P.push(T?O:{formattedLabel:C(O),rawLabel:M.getLabel(O),tickValue:O})}return P}function b(w,A,T){var C=w.scale,M=n(w),L=[];return r.each(C.getTicks(),function(D){var P=C.getLabel(D);A(D,P)&&L.push(T?D:{formattedLabel:M(D),rawLabel:P,tickValue:D})}),L}return _v.createAxisLabels=u,_v.createAxisTicks=v,_v.calculateCategoryInterval=_,_v}var t1,gz;function So(){if(gz)return t1;gz=1;var r=ie(),t=r.each,e=r.map,a=st(),i=a.linearMap,n=a.getPixelPrecision,o=a.round,s=dge(),l=s.createAxisTicks,u=s.createAxisLabels,v=s.calculateCategoryInterval,h=[0,1],f=function(g,m,y){this.dim=g,this.scale=m,this._extent=y||[0,0],this.inverse=!1,this.onBand=!1};f.prototype={constructor:f,contain:function(g){var m=this._extent,y=Math.min(m[0],m[1]),_=Math.max(m[0],m[1]);return g>=y&&g<=_},containData:function(g){return this.scale.contain(g)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(g){return n(g||this.scale.getExtent(),this._extent)},setExtent:function(g,m){var y=this._extent;y[0]=g,y[1]=m},dataToCoord:function(g,m){var y=this._extent,_=this.scale;return g=_.normalize(g),this.onBand&&_.type==="ordinal"&&(y=y.slice(),c(y,_.count())),i(g,h,y,m)},coordToData:function(g,m){var y=this._extent,_=this.scale;this.onBand&&_.type==="ordinal"&&(y=y.slice(),c(y,_.count()));var x=i(g,y,h,m);return this.scale.scale(x)},pointToData:function(g,m){},getTicksCoords:function(g){g=g||{};var m=g.tickModel||this.getTickModel(),y=l(this,m),_=y.ticks,x=e(_,function(b){return{coord:this.dataToCoord(b),tickValue:b}},this),S=m.get("alignWithLabel");return d(this,x,S,g.clamp),x},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var g=this.model.getModel("minorTick"),m=g.get("splitNumber");m>0&&m<100||(m=5);var y=this.scale.getMinorTicks(m),_=e(y,function(x){return e(x,function(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return _},getViewLabels:function(){return u(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var g=this._extent,m=this.scale.getExtent(),y=m[1]-m[0]+(this.onBand?1:0);y===0&&(y=1);var _=Math.abs(g[1]-g[0]);return Math.abs(_)/y},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return v(this)}};function c(g,m){var y=g[1]-g[0],_=m,x=y/_/2;g[0]+=x,g[1]-=x}function d(g,m,y,_){var x=m.length;if(!g.onBand||y||!x)return;var S=g.getExtent(),b,w;if(x===1)m[0].coord=S[0],b=m[1]={coord:S[0]};else{var A=m[x-1].tickValue-m[0].tickValue,T=(m[x-1].coord-m[0].coord)/A;t(m,function(D){D.coord-=T/2});var C=g.scale.getExtent();w=1+C[1]-m[x-1].tickValue,b={coord:m[x-1].coord+T*w},m.push(b)}var M=S[0]>S[1];L(m[0].coord,S[0])&&(_?m[0].coord=S[0]:m.shift()),_&&L(S[0],m[0].coord)&&m.unshift({coord:S[0]}),L(S[1],b.coord)&&(_?b.coord=S[1]:m.pop()),_&&L(b.coord,S[1])&&m.push({coord:S[1]});function L(D,P){return D=o(D),P=o(P),M?D>P:D<P}}var p=f;return t1=p,t1}var mz;function t$(){if(mz)return Er;mz=1;var r=vg();Er.zrender=r;var t=ha();Er.matrix=t;var e=Jt();Er.vector=e;var a=ie(),i=en();Er.color=i;var n=qe(),o=st();Er.number=o;var s=Yt();Er.format=s;var l=_o();l.throttle,Er.throttle=l.throttle;var u=cge();Er.helper=u;var v=e$();Er.parseGeoJSON=v;var h=ei();Er.List=h;var f=gr();Er.Model=f;var c=So();Er.Axis=c;var d=pr();Er.env=d;var p=v,g={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(y){g[y]=a[y]});var m={};return a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(y){m[y]=n[y]}),Er.parseGeoJson=p,Er.util=g,Er.graphic=m,Er}var yz;function Pe(){return yz||(yz=1,(function(r){var t=It();t.__DEV__;var e=vg(),a=ie(),i=en(),n=pr(),o=KM(),s=Ws(),l=q9(),u=W9(),v=bi(),h=Jpe(),f=tge(),c=rge(),d=Lr(),p=Ir(),g=fg(),m=tn(),y=qe(),_=_t(),x=_o(),S=x.throttle,b=age(),w=ige(),A=nge(),T=oge(),C=sge(),M=lge();U9();var L=nD(),D=a.assert,P=a.each,I=a.isFunction,R=a.isObject,E=d.parseClassType,k="4.9.0",B={zrender:"4.3.2"},F=1,V=1e3,N=800,O=900,z=5e3,G=1e3,q=1100,H=2e3,U=3e3,W=3500,Y=4e3,X=5e3,K={PROCESSOR:{FILTER:V,SERIES_FILTER:N,STATISTIC:z},VISUAL:{LAYOUT:G,PROGRESSIVE_LAYOUT:q,GLOBAL:H,CHART:U,POST_CHART_LAYOUT:W,COMPONENT:Y,BRUSH:X}},Q="__flagInMainProcess",j="__optionUpdated",te=/^[a-zA-Z0-9_]+$/;function Z(ae,de){return function(Te,Le,Ee){if(!de&&this._disposed){this.id;return}Te=Te&&Te.toLowerCase(),s.prototype[ae].call(this,Te,Le,Ee)}}function ee(){s.call(this)}ee.prototype.on=Z("on",!0),ee.prototype.off=Z("off",!0),ee.prototype.one=Z("one",!0),a.mixin(ee,s);function le(ae,Oe,Te){Te=Te||{},typeof Oe=="string"&&(Oe=Pr[Oe]),this.id,this.group,this._dom=ae;var Le="canvas",Ee=this._zr=e.init(ae,{renderer:Te.renderer||Le,devicePixelRatio:Te.devicePixelRatio,width:Te.width,height:Te.height});this._throttledZrFlush=S(a.bind(Ee.flush,Ee),17);var Oe=a.clone(Oe);Oe&&f(Oe,!0),this._theme=Oe,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new v;var Fe=this._api=Bt(this);function Qe(We,ct){return We.__prio-ct.__prio}o(Kt,Qe),o(Lt,Qe),this._scheduler=new T(this,Fe,Lt,Kt),s.call(this,this._ecEventProcessor=new Vt),this._messageCenter=new ee,this._initEvents(),this.resize=a.bind(this.resize,this),this._pendingActions=[],Ee.animation.on("frame",this._onframe,this),me(Ee,this),a.setAsPrimitive(this)}var oe=le.prototype;oe._onframe=function(){if(!this._disposed){var ae=this._scheduler;if(this[j]){var de=this[j].silent;this[Q]=!0,ve(this),se.update.call(this),this[Q]=!1,this[j]=!1,ne.call(this,de),ue.call(this,de)}else if(ae.unfinished){var Te=F,Le=this._model,Ee=this._api;ae.unfinished=!1;do{var Oe=+new Date;ae.performSeriesTasks(Le),ae.performDataProcessorTasks(Le),Me(this,Le),ae.performVisualTasks(Le),ze(this,this._model,Ee,"remain"),Te-=+new Date-Oe}while(Te>0&&ae.unfinished);ae.unfinished||this._zr.flush()}}},oe.getDom=function(){return this._dom},oe.getZr=function(){return this._zr},oe.setOption=function(ae,de,Te){if(this._disposed){this.id;return}var Le;if(R(de)&&(Te=de.lazyUpdate,Le=de.silent,de=de.notMerge),this[Q]=!0,!this._model||de){var Ee=new h(this._api),Oe=this._theme,Fe=this._model=new l;Fe.scheduler=this._scheduler,Fe.init(null,null,Oe,Ee)}this._model.setOption(ae,Zt),Te?(this[j]={silent:Le},this[Q]=!1):(ve(this),se.update.call(this),this._zr.flush(),this[j]=!1,this[Q]=!1,ne.call(this,Le),ue.call(this,Le))},oe.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},oe.getModel=function(){return this._model},oe.getOption=function(){return this._model&&this._model.getOption()},oe.getWidth=function(){return this._zr.getWidth()},oe.getHeight=function(){return this._zr.getHeight()},oe.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},oe.getRenderedCanvas=function(ae){if(n.canvasSupported){ae=ae||{},ae.pixelRatio=ae.pixelRatio||1,ae.backgroundColor=ae.backgroundColor||this._model.get("backgroundColor");var de=this._zr;return de.painter.getRenderedCanvas(ae)}},oe.getSvgDataURL=function(){if(n.svgSupported){var ae=this._zr,de=ae.storage.getDisplayList();return a.each(de,function(Te){Te.stopAnimation(!0)}),ae.painter.toDataURL()}},oe.getDataURL=function(ae){if(this._disposed){this.id;return}ae=ae||{};var de=ae.excludeComponents,Te=this._model,Le=[],Ee=this;P(de,function(Fe){Te.eachComponent({mainType:Fe},function(Qe){var We=Ee._componentsMap[Qe.__viewId];We.group.ignore||(Le.push(We),We.group.ignore=!0)})});var Oe=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(ae).toDataURL("image/"+(ae&&ae.type||"png"));return P(Le,function(Fe){Fe.group.ignore=!1}),Oe},oe.getConnectedDataURL=function(ae){if(this._disposed){this.id;return}if(n.canvasSupported){var de=ae.type==="svg",Te=this.group,Le=Math.min,Ee=Math.max,Oe=1/0;if(ta[Te]){var Fe=Oe,Qe=Oe,We=-Oe,ct=-Oe,mt=[],xt=ae&&ae.pixelRatio||1;a.each(Rr,function(Ia,wf){if(Ia.group===Te){var Dg=de?Ia.getZr().painter.getSvgDom().innerHTML:Ia.getRenderedCanvas(a.clone(ae)),Js=Ia.getDom().getBoundingClientRect();Fe=Le(Js.left,Fe),Qe=Le(Js.top,Qe),We=Ee(Js.right,We),ct=Ee(Js.bottom,ct),mt.push({dom:Dg,left:Js.left,top:Js.top})}}),Fe*=xt,Qe*=xt,We*=xt,ct*=xt;var or=We-Fe,er=ct-Qe,Fr=a.createCanvas(),La=e.init(Fr,{renderer:de?"svg":"canvas"});if(La.resize({width:or,height:er}),de){var bf="";return P(mt,function(Ia){var wf=Ia.left-Fe,Dg=Ia.top-Qe;bf+='<g transform="translate('+wf+","+Dg+')">'+Ia.dom+"</g>"}),La.painter.getSvgRoot().innerHTML=bf,ae.connectedBackgroundColor&&La.painter.setBackgroundColor(ae.connectedBackgroundColor),La.refreshImmediately(),La.painter.toDataURL()}else return ae.connectedBackgroundColor&&La.add(new y.Rect({shape:{x:0,y:0,width:or,height:er},style:{fill:ae.connectedBackgroundColor}})),P(mt,function(Ia){var wf=new y.Image({style:{x:Ia.left*xt-Fe,y:Ia.top*xt-Qe,image:Ia.dom}});La.add(wf)}),La.refreshImmediately(),Fr.toDataURL("image/"+(ae&&ae.type||"png"))}else return this.getDataURL(ae)}},oe.convertToPixel=a.curry(fe,"convertToPixel"),oe.convertFromPixel=a.curry(fe,"convertFromPixel");function fe(ae,de,Te){if(this._disposed){this.id;return}var Le=this._model,Ee=this._coordSysMgr.getCoordinateSystems(),Oe;de=_.parseFinder(Le,de);for(var Fe=0;Fe<Ee.length;Fe++){var Qe=Ee[Fe];if(Qe[ae]&&(Oe=Qe[ae](Le,de,Te))!=null)return Oe}}oe.containPixel=function(ae,de){if(this._disposed){this.id;return}var Te=this._model,Le;return ae=_.parseFinder(Te,ae),a.each(ae,function(Ee,Oe){Oe.indexOf("Models")>=0&&a.each(Ee,function(Fe){var Qe=Fe.coordinateSystem;if(Qe&&Qe.containPoint)Le|=!!Qe.containPoint(de);else if(Oe==="seriesModels"){var We=this._chartsMap[Fe.__viewId];We&&We.containPoint&&(Le|=We.containPoint(de,Fe))}},this)},this),!!Le},oe.getVisual=function(ae,de){var Te=this._model;ae=_.parseFinder(Te,ae,{defaultMainType:"series"});var Le=ae.seriesModel,Ee=Le.getData(),Oe=ae.hasOwnProperty("dataIndexInside")?ae.dataIndexInside:ae.hasOwnProperty("dataIndex")?Ee.indexOfRawIndex(ae.dataIndex):null;return Oe!=null?Ee.getItemVisual(Oe,de):Ee.getVisual(de)},oe.getViewOfComponentModel=function(ae){return this._componentsMap[ae.__viewId]},oe.getViewOfSeriesModel=function(ae){return this._chartsMap[ae.__viewId]};var se={prepareAndUpdate:function(ae){ve(this),se.update.call(this,ae)},update:function(ae){var de=this._model,Te=this._api,Le=this._zr,Ee=this._coordSysMgr,Oe=this._scheduler;if(de){Oe.restoreData(de,ae),Oe.performSeriesTasks(de),Ee.create(de,Te),Oe.performDataProcessorTasks(de,ae),Me(this,de),Ee.update(de,Te),ge(de),Oe.performVisualTasks(de,ae),pe(this,de,Te,ae);var Fe=de.get("backgroundColor")||"transparent";if(n.canvasSupported)Le.setBackgroundColor(Fe);else{var Qe=i.parse(Fe);Fe=i.stringify(Qe,"rgb"),Qe[3]===0&&(Fe="transparent")}Ve(de,Te)}},updateTransform:function(ae){var de=this._model,Te=this,Le=this._api;if(de){var Ee=[];de.eachComponent(function(Fe,Qe){var We=Te.getViewOfComponentModel(Qe);if(We&&We.__alive)if(We.updateTransform){var ct=We.updateTransform(Qe,de,Le,ae);ct&&ct.update&&Ee.push(We)}else Ee.push(We)});var Oe=a.createHashMap();de.eachSeries(function(Fe){var Qe=Te._chartsMap[Fe.__viewId];if(Qe.updateTransform){var We=Qe.updateTransform(Fe,de,Le,ae);We&&We.update&&Oe.set(Fe.uid,1)}else Oe.set(Fe.uid,1)}),ge(de),this._scheduler.performVisualTasks(de,ae,{setDirty:!0,dirtyMap:Oe}),ze(Te,de,Le,ae,Oe),Ve(de,this._api)}},updateView:function(ae){var de=this._model;de&&(m.markUpdateMethod(ae,"updateView"),ge(de),this._scheduler.performVisualTasks(de,ae,{setDirty:!0}),pe(this,this._model,this._api,ae),Ve(de,this._api))},updateVisual:function(ae){se.update.call(this,ae)},updateLayout:function(ae){se.update.call(this,ae)}};function ve(ae){var de=ae._model,Te=ae._scheduler;Te.restorePipelines(de),Te.prepareStageTasks(),xe(ae,"component",de,Te),xe(ae,"chart",de,Te),Te.plan()}function ye(ae,de,Te,Le,Ee){var Oe=ae._model;if(!Le){P(ae._componentsViews.concat(ae._chartsViews),ct);return}var Fe={};Fe[Le+"Id"]=Te[Le+"Id"],Fe[Le+"Index"]=Te[Le+"Index"],Fe[Le+"Name"]=Te[Le+"Name"];var Qe={mainType:Le,query:Fe};Ee&&(Qe.subType=Ee);var We=Te.excludeSeriesId;We!=null&&(We=a.createHashMap(_.normalizeToArray(We))),Oe&&Oe.eachComponent(Qe,function(mt){(!We||We.get(mt.id)==null)&&ct(ae[Le==="series"?"_chartsMap":"_componentsMap"][mt.__viewId])},ae);function ct(mt){mt&&mt.__alive&&mt[de]&&mt[de](mt.__model,Oe,ae._api,Te)}}oe.resize=function(ae){if(this._disposed){this.id;return}this._zr.resize(ae);var de=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!de){var Te=de.resetOption("media"),Le=ae&&ae.silent;this[Q]=!0,Te&&ve(this),se.update.call(this),this[Q]=!1,ne.call(this,Le),ue.call(this,Le)}};function Me(ae,de){var Te=ae._chartsMap,Le=ae._scheduler;de.eachSeries(function(Ee){Le.updateStreamModes(Ee,Te[Ee.__viewId])})}oe.showLoading=function(ae,de){if(this._disposed){this.id;return}if(R(ae)&&(de=ae,ae=""),ae=ae||"default",this.hideLoading(),!!fa[ae]){var Te=fa[ae](this._api,de),Le=this._zr;this._loadingFX=Te,Le.add(Te)}},oe.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},oe.makeActionFromEvent=function(ae){var de=a.extend({},ae);return de.type=Et[ae.type],de},oe.dispatchAction=function(ae,de){if(this._disposed){this.id;return}if(R(de)||(de={silent:!!de}),!!Ke[ae.type]&&this._model){if(this[Q]){this._pendingActions.push(ae);return}J.call(this,ae,de.silent),de.flush?this._zr.flush(!0):de.flush!==!1&&n.browser.weChat&&this._throttledZrFlush(),ne.call(this,de.silent),ue.call(this,de.silent)}};function J(ae,de){var Te=ae.type,Le=ae.escapeConnect,Ee=Ke[Te],Oe=Ee.actionInfo,Fe=(Oe.update||"update").split(":"),Qe=Fe.pop();Fe=Fe[0]!=null&&E(Fe[0]),this[Q]=!0;var We=[ae],ct=!1;ae.batch&&(ct=!0,We=a.map(ae.batch,function(er){return er=a.defaults(a.extend({},er),ae),er.batch=null,er}));var mt=[],xt,or=Te==="highlight"||Te==="downplay";P(We,function(er){xt=Ee.action(er,this._model,this._api),xt=xt||a.extend({},er),xt.type=Oe.event||xt.type,mt.push(xt),or?ye(this,Qe,er,"series"):Fe&&ye(this,Qe,er,Fe.main,Fe.sub)},this),Qe!=="none"&&!or&&!Fe&&(this[j]?(ve(this),se.update.call(this,ae),this[j]=!1):se[Qe].call(this,ae)),ct?xt={type:Oe.event||Te,escapeConnect:Le,batch:mt}:xt=mt[0],this[Q]=!1,!de&&this._messageCenter.trigger(xt.type,xt)}function ne(ae){for(var de=this._pendingActions;de.length;){var Te=de.shift();J.call(this,Te,ae)}}function ue(ae){!ae&&this.trigger("updated")}function me(ae,de){ae.on("rendered",function(){de.trigger("rendered"),ae.animation.isFinished()&&!de[j]&&!de._scheduler.unfinished&&!de._pendingActions.length&&de.trigger("finished")})}oe.appendData=function(ae){if(this._disposed){this.id;return}var de=ae.seriesIndex,Te=this.getModel(),Le=Te.getSeriesByIndex(de);Le.appendData(ae),this._scheduler.unfinished=!0},oe.on=Z("on",!1),oe.off=Z("off",!1),oe.one=Z("one",!1);function xe(ae,de,Te,Le){for(var Ee=de==="component",Oe=Ee?ae._componentsViews:ae._chartsViews,Fe=Ee?ae._componentsMap:ae._chartsMap,Qe=ae._zr,We=ae._api,ct=0;ct<Oe.length;ct++)Oe[ct].__alive=!1;Ee?Te.eachComponent(function(or,er){or!=="series"&&mt(er)}):Te.eachSeries(mt);function mt(or){var er="_ec_"+or.id+"_"+or.type,Fr=Fe[er];if(!Fr){var La=E(or.type),bf=Ee?g.getClass(La.main,La.sub):m.getClass(La.sub);Fr=new bf,Fr.init(Te,We),Fe[er]=Fr,Oe.push(Fr),Qe.add(Fr.group)}or.__viewId=Fr.__id=er,Fr.__alive=!0,Fr.__model=or,Fr.group.__ecComponentInfo={mainType:or.mainType,index:or.componentIndex},!Ee&&Le.prepareView(Fr,or,Te,We)}for(var ct=0;ct<Oe.length;){var xt=Oe[ct];xt.__alive?ct++:(!Ee&&xt.renderTask.dispose(),Qe.remove(xt.group),xt.dispose(Te,We),Oe.splice(ct,1),delete Fe[xt.__id],xt.__id=xt.group.__ecComponentInfo=null)}}function ge(ae){ae.clearColorPalette(),ae.eachSeries(function(de){de.clearColorPalette()})}function pe(ae,de,Te,Le){Ce(ae,de,Te,Le),P(ae._chartsViews,function(Ee){Ee.__alive=!1}),ze(ae,de,Te,Le),P(ae._chartsViews,function(Ee){Ee.__alive||Ee.remove(de,Te)})}function Ce(ae,de,Te,Le,Ee){P(ae._componentsViews,function(Oe){var Fe=Oe.__model;Oe.render(Fe,de,Te,Le),Tt(Fe,Oe)})}function ze(ae,de,Te,Le,Ee){var Oe=ae._scheduler,Fe;de.eachSeries(function(Qe){var We=ae._chartsMap[Qe.__viewId];We.__alive=!0;var ct=We.renderTask;Oe.updatePayload(ct,Le),Ee&&Ee.get(Qe.uid)&&ct.dirty(),Fe|=ct.perform(Oe.getPerformArgs(ct)),We.group.silent=!!Qe.get("silent"),Tt(Qe,We),Dt(Qe,We)}),Oe.unfinished|=Fe,dt(ae,de),w(ae._zr.dom,de)}function Ve(ae,de){P(Xt,function(Te){Te(ae,de)})}var ke=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];oe._initEvents=function(){P(ke,function(ae){var de=function(Te){var Le=this.getModel(),Ee=Te.target,Oe,Fe=ae==="globalout";if(Fe)Oe={};else if(Ee&&Ee.dataIndex!=null){var Qe=Ee.dataModel||Le.getSeriesByIndex(Ee.seriesIndex);Oe=Qe&&Qe.getDataParams(Ee.dataIndex,Ee.dataType,Ee)||{}}else Ee&&Ee.eventData&&(Oe=a.extend({},Ee.eventData));if(Oe){var We=Oe.componentType,ct=Oe.componentIndex;(We==="markLine"||We==="markPoint"||We==="markArea")&&(We="series",ct=Oe.seriesIndex);var mt=We&&ct!=null&&Le.getComponent(We,ct),xt=mt&&this[mt.mainType==="series"?"_chartsMap":"_componentsMap"][mt.__viewId];Oe.event=Te,Oe.type=ae,this._ecEventProcessor.eventInfo={targetEl:Ee,packedEvent:Oe,model:mt,view:xt},this.trigger(ae,Oe)}};de.zrEventfulCallAtLast=!0,this._zr.on(ae,de,this)},this),P(Et,function(ae,de){this._messageCenter.on(de,function(Te){this.trigger(de,Te)},this)},this)},oe.isDisposed=function(){return this._disposed},oe.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},oe.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,_.setAttribute(this.getDom(),mr,"");var ae=this._api,de=this._model;P(this._componentsViews,function(Te){Te.dispose(de,ae)}),P(this._chartsViews,function(Te){Te.dispose(de,ae)}),this._zr.dispose(),delete Rr[this.id]},a.mixin(le,s);function lt(ae){}function dt(ae,de){var Te=ae._zr,Le=Te.storage,Ee=0;Le.traverse(function(Oe){Ee++}),Ee>de.get("hoverLayerThreshold")&&!n.node&&de.eachSeries(function(Oe){if(!Oe.preventUsingHoverLayer){var Fe=ae._chartsMap[Oe.__viewId];Fe.__alive&&Fe.group.traverse(function(Qe){Qe.useHoverLayer=!0})}})}function Dt(ae,de){var Te=ae.get("blendMode")||null;de.group.traverse(function(Le){Le.isGroup||Le.style.blend!==Te&&Le.setStyle("blend",Te),Le.eachPendingDisplayable&&Le.eachPendingDisplayable(function(Ee){Ee.setStyle("blend",Te)})})}function Tt(ae,de){var Te=ae.get("z"),Le=ae.get("zlevel");de.group.traverse(function(Ee){Ee.type!=="group"&&(Te!=null&&(Ee.z=Te),Le!=null&&(Ee.zlevel=Le))})}function Bt(ae){var de=ae._coordSysMgr;return a.extend(new u(ae),{getCoordinateSystems:a.bind(de.getCoordinateSystems,de),getComponentByElement:function(Te){for(;Te;){var Le=Te.__ecComponentInfo;if(Le!=null)return ae._model.getComponent(Le.mainType,Le.index);Te=Te.parent}}})}function Vt(){this.eventInfo}Vt.prototype={constructor:Vt,normalizeQuery:function(ae){var de={},Te={},Le={};if(a.isString(ae)){var Ee=E(ae);de.mainType=Ee.main||null,de.subType=Ee.sub||null}else{var Oe=["Index","Name","Id"],Fe={name:1,dataIndex:1,dataType:1};a.each(ae,function(Qe,We){for(var ct=!1,mt=0;mt<Oe.length;mt++){var xt=Oe[mt],or=We.lastIndexOf(xt);if(or>0&&or===We.length-xt.length){var er=We.slice(0,or);er!=="data"&&(de.mainType=er,de[xt.toLowerCase()]=Qe,ct=!0)}}Fe.hasOwnProperty(We)&&(Te[We]=Qe,ct=!0),ct||(Le[We]=Qe)})}return{cptQuery:de,dataQuery:Te,otherQuery:Le}},filter:function(ae,de,Te){var Le=this.eventInfo;if(!Le)return!0;var Ee=Le.targetEl,Oe=Le.packedEvent,Fe=Le.model,Qe=Le.view;if(!Fe||!Qe)return!0;var We=de.cptQuery,ct=de.dataQuery;return mt(We,Fe,"mainType")&&mt(We,Fe,"subType")&&mt(We,Fe,"index","componentIndex")&&mt(We,Fe,"name")&&mt(We,Fe,"id")&&mt(ct,Oe,"name")&&mt(ct,Oe,"dataIndex")&&mt(ct,Oe,"dataType")&&(!Qe.filterForExposedEvent||Qe.filterForExposedEvent(ae,de.otherQuery,Ee,Oe));function mt(xt,or,er,Fr){return xt[er]==null||or[Fr||er]===xt[er]}},afterTrigger:function(){this.eventInfo=null}};var Ke={},Et={},Lt=[],Zt=[],Xt=[],Kt=[],Pr={},fa={},Rr={},ta={},vr=new Date-0,jt=new Date-0,mr="_echarts_instance_";function re(ae){var de=0,Te=1,Le=2,Ee="__connectUpdateStatus";function Oe(Fe,Qe){for(var We=0;We<Fe.length;We++){var ct=Fe[We];ct[Ee]=Qe}}P(Et,function(Fe,Qe){ae._messageCenter.on(Qe,function(We){if(ta[ae.group]&&ae[Ee]!==de){if(We&&We.escapeConnect)return;var ct=ae.makeActionFromEvent(We),mt=[];P(Rr,function(xt){xt!==ae&&xt.group===ae.group&&mt.push(xt)}),Oe(mt,de),P(mt,function(xt){xt[Ee]!==Te&&xt.dispatchAction(ct)}),Oe(mt,Le)}})})}function ce(ae,de,Te){var Le=Gt(ae);if(Le)return Le;var Ee=new le(ae,de,Te);return Ee.id="ec_"+vr++,Rr[Ee.id]=Ee,_.setAttribute(ae,mr,Ee.id),re(Ee),Ee}function be(ae){if(a.isArray(ae)){var de=ae;ae=null,P(de,function(Te){Te.group!=null&&(ae=Te.group)}),ae=ae||"g_"+jt++,P(de,function(Te){Te.group=ae})}return ta[ae]=!0,ae}function Ae(ae){ta[ae]=!1}var De=Ae;function je(ae){typeof ae=="string"?ae=Rr[ae]:ae instanceof le||(ae=Gt(ae)),ae instanceof le&&!ae.isDisposed()&&ae.dispose()}function Gt(ae){return Rr[_.getAttribute(ae,mr)]}function At(ae){return Rr[ae]}function Ot(ae,de){Pr[ae]=de}function hr(ae){Zt.push(ae)}function Nr(ae,de){Cg(Lt,ae,de,V)}function an(ae){Xt.push(ae)}function Ti(ae,de,Te){typeof de=="function"&&(Te=de,de="");var Le=R(ae)?ae.type:[ae,ae={event:de}][0];ae.event=(ae.event||Le).toLowerCase(),de=ae.event,D(te.test(Le)&&te.test(de)),Ke[Le]||(Ke[Le]={action:Te,actionInfo:ae}),Et[de]=Le}function Ai(ae,de){v.register(ae,de)}function To(ae){var de=v.get(ae);if(de)return de.getDimensionsInfo?de.getDimensionsInfo():de.dimensions.slice()}function Ao(ae,de){Cg(Kt,ae,de,G,"layout")}function Eu(ae,de){Cg(Kt,ae,de,U,"visual")}function Cg(ae,de,Te,Le,Ee){(I(de)||R(de))&&(Te=de,de=Le);var Oe=T.wrapStageHandler(Te,Ee);return Oe.__prio=de,Oe.__raw=Te,ae.push(Oe),Oe}function ID(ae,de){fa[ae]=de}function nY(ae){return d.extend(ae)}function oY(ae){return g.extend(ae)}function sY(ae){return p.extend(ae)}function lY(ae){return m.extend(ae)}function uY(ae){a.$override("createCanvas",ae)}function vY(ae,de,Te){L.registerMap(ae,de,Te)}function hY(ae){var de=L.retrieveMap(ae);return de&&de[0]&&{geoJson:de[0].geoJSON,specialAreas:de[0].specialAreas}}Eu(H,b),hr(f),Nr(O,c),ID("default",A),Ti({type:"highlight",event:"highlight",update:"highlight"},a.noop),Ti({type:"downplay",event:"downplay",update:"downplay"},a.noop),Ot("light",C),Ot("dark",M);var fY={};r.version=k,r.dependencies=B,r.PRIORITY=K,r.init=ce,r.connect=be,r.disConnect=Ae,r.disconnect=De,r.dispose=je,r.getInstanceByDom=Gt,r.getInstanceById=At,r.registerTheme=Ot,r.registerPreprocessor=hr,r.registerProcessor=Nr,r.registerPostUpdate=an,r.registerAction=Ti,r.registerCoordinateSystem=Ai,r.getCoordinateSystemDimensions=To,r.registerLayout=Ao,r.registerVisual=Eu,r.registerLoading=ID,r.extendComponentModel=nY,r.extendComponentView=oY,r.extendSeriesModel=sY,r.extendChartView=lY,r.setCanvasCreator=uY,r.registerMap=vY,r.getMap=hY,r.dataTool=fY;var Mg=t$();(function(){for(var ae in Mg)Mg.hasOwnProperty(ae)&&(r[ae]=Mg[ae])})()})(Qy)),Qy}var _z={},r1,xz;function pge(){if(xz)return r1;xz=1;var r=It();r.__DEV__;var t=In(),e=Ir(),a=e.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(i,n){return t(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});return r1=a,r1}var a1={},Sz;function oD(){if(Sz)return a1;Sz=1;var r=Ys(),t=r.retrieveRawValue;function e(a,i){var n=a.mapDimension("defaultedLabel",!0),o=n.length;if(o===1)return t(a,i,n[0]);if(o){for(var s=[],l=0;l<n.length;l++){var u=t(a,i,n[l]);s.push(u)}return s.join(" ")}}return a1.getDefaultLabel=e,a1}var i1,bz;function gg(){if(bz)return i1;bz=1;var r=ie(),t=ti(),e=t.createSymbol,a=qe(),i=st(),n=i.parsePercent,o=oD(),s=o.getDefaultLabel;function l(_,x,S){a.Group.call(this),this.updateData(_,x,S)}var u=l.prototype,v=l.getSymbolSize=function(_,x){var S=_.getItemVisual(x,"symbolSize");return S instanceof Array?S.slice():[+S,+S]};function h(_){return[_[0]/2,_[1]/2]}function f(_,x){this.parent.drift(_,x)}u._createSymbol=function(_,x,S,b,w){this.removeAll();var A=x.getItemVisual(S,"color"),T=e(_,-1,-1,2,2,A,w);T.attr({z2:100,culling:!0,scale:h(b)}),T.drift=f,this._symbolType=_,this.add(T)},u.stopSymbolAnimation=function(_){this.childAt(0).stopAnimation(_)},u.getSymbolPath=function(){return this.childAt(0)},u.getScale=function(){return this.childAt(0).scale},u.highlight=function(){this.childAt(0).trigger("emphasis")},u.downplay=function(){this.childAt(0).trigger("normal")},u.setZ=function(_,x){var S=this.childAt(0);S.zlevel=_,S.z=x},u.setDraggable=function(_){var x=this.childAt(0);x.draggable=_,x.cursor=_?"move":x.cursor},u.updateData=function(_,x,S){this.silent=!1;var b=_.getItemVisual(x,"symbol")||"circle",w=_.hostModel,A=v(_,x),T=b!==this._symbolType;if(T){var C=_.getItemVisual(x,"symbolKeepAspect");this._createSymbol(b,_,x,A,C)}else{var M=this.childAt(0);M.silent=!1,a.updateProps(M,{scale:h(A)},w,x)}if(this._updateCommon(_,x,A,S),T){var M=this.childAt(0),L=S&&S.fadeIn,D={scale:M.scale.slice()};L&&(D.style={opacity:M.style.opacity}),M.scale=[0,0],L&&(M.style.opacity=0),a.initProps(M,D,w,x)}this._seriesModel=w};var c=["itemStyle"],d=["emphasis","itemStyle"],p=["label"],g=["emphasis","label"];u._updateCommon=function(_,x,S,b){var w=this.childAt(0),A=_.hostModel,T=_.getItemVisual(x,"color");w.type!=="image"?w.useStyle({strokeNoScale:!0}):w.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var C=b&&b.itemStyle,M=b&&b.hoverItemStyle,L=b&&b.symbolOffset,D=b&&b.labelModel,P=b&&b.hoverLabelModel,I=b&&b.hoverAnimation,R=b&&b.cursorStyle;if(!b||_.hasItemOption){var E=b&&b.itemModel?b.itemModel:_.getItemModel(x);C=E.getModel(c).getItemStyle(["color"]),M=E.getModel(d).getItemStyle(),L=E.getShallow("symbolOffset"),D=E.getModel(p),P=E.getModel(g),I=E.getShallow("hoverAnimation"),R=E.getShallow("cursor")}else M=r.extend({},M);var k=w.style,B=_.getItemVisual(x,"symbolRotate");w.attr("rotation",(B||0)*Math.PI/180||0),L&&w.attr("position",[n(L[0],S[0]),n(L[1],S[1])]),R&&w.attr("cursor",R),w.setColor(T,b&&b.symbolInnerColor),w.setStyle(C);var F=_.getItemVisual(x,"opacity");F!=null&&(k.opacity=F);var V=_.getItemVisual(x,"liftZ"),N=w.__z2Origin;V!=null?N==null&&(w.__z2Origin=w.z2,w.z2+=V):N!=null&&(w.z2=N,w.__z2Origin=null);var O=b&&b.useNameLabel;a.setLabelStyle(k,M,D,P,{labelFetcher:A,labelDataIndex:x,defaultText:z,isRectText:!0,autoColor:T});function z(G,q){return O?_.getName(G):s(_,G)}w.__symbolOriginalScale=h(S),w.hoverStyle=M,w.highDownOnUpdate=I&&A.isAnimationEnabled()?m:null,a.setHoverStyle(w)};function m(_,x){if(!(this.incremental||this.useHoverLayer))if(x==="emphasis"){var S=this.__symbolOriginalScale,b=S[1]/S[0],w={scale:[Math.max(S[0]*1.1,S[0]+3),Math.max(S[1]*1.1,S[1]+3*b)]};this.animateTo(w,400,"elasticOut")}else x==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}u.fadeOut=function(_,x){var S=this.childAt(0);this.silent=S.silent=!0,!(x&&x.keepLabel)&&(S.style.text=null),a.updateProps(S,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,_)},r.inherits(l,a.Group);var y=l;return i1=y,i1}var n1,wz;function df(){if(wz)return n1;wz=1;var r=qe(),t=gg(),e=ie(),a=e.isObject;function i(v){this.group=new r.Group,this._symbolCtor=v||t}var n=i.prototype;function o(v,h,f,c){return h&&!isNaN(h[0])&&!isNaN(h[1])&&!(c.isIgnore&&c.isIgnore(f))&&!(c.clipShape&&!c.clipShape.contain(h[0],h[1]))&&v.getItemVisual(f,"symbol")!=="none"}n.updateData=function(v,h){h=s(h);var f=this.group,c=v.hostModel,d=this._data,p=this._symbolCtor,g=l(v);d||f.removeAll(),v.diff(d).add(function(m){var y=v.getItemLayout(m);if(o(v,y,m,h)){var _=new p(v,m,g);_.attr("position",y),v.setItemGraphicEl(m,_),f.add(_)}}).update(function(m,y){var _=d.getItemGraphicEl(y),x=v.getItemLayout(m);if(!o(v,x,m,h)){f.remove(_);return}_?(_.updateData(v,m,g),r.updateProps(_,{position:x},c)):(_=new p(v,m),_.attr("position",x)),f.add(_),v.setItemGraphicEl(m,_)}).remove(function(m){var y=d.getItemGraphicEl(m);y&&y.fadeOut(function(){f.remove(y)})}).execute(),this._data=v},n.isPersistent=function(){return!0},n.updateLayout=function(){var v=this._data;v&&v.eachItemGraphicEl(function(h,f){var c=v.getItemLayout(f);h.attr("position",c)})},n.incrementalPrepareUpdate=function(v){this._seriesScope=l(v),this._data=null,this.group.removeAll()},n.incrementalUpdate=function(v,h,f){f=s(f);function c(m){m.isGroup||(m.incremental=m.useHoverLayer=!0)}for(var d=v.start;d<v.end;d++){var p=h.getItemLayout(d);if(o(h,p,d,f)){var g=new this._symbolCtor(h,d,this._seriesScope);g.traverse(c),g.attr("position",p),this.group.add(g),h.setItemGraphicEl(d,g)}}};function s(v){return v!=null&&!a(v)&&(v={isIgnore:v}),v||{}}n.remove=function(v){var h=this.group,f=this._data;f&&v?f.eachItemGraphicEl(function(c){c.fadeOut(function(){h.remove(c)})}):h.removeAll()};function l(v){var h=v.hostModel;return{itemStyle:h.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:h.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:h.get("symbolRotate"),symbolOffset:h.get("symbolOffset"),hoverAnimation:h.get("hoverAnimation"),labelModel:h.getModel("label"),hoverLabelModel:h.getModel("emphasis.label"),cursorStyle:h.get("cursor")}}var u=i;return n1=u,n1}var Lc={},Tz;function r$(){if(Tz)return Lc;Tz=1;var r=rn(),t=r.isDimensionStacked,e=ie(),a=e.map;function i(s,l,u){var v=s.getBaseAxis(),h=s.getOtherAxis(v),f=n(h,u),c=v.dim,d=h.dim,p=l.mapDimension(d),g=l.mapDimension(c),m=d==="x"||d==="radius"?1:0,y=a(s.dimensions,function(S){return l.mapDimension(S)}),_,x=l.getCalculationInfo("stackResultDimension");return(_|=t(l,y[0]))&&(y[0]=x),(_|=t(l,y[1]))&&(y[1]=x),{dataDimsForPoint:y,valueStart:f,valueAxisDim:d,baseAxisDim:c,stacked:!!_,valueDim:p,baseDim:g,baseDataOffset:m,stackedOverDimension:l.getCalculationInfo("stackedOverDimension")}}function n(s,l){var u=0,v=s.scale.getExtent();return l==="start"?u=v[0]:l==="end"?u=v[1]:v[0]>0?u=v[0]:v[1]<0&&(u=v[1]),u}function o(s,l,u,v){var h=NaN;s.stacked&&(h=u.get(u.getCalculationInfo("stackedOverDimension"),v)),isNaN(h)&&(h=s.valueStart);var f=s.baseDataOffset,c=[];return c[f]=u.get(s.baseDim,v),c[1-f]=h,l.dataToPoint(c)}return Lc.prepareDataCoordInfo=i,Lc.getStackedOnPoint=o,Lc}var o1,Az;function gge(){if(Az)return o1;Az=1;var r=r$(),t=r.prepareDataCoordInfo,e=r.getStackedOnPoint;function a(n,o){var s=[];return o.diff(n).add(function(l){s.push({cmd:"+",idx:l})}).update(function(l,u){s.push({cmd:"=",idx:u,idx1:l})}).remove(function(l){s.push({cmd:"-",idx:l})}).execute(),s}function i(n,o,s,l,u,v,h,f){for(var c=a(n,o),d=[],p=[],g=[],m=[],y=[],_=[],x=[],S=t(u,o,h),b=t(v,n,f),w=0;w<c.length;w++){var A=c[w],T=!0;switch(A.cmd){case"=":var C=n.getItemLayout(A.idx),M=o.getItemLayout(A.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=M.slice()),d.push(C),p.push(M),g.push(s[A.idx]),m.push(l[A.idx1]),x.push(o.getRawIndex(A.idx1));break;case"+":var L=A.idx;d.push(u.dataToPoint([o.get(S.dataDimsForPoint[0],L),o.get(S.dataDimsForPoint[1],L)])),p.push(o.getItemLayout(L).slice()),g.push(e(S,u,o,L)),m.push(l[L]),x.push(o.getRawIndex(L));break;case"-":var L=A.idx,D=n.getRawIndex(L);D!==L?(d.push(n.getItemLayout(L)),p.push(v.dataToPoint([n.get(b.dataDimsForPoint[0],L),n.get(b.dataDimsForPoint[1],L)])),g.push(s[L]),m.push(e(b,v,n,L)),x.push(D)):T=!1}T&&(y.push(A),_.push(_.length))}_.sort(function(B,F){return x[B]-x[F]});for(var P=[],I=[],R=[],E=[],k=[],w=0;w<_.length;w++){var L=_[w];P[w]=d[L],I[w]=p[L],R[w]=g[L],E[w]=m[L],k[w]=y[L]}return{current:P,next:I,stackedOnCurrent:R,stackedOnNext:E,status:k}}return o1=i,o1}var Ic={},Cz;function a$(){if(Cz)return Ic;Cz=1;var r=ur(),t=Jt(),e=z9(),a=t.min,i=t.max,n=t.scaleAndAdd,o=t.copy,s=[],l=[],u=[];function v(m){return isNaN(m[0])||isNaN(m[1])}function h(m,y,_,x,S,b,w,A,T,C,M){return C==="none"||!C?c.apply(this,arguments):f.apply(this,arguments)}function f(m,y,_,x,S,b,w,A,T,C,M){for(var L=0,D=_,P=0;P<x;P++){var I=y[D];if(D>=S||D<0)break;if(v(I)){if(M){D+=b;continue}break}if(D===_)m[b>0?"moveTo":"lineTo"](I[0],I[1]);else if(T>0){var R=y[L],E=C==="y"?1:0,k=(I[E]-R[E])*T;o(l,R),l[E]=R[E]+k,o(u,I),u[E]=I[E]-k,m.bezierCurveTo(l[0],l[1],u[0],u[1],I[0],I[1])}else m.lineTo(I[0],I[1]);L=D,D+=b}return P}function c(m,y,_,x,S,b,w,A,T,C,M){for(var L=0,D=_,P=0;P<x;P++){var I=y[D];if(D>=S||D<0)break;if(v(I)){if(M){D+=b;continue}break}if(D===_)m[b>0?"moveTo":"lineTo"](I[0],I[1]),o(l,I);else if(T>0){var R=D+b,B=y[R];if(M)for(;B&&v(y[R]);)R+=b,B=y[R];var E=.5,k=y[L],B=y[R];if(!B||v(B))o(u,I);else{v(B)&&!M&&(B=I),t.sub(s,B,k);var F,V;if(C==="x"||C==="y"){var N=C==="x"?0:1;F=Math.abs(I[N]-k[N]),V=Math.abs(I[N]-B[N])}else F=t.dist(I,k),V=t.dist(I,B);E=V/(V+F),n(u,I,s,-T*(1-E))}a(l,l,A),i(l,l,w),a(u,u,A),i(u,u,w),m.bezierCurveTo(l[0],l[1],u[0],u[1],I[0],I[1]),n(l,I,s,T*E)}else m.lineTo(I[0],I[1]);L=D,D+=b}return P}function d(m,y){var _=[1/0,1/0],x=[-1/0,-1/0];if(y)for(var S=0;S<m.length;S++){var b=m[S];b[0]<_[0]&&(_[0]=b[0]),b[1]<_[1]&&(_[1]=b[1]),b[0]>x[0]&&(x[0]=b[0]),b[1]>x[1]&&(x[1]=b[1])}return{min:y?_:x,max:y?x:_}}var p=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:e(r.prototype.brush),buildPath:function(m,y){var _=y.points,x=0,S=_.length,b=d(_,y.smoothConstraint);if(y.connectNulls){for(;S>0&&v(_[S-1]);S--);for(;x<S&&v(_[x]);x++);}for(;x<S;)x+=h(m,_,x,S,S,1,b.min,b.max,y.smooth,y.smoothMonotone,y.connectNulls)+1}}),g=r.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:e(r.prototype.brush),buildPath:function(m,y){var _=y.points,x=y.stackedOnPoints,S=0,b=_.length,w=y.smoothMonotone,A=d(_,y.smoothConstraint),T=d(x,y.smoothConstraint);if(y.connectNulls){for(;b>0&&v(_[b-1]);b--);for(;S<b&&v(_[S]);S++);}for(;S<b;){var C=h(m,_,S,b,b,1,A.min,A.max,y.smooth,w,y.connectNulls);h(m,x,S+C-1,C,b,-1,T.min,T.max,y.stackedOnSmooth,w,y.connectNulls),S+=C+1,m.closePath()}}});return Ic.Polyline=p,Ic.Polygon=g,Ic}var xv={},Mz;function pf(){if(Mz)return xv;Mz=1;var r=qe(),t=st(),e=t.round;function a(o,s,l){var u=o.getArea(),v=o.getBaseAxis().isHorizontal(),h=u.x,f=u.y,c=u.width,d=u.height,p=l.get("lineStyle.width")||2;h-=p/2,f-=p/2,c+=p,d+=p,h=Math.floor(h),c=Math.round(c);var g=new r.Rect({shape:{x:h,y:f,width:c,height:d}});return s&&(g.shape[v?"width":"height"]=0,r.initProps(g,{shape:{width:c,height:d}},l)),g}function i(o,s,l){var u=o.getArea(),v=new r.Sector({shape:{cx:e(o.cx,1),cy:e(o.cy,1),r0:e(u.r0,1),r:e(u.r,1),startAngle:u.startAngle,endAngle:u.endAngle,clockwise:u.clockwise}});return s&&(v.shape.endAngle=u.startAngle,r.initProps(v,{shape:{endAngle:u.endAngle}},l)),v}function n(o,s,l){if(o){if(o.type==="polar")return i(o,s,l);if(o.type==="cartesian2d")return a(o,s,l)}else return null;return null}return xv.createGridClipPath=a,xv.createPolarClipPath=i,xv.createClipPath=n,xv}var s1,Dz;function mge(){if(Dz)return s1;Dz=1;var r=It();r.__DEV__;var t=ie(),e=uf(),a=e.fromPoints,i=df(),n=gg(),o=gge(),s=qe(),l=_t(),u=a$(),v=u.Polyline,h=u.Polygon,f=tn(),c=r$(),d=c.prepareDataCoordInfo,p=c.getStackedOnPoint,g=pf(),m=g.createGridClipPath,y=g.createPolarClipPath;function _(D,P){if(D.length===P.length){for(var I=0;I<D.length;I++){var R=D[I],E=P[I];if(R[0]!==E[0]||R[1]!==E[1])return}return!0}}function x(D,P){var I=[],R=[],E=[],k=[];return a(D,I,R),a(P,E,k),Math.max(Math.abs(I[0]-E[0]),Math.abs(I[1]-E[1]),Math.abs(R[0]-k[0]),Math.abs(R[1]-k[1]))}function S(D){return typeof D=="number"?D:D?.5:0}function b(D,P,I){if(!I.valueDim)return[];for(var R=[],E=0,k=P.count();E<k;E++)R.push(p(I,D,P,E));return R}function w(D,P,I){for(var R=P.getBaseAxis(),E=R.dim==="x"||R.dim==="radius"?0:1,k=[],B=0;B<D.length-1;B++){var F=D[B+1],V=D[B];k.push(V);var N=[];switch(I){case"end":N[E]=F[E],N[1-E]=V[1-E],k.push(N);break;case"middle":var O=(V[E]+F[E])/2,z=[];N[E]=z[E]=O,N[1-E]=V[1-E],z[1-E]=F[1-E],k.push(N),k.push(z);break;default:N[E]=V[E],N[1-E]=F[1-E],k.push(N)}}return D[B]&&k.push(D[B]),k}function A(D,P){var I=D.getVisual("visualMeta");if(!(!I||!I.length||!D.count())&&P.type==="cartesian2d"){for(var R,E,k=I.length-1;k>=0;k--){var B=I[k].dimension,F=D.dimensions[B],V=D.getDimensionInfo(F);if(R=V&&V.coordDim,R==="x"||R==="y"){E=I[k];break}}if(E){var N=P.getAxis(R),O=t.map(E.stops,function(X){return{coord:N.toGlobalCoord(N.dataToCoord(X.value)),color:X.color}}),z=O.length,G=E.outerColors.slice();z&&O[0].coord>O[z-1].coord&&(O.reverse(),G.reverse());var q=10,H=O[0].coord-q,U=O[z-1].coord+q,W=U-H;if(W<.001)return"transparent";t.each(O,function(X){X.offset=(X.coord-H)/W}),O.push({offset:z?O[z-1].offset:.5,color:G[1]||"transparent"}),O.unshift({offset:z?O[0].offset:.5,color:G[0]||"transparent"});var Y=new s.LinearGradient(0,0,0,0,O,!0);return Y[R]=H,Y[R+"2"]=U,Y}}}function T(D,P,I){var R=D.get("showAllSymbol"),E=R==="auto";if(!(R&&!E)){var k=I.getAxesByScale("ordinal")[0];if(k&&!(E&&C(k,P))){var B=P.mapDimension(k.dim),F={};return t.each(k.getViewLabels(),function(V){F[V.tickValue]=1}),function(V){return!F.hasOwnProperty(P.get(B,V))}}}}function C(D,P){var I=D.getExtent(),R=Math.abs(I[1]-I[0])/D.scale.count();isNaN(R)&&(R=0);for(var E=P.count(),k=Math.max(1,Math.round(E/5)),B=0;B<E;B+=k)if(n.getSymbolSize(P,B)[D.isHorizontal()?1:0]*1.5>R)return!1;return!0}function M(D,P,I){if(D.type==="cartesian2d"){var R=D.getBaseAxis().isHorizontal(),E=m(D,P,I);if(!I.get("clip",!0)){var k=E.shape,B=Math.max(k.width,k.height);R?(k.y-=B,k.height+=B*2):(k.x-=B,k.width+=B*2)}return E}else return y(D,P,I)}var L=f.extend({type:"line",init:function(){var D=new s.Group,P=new i;this.group.add(P.group),this._symbolDraw=P,this._lineGroup=D},render:function(D,P,I){var R=D.coordinateSystem,E=this.group,k=D.getData(),B=D.getModel("lineStyle"),F=D.getModel("areaStyle"),V=k.mapArray(k.getItemLayout),N=R.type==="polar",O=this._coordSys,z=this._symbolDraw,G=this._polyline,q=this._polygon,H=this._lineGroup,U=D.get("animation"),W=!F.isEmpty(),Y=F.get("origin"),X=d(R,k,Y),K=b(R,k,X),Q=D.get("showSymbol"),j=Q&&!N&&T(D,k,R),te=this._data;te&&te.eachItemGraphicEl(function(ve,ye){ve.__temp&&(E.remove(ve),te.setItemGraphicEl(ye,null))}),Q||z.remove(),E.add(H);var Z=!N&&D.get("step"),ee;R&&R.getArea&&D.get("clip",!0)&&(ee=R.getArea(),ee.width!=null?(ee.x-=.1,ee.y-=.1,ee.width+=.2,ee.height+=.2):ee.r0&&(ee.r0-=.5,ee.r1+=.5)),this._clipShapeForSymbol=ee,G&&O.type===R.type&&Z===this._step?(W&&!q?q=this._newPolygon(V,K,R,U):q&&!W&&(H.remove(q),q=this._polygon=null),H.setClipPath(M(R,!1,D)),Q&&z.updateData(k,{isIgnore:j,clipShape:ee}),k.eachItemGraphicEl(function(ve){ve.stopAnimation(!0)}),(!_(this._stackedOnPoints,K)||!_(this._points,V))&&(U?this._updateAnimation(k,K,R,I,Z,Y):(Z&&(V=w(V,R,Z),K=w(K,R,Z)),G.setShape({points:V}),q&&q.setShape({points:V,stackedOnPoints:K})))):(Q&&z.updateData(k,{isIgnore:j,clipShape:ee}),Z&&(V=w(V,R,Z),K=w(K,R,Z)),G=this._newPolyline(V,R,U),W&&(q=this._newPolygon(V,K,R,U)),H.setClipPath(M(R,!0,D)));var le=A(k,R)||k.getVisual("color");G.useStyle(t.defaults(B.getLineStyle(),{fill:"none",stroke:le,lineJoin:"bevel"}));var oe=D.get("smooth");if(oe=S(D.get("smooth")),G.setShape({smooth:oe,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")}),q){var fe=k.getCalculationInfo("stackedOnSeries"),se=0;q.useStyle(t.defaults(F.getAreaStyle(),{fill:le,opacity:.7,lineJoin:"bevel"})),fe&&(se=S(fe.get("smooth"))),q.setShape({smooth:oe,stackedOnSmooth:se,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")})}this._data=k,this._coordSys=R,this._stackedOnPoints=K,this._points=V,this._step=Z,this._valueOrigin=Y},dispose:function(){},highlight:function(D,P,I,R){var E=D.getData(),k=l.queryDataIndex(E,R);if(!(k instanceof Array)&&k!=null&&k>=0){var B=E.getItemGraphicEl(k);if(!B){var F=E.getItemLayout(k);if(!F||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(F[0],F[1]))return;B=new n(E,k),B.position=F,B.setZ(D.get("zlevel"),D.get("z")),B.ignore=isNaN(F[0])||isNaN(F[1]),B.__temp=!0,E.setItemGraphicEl(k,B),B.stopSymbolAnimation(!0),this.group.add(B)}B.highlight()}else f.prototype.highlight.call(this,D,P,I,R)},downplay:function(D,P,I,R){var E=D.getData(),k=l.queryDataIndex(E,R);if(k!=null&&k>=0){var B=E.getItemGraphicEl(k);B&&(B.__temp?(E.setItemGraphicEl(k,null),this.group.remove(B)):B.downplay())}else f.prototype.downplay.call(this,D,P,I,R)},_newPolyline:function(D){var P=this._polyline;return P&&this._lineGroup.remove(P),P=new v({shape:{points:D},silent:!0,z2:10}),this._lineGroup.add(P),this._polyline=P,P},_newPolygon:function(D,P){var I=this._polygon;return I&&this._lineGroup.remove(I),I=new h({shape:{points:D,stackedOnPoints:P},silent:!0}),this._lineGroup.add(I),this._polygon=I,I},_updateAnimation:function(D,P,I,R,E,k){var B=this._polyline,F=this._polygon,V=D.hostModel,N=o(this._data,D,this._stackedOnPoints,P,this._coordSys,I,this._valueOrigin,k),O=N.current,z=N.stackedOnCurrent,G=N.next,q=N.stackedOnNext;if(E&&(O=w(N.current,I,E),z=w(N.stackedOnCurrent,I,E),G=w(N.next,I,E),q=w(N.stackedOnNext,I,E)),x(O,G)>3e3||F&&x(z,q)>3e3){B.setShape({points:G}),F&&F.setShape({points:G,stackedOnPoints:q});return}B.shape.__points=N.current,B.shape.points=O,s.updateProps(B,{shape:{points:G}},V),F&&(F.setShape({points:O,stackedOnPoints:z}),s.updateProps(F,{shape:{points:G,stackedOnPoints:q}},V));for(var H=[],U=N.status,W=0;W<U.length;W++){var Y=U[W].cmd;if(Y==="="){var X=D.getItemGraphicEl(U[W].idx1);X&&H.push({el:X,ptIdx:W})}}B.animators&&B.animators.length&&B.animators[0].during(function(){for(var K=0;K<H.length;K++){var Q=H[K].el;Q.attr("position",B.shape.__points[H[K].ptIdx])}})},remove:function(D){var P=this.group,I=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),I&&I.eachItemGraphicEl(function(R,E){R.__temp&&(P.remove(R),I.setItemGraphicEl(E,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});return s1=L,s1}var l1,Lz;function Xs(){if(Lz)return l1;Lz=1;var r=ie(),t=r.isFunction;function e(a,i,n){return{seriesType:a,performRawSeries:!0,reset:function(o,s,l){var u=o.getData(),v=o.get("symbol"),h=o.get("symbolSize"),f=o.get("symbolKeepAspect"),c=o.get("symbolRotate"),d=t(v),p=t(h),g=t(c),m=d||p||g,y=!d&&v?v:i,_=p?null:h;if(u.setVisual({legendSymbol:n||y,symbol:y,symbolSize:_,symbolKeepAspect:f,symbolRotate:c}),s.isSeriesFiltered(o))return;function x(S,b){if(m){var w=o.getRawValue(b),A=o.getDataParams(b);d&&S.setItemVisual(b,"symbol",v(w,A)),p&&S.setItemVisual(b,"symbolSize",h(w,A)),g&&S.setItemVisual(b,"symbolRotate",c(w,A))}if(S.hasItemOption){var T=S.getItemModel(b),C=T.getShallow("symbol",!0),M=T.getShallow("symbolSize",!0),L=T.getShallow("symbolRotate",!0),D=T.getShallow("symbolKeepAspect",!0);C!=null&&S.setItemVisual(b,"symbol",C),M!=null&&S.setItemVisual(b,"symbolSize",M),L!=null&&S.setItemVisual(b,"symbolRotate",L),D!=null&&S.setItemVisual(b,"symbolKeepAspect",D)}}return{dataEach:u.hasItemOption||m?x:null}}}}return l1=e,l1}var u1,Iz;function gf(){if(Iz)return u1;Iz=1;var r=ie(),t=r.map,e=Cu(),a=rn(),i=a.isDimensionStacked;function n(o){return{seriesType:o,plan:e(),reset:function(s){var l=s.getData(),u=s.coordinateSystem,v=s.pipelineContext,h=v.large;if(!u)return;var f=t(u.dimensions,function(g){return l.mapDimension(g)}).slice(0,2),c=f.length,d=l.getCalculationInfo("stackResultDimension");i(l,f[0])&&(f[0]=d),i(l,f[1])&&(f[1]=d);function p(g,m){for(var y=g.end-g.start,_=h&&new Float32Array(y*c),x=g.start,S=0,b=[],w=[];x<g.end;x++){var A;if(c===1){var T=m.get(f[0],x);A=!isNaN(T)&&u.dataToPoint(T,null,w)}else{var T=b[0]=m.get(f[0],x),C=b[1]=m.get(f[1],x);A=!isNaN(T)&&!isNaN(C)&&u.dataToPoint(b,null,w)}h?(_[S++]=A?A[0]:NaN,_[S++]=A?A[1]:NaN):m.setItemLayout(x,A&&A.slice()||[NaN,NaN])}h&&m.setLayout("symbolPoints",_)}return c&&{progress:p}}}}return u1=n,u1}var v1,Pz;function yge(){if(Pz)return v1;Pz=1;var r={average:function(a){for(var i=0,n=0,o=0;o<a.length;o++)isNaN(a[o])||(i+=a[o],n++);return n===0?NaN:i/n},sum:function(a){for(var i=0,n=0;n<a.length;n++)i+=a[n]||0;return i},max:function(a){for(var i=-1/0,n=0;n<a.length;n++)a[n]>i&&(i=a[n]);return isFinite(i)?i:NaN},min:function(a){for(var i=1/0,n=0;n<a.length;n++)a[n]<i&&(i=a[n]);return isFinite(i)?i:NaN},nearest:function(a){return a[0]}},t=function(a,i){return Math.round(a.length/2)};function e(a){return{seriesType:a,modifyOutputEnd:!0,reset:function(i,n,o){var s=i.getData(),l=i.get("sampling"),u=i.coordinateSystem;if(u.type==="cartesian2d"&&l){var v=u.getBaseAxis(),h=u.getOtherAxis(v),f=v.getExtent(),c=Math.abs(f[1]-f[0]),d=Math.round(s.count()/c);if(d>1){var p;typeof l=="string"?p=r[l]:typeof l=="function"&&(p=l),p&&i.setData(s.downSample(s.mapDimension(h.dim),1/d,p,t))}}}}}return v1=e,v1}var Rz={},h1,Ez;function _ge(){if(Ez)return h1;Ez=1;var r=ie();function t(i){return this._axes[i]}var e=function(i){this._axes={},this._dimList=[],this.name=i||""};e.prototype={constructor:e,type:"cartesian",getAxis:function(i){return this._axes[i]},getAxes:function(){return r.map(this._dimList,t,this)},getAxesByScale:function(i){return i=i.toLowerCase(),r.filter(this.getAxes(),function(n){return n.scale.type===i})},addAxis:function(i){var n=i.dim;this._axes[n]=i,this._dimList.push(n)},dataToCoord:function(i){return this._dataCoordConvert(i,"dataToCoord")},coordToData:function(i){return this._dataCoordConvert(i,"coordToData")},_dataCoordConvert:function(i,n){for(var o=this._dimList,s=i instanceof Array?[]:{},l=0;l<o.length;l++){var u=o[l],v=this._axes[u];s[u]=v[n](i[u])}return s}};var a=e;return h1=a,h1}var f1,kz;function xge(){if(kz)return f1;kz=1;var r=ie(),t=rr(),e=_ge();function a(n){e.call(this,n)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(n){var o=this.getAxis("x"),s=this.getAxis("y");return o.contain(o.toLocalCoord(n[0]))&&s.contain(s.toLocalCoord(n[1]))},containData:function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},dataToPoint:function(n,o,s){var l=this.getAxis("x"),u=this.getAxis("y");return s=s||[],s[0]=l.toGlobalCoord(l.dataToCoord(n[0])),s[1]=u.toGlobalCoord(u.dataToCoord(n[1])),s},clampData:function(n,o){var s=this.getAxis("x").scale,l=this.getAxis("y").scale,u=s.getExtent(),v=l.getExtent(),h=s.parse(n[0]),f=l.parse(n[1]);return o=o||[],o[0]=Math.min(Math.max(Math.min(u[0],u[1]),h),Math.max(u[0],u[1])),o[1]=Math.min(Math.max(Math.min(v[0],v[1]),f),Math.max(v[0],v[1])),o},pointToData:function(n,o){var s=this.getAxis("x"),l=this.getAxis("y");return o=o||[],o[0]=s.coordToData(s.toLocalCoord(n[0])),o[1]=l.coordToData(l.toLocalCoord(n[1])),o},getOtherAxis:function(n){return this.getAxis(n.dim==="x"?"y":"x")},getArea:function(){var n=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),s=Math.min(n[0],n[1]),l=Math.min(o[0],o[1]),u=Math.max(n[0],n[1])-s,v=Math.max(o[0],o[1])-l,h=new t(s,l,u,v);return h}},r.inherits(a,e);var i=a;return f1=i,f1}var c1,Oz;function Sge(){if(Oz)return c1;Oz=1;var r=ie(),t=So(),e=function(i,n,o,s,l){t.call(this,i,n,o),this.type=s||"value",this.position=l||"bottom"};e.prototype={constructor:e,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var i=this.position;return i==="top"||i==="bottom"},getGlobalExtent:function(i){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),i&&n[0]>n[1]&&n.reverse(),n},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(i,n){return this.coordToData(this.toLocalCoord(i[this.dim==="x"?0:1]),n)},toLocalCoord:null,toGlobalCoord:null},r.inherits(e,t);var a=e;return c1=a,c1}var d1,Nz;function i$(){if(Nz)return d1;Nz=1;var r=ie(),t={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},e={};e.categoryAxis=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},t),e.valueAxis=r.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},t),e.timeAxis=r.defaults({scale:!0,min:"dataMin",max:"dataMax"},e.valueAxis),e.logAxis=r.defaults({scale:!0,logBase:10},e.valueAxis);var a=e;return d1=a,d1}var p1,zz;function mg(){if(zz)return p1;zz=1;var r=ie(),t=i$(),e=Lr(),a=Ut(),i=a.getLayoutParams,n=a.mergeLayoutParam,o=X9(),s=["value","category","time","log"];function l(u,v,h,f){r.each(s,function(c){v.extend({type:u+"Axis."+c,mergeDefaultAndTheme:function(d,p){var g=this.layoutMode,m=g?i(d):{},y=p.getTheme();r.merge(d,y.get(c+"Axis")),r.merge(d,this.getDefaultOption()),d.type=h(u,d),g&&n(d,m,g)},optionUpdated:function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=o.createByAxisModel(this))},getCategories:function(d){var p=this.option;if(p.type==="category")return d?p.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.mergeAll([{},t[c+"Axis"],f],!0)})}),e.registerSubTypeDefaulter(u+"Axis",r.curry(h,u))}return p1=l,p1}var g1,Bz;function n$(){if(Bz)return g1;Bz=1;var r=ie(),t=Lr(),e=mg(),a=Du(),i=t.extend({type:"cartesian2dAxis",axis:null,init:function(){i.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){i.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){i.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function n(l,u){return u.type||(u.data?"category":"value")}r.merge(i.prototype,a);var o={offset:0};e("x",i,n,o),e("y",i,n,o);var s=i;return g1=s,g1}var m1,Vz;function bge(){if(Vz)return m1;Vz=1,n$();var r=Lr(),t=r.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});return m1=t,m1}var y1,Gz;function sD(){if(Gz)return y1;Gz=1;var r=It();r.__DEV__;var t=ie(),e=t.isObject,a=t.each,i=t.map,n=t.indexOf;t.retrieve;var o=Ut(),s=o.getLayoutRect,l=wi(),u=l.createScaleByModel,v=l.ifAxisCrossZero,h=l.niceScaleExtent,f=l.estimateLabelUnionRect,c=xge(),d=Sge(),p=bi(),g=rn(),m=g.getStackedDimension;bge();function y(L,D,P){return L.getCoordSysModel()===D}function _(L,D,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(L,D,P),this.model=L}var x=_.prototype;x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(L,D){var P=this._axesMap;this._updateScale(L,this.model),a(P.x,function(R){h(R.scale,R.model)}),a(P.y,function(R){h(R.scale,R.model)});var I={};a(P.x,function(R){S(P,"y",R,I)}),a(P.y,function(R){S(P,"x",R,I)}),this.resize(this.model,D)};function S(L,D,P,I){P.getAxesOnZeroOf=function(){return E?[E]:[]};var R=L[D],E,k=P.model,B=k.get("axisLine.onZero"),F=k.get("axisLine.onZeroAxisIndex");if(!B)return;if(F!=null)b(R[F])&&(E=R[F]);else for(var V in R)if(R.hasOwnProperty(V)&&b(R[V])&&!I[N(R[V])]){E=R[V];break}E&&(I[N(E)]=!0);function N(O){return O.dim+"_"+O.index}}function b(L){return L&&L.type!=="category"&&L.type!=="time"&&v(L)}x.resize=function(L,D,P){var I=s(L.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()});this._rect=I;var R=this._axesList;E(),!P&&L.get("containLabel")&&(a(R,function(k){if(!k.model.get("axisLabel.inside")){var B=f(k);if(B){var F=k.isHorizontal()?"height":"width",V=k.model.get("axisLabel.margin");I[F]-=B[F]+V,k.position==="top"?I.y+=B.height+V:k.position==="left"&&(I.x+=B.width+V)}}}),E());function E(){a(R,function(k){var B=k.isHorizontal(),F=B?[0,I.width]:[0,I.height],V=k.inverse?1:0;k.setExtent(F[V],F[1-V]),w(k,B?I.x:I.y)})}},x.getAxis=function(L,D){var P=this._axesMap[L];if(P!=null){if(D==null){for(var I in P)if(P.hasOwnProperty(I))return P[I]}return P[D]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(L,D){if(L!=null&&D!=null){var P="x"+L+"y"+D;return this._coordsMap[P]}e(L)&&(D=L.yAxisIndex,L=L.xAxisIndex);for(var I=0,R=this._coordsList;I<R.length;I++)if(R[I].getAxis("x").index===L||R[I].getAxis("y").index===D)return R[I]},x.getCartesians=function(){return this._coordsList.slice()},x.convertToPixel=function(L,D,P){var I=this._findConvertTarget(L,D);return I.cartesian?I.cartesian.dataToPoint(P):I.axis?I.axis.toGlobalCoord(I.axis.dataToCoord(P)):null},x.convertFromPixel=function(L,D,P){var I=this._findConvertTarget(L,D);return I.cartesian?I.cartesian.pointToData(P):I.axis?I.axis.coordToData(I.axis.toLocalCoord(P)):null},x._findConvertTarget=function(L,D){var P=D.seriesModel,I=D.xAxisModel||P&&P.getReferringComponents("xAxis")[0],R=D.yAxisModel||P&&P.getReferringComponents("yAxis")[0],E=D.gridModel,k=this._coordsList,B,F;if(P)B=P.coordinateSystem,n(k,B)<0&&(B=null);else if(I&&R)B=this.getCartesian(I.componentIndex,R.componentIndex);else if(I)F=this.getAxis("x",I.componentIndex);else if(R)F=this.getAxis("y",R.componentIndex);else if(E){var V=E.coordinateSystem;V===this&&(B=this._coordsList[0])}return{cartesian:B,axis:F}},x.containPoint=function(L){var D=this._coordsList[0];if(D)return D.containPoint(L)},x._initCartesian=function(L,D,P){var I={left:!1,right:!1,top:!1,bottom:!1},R={x:{},y:{}},E={x:0,y:0};if(D.eachComponent("xAxis",k("x"),this),D.eachComponent("yAxis",k("y"),this),!E.x||!E.y){this._axesMap={},this._axesList=[];return}this._axesMap=R,a(R.x,function(B,F){a(R.y,function(V,N){var O="x"+F+"y"+N,z=new c(O);z.grid=this,z.model=L,this._coordsMap[O]=z,this._coordsList.push(z),z.addAxis(B),z.addAxis(V)},this)},this);function k(B){return function(F,V){if(y(F,L)){var N=F.get("position");B==="x"?N!=="top"&&N!=="bottom"&&(N=I.bottom?"top":"bottom"):N!=="left"&&N!=="right"&&(N=I.left?"right":"left"),I[N]=!0;var O=new d(B,u(F),[0,0],F.get("type"),N),z=O.type==="category";O.onBand=z&&F.get("boundaryGap"),O.inverse=F.get("inverse"),F.axis=O,O.model=F,O.grid=this,O.index=V,this._axesList.push(O),R[B][V]=O,E[B]++}}}},x._updateScale=function(L,D){a(this._axesList,function(I){I.scale.setExtent(1/0,-1/0)}),L.eachSeries(function(I){if(C(I)){var R=T(I),E=R[0],k=R[1];if(!y(E,D)||!y(k,D))return;var B=this.getCartesian(E.componentIndex,k.componentIndex),F=I.getData(),V=B.getAxis("x"),N=B.getAxis("y");F.type==="list"&&(P(F,V),P(F,N))}},this);function P(I,R,E){a(I.mapDimension(R.dim,!0),function(k){R.scale.unionExtentFromData(I,m(I,k))})}},x.getTooltipAxes=function(L){var D=[],P=[];return a(this.getCartesians(),function(I){var R=L!=null&&L!=="auto"?I.getAxis(L):I.getBaseAxis(),E=I.getOtherAxis(R);n(D,R)<0&&D.push(R),n(P,E)<0&&P.push(E)}),{baseAxes:D,otherAxes:P}};function w(L,D){var P=L.getExtent(),I=P[0]+P[1];L.toGlobalCoord=L.dim==="x"?function(R){return R+D}:function(R){return I-R+D},L.toLocalCoord=L.dim==="x"?function(R){return R-D}:function(R){return I-R+D}}var A=["xAxis","yAxis"];function T(L,D){return i(A,function(P){var I=L.getReferringComponents(P)[0];return I})}function C(L){return L.get("coordinateSystem")==="cartesian2d"}_.create=function(L,D){var P=[];return L.eachComponent("grid",function(I,R){var E=new _(I,L,D);E.name="grid_"+R,E.resize(I,D,!0),I.coordinateSystem=E,P.push(E)}),L.eachSeries(function(I){if(C(I)){var R=T(I),E=R[0],k=R[1],B=E.getCoordSysModel(),F=B.coordinateSystem;I.coordinateSystem=F.getCartesian(E.componentIndex,k.componentIndex)}}),P},_.dimensions=_.prototype.dimensions=c.prototype.dimensions,p.register("cartesian2d",_);var M=_;return y1=M,y1}var Fz={},Hz={},_1,qz;function bo(){if(qz)return _1;qz=1;var r=ie(),t=r.retrieve,e=r.defaults,a=r.extend,i=r.each,n=Yt(),o=qe(),s=gr(),l=st(),u=l.isRadianAroundZero,v=l.remRadian,h=ti(),f=h.createSymbol,c=ha(),d=Jt(),p=d.applyTransform,g=wi(),m=g.shouldShowAllLabels,y=Math.PI,_=function(k,B){this.opt=B,this.axisModel=k,e(B,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new o.Group;var F=new o.Group({position:B.position.slice(),rotation:B.rotation});F.updateTransform(),this._transform=F.transform,this._dumbGroup=F};_.prototype={constructor:_,hasBuilder:function(k){return!!x[k]},add:function(k){x[k].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var k=this.opt,B=this.axisModel;if(B.get("axisLine.show")){var F=this.axisModel.axis.getExtent(),V=this._transform,N=[F[0],0],O=[F[1],0];V&&(p(N,N,V),p(O,O,V));var z=a({lineCap:"round"},B.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new o.Line({anid:"line",subPixelOptimize:!0,shape:{x1:N[0],y1:N[1],x2:O[0],y2:O[1]},style:z,strokeContainThreshold:k.strokeContainThreshold||5,silent:!0,z2:1}));var G=B.get("axisLine.symbol"),q=B.get("axisLine.symbolSize"),H=B.get("axisLine.symbolOffset")||0;if(typeof H=="number"&&(H=[H,H]),G!=null){typeof G=="string"&&(G=[G,G]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var U=q[0],W=q[1];i([{rotate:k.rotation+Math.PI/2,offset:H[0],r:0},{rotate:k.rotation-Math.PI/2,offset:H[1],r:Math.sqrt((N[0]-O[0])*(N[0]-O[0])+(N[1]-O[1])*(N[1]-O[1]))}],function(Y,X){if(G[X]!=="none"&&G[X]!=null){var K=f(G[X],-U/2,-W/2,U,W,z.stroke,!0),Q=Y.r+Y.offset,j=[N[0]+Q*Math.cos(k.rotation),N[1]-Q*Math.sin(k.rotation)];K.attr({rotation:Y.rotate,position:j,silent:!0,z2:11}),this.group.add(K)}},this)}}},axisTickLabel:function(){var k=this.axisModel,B=this.opt,F=P(this,k,B),V=R(this,k,B);T(k,V,F),I(this,k,B)},axisName:function(){var k=this.opt,B=this.axisModel,F=t(k.axisName,B.get("name"));if(F){var V=B.get("nameLocation"),N=k.nameDirection,O=B.getModel("nameTextStyle"),z=B.get("nameGap")||0,G=this.axisModel.axis.getExtent(),q=G[0]>G[1]?-1:1,H=[V==="start"?G[0]-q*z:V==="end"?G[1]+q*z:(G[0]+G[1])/2,L(V)?k.labelOffset+N*z:0],U,W=B.get("nameRotate");W!=null&&(W=W*y/180);var Y;L(V)?U=b(k.rotation,W!=null?W:k.rotation,N):(U=w(k,V,W||0,G),Y=k.axisNameAvailableWidth,Y!=null&&(Y=Math.abs(Y/Math.sin(U.rotation)),!isFinite(Y)&&(Y=null)));var X=O.getFont(),K=B.get("nameTruncate",!0)||{},Q=K.ellipsis,j=t(k.nameTruncateMaxWidth,K.maxWidth,Y),te=Q!=null&&j!=null?n.truncateText(F,j,X,Q,{minChar:2,placeholder:K.placeholder}):F,Z=B.get("tooltip",!0),ee=B.mainType,le={componentType:ee,name:F,$vars:["name"]};le[ee+"Index"]=B.componentIndex;var oe=new o.Text({anid:"name",__fullText:F,__truncatedText:te,position:H,rotation:U.rotation,silent:A(B),z2:1,tooltip:Z&&Z.show?a({content:F,formatter:function(){return F},formatterParams:le},Z):null});o.setTextStyle(oe.style,O,{text:te,textFont:X,textFill:O.getTextColor()||B.get("axisLine.lineStyle.color"),textAlign:O.get("align")||U.textAlign,textVerticalAlign:O.get("verticalAlign")||U.textVerticalAlign}),B.get("triggerEvent")&&(oe.eventData=S(B),oe.eventData.targetType="axisName",oe.eventData.name=F),this._dumbGroup.add(oe),oe.updateTransform(),this.group.add(oe),oe.decomposeTransform()}}},S=_.makeAxisEventDataBase=function(k){var B={componentType:k.mainType,componentIndex:k.componentIndex};return B[k.mainType+"Index"]=k.componentIndex,B},b=_.innerTextLayout=function(k,B,F){var V=v(B-k),N,O;return u(V)?(O=F>0?"top":"bottom",N="center"):u(V-y)?(O=F>0?"bottom":"top",N="center"):(O="middle",V>0&&V<y?N=F>0?"right":"left":N=F>0?"left":"right"),{rotation:V,textAlign:N,textVerticalAlign:O}};function w(k,B,F,V){var N=v(F-k.rotation),O,z,G=V[0]>V[1],q=B==="start"&&!G||B!=="start"&&G;return u(N-y/2)?(z=q?"bottom":"top",O="center"):u(N-y*1.5)?(z=q?"top":"bottom",O="center"):(z="middle",N<y*1.5&&N>y/2?O=q?"left":"right":O=q?"right":"left"),{rotation:N,textAlign:O,textVerticalAlign:z}}var A=_.isLabelSilent=function(k){var B=k.get("tooltip");return k.get("silent")||!(k.get("triggerEvent")||B&&B.show)};function T(k,B,F){if(!m(k.axis)){var V=k.get("axisLabel.showMinLabel"),N=k.get("axisLabel.showMaxLabel");B=B||[],F=F||[];var O=B[0],z=B[1],G=B[B.length-1],q=B[B.length-2],H=F[0],U=F[1],W=F[F.length-1],Y=F[F.length-2];V===!1?(C(O),C(H)):M(O,z)&&(V?(C(z),C(U)):(C(O),C(H))),N===!1?(C(G),C(W)):M(q,G)&&(N?(C(q),C(Y)):(C(G),C(W)))}}function C(k){k&&(k.ignore=!0)}function M(k,B,F){var V=k&&k.getBoundingRect().clone(),N=B&&B.getBoundingRect().clone();if(!(!V||!N)){var O=c.identity([]);return c.rotate(O,O,-k.rotation),V.applyTransform(c.mul([],O,k.getLocalTransform())),N.applyTransform(c.mul([],O,B.getLocalTransform())),V.intersect(N)}}function L(k){return k==="middle"||k==="center"}function D(k,B,F,V,N){for(var O=[],z=[],G=[],q=0;q<k.length;q++){var H=k[q].coord;z[0]=H,z[1]=0,G[0]=H,G[1]=F,B&&(p(z,z,B),p(G,G,B));var U=new o.Line({anid:N+"_"+k[q].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:G[0],y2:G[1]},style:V,z2:2,silent:!0});O.push(U)}return O}function P(k,B,F){var V=B.axis,N=B.getModel("axisTick");if(!(!N.get("show")||V.scale.isBlank())){for(var O=N.getModel("lineStyle"),z=F.tickDirection*N.get("length"),G=V.getTicksCoords(),q=D(G,k._transform,z,e(O.getLineStyle(),{stroke:B.get("axisLine.lineStyle.color")}),"ticks"),H=0;H<q.length;H++)k.group.add(q[H]);return q}}function I(k,B,F){var V=B.axis,N=B.getModel("minorTick");if(!(!N.get("show")||V.scale.isBlank())){var O=V.getMinorTicksCoords();if(O.length)for(var z=N.getModel("lineStyle"),G=F.tickDirection*N.get("length"),q=e(z.getLineStyle(),e(B.getModel("axisTick").getLineStyle(),{stroke:B.get("axisLine.lineStyle.color")})),H=0;H<O.length;H++)for(var U=D(O[H],k._transform,G,q,"minorticks_"+H),W=0;W<U.length;W++)k.group.add(U[W])}}function R(k,B,F){var V=B.axis,N=t(F.axisLabelShow,B.get("axisLabel.show"));if(!(!N||V.scale.isBlank())){var O=B.getModel("axisLabel"),z=O.get("margin"),G=V.getViewLabels(),q=(t(F.labelRotate,O.get("rotate"))||0)*y/180,H=b(F.rotation,q,F.labelDirection),U=B.getCategories&&B.getCategories(!0),W=[],Y=A(B),X=B.get("triggerEvent");return i(G,function(K,Q){var j=K.tickValue,te=K.formattedLabel,Z=K.rawLabel,ee=O;U&&U[j]&&U[j].textStyle&&(ee=new s(U[j].textStyle,O,B.ecModel));var le=ee.getTextColor()||B.get("axisLine.lineStyle.color"),oe=V.dataToCoord(j),fe=[oe,F.labelOffset+F.labelDirection*z],se=new o.Text({anid:"label_"+j,position:fe,rotation:H.rotation,silent:Y,z2:10});o.setTextStyle(se.style,ee,{text:te,textAlign:ee.getShallow("align",!0)||H.textAlign,textVerticalAlign:ee.getShallow("verticalAlign",!0)||ee.getShallow("baseline",!0)||H.textVerticalAlign,textFill:typeof le=="function"?le(V.type==="category"?Z:V.type==="value"?j+"":j,Q):le}),X&&(se.eventData=S(B),se.eventData.targetType="axisLabel",se.eventData.value=Z),k._dumbGroup.add(se),se.updateTransform(),W.push(se),k.group.add(se),se.decomposeTransform()}),W}}var E=_;return _1=E,_1}var Jo={},Wz;function yg(){if(Wz)return Jo;Wz=1;var r=ie(),t=gr(),e=r.each,a=r.curry;function i(p,g){var m={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n(m,p,g),m.seriesInvolved&&s(m,p),m}function n(p,g,m){var y=g.getComponent("tooltip"),_=g.getComponent("axisPointer"),x=_.get("link",!0)||[],S=[];e(m.getCoordinateSystems(),function(b){if(!b.axisPointerEnabled)return;var w=d(b.model),A=p.coordSysAxesInfo[w]={};p.coordSysMap[w]=b;var T=b.model,C=T.getModel("tooltip",y);if(e(b.getAxes(),a(P,!1,null)),b.getTooltipAxes&&y&&C.get("show")){var M=C.get("trigger")==="axis",L=C.get("axisPointer.type")==="cross",D=b.getTooltipAxes(C.get("axisPointer.axis"));(M||L)&&e(D.baseAxes,a(P,L?"cross":!0,M)),L&&e(D.otherAxes,a(P,"cross",!1))}function P(I,R,E){var k=E.model.getModel("axisPointer",_),B=k.get("show");if(!(!B||B==="auto"&&!I&&!c(k))){R==null&&(R=k.get("triggerTooltip")),k=I?o(E,C,_,g,I,R):k;var F=k.get("snap"),V=d(E.model),N=R||F||E.type==="category",O=p.axesInfo[V]={key:V,axis:E,coordSys:b,axisPointerModel:k,triggerTooltip:R,involveSeries:N,snap:F,useHandle:c(k),seriesModels:[]};A[V]=O,p.seriesInvolved|=N;var z=l(x,E);if(z!=null){var G=S[z]||(S[z]={axesInfo:{}});G.axesInfo[V]=O,G.mapper=x[z].mapper,O.linkGroup=G}}}})}function o(p,g,m,y,_,x){var S=g.getModel("axisPointer"),b={};e(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(C){b[C]=r.clone(S.get(C))}),b.snap=p.type!=="category"&&!!x,S.get("type")==="cross"&&(b.type="line");var w=b.label||(b.label={});if(w.show==null&&(w.show=!1),_==="cross"){var A=S.get("label.show");if(w.show=A!=null?A:!0,!x){var T=b.lineStyle=S.get("crossStyle");T&&r.defaults(w,T.textStyle)}}return p.model.getModel("axisPointer",new t(b,m,y))}function s(p,g){g.eachSeries(function(m){var y=m.coordinateSystem,_=m.get("tooltip.trigger",!0),x=m.get("tooltip.show",!0);!y||_==="none"||_===!1||_==="item"||x===!1||m.get("axisPointer.show",!0)===!1||e(p.coordSysAxesInfo[d(y.model)],function(S){var b=S.axis;y.getAxis(b.dim)===b&&(S.seriesModels.push(m),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=m.getData().count())})},this)}function l(p,g){for(var m=g.model,y=g.dim,_=0;_<p.length;_++){var x=p[_]||{};if(u(x[y+"AxisId"],m.id)||u(x[y+"AxisIndex"],m.componentIndex)||u(x[y+"AxisName"],m.name))return _}}function u(p,g){return p==="all"||r.isArray(p)&&r.indexOf(p,g)>=0||p===g}function v(p){var g=h(p);if(g){var m=g.axisPointerModel,y=g.axis.scale,_=m.option,x=m.get("status"),S=m.get("value");S!=null&&(S=y.parse(S));var b=c(m);x==null&&(_.status=b?"show":"hide");var w=y.getExtent().slice();w[0]>w[1]&&w.reverse(),(S==null||S>w[1])&&(S=w[1]),S<w[0]&&(S=w[0]),_.value=S,b&&(_.status=g.axis.scale.isBlank()?"hide":"show")}}function h(p){var g=(p.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return g&&g.axesInfo[d(p)]}function f(p){var g=h(p);return g&&g.axisPointerModel}function c(p){return!!p.get("handle.show")}function d(p){return p.type+"||"+p.id}return Jo.collect=i,Jo.fixValue=v,Jo.getAxisInfo=h,Jo.getAxisPointerModel=f,Jo.makeKey=d,Jo}var x1,Uz;function Ks(){if(Uz)return x1;Uz=1;var r=It();r.__DEV__;var t=Pe(),e=yg(),a=t.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(l,u,v,h){this.axisPointerClass&&e.fixValue(l),a.superApply(this,"render",arguments),i(this,l,u,v,h,!0)},updateAxisPointer:function(l,u,v,h,f){i(this,l,u,v,h,!1)},remove:function(l,u){var v=this._axisPointer;v&&v.remove(u),a.superApply(this,"remove",arguments)},dispose:function(l,u){n(this,u),a.superApply(this,"dispose",arguments)}});function i(l,u,v,h,f,c){var d=a.getAxisPointerClass(l.axisPointerClass);if(d){var p=e.getAxisPointerModel(u);p?(l._axisPointer||(l._axisPointer=new d)).render(u,p,h,c):n(l,h)}}function n(l,u,v){var h=l._axisPointer;h&&h.dispose(u,v),l._axisPointer=null}var o=[];a.registerAxisPointerClass=function(l,u){o[l]=u},a.getAxisPointerClass=function(l){return l&&o[l]};var s=a;return x1=s,x1}var S1={},$z;function o$(){if($z)return S1;$z=1;var r=ie();function t(e,a,i){i=i||{};var n=e.coordinateSystem,o=a.axis,s={},l=o.getAxesOnZeroOf()[0],u=o.position,v=l?"onZero":u,h=o.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=a.get("offset")||0,g=h==="x"?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(l){var m=l.toGlobalCoord(l.dataToCoord(0));g[d.onZero]=Math.max(Math.min(m,g[1]),g[0])}s.position=[h==="y"?g[d[v]]:c[0],h==="x"?g[d[v]]:c[3]],s.rotation=Math.PI/2*(h==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=y[u],s.labelOffset=l?g[d[u]]-g[d.onZero]:0,a.get("axisTick.inside")&&(s.tickDirection=-s.tickDirection),r.retrieve(i.labelInside,a.get("axisLabel.inside"))&&(s.labelDirection=-s.labelDirection);var _=a.get("axisLabel.rotate");return s.labelRotate=v==="top"?-_:_,s.z2=1,s}return S1.layout=t,S1}var Pc={},Yz;function s$(){if(Yz)return Pc;Yz=1;var r=ie(),t=qe();function e(i,n,o,s){var l=o.axis;if(!l.scale.isBlank()){var u=o.getModel("splitArea"),v=u.getModel("areaStyle"),h=v.get("color"),f=s.coordinateSystem.getRect(),c=l.getTicksCoords({tickModel:u,clamp:!0});if(c.length){var d=h.length,p=i.__splitAreaColors,g=r.createHashMap(),m=0;if(p)for(var y=0;y<c.length;y++){var _=p.get(c[y].tickValue);if(_!=null){m=(_+(d-1)*y)%d;break}}var x=l.toGlobalCoord(c[0].coord),S=v.getAreaStyle();h=r.isArray(h)?h:[h];for(var y=1;y<c.length;y++){var b=l.toGlobalCoord(c[y].coord),w,A,T,C;l.isHorizontal()?(w=x,A=f.y,T=b-w,C=f.height,x=w+T):(w=f.x,A=x,T=f.width,C=b-A,x=A+C);var M=c[y-1].tickValue;M!=null&&g.set(M,m),n.add(new t.Rect({anid:M!=null?"area_"+M:null,shape:{x:w,y:A,width:T,height:C},style:r.defaults({fill:h[m]},S),silent:!0})),m=(m+1)%d}i.__splitAreaColors=g}}}function a(i){i.__splitAreaColors=null}return Pc.rectCoordAxisBuildSplitArea=e,Pc.rectCoordAxisHandleRemove=a,Pc}var Zz;function wge(){if(Zz)return Hz;Zz=1;var r=ie(),t=qe(),e=bo(),a=Ks(),i=o$(),n=s$(),o=n.rectCoordAxisBuildSplitArea,s=n.rectCoordAxisHandleRemove,l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine","minorSplitLine"],v=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(h,f,c,d){this.group.removeAll();var p=this._axisGroup;if(this._axisGroup=new t.Group,this.group.add(this._axisGroup),!!h.get("show")){var g=h.getCoordSysModel(),m=i.layout(g,h),y=new e(h,m);r.each(l,y.add,y),this._axisGroup.add(y.getGroup()),r.each(u,function(_){h.get(_+".show")&&this["_"+_](h,g)},this),t.groupTransition(p,this._axisGroup,h),v.superCall(this,"render",h,f,c,d)}},remove:function(){s(this)},_splitLine:function(h,f){var c=h.axis;if(!c.scale.isBlank()){var d=h.getModel("splitLine"),p=d.getModel("lineStyle"),g=p.get("color");g=r.isArray(g)?g:[g];for(var m=f.coordinateSystem.getRect(),y=c.isHorizontal(),_=0,x=c.getTicksCoords({tickModel:d}),S=[],b=[],w=p.getLineStyle(),A=0;A<x.length;A++){var T=c.toGlobalCoord(x[A].coord);y?(S[0]=T,S[1]=m.y,b[0]=T,b[1]=m.y+m.height):(S[0]=m.x,S[1]=T,b[0]=m.x+m.width,b[1]=T);var C=_++%g.length,M=x[A].tickValue;this._axisGroup.add(new t.Line({anid:M!=null?"line_"+x[A].tickValue:null,subPixelOptimize:!0,shape:{x1:S[0],y1:S[1],x2:b[0],y2:b[1]},style:r.defaults({stroke:g[C]},w),silent:!0}))}}},_minorSplitLine:function(h,f){var c=h.axis,d=h.getModel("minorSplitLine"),p=d.getModel("lineStyle"),g=f.coordinateSystem.getRect(),m=c.isHorizontal(),y=c.getMinorTicksCoords();if(y.length)for(var _=[],x=[],S=p.getLineStyle(),b=0;b<y.length;b++)for(var w=0;w<y[b].length;w++){var A=c.toGlobalCoord(y[b][w].coord);m?(_[0]=A,_[1]=g.y,x[0]=A,x[1]=g.y+g.height):(_[0]=g.x,_[1]=A,x[0]=g.x+g.width,x[1]=A),this._axisGroup.add(new t.Line({anid:"minor_line_"+y[b][w].tickValue,subPixelOptimize:!0,shape:{x1:_[0],y1:_[1],x2:x[0],y2:x[1]},style:S,silent:!0}))}},_splitArea:function(h,f){o(this,this._axisGroup,h,f)}});return v.extend({type:"xAxis"}),v.extend({type:"yAxis"}),Hz}var Xz;function Tge(){return Xz||(Xz=1,n$(),wge()),Fz}var Kz;function mf(){if(Kz)return Rz;Kz=1;var r=Pe(),t=ie(),e=qe();return sD(),Tge(),r.extendComponentView({type:"grid",render:function(a,i){this.group.removeAll(),a.get("show")&&this.group.add(new e.Rect({shape:a.coordinateSystem.getRect(),style:t.defaults({fill:a.get("backgroundColor")},a.getItemStyle()),silent:!0,z2:-1}))}}),r.registerPreprocessor(function(a){a.xAxis&&a.yAxis&&!a.grid&&(a.grid={})}),Rz}var Qz;function Age(){if(Qz)return _z;Qz=1;var r=Pe();pge(),mge();var t=Xs(),e=gf(),a=yge();return mf(),r.registerVisual(t("line","circle","line")),r.registerLayout(e("line")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a("line")),_z}var jz={},b1,Jz;function l$(){if(Jz)return b1;Jz=1;var r=Ir(),t=In(),e=r.extend({type:"series.__base_bar__",getInitialData:function(a,i){return t(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(a){var i=this.coordinateSystem;if(i){var n=i.dataToPoint(i.clampData(a)),o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;return n[u]+=s+l/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});return b1=e,b1}var w1,eB;function Cge(){if(eB)return w1;eB=1;var r=l$(),t=r.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});return w1=t,w1}var T1={},tB;function u$(){if(tB)return T1;tB=1;var r=qe(),t=oD(),e=t.getDefaultLabel;function a(n,o,s,l,u,v,h){var f=s.getModel("label"),c=s.getModel("emphasis.label");r.setLabelStyle(n,o,f,c,{labelFetcher:u,labelDataIndex:v,defaultText:e(u.getData(),v),isRectText:!0,autoColor:l}),i(n),i(o)}function i(n,o){n.textPosition==="outside"&&(n.textPosition=o)}return T1.setLabel=a,T1}var A1,rB;function Mge(){if(rB)return A1;rB=1;var r=Tu(),t=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),e={getBarItemStyle:function(a){var i=t(this,a);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(i.lineDash=n)}return i}};return A1=e,A1}var C1,aB;function Dge(){if(aB)return C1;aB=1;var r=qe(),t=r.extendShape,e=t({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(a,i){var n=i.cx,o=i.cy,s=Math.max(i.r0||0,0),l=Math.max(i.r,0),u=(l-s)*.5,v=s+u,h=i.startAngle,f=i.endAngle,c=i.clockwise,d=Math.cos(h),p=Math.sin(h),g=Math.cos(f),m=Math.sin(f),y=c?f-h<Math.PI*2:h-f<Math.PI*2;y&&(a.moveTo(d*s+n,p*s+o),a.arc(d*v+n,p*v+o,u,-Math.PI+h,h,!c)),a.arc(n,o,l,h,f,!c),a.moveTo(g*l+n,m*l+o),a.arc(g*v+n,m*v+o,u,f-Math.PI*2,f-Math.PI,!c),s!==0&&(a.arc(n,o,s,f,h,c),a.moveTo(d*s+n,m*s+o)),a.closePath()}});return C1=e,C1}var M1,iB;function Lge(){if(iB)return M1;iB=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=qe(),i=u$(),n=i.setLabel,o=gr(),s=Mge(),l=ur(),u=Us(),v=_o(),h=v.throttle,f=pf(),c=f.createClipPath,d=Dge(),p=["itemStyle","barBorderWidth"],g=[0,0];e.extend(o.prototype,s);function m(V,N){var O=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var z=V.getBaseAxis();if(z.type!=="category"||!z.onBand){var G=N.getLayout("bandWidth");z.isHorizontal()?(O.x-=G,O.width+=G*2):(O.y-=G,O.height+=G*2)}}return O}var y=t.extendChartView({type:"bar",render:function(V,N,O){this._updateDrawMode(V);var z=V.get("coordinateSystem");return(z==="cartesian2d"||z==="polar")&&(this._isLargeDraw?this._renderLarge(V,N,O):this._renderNormal(V,N,O)),this.group},incrementalPrepareRender:function(V,N,O){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,N,O,z){this._incrementalRenderLarge(V,N)},_updateDrawMode:function(V){var N=V.pipelineContext.large;(this._isLargeDraw==null||N^this._isLargeDraw)&&(this._isLargeDraw=N,this._clear())},_renderNormal:function(V,N,O){var z=this.group,G=V.getData(),q=this._data,H=V.coordinateSystem,U=H.getBaseAxis(),W;H.type==="cartesian2d"?W=U.isHorizontal():H.type==="polar"&&(W=U.dim==="angle");var Y=V.isAnimationEnabled()?V:null,X=V.get("clip",!0),K=m(H,G);z.removeClipPath();var Q=V.get("roundCap",!0),j=V.get("showBackground",!0),te=V.getModel("backgroundStyle"),Z=te.get("barBorderRadius")||0,ee=[],le=this._backgroundEls||[],oe=function(ve){var ye=T[H.type](G,ve),Me=F(H,W,ye);return Me.useStyle(te.getBarItemStyle()),H.type==="cartesian2d"&&Me.setShape("r",Z),ee[ve]=Me,Me};G.diff(q).add(function(ve){var ye=G.getItemModel(ve),Me=T[H.type](G,ve,ye);if(j&&oe(ve),!!G.hasValue(ve)){if(X){var J=S[H.type](K,Me);if(J){z.remove(ne);return}}var ne=b[H.type](ve,Me,W,Y,!1,Q);G.setItemGraphicEl(ve,ne),z.add(ne),M(ne,G,ve,ye,Me,V,W,H.type==="polar")}}).update(function(ve,ye){var Me=G.getItemModel(ve),J=T[H.type](G,ve,Me);if(j){var ne;le.length===0?ne=oe(ye):(ne=le[ye],ne.useStyle(te.getBarItemStyle()),H.type==="cartesian2d"&&ne.setShape("r",Z),ee[ve]=ne);var ue=T[H.type](G,ve),me=B(W,ue,H);a.updateProps(ne,{shape:me},Y,ve)}var xe=q.getItemGraphicEl(ye);if(!G.hasValue(ve)){z.remove(xe);return}if(X){var ge=S[H.type](K,J);if(ge){z.remove(xe);return}}xe?a.updateProps(xe,{shape:J},Y,ve):xe=b[H.type](ve,J,W,Y,!0,Q),G.setItemGraphicEl(ve,xe),z.add(xe),M(xe,G,ve,Me,J,V,W,H.type==="polar")}).remove(function(ve){var ye=q.getItemGraphicEl(ve);H.type==="cartesian2d"?ye&&w(ve,Y,ye):ye&&A(ve,Y,ye)}).execute();var fe=this._backgroundGroup||(this._backgroundGroup=new u);fe.removeAll();for(var se=0;se<ee.length;++se)fe.add(ee[se]);z.add(fe),this._backgroundEls=ee,this._data=G},_renderLarge:function(V,N,O){this._clear(),P(V,this.group);var z=V.get("clip",!0)?c(V.coordinateSystem,!1,V):null;z?this.group.setClipPath(z):this.group.removeClipPath()},_incrementalRenderLarge:function(V,N){this._removeBackground(),P(N,this.group,!0)},dispose:e.noop,remove:function(V){this._clear(V)},_clear:function(V){var N=this.group,O=this._data;V&&V.get("animation")&&O&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],O.eachItemGraphicEl(function(z){z.type==="sector"?A(z.dataIndex,V,z):w(z.dataIndex,V,z)})):N.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),_=Math.max,x=Math.min,S={cartesian2d:function(V,N){var O=N.width<0?-1:1,z=N.height<0?-1:1;O<0&&(N.x+=N.width,N.width=-N.width),z<0&&(N.y+=N.height,N.height=-N.height);var G=_(N.x,V.x),q=x(N.x+N.width,V.x+V.width),H=_(N.y,V.y),U=x(N.y+N.height,V.y+V.height);N.x=G,N.y=H,N.width=q-G,N.height=U-H;var W=N.width<0||N.height<0;return O<0&&(N.x+=N.width,N.width=-N.width),z<0&&(N.y+=N.height,N.height=-N.height),W},polar:function(V,N){var O=N.r0<=N.r?1:-1;if(O<0){var z=N.r;N.r=N.r0,N.r0=z}var z=x(N.r,V.r),G=_(N.r0,V.r0);N.r=z,N.r0=G;var q=z-G<0;if(O<0){var z=N.r;N.r=N.r0,N.r0=z}return q}},b={cartesian2d:function(V,N,O,z,G){var q=new a.Rect({shape:e.extend({},N),z2:1});if(q.name="item",z){var H=q.shape,U=O?"height":"width",W={};H[U]=0,W[U]=N[U],a[G?"updateProps":"initProps"](q,{shape:W},z,V)}return q},polar:function(V,N,O,z,G,q){var H=N.startAngle<N.endAngle,U=!O&&q?d:a.Sector,W=new U({shape:e.defaults({clockwise:H},N),z2:1});if(W.name="item",z){var Y=W.shape,X=O?"r":"endAngle",K={};Y[X]=O?0:N.startAngle,K[X]=N[X],a[G?"updateProps":"initProps"](W,{shape:K},z,V)}return W}};function w(V,N,O){O.style.text=null,a.updateProps(O,{shape:{width:0}},N,V,function(){O.parent&&O.parent.remove(O)})}function A(V,N,O){O.style.text=null,a.updateProps(O,{shape:{r:O.shape.r0}},N,V,function(){O.parent&&O.parent.remove(O)})}var T={cartesian2d:function(V,N,O){var z=V.getItemLayout(N),G=O?L(O,z):0,q=z.width>0?1:-1,H=z.height>0?1:-1;return{x:z.x+q*G/2,y:z.y+H*G/2,width:z.width-q*G,height:z.height-H*G}},polar:function(V,N,O){var z=V.getItemLayout(N);return{cx:z.cx,cy:z.cy,r0:z.r0,r:z.r,startAngle:z.startAngle,endAngle:z.endAngle}}};function C(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function M(V,N,O,z,G,q,H,U){var W=N.getItemVisual(O,"color"),Y=N.getItemVisual(O,"opacity"),X=N.getVisual("borderColor"),K=z.getModel("itemStyle"),Q=z.getModel("emphasis.itemStyle").getBarItemStyle();U||V.setShape("r",K.get("barBorderRadius")||0),V.useStyle(e.defaults({stroke:C(G)?"none":X,fill:C(G)?"none":W,opacity:Y},K.getBarItemStyle()));var j=z.getShallow("cursor");j&&V.attr("cursor",j);var te=H?G.height>0?"bottom":"top":G.width>0?"left":"right";U||n(V.style,Q,z,W,q,O,te),C(G)&&(Q.fill=Q.stroke="none"),a.setHoverStyle(V,Q)}function L(V,N){var O=V.get(p)||0,z=isNaN(N.width)?Number.MAX_VALUE:Math.abs(N.width),G=isNaN(N.height)?Number.MAX_VALUE:Math.abs(N.height);return Math.min(O,z,G)}var D=l.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,N){for(var O=N.points,z=this.__startPoint,G=this.__baseDimIdx,q=0;q<O.length;q+=2)z[G]=O[q+G],V.moveTo(z[0],z[1]),V.lineTo(O[q],O[q+1])}});function P(V,N,O){var z=V.getData(),G=[],q=z.getLayout("valueAxisHorizontal")?1:0;G[1-q]=z.getLayout("valueAxisStart");var H=z.getLayout("largeDataIndices"),U=z.getLayout("barWidth"),W=V.getModel("backgroundStyle"),Y=V.get("showBackground",!0);if(Y){var X=z.getLayout("largeBackgroundPoints"),K=[];K[1-q]=z.getLayout("backgroundStart");var Q=new D({shape:{points:X},incremental:!!O,__startPoint:K,__baseDimIdx:q,__largeDataIndices:H,__barWidth:U,silent:!0,z2:0});k(Q,W,z),N.add(Q)}var j=new D({shape:{points:z.getLayout("largePoints")},incremental:!!O,__startPoint:G,__baseDimIdx:q,__largeDataIndices:H,__barWidth:U});N.add(j),E(j,V,z),j.seriesIndex=V.seriesIndex,V.get("silent")||(j.on("mousedown",I),j.on("mousemove",I))}var I=h(function(V){var N=this,O=R(N,V.offsetX,V.offsetY);N.dataIndex=O>=0?O:null},30,!1);function R(V,N,O){var z=V.__baseDimIdx,G=1-z,q=V.shape.points,H=V.__largeDataIndices,U=Math.abs(V.__barWidth/2),W=V.__startPoint[G];g[0]=N,g[1]=O;for(var Y=g[z],X=g[1-z],K=Y-U,Q=Y+U,j=0,te=q.length/2;j<te;j++){var Z=j*2,ee=q[Z+z],le=q[Z+G];if(ee>=K&&ee<=Q&&(W<=le?X>=W&&X<=le:X>=le&&X<=W))return H[j]}return-1}function E(V,N,O){var z=O.getVisual("borderColor")||O.getVisual("color"),G=N.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(G),V.style.fill=null,V.style.stroke=z,V.style.lineWidth=O.getLayout("barWidth")}function k(V,N,O){var z=N.get("borderColor")||N.get("color"),G=N.getItemStyle(["color","borderColor"]);V.useStyle(G),V.style.fill=null,V.style.stroke=z,V.style.lineWidth=O.getLayout("barWidth")}function B(V,N,O){var z,G=O.type==="polar";return G?z=O.getArea():z=O.grid.getRect(),G?{cx:z.cx,cy:z.cy,r0:V?z.r0:N.r0,r:V?z.r:N.r,startAngle:V?N.startAngle:0,endAngle:V?N.endAngle:Math.PI*2}:{x:V?N.x:z.x,y:V?z.y:N.y,width:V?N.width:z.width,height:V?z.height:N.height}}function F(V,N,O){var z=V.type==="polar"?a.Sector:a.Rect;return new z({shape:B(N,O,V),silent:!0,z2:0})}return M1=y,M1}var nB;function Ige(){if(nB)return jz;nB=1;var r=Pe(),t=ie(),e=pg(),a=e.layout,i=e.largeLayout;return sD(),Cge(),Lge(),mf(),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,t.curry(a,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,i),r.registerVisual({seriesType:"bar",reset:function(n){n.getData().setVisual("legendSymbol","roundRect")}}),jz}var oB={},D1,sB;function Lu(){if(sB)return D1;sB=1;var r=Mu(),t=ei(),e=ie(),a=e.extend,i=e.isArray;function n(o,s,l){s=i(s)&&{coordDimensions:s}||a({},s);var u=o.getSource(),v=r(u,s),h=new t(v,o);return h.initData(u,l),h}return D1=n,D1}var L1,lB;function lD(){if(lB)return L1;lB=1;var r=ie(),t={updateSelectedMap:function(e){this._targetList=r.isArray(e)?e.slice():[],this._selectTargetMap=r.reduce(e||[],function(a,i){return a.set(i.name,i),a},r.createHashMap())},select:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e),n=this.get("selectedMode");n==="single"&&this._selectTargetMap.each(function(o){o.selected=!1}),i&&(i.selected=!0)},unSelect:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e);i&&(i.selected=!1)},toggleSelected:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e);if(i!=null)return this[i.selected?"unSelect":"select"](e,a),i.selected},isSelected:function(e,a){var i=a!=null?this._targetList[a]:this._selectTargetMap.get(e);return i&&i.selected}};return L1=t,L1}var I1,uB;function yf(){if(uB)return I1;uB=1;function r(e,a){this.getAllNames=function(){var i=a();return i.mapArray(i.getName)},this.containName=function(i){var n=a();return n.indexOfName(i)>=0},this.indexOfName=function(i){var n=e();return n.indexOfName(i)},this.getItemVisual=function(i,n){var o=e();return o.getItemVisual(i,n)}}var t=r;return I1=t,I1}var P1,vB;function Pge(){if(vB)return P1;vB=1;var r=Pe(),t=Lu(),e=ie(),a=_t(),i=st(),n=i.getPercentWithPrecision,o=lD(),s=Ys(),l=s.retrieveRawAttr,u=Ln(),v=u.makeSeriesEncodeForNameBased,h=yf(),f=r.extendSeriesModel({type:"series.pie",init:function(d){f.superApply(this,"init",arguments),this.legendVisualProvider=new h(e.bind(this.getData,this),e.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(d)},mergeOption:function(d){f.superCall(this,"mergeOption",d),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(d,p){return t(this,{coordDimensions:["value"],encodeDefaulter:e.curry(v,this)})},_createSelectableList:function(){for(var d=this.getRawData(),p=d.mapDimension("value"),g=[],m=0,y=d.count();m<y;m++)g.push({name:d.getName(m),value:d.get(p,m),selected:l(d,m,"selected")});return g},getDataParams:function(d){var p=this.getData(),g=f.superCall(this,"getDataParams",d),m=[];return p.each(p.mapDimension("value"),function(y){m.push(y)}),g.percent=n(m,d,p.hostModel.get("percentPrecision")),g.$vars.push("percent"),g},_defaultLabelLine:function(d){a.defaultEmphasis(d,"labelLine",["show"]);var p=d.labelLine,g=d.emphasis.labelLine;p.show=p.show&&d.label.show,g.show=g.show&&d.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});e.mixin(f,o);var c=f;return P1=c,P1}var R1,hB;function Rge(){if(hB)return R1;hB=1;var r=ie(),t=qe(),e=tn();function a(u,v,h,f){var c=v.getData(),d=this.dataIndex,p=c.getName(d),g=v.get("selectedOffset");f.dispatchAction({type:"pieToggleSelect",from:u,name:p,seriesId:v.id}),c.each(function(m){i(c.getItemGraphicEl(m),c.getItemLayout(m),v.isSelected(c.getName(m)),g,h)})}function i(u,v,h,f,c){var d=(v.startAngle+v.endAngle)/2,p=Math.cos(d),g=Math.sin(d),m=h?f:0,y=[p*m,g*m];c?u.animate().when(200,{position:y}).start("bounceOut"):u.attr("position",y)}function n(u,v){t.Group.call(this);var h=new t.Sector({z2:2}),f=new t.Polyline,c=new t.Text;this.add(h),this.add(f),this.add(c),this.updateData(u,v,!0)}var o=n.prototype;o.updateData=function(u,v,h){var f=this.childAt(0),c=this.childAt(1),d=this.childAt(2),p=u.hostModel,g=u.getItemModel(v),m=u.getItemLayout(v),y=r.extend({},m);y.label=null;var _=p.getShallow("animationTypeUpdate");if(h){f.setShape(y);var x=p.getShallow("animationType");x==="scale"?(f.shape.r=m.r0,t.initProps(f,{shape:{r:m.r}},p,v)):(f.shape.endAngle=m.startAngle,t.updateProps(f,{shape:{endAngle:m.endAngle}},p,v))}else _==="expansion"?f.setShape(y):t.updateProps(f,{shape:y},p,v);var S=u.getItemVisual(v,"color");f.useStyle(r.defaults({lineJoin:"bevel",fill:S},g.getModel("itemStyle").getItemStyle())),f.hoverStyle=g.getModel("emphasis.itemStyle").getItemStyle();var b=g.getShallow("cursor");b&&f.attr("cursor",b),i(this,u.getItemLayout(v),p.isSelected(u.getName(v)),p.get("selectedOffset"),p.get("animation"));var w=!h&&_==="transition";this._updateLabel(u,v,w),this.highDownOnUpdate=p.get("silent")?null:function(A,T){var C=p.isAnimationEnabled()&&g.get("hoverAnimation");T==="emphasis"?(c.ignore=c.hoverIgnore,d.ignore=d.hoverIgnore,C&&(f.stopAnimation(!0),f.animateTo({shape:{r:m.r+p.get("hoverOffset")}},300,"elasticOut"))):(c.ignore=c.normalIgnore,d.ignore=d.normalIgnore,C&&(f.stopAnimation(!0),f.animateTo({shape:{r:m.r}},300,"elasticOut")))},t.setHoverStyle(this)},o._updateLabel=function(u,v,h){var f=this.childAt(1),c=this.childAt(2),d=u.hostModel,p=u.getItemModel(v),g=u.getItemLayout(v),m=g.label,A=u.getItemVisual(v,"color");if(!m||isNaN(m.x)||isNaN(m.y)){c.ignore=c.normalIgnore=c.hoverIgnore=f.ignore=f.normalIgnore=f.hoverIgnore=!0;return}var y={points:m.linePoints||[[m.x,m.y],[m.x,m.y],[m.x,m.y]]},_={x:m.x,y:m.y};h?(t.updateProps(f,{shape:y},d,v),t.updateProps(c,{style:_},d,v)):(f.attr({shape:y}),c.attr({style:_})),c.attr({rotation:m.rotation,origin:[m.x,m.y],z2:10});var x=p.getModel("label"),S=p.getModel("emphasis.label"),b=p.getModel("labelLine"),w=p.getModel("emphasis.labelLine"),A=u.getItemVisual(v,"color");t.setLabelStyle(c.style,c.hoverStyle={},x,S,{labelFetcher:u.hostModel,labelDataIndex:v,defaultText:m.text,autoColor:A,useInsideStyle:!!m.inside},{textAlign:m.textAlign,textVerticalAlign:m.verticalAlign,opacity:u.getItemVisual(v,"opacity")}),c.ignore=c.normalIgnore=!x.get("show"),c.hoverIgnore=!S.get("show"),f.ignore=f.normalIgnore=!b.get("show"),f.hoverIgnore=!w.get("show"),f.setStyle({stroke:A,opacity:u.getItemVisual(v,"opacity")}),f.setStyle(b.getModel("lineStyle").getLineStyle()),f.hoverStyle=w.getModel("lineStyle").getLineStyle();var T=b.get("smooth");T&&T===!0&&(T=.4),f.setShape({smooth:T})},r.inherits(n,t.Group);var s=e.extend({type:"pie",init:function(){var u=new t.Group;this._sectorGroup=u},render:function(u,v,h,f){if(!(f&&f.from===this.uid)){var c=u.getData(),d=this._data,p=this.group,g=v.get("animation"),m=!d,y=u.get("animationType"),_=u.get("animationTypeUpdate"),x=r.curry(a,this.uid,u,g,h),S=u.get("selectedMode");if(c.diff(d).add(function(C){var M=new n(c,C);m&&y!=="scale"&&M.eachChild(function(L){L.stopAnimation(!0)}),S&&M.on("click",x),c.setItemGraphicEl(C,M),p.add(M)}).update(function(C,M){var L=d.getItemGraphicEl(M);!m&&_!=="transition"&&L.eachChild(function(D){D.stopAnimation(!0)}),L.updateData(c,C),L.off("click"),S&&L.on("click",x),p.add(L),c.setItemGraphicEl(C,L)}).remove(function(C){var M=d.getItemGraphicEl(C);p.remove(M)}).execute(),g&&c.count()>0&&(m?y!=="scale":_!=="transition")){for(var b=c.getItemLayout(0),w=1;isNaN(b.startAngle)&&w<c.count();++w)b=c.getItemLayout(w);var A=Math.max(h.getWidth(),h.getHeight())/2,T=r.bind(p.removeClipPath,p);p.setClipPath(this._createClipPath(b.cx,b.cy,A,b.startAngle,b.clockwise,T,u,m))}else p.removeClipPath();this._data=c}},dispose:function(){},_createClipPath:function(u,v,h,f,c,d,p,g){var m=new t.Sector({shape:{cx:u,cy:v,r0:0,r:h,startAngle:f,endAngle:f,clockwise:c}}),y=g?t.initProps:t.updateProps;return y(m,{shape:{endAngle:f+(c?1:-1)*Math.PI*2}},p,d),m},containPoint:function(u,v){var h=v.getData(),f=h.getItemLayout(0);if(f){var c=u[0]-f.cx,d=u[1]-f.cy,p=Math.sqrt(c*c+d*d);return p<=f.r&&p>=f.r0}}}),l=s;return R1=l,R1}var E1,fB;function v$(){if(fB)return E1;fB=1;var r=Pe(),t=ie();function e(a,i){t.each(i,function(n){n.update="updateView",r.registerAction(n,function(o,s){var l={};return s.eachComponent({mainType:"series",subType:a,query:o},function(u){u[n.method]&&u[n.method](o.name,o.dataIndex);var v=u.getData();v.each(function(h){var f=v.getName(h);l[f]=u.isSelected(f)||!1})}),{name:o.name,selected:l,seriesId:o.seriesId}})})}return E1=e,E1}var k1,cB;function _g(){if(cB)return k1;cB=1;var r=ie(),t=r.createHashMap;function e(a){return{getTargetSeries:function(i){var n={},o=t();return i.eachSeriesByType(a,function(s){s.__paletteScope=n,o.set(s.uid,s)}),o},reset:function(i,n){var o=i.getRawData(),s={},l=i.getData();l.each(function(u){var v=l.getRawIndex(u);s[v]=u}),o.each(function(u){var v=s[u],h=v!=null&&l.getItemVisual(v,"color",!0),f=v!=null&&l.getItemVisual(v,"borderColor",!0),c;if((!h||!f)&&(c=o.getItemModel(u)),!h){var d=c.get("itemStyle.color")||i.getColorFromPalette(o.getName(u)||u+"",i.__paletteScope,o.count());v!=null&&l.setItemVisual(v,"color",d)}if(!f){var p=c.get("itemStyle.borderColor");v!=null&&l.setItemVisual(v,"borderColor",p)}})}}}return k1=e,k1}var O1,dB;function Ege(){if(dB)return O1;dB=1;var r=Da(),t=st(),e=t.parsePercent,a=Math.PI/180;function i(l,u,v,h,f,c,d,p,g,m){l.sort(function(L,D){return L.y-D.y});function y(L,D,P,I){for(var R=L;R<D&&!(l[R].y+P>g+d);R++)if(l[R].y+=P,R>L&&R+1<D&&l[R+1].y>l[R].y+l[R].height){_(R,P/2);return}_(D-1,P/2)}function _(L,D){for(var P=L;P>=0&&!(l[P].y-D<g||(l[P].y-=D,P>0&&l[P].y>l[P-1].y+l[P-1].height));P--);}function x(L,D,P,I,R,E){for(var k=(E>0,D?Number.MAX_VALUE:0),B=0,F=L.length;B<F;B++)if(L[B].labelAlignTo==="none"){var V=Math.abs(L[B].y-I),N=L[B].len,O=L[B].len2,z=V<R+N?Math.sqrt((R+N+O)*(R+N+O)-V*V):Math.abs(L[B].x-P);D&&z>=k&&(z=k-10),!D&&z<=k&&(z=k+10),L[B].x=P+z*E,k=z}}for(var S=0,b,w=l.length,A=[],T=[],C=0;C<w;C++){if(l[C].position==="outer"&&l[C].labelAlignTo==="labelLine"){var M=l[C].x-m;l[C].linePoints[1][0]+=M,l[C].x=m}b=l[C].y-S,b<0&&y(C,w,-b),S=l[C].y+l[C].height}d-S<0&&_(w-1,S-d);for(var C=0;C<w;C++)l[C].y>=v?T.push(l[C]):A.push(l[C]);x(A,!1,u,v,h,f),x(T,!0,u,v,h,f)}function n(l,u,v,h,f,c,d,p){for(var g=[],m=[],y=Number.MAX_VALUE,_=-Number.MAX_VALUE,x=0;x<l.length;x++)o(l[x])||(l[x].x<u?(y=Math.min(y,l[x].x),g.push(l[x])):(_=Math.max(_,l[x].x),m.push(l[x])));i(m,u,v,h,1,f,c,d,p,_),i(g,u,v,h,-1,f,c,d,p,y);for(var x=0;x<l.length;x++){var S=l[x];if(!o(S)){var b=S.linePoints;if(b){var w=S.labelAlignTo==="edge",A=S.textRect.width,T;w?S.x<u?T=b[2][0]-S.labelDistance-d-S.labelMargin:T=d+f-S.labelMargin-b[2][0]-S.labelDistance:S.x<u?T=S.x-d-S.bleedMargin:T=d+f-S.x-S.bleedMargin,T<S.textRect.width&&(S.text=r.truncateText(S.text,T,S.font),S.labelAlignTo==="edge"&&(A=r.getWidth(S.text,S.font)));var C=b[1][0]-b[2][0];w?S.x<u?b[2][0]=d+S.labelMargin+A+S.labelDistance:b[2][0]=d+f-S.labelMargin-A-S.labelDistance:(S.x<u?b[2][0]=S.x+S.labelDistance:b[2][0]=S.x-S.labelDistance,b[1][0]=b[2][0]+C),b[1][1]=b[2][1]=S.y}}}}function o(l){return l.position==="center"}function s(l,u,v,h,f,c){var d=l.getData(),p=[],g,m,y=!1,_=(l.get("minShowLabelAngle")||0)*a;d.each(function(x){var S=d.getItemLayout(x),b=d.getItemModel(x),w=b.getModel("label"),A=w.get("position")||b.get("emphasis.label.position"),T=w.get("distanceToLabelLine"),C=w.get("alignTo"),M=e(w.get("margin"),v),L=w.get("bleedMargin"),D=w.getFont(),P=b.getModel("labelLine"),I=P.get("length");I=e(I,v);var R=P.get("length2");if(R=e(R,v),!(S.angle<_)){var E=(S.startAngle+S.endAngle)/2,k=Math.cos(E),B=Math.sin(E),F,V,N,O;g=S.cx,m=S.cy;var z=l.getFormattedLabel(x,"normal")||d.getName(x),G=r.getBoundingRect(z,D,O,"top"),q=A==="inside"||A==="inner";if(A==="center")F=S.cx,V=S.cy,O="center";else{var H=(q?(S.r+S.r0)/2*k:S.r*k)+g,U=(q?(S.r+S.r0)/2*B:S.r*B)+m;if(F=H+k*3,V=U+B*3,!q){var W=H+k*(I+u-S.r),Y=U+B*(I+u-S.r),X=W+(k<0?-1:1)*R,K=Y;C==="edge"?F=k<0?f+M:f+v-M:F=X+(k<0?-T:T),V=K,N=[[H,U],[W,Y],[X,K]]}O=q?"center":C==="edge"?k>0?"right":"left":k>0?"left":"right"}var Q,j=w.get("rotate");typeof j=="number"?Q=j*(Math.PI/180):Q=j?k<0?-E+Math.PI:-E:0,y=!!Q,S.label={x:F,y:V,position:A,height:G.height,len:I,len2:R,linePoints:N,textAlign:O,verticalAlign:"middle",rotation:Q,inside:q,labelDistance:T,labelAlignTo:C,labelMargin:M,bleedMargin:L,textRect:G,text:z,font:D},q||p.push(S.label)}}),!y&&l.get("avoidLabelOverlap")&&n(p,g,m,u,v,h,f,c)}return O1=s,O1}var N1,pB;function kge(){if(pB)return N1;pB=1;var r=st(),t=r.parsePercent,e=r.linearMap,a=Ut(),i=Ege(),n=ie(),o=Math.PI*2,s=Math.PI/180;function l(v,h){return a.getLayoutRect(v.getBoxLayoutParams(),{width:h.getWidth(),height:h.getHeight()})}function u(v,h,f,c){h.eachSeriesByType(v,function(d){var p=d.getData(),g=p.mapDimension("value"),m=l(d,f),y=d.get("center"),_=d.get("radius");n.isArray(_)||(_=[0,_]),n.isArray(y)||(y=[y,y]);var x=t(m.width,f.getWidth()),S=t(m.height,f.getHeight()),b=Math.min(x,S),w=t(y[0],x)+m.x,A=t(y[1],S)+m.y,T=t(_[0],b/2),C=t(_[1],b/2),M=-d.get("startAngle")*s,L=d.get("minAngle")*s,D=0;p.each(g,function(G){!isNaN(G)&&D++});var P=p.getSum(g),I=Math.PI/(P||D)*2,R=d.get("clockwise"),E=d.get("roseType"),k=d.get("stillShowZeroSum"),B=p.getDataExtent(g);B[0]=0;var F=o,V=0,N=M,O=R?1:-1;if(p.each(g,function(G,q){var H;if(isNaN(G)){p.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:R,cx:w,cy:A,r0:T,r:E?NaN:C,viewRect:m});return}E!=="area"?H=P===0&&k?I:G*I:H=o/D,H<L?(H=L,F-=L):V+=G;var U=N+O*H;p.setItemLayout(q,{angle:H,startAngle:N,endAngle:U,clockwise:R,cx:w,cy:A,r0:T,r:E?e(G,B,[T,C]):C,viewRect:m}),N=U}),F<o&&D)if(F<=.001){var z=o/D;p.each(g,function(G,q){if(!isNaN(G)){var H=p.getItemLayout(q);H.angle=z,H.startAngle=M+O*q*z,H.endAngle=M+O*(q+1)*z}})}else I=F/V,N=M,p.each(g,function(G,q){if(!isNaN(G)){var H=p.getItemLayout(q),U=H.angle===L?L:G*I;H.startAngle=N,H.endAngle=N+O*U,N+=O*U}});i(d,C,m.width,m.height,m.x,m.y)})}return N1=u,N1}var z1,gB;function _f(){if(gB)return z1;gB=1;function r(t){return{seriesType:t,reset:function(e,a){var i=a.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(o){for(var s=n.getName(o),l=0;l<i.length;l++)if(!i[l].isSelected(s))return!1;return!0})}}}}return z1=r,z1}var mB;function Oge(){if(mB)return oB;mB=1;var r=Pe(),t=ie();Pge(),Rge();var e=v$(),a=_g(),i=kge(),n=_f();return e("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisual(a("pie")),r.registerLayout(t.curry(i,"pie")),r.registerProcessor(n("pie")),oB}var yB={},B1,_B;function Nge(){if(_B)return B1;_B=1;var r=In(),t=Ir(),e=t.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(a,i){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var a=this.option.progressive;return a==null?this.option.large?5e3:this.get("progressive"):a},getProgressiveThreshold:function(){var a=this.option.progressiveThreshold;return a==null?this.option.large?1e4:this.get("progressiveThreshold"):a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});return B1=e,B1}var xB={},V1,SB;function zge(){if(SB)return V1;SB=1;var r=qe(),t=ti(),e=t.createSymbol,a=rD(),i=4,n=r.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(u,v){var h=v.points,f=v.size,c=this.symbolProxy,d=c.shape,p=u.getContext?u.getContext():u,g=p&&f[0]<i;if(!g)for(var m=0;m<h.length;){var y=h[m++],_=h[m++];isNaN(y)||isNaN(_)||this.softClipShape&&!this.softClipShape.contain(y,_)||(d.x=y-f[0]/2,d.y=_-f[1]/2,d.width=f[0],d.height=f[1],c.buildPath(u,d,!0))}},afterBrush:function(u){var v=this.shape,h=v.points,f=v.size,c=f[0]<i;if(c){this.setTransform(u);for(var d=0;d<h.length;){var p=h[d++],g=h[d++];isNaN(p)||isNaN(g)||this.softClipShape&&!this.softClipShape.contain(p,g)||u.fillRect(p-f[0]/2,g-f[1]/2,f[0],f[1])}this.restoreTransform(u)}},findDataIndex:function(u,v){for(var h=this.shape,f=h.points,c=h.size,d=Math.max(c[0],4),p=Math.max(c[1],4),g=f.length/2-1;g>=0;g--){var m=g*2,y=f[m]-d/2,_=f[m+1]-p/2;if(u>=y&&v>=_&&u<=y+d&&v<=_+p)return g}return-1}});function o(){this.group=new r.Group}var s=o.prototype;s.isPersistent=function(){return!this._incremental},s.updateData=function(u,v){this.group.removeAll();var h=new n({rectHover:!0,cursor:"default"});h.setShape({points:u.getLayout("symbolPoints")}),this._setCommon(h,u,!1,v),this.group.add(h),this._incremental=null},s.updateLayout=function(u){if(!this._incremental){var v=u.getLayout("symbolPoints");this.group.eachChild(function(h){if(h.startIndex!=null){var f=(h.endIndex-h.startIndex)*2,c=h.startIndex*4*2;v=new Float32Array(v.buffer,c,f)}h.setShape("points",v)})}},s.incrementalPrepareUpdate=function(u){this.group.removeAll(),this._clearIncremental(),u.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},s.incrementalUpdate=function(u,v,h){var f;this._incremental?(f=new n,this._incremental.addDisplayable(f,!0)):(f=new n({rectHover:!0,cursor:"default",startIndex:u.start,endIndex:u.end}),f.incremental=!0,this.group.add(f)),f.setShape({points:v.getLayout("symbolPoints")}),this._setCommon(f,v,!!this._incremental,h)},s._setCommon=function(u,v,h,f){var c=v.hostModel;f=f||{};var d=v.getVisual("symbolSize");u.setShape("size",d instanceof Array?d:[d,d]),u.softClipShape=f.clipShape||null,u.symbolProxy=e(v.getVisual("symbol"),0,0,0,0),u.setColor=u.symbolProxy.setColor;var p=u.shape.size[0]<i;u.useStyle(c.getModel("itemStyle").getItemStyle(p?["color","shadowBlur","shadowColor"]:["color"]));var g=v.getVisual("color");g&&u.setColor(g),h||(u.seriesIndex=c.seriesIndex,u.on("mousemove",function(m){u.dataIndex=null;var y=u.findDataIndex(m.offsetX,m.offsetY);y>=0&&(u.dataIndex=y+(u.startIndex||0))}))},s.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},s._clearIncremental=function(){var u=this._incremental;u&&u.clearDisplaybles()};var l=o;return V1=l,V1}var bB;function Bge(){if(bB)return xB;bB=1;var r=Pe(),t=df(),e=zge(),a=gf();return r.extendChartView({type:"scatter",render:function(i,n,o){var s=i.getData(),l=this._updateSymbolDraw(s,i);l.updateData(s,{clipShape:this._getClipShape(i)}),this._finished=!0},incrementalPrepareRender:function(i,n,o){var s=i.getData(),l=this._updateSymbolDraw(s,i);l.incrementalPrepareUpdate(s),this._finished=!1},incrementalRender:function(i,n,o){this._symbolDraw.incrementalUpdate(i,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=i.end===n.getData().count()},updateTransform:function(i,n,o){var s=i.getData();if(this.group.dirty(),!this._finished||s.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var l=a().reset(i);l.progress&&l.progress({start:0,end:s.count()},s),this._symbolDraw.updateLayout(s)},_getClipShape:function(i){var n=i.coordinateSystem,o=n&&n.getArea&&n.getArea();return i.get("clip",!0)?o:null},_updateSymbolDraw:function(i,n){var o=this._symbolDraw,s=n.pipelineContext,l=s.large;return(!o||l!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=l?new e:new t,this._isLargeDraw=l,this.group.removeAll()),this.group.add(o.group),o},remove:function(i,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),xB}var wB;function Vge(){if(wB)return yB;wB=1;var r=Pe();Nge(),Bge();var t=Xs(),e=gf();return mf(),r.registerVisual(t("scatter","circle")),r.registerLayout(e("scatter")),yB}var TB={},AB={},G1,CB;function Gge(){if(CB)return G1;CB=1;var r=ie(),t=So();function e(i,n,o){t.call(this,i,n,o),this.type="value",this.angle=0,this.name="",this.model}r.inherits(e,t);var a=e;return G1=a,G1}var F1,MB;function Fge(){if(MB)return F1;MB=1;var r=ie(),t=Gge(),e=dg(),a=st(),i=wi(),n=i.getScaleExtent,o=i.niceScaleExtent,s=bi(),l=Q9();function u(h,f,c){this._model=h,this.dimensions=[],this._indicatorAxes=r.map(h.getIndicatorModels(),function(d,p){var g="indicator_"+p,m=new t(g,d.get("axisType")==="log"?new l:new e);return m.name=d.get("name"),m.model=d,d.axis=m,this.dimensions.push(g),m},this),this.resize(h,c),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(h,f){var c=this._indicatorAxes[f];return this.coordToPoint(c.dataToCoord(h),f)},u.prototype.coordToPoint=function(h,f){var c=this._indicatorAxes[f],d=c.angle,p=this.cx+h*Math.cos(d),g=this.cy-h*Math.sin(d);return[p,g]},u.prototype.pointToData=function(h){var f=h[0]-this.cx,c=h[1]-this.cy,d=Math.sqrt(f*f+c*c);f/=d,c/=d;for(var p=Math.atan2(-c,f),g=1/0,m,y=-1,_=0;_<this._indicatorAxes.length;_++){var x=this._indicatorAxes[_],S=Math.abs(p-x.angle);S<g&&(m=x,y=_,g=S)}return[y,+(m&&m.coordToData(d))]},u.prototype.resize=function(h,f){var c=h.get("center"),d=f.getWidth(),p=f.getHeight(),g=Math.min(d,p)/2;this.cx=a.parsePercent(c[0],d),this.cy=a.parsePercent(c[1],p),this.startAngle=h.get("startAngle")*Math.PI/180;var m=h.get("radius");(typeof m=="string"||typeof m=="number")&&(m=[0,m]),this.r0=a.parsePercent(m[0],g),this.r=a.parsePercent(m[1],g),r.each(this._indicatorAxes,function(y,_){y.setExtent(this.r0,this.r);var x=this.startAngle+_*Math.PI*2/this._indicatorAxes.length;x=Math.atan2(Math.sin(x),Math.cos(x)),y.angle=x},this)},u.prototype.update=function(h,f){var c=this._indicatorAxes,d=this._model;r.each(c,function(m){m.scale.setExtent(1/0,-1/0)}),h.eachSeriesByType("radar",function(m,y){if(!(m.get("coordinateSystem")!=="radar"||h.getComponent("radar",m.get("radarIndex"))!==d)){var _=m.getData();r.each(c,function(x){x.scale.unionExtentFromData(_,_.mapDimension(x.dim))})}},this);var p=d.get("splitNumber");function g(m){var y=Math.pow(10,Math.floor(Math.log(m)/Math.LN10)),_=m/y;return _===2?_=5:_*=2,_*y}r.each(c,function(m,y){var _=n(m.scale,m.model).extent;o(m.scale,m.model);var x=m.model,S=m.scale,b=x.getMin(),w=x.getMax(),A=S.getInterval();if(b!=null&&w!=null)S.setExtent(+b,+w),S.setInterval((w-b)/p);else if(b!=null){var T;do T=b+A*p,S.setExtent(+b,T),S.setInterval(A),A=g(A);while(T<_[1]&&isFinite(T)&&isFinite(_[1]))}else if(w!=null){var C;do C=w-A*p,S.setExtent(C,+w),S.setInterval(A),A=g(A);while(C>_[0]&&isFinite(C)&&isFinite(_[0]))}else{var M=S.getTicks().length-1;M>p&&(A=g(A));var T=Math.ceil(_[1]/A)*A,C=a.round(T-A*p);S.setExtent(C,T),S.setInterval(A)}})},u.dimensions=[],u.create=function(h,f){var c=[];return h.eachComponent("radar",function(d){var p=new u(d,h,f);c.push(p),d.coordinateSystem=p}),h.eachSeriesByType("radar",function(d){d.get("coordinateSystem")==="radar"&&(d.coordinateSystem=c[d.get("radarIndex")||0])}),c},s.register("radar",u);var v=u;return F1=v,F1}var H1,DB;function Hge(){if(DB)return H1;DB=1;var r=Pe(),t=ie(),e=i$(),a=gr(),i=Du(),n=e.valueAxis;function o(u,v){return t.defaults({show:v},u)}var s=r.extendComponentModel({type:"radar",optionUpdated:function(){var u=this.get("boundaryGap"),v=this.get("splitNumber"),h=this.get("scale"),f=this.get("axisLine"),c=this.get("axisTick"),d=this.get("axisType"),p=this.get("axisLabel"),g=this.get("name"),m=this.get("name.show"),y=this.get("name.formatter"),_=this.get("nameGap"),x=this.get("triggerEvent"),S=t.map(this.get("indicator")||[],function(b){b.max!=null&&b.max>0&&!b.min?b.min=0:b.min!=null&&b.min<0&&!b.max&&(b.max=0);var w=g;if(b.color!=null&&(w=t.defaults({color:b.color},g)),b=t.merge(t.clone(b),{boundaryGap:u,splitNumber:v,scale:h,axisLine:f,axisTick:c,axisType:d,axisLabel:p,name:b.text,nameLocation:"end",nameGap:_,nameTextStyle:w,triggerEvent:x},!1),m||(b.name=""),typeof y=="string"){var A=b.name;b.name=y.replace("{value}",A!=null?A:"")}else typeof y=="function"&&(b.name=y(b.name,b));var T=t.extend(new a(b,null,this.ecModel),i);return T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this.getIndicatorModels=function(){return S}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:t.merge({lineStyle:{color:"#bbb"}},n.axisLine),axisLabel:o(n.axisLabel,!1),axisTick:o(n.axisTick,!1),axisType:"interval",splitLine:o(n.splitLine,!0),splitArea:o(n.splitArea,!0),indicator:[]}}),l=s;return H1=l,H1}var q1,LB;function qge(){if(LB)return q1;LB=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=bo(),i=qe(),n=["axisLine","axisTickLabel","axisName"],o=t.extendComponentView({type:"radar",render:function(s,l,u){var v=this.group;v.removeAll(),this._buildAxes(s),this._buildSplitLineAndArea(s)},_buildAxes:function(s){var l=s.coordinateSystem,u=l.getIndicatorAxes(),v=e.map(u,function(h){var f=new a(h.model,{position:[l.cx,l.cy],rotation:h.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return f});e.each(v,function(h){e.each(n,h.add,h),this.group.add(h.getGroup())},this)},_buildSplitLineAndArea:function(s){var l=s.coordinateSystem,u=l.getIndicatorAxes();if(!u.length)return;var v=s.get("shape"),h=s.getModel("splitLine"),f=s.getModel("splitArea"),c=h.getModel("lineStyle"),d=f.getModel("areaStyle"),p=h.get("show"),g=f.get("show"),m=c.get("color"),y=d.get("color");m=e.isArray(m)?m:[m],y=e.isArray(y)?y:[y];var _=[],x=[];function S(k,B,F){var V=F%B.length;return k[V]=k[V]||[],V}if(v==="circle")for(var b=u[0].getTicksCoords(),w=l.cx,A=l.cy,T=0;T<b.length;T++){if(p){var C=S(_,m,T);_[C].push(new i.Circle({shape:{cx:w,cy:A,r:b[T].coord}}))}if(g&&T<b.length-1){var C=S(x,y,T);x[C].push(new i.Ring({shape:{cx:w,cy:A,r0:b[T].coord,r:b[T+1].coord}}))}}else for(var M,L=e.map(u,function(k,B){var F=k.getTicksCoords();return M=M==null?F.length-1:Math.min(F.length-1,M),e.map(F,function(V){return l.coordToPoint(V.coord,B)})}),D=[],T=0;T<=M;T++){for(var P=[],I=0;I<u.length;I++)P.push(L[I][T]);if(P[0]&&P.push(P[0].slice()),p){var C=S(_,m,T);_[C].push(new i.Polyline({shape:{points:P}}))}if(g&&D){var C=S(x,y,T-1);x[C].push(new i.Polygon({shape:{points:P.concat(D)}}))}D=P.slice().reverse()}var R=c.getLineStyle(),E=d.getAreaStyle();e.each(x,function(k,B){this.group.add(i.mergePath(k,{style:e.defaults({stroke:"none",fill:y[B%y.length]},E),silent:!0}))},this),e.each(_,function(k,B){this.group.add(i.mergePath(k,{style:e.defaults({fill:"none",stroke:m[B%m.length]},R),silent:!0}))},this)}});return q1=o,q1}var IB;function Wge(){return IB||(IB=1,Fge(),Hge(),qge()),AB}var W1,PB;function Uge(){if(PB)return W1;PB=1;var r=Ir(),t=Lu(),e=ie(),a=Yt(),i=a.encodeHTML,n=yf(),o=r.extend({type:"series.radar",dependencies:["radar"],init:function(l){o.superApply(this,"init",arguments),this.legendVisualProvider=new n(e.bind(this.getData,this),e.bind(this.getRawData,this))},getInitialData:function(l,u){return t(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(l,u,v,h){var f=this.getData(),c=this.coordinateSystem,d=c.getIndicatorAxes(),p=this.getData().getName(l),g=h==="html"?"<br/>":"\n";return i(p===""?this.name:p)+g+e.map(d,function(m,y){var _=f.get(f.mapDimension(m.dim),l);return i(m.name+" : "+_)}).join(g)},getTooltipPosition:function(l){if(l!=null){for(var u=this.getData(),v=this.coordinateSystem,h=u.getValues(e.map(v.dimensions,function(p){return u.mapDimension(p)}),l,!0),f=0,c=h.length;f<c;f++)if(!isNaN(h[f])){var d=v.getIndicatorAxes();return v.coordToPoint(d[f].dataToCoord(h[f]),f)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),s=o;return W1=s,W1}var U1,RB;function $ge(){if(RB)return U1;RB=1;var r=Pe(),t=qe(),e=ie(),a=ti();function i(o){return e.isArray(o)||(o=[+o,+o]),o}var n=r.extendChartView({type:"radar",render:function(o,s,l){var u=o.coordinateSystem,v=this.group,h=o.getData(),f=this._data;function c(g,m){var y=g.getItemVisual(m,"symbol")||"circle",_=g.getItemVisual(m,"color");if(y!=="none"){var x=i(g.getItemVisual(m,"symbolSize")),S=a.createSymbol(y,-1,-1,2,2,_),b=g.getItemVisual(m,"symbolRotate")||0;return S.attr({style:{strokeNoScale:!0},z2:100,scale:[x[0]/2,x[1]/2],rotation:b*Math.PI/180||0}),S}}function d(g,m,y,_,x,S){y.removeAll();for(var b=0;b<m.length-1;b++){var w=c(_,x);w&&(w.__dimIdx=b,g[b]?(w.attr("position",g[b]),t[S?"initProps":"updateProps"](w,{position:m[b]},o,x)):w.attr("position",m[b]),y.add(w))}}function p(g){return e.map(g,function(m){return[u.cx,u.cy]})}h.diff(f).add(function(g){var m=h.getItemLayout(g);if(m){var y=new t.Polygon,_=new t.Polyline,x={shape:{points:m}};y.shape.points=p(m),_.shape.points=p(m),t.initProps(y,x,o,g),t.initProps(_,x,o,g);var S=new t.Group,b=new t.Group;S.add(_),S.add(y),S.add(b),d(_.shape.points,m,b,h,g,!0),h.setItemGraphicEl(g,S)}}).update(function(g,m){var y=f.getItemGraphicEl(m),_=y.childAt(0),x=y.childAt(1),S=y.childAt(2),b={shape:{points:h.getItemLayout(g)}};b.shape.points&&(d(_.shape.points,b.shape.points,S,h,g,!1),t.updateProps(_,b,o),t.updateProps(x,b,o),h.setItemGraphicEl(g,y))}).remove(function(g){v.remove(f.getItemGraphicEl(g))}).execute(),h.eachItemGraphicEl(function(g,m){var y=h.getItemModel(m),_=g.childAt(0),x=g.childAt(1),S=g.childAt(2),b=h.getItemVisual(m,"color");v.add(g),_.useStyle(e.defaults(y.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),_.hoverStyle=y.getModel("emphasis.lineStyle").getLineStyle();var w=y.getModel("areaStyle"),A=y.getModel("emphasis.areaStyle"),T=w.isEmpty()&&w.parentModel.isEmpty(),C=A.isEmpty()&&A.parentModel.isEmpty();C=C&&T,x.ignore=T,x.useStyle(e.defaults(w.getAreaStyle(),{fill:b,opacity:.7})),x.hoverStyle=A.getAreaStyle();var M=y.getModel("itemStyle").getItemStyle(["color"]),L=y.getModel("emphasis.itemStyle").getItemStyle(),D=y.getModel("label"),P=y.getModel("emphasis.label");S.eachChild(function(I){I.setStyle(M),I.hoverStyle=e.clone(L);var R=h.get(h.dimensions[I.__dimIdx],m);(R==null||isNaN(R))&&(R=""),t.setLabelStyle(I.style,I.hoverStyle,D,P,{labelFetcher:h.hostModel,labelDataIndex:m,labelDimIndex:I.__dimIdx,defaultText:R,autoColor:b,isRectText:!0})}),g.highDownOnUpdate=function(I,R){x.attr("ignore",R==="emphasis"?C:T)},t.setHoverStyle(g)}),this._data=h},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});return U1=n,U1}var $1,EB;function Yge(){if(EB)return $1;EB=1;var r=ie();function t(i){i.eachSeriesByType("radar",function(n){var o=n.getData(),s=[],l=n.coordinateSystem;if(l){var u=l.getIndicatorAxes();r.each(u,function(v,h){o.each(o.mapDimension(u[h].dim),function(f,c){s[c]=s[c]||[];var d=l.dataToPoint(f,h);s[c][h]=e(d)?d:a(l)})}),o.each(function(v){var h=r.find(s[v],function(f){return e(f)})||a(l);s[v].push(h.slice()),o.setItemLayout(v,s[v])})}})}function e(i){return!isNaN(i[0])&&!isNaN(i[1])}function a(i){return[i.cx,i.cy]}return $1=t,$1}var Y1,kB;function Zge(){if(kB)return Y1;kB=1;var r=ie();function t(e){var a=e.polar;if(a){r.isArray(a)||(a=[a]);var i=[];r.each(a,function(n,o){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],r.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):i.push(n)}),e.polar=i}r.each(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}return Y1=t,Y1}var OB;function Xge(){if(OB)return TB;OB=1;var r=Pe();Wge(),Uge(),$ge();var t=_g(),e=Xs(),a=Yge(),i=_f(),n=Zge();return r.registerVisual(t("radar")),r.registerVisual(e("radar","circle")),r.registerLayout(a),r.registerProcessor(i("radar")),r.registerPreprocessor(n),TB}var NB={},Z1,zB;function Kge(){if(zB)return Z1;zB=1;for(var r=ie(),t=J9(),e=[126,25],a=[[[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]]],i=0;i<a.length;i++)for(var n=0;n<a[i].length;n++)a[i][n][0]/=10.5,a[i][n][1]/=-10.5/.75,a[i][n][0]+=e[0],a[i][n][1]+=e[1];function o(s,l){s==="china"&&l.push(new t("南海诸岛",r.map(a,function(u){return{type:"polygon",exterior:u}}),e))}return Z1=o,Z1}var X1,BB;function Qge(){if(BB)return X1;BB=1;var r={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function t(e,a){if(e==="china"){var i=r[a.name];if(i){var n=a.center;n[0]+=i[0]/10.5,n[1]+=-i[1]/(10.5/.75)}}}return X1=t,X1}var K1,VB;function jge(){if(VB)return K1;VB=1;var r={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function t(e,a){if(e==="world"){var i=r[a.name];if(i){var n=a.center;n[0]=i[0],n[1]=i[1]}}}return K1=t,K1}var Q1,GB;function Jge(){if(GB)return Q1;GB=1;var r=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function t(e,a){e==="china"&&a.name==="台湾"&&a.geometries.push({type:"polygon",exterior:r[0]})}return Q1=t,Q1}var j1,FB;function eme(){if(FB)return j1;FB=1;var r=ie(),t=r.each,e=e$(),a=_t(),i=a.makeInner,n=Kge(),o=Qge(),s=jge(),l=Jge(),u=i(),v={load:function(f,c,d){var p=u(c).parsed;if(p)return p;var g=c.specialAreas||{},m=c.geoJSON,y;try{y=m?e(m,d):[]}catch(_){throw new Error("Invalid geoJson format\n"+_.message)}return n(f,y),t(y,function(_){var x=_.name;o(f,_),s(f,_),l(f,_);var S=g[x];S&&_.transformTo(S.left,S.top,S.width,S.height)}),u(c).parsed={regions:y,boundingRect:h(y)}}};function h(f){for(var c,d=0;d<f.length;d++){var p=f[d].getBoundingRect();c=c||p.clone(),c.union(p)}return c}return j1=v,j1}var J1,HB;function tme(){if(HB)return J1;HB=1;var r=$9(),t=r.parseSVG,e=r.makeViewBoxTransform,a=Us(),i=eD(),n=ie(),o=n.assert,s=n.createHashMap,l=rr(),u=_t(),v=u.makeInner,h=v(),f={load:function(d,p){var g=h(p).originRoot;if(g)return{root:g,boundingRect:h(p).boundingRect};var m=c(p);return h(p).originRoot=m.root,h(p).boundingRect=m.boundingRect,m},makeGraphic:function(d,p,g){var m=h(p),y=m.rootMap||(m.rootMap=s()),_=y.get(g);if(_)return _;var x=m.originRoot,S=m.boundingRect;return m.originRootHostKey?_=c(p,S).root:(m.originRootHostKey=g,_=x),y.set(g,_)},removeGraphic:function(d,p,g){var m=h(p),y=m.rootMap;y&&y.removeKey(g),g===m.originRootHostKey&&(m.originRootHostKey=null)}};function c(d,p){var g=d.svgXML,m,y;try{m=g&&t(g,{ignoreViewBox:!0,ignoreRootClip:!0})||{},y=m.root,o(y!=null)}catch(A){throw new Error("Invalid svg format\n"+A.message)}var _=m.width,x=m.height,S=m.viewBoxRect;if(p||(p=_==null||x==null?y.getBoundingRect():new l(0,0,0,0),_!=null&&(p.width=_),x!=null&&(p.height=x)),S){var b=e(S,p.width,p.height),w=y;y=new a,y.add(w),w.scale=b.scale,w.position=b.position}return y.setClipPath(new i({shape:p.plain()})),{root:y,boundingRect:p}}return J1=f,J1}var ex,qB;function xg(){if(qB)return ex;qB=1;var r=It();r.__DEV__;var t=ie(),e=t.each,a=t.createHashMap,i=nD(),n=eme(),o=tme(),s=rr(),l={geoJSON:n,svg:o},u={load:function(f,c,d){var p=[],g=a(),m=a(),y,_=h(f);return e(_,function(x){var S=l[x.type].load(f,x,d);e(S.regions,function(w){var A=w.name;c&&c.hasOwnProperty(A)&&(w=w.cloneShallow(A=c[A])),p.push(w),g.set(A,w),m.set(A,w.center)});var b=S.boundingRect;b&&(y?y.union(b):y=b.clone())}),{regions:p,regionsMap:g,nameCoordMap:m,boundingRect:y||new s(0,0,0,0)}},makeGraphic:v("makeGraphic"),removeGraphic:v("removeGraphic")};function v(f){return function(c,d){var p=h(c),g=[];return e(p,function(m){var y=l[m.type][f];y&&g.push(y(c,m,d))}),g}}function h(f){var c=i.retrieveMap(f)||[];return c}return ex=u,ex}var tx,WB;function rme(){if(WB)return tx;WB=1;var r=ie(),t=Lu(),e=Ir(),a=Yt(),i=a.encodeHTML,n=a.addCommas,o=lD(),s=Ys(),l=s.retrieveRawAttr,u=xg(),v=Ln(),h=v.makeSeriesEncodeForNameBased,f=e.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(d){for(var p=t(this,{coordDimensions:["value"],encodeDefaulter:r.curry(h,this)}),g=p.mapDimension("value"),m=r.createHashMap(),y=[],_=[],x=0,S=p.count();x<S;x++){var b=p.getName(x);m.set(b,!0),y.push({name:b,value:p.get(g,x),selected:l(p,x,"selected")})}var w=u.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return r.each(w.regions,function(A){var T=A.name;m.get(T)||(y.push({name:T}),_.push(T))}),this.updateSelectedMap(y),p.appendValues([],_),p},getHostGeoModel:function(){var d=this.option.geoIndex;return d!=null?this.dependentModels.geo[d]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(d){var p=this.getData();return p.get(p.mapDimension("value"),d)},getRegionModel:function(d){var p=this.getData();return p.getItemModel(p.indexOfName(d))},formatTooltip:function(d,p,g,m){for(var y=this.getData(),_=n(this.getRawValue(d)),x=y.getName(d),S=this.seriesGroup,b=[],w=0;w<S.length;w++){var A=S[w].originalData.indexOfName(x),T=y.mapDimension("value");isNaN(S[w].originalData.get(T,A))||b.push(i(S[w].name))}var C=m==="html"?"<br/>":"\n";return b.join(", ")+C+i(x+" : "+_)},getTooltipPosition:function(d){if(d!=null){var p=this.getData().getName(d),g=this.coordinateSystem,m=g.getRegion(p);return m&&g.dataToPoint(m.center)}},setZoom:function(d){this.option.zoom=d},setCenter:function(d){this.option.center=d},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)"}},nameProperty:"name"}});r.mixin(f,o);var c=f;return tx=c,tx}var Sv={},UB;function h$(){if(UB)return Sv;UB=1;var r=Pe(),t="\0_ec_interaction_mutex";function e(o,s,l){var u=n(o);u[s]=l}function a(o,s,l){var u=n(o),v=u[s];v===l&&(u[s]=null)}function i(o,s){return!!n(o)[s]}function n(o){return o[t]||(o[t]={})}return r.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),Sv.take=e,Sv.release=a,Sv.isTaken=i,Sv}var rx,$B;function xf(){if($B)return rx;$B=1;var r=ie(),t=Ws(),e=Ji(),a=h$();function i(d){this.pointerChecker,this._zr=d,this._opt={};var p=r.bind,g=p(n,this),m=p(o,this),y=p(s,this),_=p(l,this),x=p(u,this);t.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,b){this.disable(),this._opt=r.defaults(r.clone(b)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(d.on("mousedown",g),d.on("mousemove",m),d.on("mouseup",y)),(S===!0||S==="scale"||S==="zoom")&&(d.on("mousewheel",_),d.on("pinch",x))},this.disable=function(){d.off("mousedown",g),d.off("mousemove",m),d.off("mouseup",y),d.off("mousewheel",_),d.off("pinch",x)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}r.mixin(i,t);function n(d){if(!(e.isMiddleOrRightButtonOnMouseUpDown(d)||d.target&&d.target.draggable)){var p=d.offsetX,g=d.offsetY;this.pointerChecker&&this.pointerChecker(d,p,g)&&(this._x=p,this._y=g,this._dragging=!0)}}function o(d){if(!(!this._dragging||!f("moveOnMouseMove",d,this._opt)||d.gestureEvent==="pinch"||a.isTaken(this._zr,"globalPan"))){var p=d.offsetX,g=d.offsetY,m=this._x,y=this._y,_=p-m,x=g-y;this._x=p,this._y=g,this._opt.preventDefaultMouseMove&&e.stop(d.event),h(this,"pan","moveOnMouseMove",d,{dx:_,dy:x,oldX:m,oldY:y,newX:p,newY:g})}}function s(d){e.isMiddleOrRightButtonOnMouseUpDown(d)||(this._dragging=!1)}function l(d){var p=f("zoomOnMouseWheel",d,this._opt),g=f("moveOnMouseWheel",d,this._opt),m=d.wheelDelta,y=Math.abs(m),_=d.offsetX,x=d.offsetY;if(!(m===0||!p&&!g)){if(p){var S=y>3?1.4:y>1?1.2:1.1,b=m>0?S:1/S;v(this,"zoom","zoomOnMouseWheel",d,{scale:b,originX:_,originY:x})}if(g){var w=Math.abs(m),A=(m>0?1:-1)*(w>3?.4:w>1?.15:.05);v(this,"scrollMove","moveOnMouseWheel",d,{scrollDelta:A,originX:_,originY:x})}}}function u(d){if(!a.isTaken(this._zr,"globalPan")){var p=d.pinchScale>1?1.1:1/1.1;v(this,"zoom",null,d,{scale:p,originX:d.pinchX,originY:d.pinchY})}}function v(d,p,g,m,y){d.pointerChecker&&d.pointerChecker(m,y.originX,y.originY)&&(e.stop(m.event),h(d,p,g,m,y))}function h(d,p,g,m,y){y.isAvailableBehavior=r.bind(f,null,g,m),d.trigger(p,y)}function f(d,p,g){var m=g[d];return!d||m&&(!r.isString(m)||p.event[m+"Key"])}var c=i;return rx=c,rx}var Rc={},YB;function uD(){if(YB)return Rc;YB=1;function r(e,a,i){var n=e.target,o=n.position;o[0]+=a,o[1]+=i,n.dirty()}function t(e,a,i,n){var o=e.target,s=e.zoomLimit,l=o.position,u=o.scale,v=e.zoom=e.zoom||1;if(v*=a,s){var h=s.min||0,f=s.max||1/0;v=Math.max(Math.min(f,v),h)}var c=v/e.zoom;e.zoom=v,l[0]-=(i-l[0])*(c-1),l[1]-=(n-l[1])*(c-1),u[0]*=c,u[1]*=c,o.dirty()}return Rc.updateViewOnPan=r,Rc.updateViewOnZoom=t,Rc}var ax={},ZB;function Sg(){if(ZB)return ax;ZB=1;var r={axisPointer:1,tooltip:1,brush:1};function t(e,a,i){var n=a.getComponentByElement(e.topTarget),o=n&&n.coordinateSystem;return n&&n!==i&&!r[n.mainType]&&o&&o.model!==i}return ax.onIrrelevantElement=t,ax}var ix,XB;function f$(){if(XB)return ix;XB=1;var r=ie(),t=xf(),e=uD(),a=Sg(),i=a.onIrrelevantElement,n=qe(),o=xg(),s=vf(),l=s.getUID,u=og();function v(p){var g=p.getItemStyle(),m=p.get("areaColor");return m!=null&&(g.fill=m),g}function h(p,g,m,y,_){m.off("click"),m.off("mousedown"),g.get("selectedMode")&&(m.on("mousedown",function(){p._mouseDownFlag=!0}),m.on("click",function(x){if(p._mouseDownFlag){p._mouseDownFlag=!1;for(var S=x.target;!S.__regions;)S=S.parent;if(S){var b={type:(g.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:r.map(S.__regions,function(w){return{name:w.name,from:_.uid}})};b[g.mainType+"Id"]=g.id,y.dispatchAction(b),f(g,m)}}}))}function f(p,g){g.eachChild(function(m){r.each(m.__regions,function(y){m.trigger(p.isSelected(y.name)?"emphasis":"normal")})})}function c(p,g){var m=new n.Group;this.uid=l("ec_map_draw"),this._controller=new t(p.getZr()),this._controllerHost={target:g?m:null},this.group=m,this._updateGroup=g,this._mouseDownFlag,this._mapName,this._initialized,m.add(this._regionsGroup=new n.Group),m.add(this._backgroundGroup=new n.Group)}c.prototype={constructor:c,draw:function(p,g,m,y,_){var x=p.mainType==="geo",S=p.getData&&p.getData();x&&g.eachComponent({mainType:"series",subType:"map"},function(V){!S&&V.getHostGeoModel()===p&&(S=V.getData())});var b=p.coordinateSystem;this._updateBackground(b);var w=this._regionsGroup,A=this.group,T=b.getTransformInfo(),C=!w.childAt(0)||_,M;if(C)A.transform=T.roamTransform,A.decomposeTransform(),A.dirty();else{var L=new u;L.transform=T.roamTransform,L.decomposeTransform();var D={scale:L.scale,position:L.position};M=L.scale,n.updateProps(A,D,p)}var P=T.rawScale,I=T.rawPosition;w.removeAll();var R=["itemStyle"],E=["emphasis","itemStyle"],k=["label"],B=["emphasis","label"],F=r.createHashMap();r.each(b.regions,function(V){var N=F.get(V.name)||F.set(V.name,new n.Group),O=new n.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});N.add(O);var z=p.getRegionModel(V.name)||p,G=z.getModel(R),q=z.getModel(E),H=v(G),U=v(q),W=z.getModel(k),Y=z.getModel(B),X;if(S){X=S.indexOfName(V.name);var K=S.getItemVisual(X,"color",!0);K&&(H.fill=K)}var Q=function(ye){return[ye[0]*P[0]+I[0],ye[1]*P[1]+I[1]]};r.each(V.geometries,function(ye){if(ye.type==="polygon"){for(var Me=[],J=0;J<ye.exterior.length;++J)Me.push(Q(ye.exterior[J]));O.shape.paths.push(new n.Polygon({segmentIgnoreThreshold:1,shape:{points:Me}}));for(var J=0;J<(ye.interiors?ye.interiors.length:0);++J){for(var ne=ye.interiors[J],Me=[],ue=0;ue<ne.length;++ue)Me.push(Q(ne[ue]));O.shape.paths.push(new n.Polygon({segmentIgnoreThreshold:1,shape:{points:Me}}))}}}),O.setStyle(H),O.style.strokeNoScale=!0,O.culling=!0;var j=W.get("show"),te=Y.get("show"),Z=S&&isNaN(S.get(S.mapDimension("value"),X)),ee=S&&S.getItemLayout(X);if(x||Z&&(j||te)||ee&&ee.showLabel){var le=x?V.name:X,oe;(!S||X>=0)&&(oe=p);var fe=new n.Text({position:Q(V.center.slice()),scale:[1/A.scale[0],1/A.scale[1]],z2:10,silent:!0});if(n.setLabelStyle(fe.style,fe.hoverStyle={},W,Y,{labelFetcher:oe,labelDataIndex:le,defaultText:V.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!C){var se=[1/M[0],1/M[1]];n.updateProps(fe,{scale:se},p)}N.add(fe)}if(S)S.setItemGraphicEl(X,N);else{var z=p.getRegionModel(V.name);O.eventData={componentType:"geo",componentIndex:p.componentIndex,geoIndex:p.componentIndex,name:V.name,region:z&&z.option||{}}}var ve=N.__regions||(N.__regions=[]);ve.push(V),N.highDownSilentOnTouch=!!p.get("selectedMode"),n.setHoverStyle(N,U),w.add(N)}),this._updateController(p,g,m),h(this,p,w,m,y),f(p,w)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&o.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(p){var g=p.map;this._mapName!==g&&r.each(o.makeGraphic(g,this.uid),function(m){this._backgroundGroup.add(m)},this),this._mapName=g},_updateController:function(p,g,m){var y=p.coordinateSystem,_=this._controller,x=this._controllerHost;x.zoomLimit=p.get("scaleLimit"),x.zoom=y.getZoom(),_.enable(p.get("roam")||!1);var S=p.mainType;function b(){var w={type:"geoRoam",componentType:S};return w[S+"Id"]=p.id,w}_.off("pan").on("pan",function(w){this._mouseDownFlag=!1,e.updateViewOnPan(x,w.dx,w.dy),m.dispatchAction(r.extend(b(),{dx:w.dx,dy:w.dy}))},this),_.off("zoom").on("zoom",function(w){if(this._mouseDownFlag=!1,e.updateViewOnZoom(x,w.scale,w.originX,w.originY),m.dispatchAction(r.extend(b(),{zoom:w.scale,originX:w.originX,originY:w.originY})),this._updateGroup){var A=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/A[0],1/A[1]])})}},this),_.setPointerChecker(function(w,A,T){return y.getViewRectAfterRoam().contain(A,T)&&!i(w,m,p)})}};var d=c;return ix=d,ix}var nx,KB;function ame(){if(KB)return nx;KB=1;var r=Pe(),t=ie(),e=qe(),a=f$(),i="__seriesMapHighDown",n="__seriesMapCallKey",o=r.extendChartView({type:"map",render:function(u,v,h,f){if(!(f&&f.type==="mapToggleSelect"&&f.from===this.uid)){var c=this.group;if(c.removeAll(),!u.getHostGeoModel()){if(f&&f.type==="geoRoam"&&f.componentType==="series"&&f.seriesId===u.id){var d=this._mapDraw;d&&c.add(d.group)}else if(u.needsDrawMap){var d=this._mapDraw||new a(h,!0);c.add(d.group),d.draw(u,v,h,this,f),this._mapDraw=d}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;u.get("showLegendSymbol")&&v.getComponent("legend")&&this._renderSymbols(u,v,h)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(u,v,h){var f=u.originalData,c=this.group;f.each(f.mapDimension("value"),function(d,p){if(!isNaN(d)){var g=f.getItemLayout(p);if(!(!g||!g.point)){var m=g.point,y=g.offset,_=new e.Circle({style:{fill:u.getData().getVisual("color")},shape:{cx:m[0]+y*9,cy:m[1],r:3},silent:!0,z2:8+(y?0:e.Z2_EMPHASIS_LIFT+1)});if(!y){var x=u.mainSeries.getData(),S=f.getName(p),b=x.indexOfName(S),w=f.getItemModel(p),A=w.getModel("label"),T=w.getModel("emphasis.label"),C=x.getItemGraphicEl(b),M=t.retrieve2(u.getFormattedLabel(b,"normal"),S),L=t.retrieve2(u.getFormattedLabel(b,"emphasis"),M),D=C[i],P=Math.random();if(!D){D=C[i]={};var I=t.curry(s,!0),R=t.curry(s,!1);C.on("mouseover",I).on("mouseout",R).on("emphasis",I).on("normal",R)}C[n]=P,t.extend(D,{recordVersion:P,circle:_,labelModel:A,hoverLabelModel:T,emphasisText:L,normalText:M}),l(D,!1)}c.add(_)}}})}});function s(u){var v=this[i];v&&v.recordVersion===this[n]&&l(v,u)}function l(u,v){var h=u.circle,f=u.labelModel,c=u.hoverLabelModel,d=u.emphasisText,p=u.normalText;v?(h.style.extendFrom(e.setTextStyle({},c,{text:c.get("show")?d:null},{isRectText:!0,useInsideStyle:!1},!0)),h.__mapOriginalZ2=h.z2,h.z2+=e.Z2_EMPHASIS_LIFT):(e.setTextStyle(h.style,f,{text:f.get("show")?p:null,textPosition:f.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),h.dirty(!1),h.__mapOriginalZ2!=null&&(h.z2=h.__mapOriginalZ2,h.__mapOriginalZ2=null))}return nx=o,nx}var QB={},ox={},jB;function vD(){if(jB)return ox;jB=1;function r(t,e,a){var i=t.getZoom(),n=t.getCenter(),o=e.zoom,s=t.dataToPoint(n);if(e.dx!=null&&e.dy!=null){s[0]-=e.dx,s[1]-=e.dy;var n=t.pointToData(s);t.setCenter(n)}if(o!=null){if(a){var l=a.min||0,u=a.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}t.scale[0]*=o,t.scale[1]*=o;var v=t.position,h=(e.originX-v[0])*(o-1),f=(e.originY-v[1])*(o-1);v[0]-=h,v[1]-=f,t.updateTransform();var n=t.pointToData(s);t.setCenter(n),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}return ox.updateCenterAndZoom=r,ox}var JB;function c$(){if(JB)return QB;JB=1;var r=Pe(),t=ie(),e=vD(),a=e.updateCenterAndZoom;return r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,n){var o=i.componentType||"series";n.eachComponent({mainType:o,query:i},function(s){var l=s.coordinateSystem;if(l.type==="geo"){var u=a(l,i,s.get("scaleLimit"));s.setCenter&&s.setCenter(u.center),s.setZoom&&s.setZoom(u.zoom),o==="series"&&t.each(s.seriesGroup,function(v){v.setCenter(u.center),v.setZoom(u.zoom)})}})}),QB}var sx,eV;function hD(){if(eV)return sx;eV=1;var r=ie(),t=Jt(),e=ha(),a=rr(),i=og(),n=t.applyTransform;function o(){i.call(this)}r.mixin(o,i);function s(v){this.name=v,this.zoomLimit,i.call(this),this._roamTransformable=new o,this._rawTransformable=new o,this._center,this._zoom}s.prototype={constructor:s,type:"view",dimensions:["x","y"],setBoundingRect:function(v,h,f,c){return this._rect=new a(v,h,f,c),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(v,h,f,c){this.transformTo(v,h,f,c),this._viewRect=new a(v,h,f,c)},transformTo:function(v,h,f,c){var d=this.getBoundingRect(),p=this._rawTransformable;p.transform=d.calculateTransform(new a(v,h,f,c)),p.decomposeTransform(),this._updateTransform()},setCenter:function(v){v&&(this._center=v,this._updateCenterAndZoom())},setZoom:function(v){v=v||1;var h=this.zoomLimit;h&&(h.max!=null&&(v=Math.min(h.max,v)),h.min!=null&&(v=Math.max(h.min,v))),this._zoom=v,this._updateCenterAndZoom()},getDefaultCenter:function(){var v=this.getBoundingRect(),h=v.x+v.width/2,f=v.y+v.height/2;return[h,f]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var v=this._rawTransformable.getLocalTransform(),h=this._roamTransformable,f=this.getDefaultCenter(),c=this.getCenter(),d=this.getZoom();c=t.applyTransform([],c,v),f=t.applyTransform([],f,v),h.origin=c,h.position=[f[0]-c[0],f[1]-c[1]],h.scale=[d,d],this._updateTransform()},_updateTransform:function(){var v=this._roamTransformable,h=this._rawTransformable;h.parent=v,v.updateTransform(),h.updateTransform(),e.copy(this.transform||(this.transform=[]),h.transform||e.create()),this._rawTransform=h.getLocalTransform(),this.invTransform=this.invTransform||[],e.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var v=this._roamTransformable.transform,h=this._rawTransformable;return{roamTransform:v?r.slice(v):e.create(),rawScale:r.slice(h.scale),rawPosition:r.slice(h.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var v=this.getBoundingRect().clone();return v.applyTransform(this.transform),v},dataToPoint:function(v,h,f){var c=h?this._rawTransform:this.transform;return f=f||[],c?n(f,v,c):t.copy(f,v)},pointToData:function(v){var h=this.invTransform;return h?n([],v,h):[v[0],v[1]]},convertToPixel:r.curry(l,"dataToPoint"),convertFromPixel:r.curry(l,"pointToData"),containPoint:function(v){return this.getViewRectAfterRoam().contain(v[0],v[1])}},r.mixin(s,i);function l(v,h,f,c){var d=f.seriesModel,p=d?d.coordinateSystem:null;return p===this?p[v](c):null}var u=s;return sx=u,sx}var lx,tV;function ime(){if(tV)return lx;tV=1;var r=ie(),t=rr(),e=hD(),a=xg();function i(s,l,u,v){e.call(this,s),this.map=l;var h=a.load(l,u);this._nameCoordMap=h.nameCoordMap,this._regionsMap=h.regionsMap,this._invertLongitute=v==null?!0:v,this.regions=h.regions,this._rect=h.boundingRect}i.prototype={constructor:i,type:"geo",dimensions:["lng","lat"],containCoord:function(s){for(var l=this.regions,u=0;u<l.length;u++)if(l[u].contain(s))return!0;return!1},transformTo:function(s,l,u,v){var h=this.getBoundingRect(),f=this._invertLongitute;h=h.clone(),f&&(h.y=-h.y-h.height);var c=this._rawTransformable;if(c.transform=h.calculateTransform(new t(s,l,u,v)),c.decomposeTransform(),f){var d=c.scale;d[1]=-d[1]}c.updateTransform(),this._updateTransform()},getRegion:function(s){return this._regionsMap.get(s)},getRegionByCoord:function(s){for(var l=this.regions,u=0;u<l.length;u++)if(l[u].contain(s))return l[u]},addGeoCoord:function(s,l){this._nameCoordMap.set(s,l)},getGeoCoord:function(s){return this._nameCoordMap.get(s)},getBoundingRect:function(){return this._rect},dataToPoint:function(s,l,u){if(typeof s=="string"&&(s=this.getGeoCoord(s)),s)return e.prototype.dataToPoint.call(this,s,l,u)},convertToPixel:r.curry(n,"dataToPoint"),convertFromPixel:r.curry(n,"pointToData")},r.mixin(i,e);function n(s,l,u,v){var h=u.geoModel,f=u.seriesModel,c=h?h.coordinateSystem:f?f.coordinateSystem||(f.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return c===this?c[s](v):null}var o=i;return lx=o,lx}var ux,rV;function fD(){if(rV)return ux;rV=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=ime(),i=Ut(),n=st(),o=xg(),s=nD();function l(f,c){var d=f.get("boundingCoords");if(d!=null){var p=d[0],g=d[1];isNaN(p[0])||isNaN(p[1])||isNaN(g[0])||isNaN(g[1])||this.setBoundingRect(p[0],p[1],g[0]-p[0],g[1]-p[1])}var m=this.getBoundingRect(),y,_=f.get("layoutCenter"),x=f.get("layoutSize"),S=c.getWidth(),b=c.getHeight(),w=m.width/m.height*this.aspectScale,A=!1;_&&x&&(_=[n.parsePercent(_[0],S),n.parsePercent(_[1],b)],x=n.parsePercent(x,Math.min(S,b)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(x)&&(A=!0));var T;if(A){var T={};w>1?(T.width=x,T.height=x/w):(T.height=x,T.width=x*w),T.y=_[1]-T.height/2,T.x=_[0]-T.width/2}else y=f.getBoxLayoutParams(),y.aspect=w,T=i.getLayoutRect(y,{width:S,height:b});this.setViewRect(T.x,T.y,T.width,T.height),this.setCenter(f.get("center")),this.setZoom(f.get("zoom"))}function u(f,c){e.each(c.get("geoCoord"),function(d,p){f.addGeoCoord(p,d)})}var v={dimensions:a.prototype.dimensions,create:function(f,c){var d=[];f.eachComponent("geo",function(g,m){var y=g.get("map"),_=g.get("aspectScale"),x=!0,S=s.retrieveMap(y);S&&S[0]&&S[0].type==="svg"?(_==null&&(_=1),x=!1):_==null&&(_=.75);var b=new a(y+m,y,g.get("nameMap"),x);b.aspectScale=_,b.zoomLimit=g.get("scaleLimit"),d.push(b),u(b,g),g.coordinateSystem=b,b.model=g,b.resize=l,b.resize(g,c)}),f.eachSeries(function(g){var m=g.get("coordinateSystem");if(m==="geo"){var y=g.get("geoIndex")||0;g.coordinateSystem=d[y]}});var p={};return f.eachSeriesByType("map",function(g){if(!g.getHostGeoModel()){var m=g.getMapType();p[m]=p[m]||[],p[m].push(g)}}),e.each(p,function(g,m){var y=e.map(g,function(x){return x.get("nameMap")}),_=new a(m,m,e.mergeAll(y));_.zoomLimit=e.retrieve.apply(null,e.map(g,function(x){return x.get("scaleLimit")})),d.push(_),_.resize=l,_.aspectScale=g[0].get("aspectScale"),_.resize(g[0],c),e.each(g,function(x){x.coordinateSystem=_,u(_,x)})}),d},getFilledRegions:function(f,c,d){for(var p=(f||[]).slice(),g=e.createHashMap(),m=0;m<p.length;m++)g.set(p[m].name,p[m]);var y=o.load(c,d);return e.each(y.regions,function(_){var x=_.name;!g.get(x)&&p.push({name:x})}),p}};t.registerCoordinateSystem("geo",v);var h=v;return ux=h,ux}var vx,aV;function nme(){if(aV)return vx;aV=1;var r=ie();function t(e){var a={};e.eachSeriesByType("map",function(i){var n=i.getMapType();if(!(i.getHostGeoModel()||a[n])){var o={};r.each(i.seriesGroup,function(l){var u=l.coordinateSystem,v=l.originalData;l.get("showLegendSymbol")&&e.getComponent("legend")&&v.each(v.mapDimension("value"),function(h,f){var c=v.getName(f),d=u.getRegion(c);if(!(!d||isNaN(h))){var p=o[c]||0,g=u.dataToPoint(d.center);o[c]=p+1,v.setItemLayout(f,{point:g,offset:p})}})});var s=i.getData();s.each(function(l){var u=s.getName(l),v=s.getItemLayout(l)||{};v.showLabel=!o[u],s.setItemLayout(l,v)}),a[n]=!0}})}return vx=t,vx}var hx,iV;function ome(){if(iV)return hx;iV=1;function r(t){t.eachSeriesByType("map",function(e){var a=e.get("color"),i=e.getModel("itemStyle"),n=i.get("areaColor"),o=i.get("color")||a[e.seriesIndex%a.length];e.getData().setVisual({areaColor:n,color:o})})}return hx=r,hx}var fx,nV;function sme(){if(nV)return fx;nV=1;var r=ie();function t(a,i){var n={};return r.each(a,function(o){o.each(o.mapDimension("value"),function(s,l){var u="ec-"+o.getName(l);n[u]=n[u]||[],isNaN(s)||n[u].push(s)})}),a[0].map(a[0].mapDimension("value"),function(o,s){for(var l="ec-"+a[0].getName(s),u=0,v=1/0,h=-1/0,f=n[l].length,c=0;c<f;c++)v=Math.min(v,n[l][c]),h=Math.max(h,n[l][c]),u+=n[l][c];var d;return i==="min"?d=v:i==="max"?d=h:i==="average"?d=u/f:d=u,f===0?NaN:d})}function e(a){var i={};a.eachSeriesByType("map",function(n){var o=n.getHostGeoModel(),s=o?"o"+o.id:"i"+n.getMapType();(i[s]=i[s]||[]).push(n)}),r.each(i,function(n,o){for(var s=t(r.map(n,function(u){return u.getData()}),n[0].get("mapValueCalculation")),l=0;l<n.length;l++)n[l].originalData=n[l].getData();for(var l=0;l<n.length;l++)n[l].seriesGroup=n,n[l].needsDrawMap=l===0&&!n[l].getHostGeoModel(),n[l].setData(s.cloneShallow()),n[l].mainSeries=n[0]})}return fx=e,fx}var cx,oV;function lme(){if(oV)return cx;oV=1;var r=ie();function t(e){r.each(e.series,function(a){a&&a.type==="map"&&(a.map=a.map||a.mapType,r.defaults(a,a.mapLocation))})}return cx=t,cx}var sV;function ume(){if(sV)return NB;sV=1;var r=Pe();rme(),ame(),c$(),fD();var t=nme(),e=ome(),a=sme(),i=lme(),n=v$();return r.registerLayout(t),r.registerVisual(e),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a),r.registerPreprocessor(i),n("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}]),NB}var lV={},dx,uV;function d$(){if(uV)return dx;uV=1;var r=ie(),t=r.each,e="\0__link_datas",a="\0__link_mainData";function i(c){var d=c.mainData,p=c.datas;p||(p={main:d},c.datasAttr={main:"data"}),c.datas=c.mainData=null,v(d,p,c),t(p,function(g){t(d.TRANSFERABLE_METHODS,function(m){g.wrapMethod(m,r.curry(n,c))})}),d.wrapMethod("cloneShallow",r.curry(s,c)),t(d.CHANGABLE_METHODS,function(g){d.wrapMethod(g,r.curry(o,c))}),r.assert(p[d.dataType]===d)}function n(c,d){if(u(this)){var p=r.extend({},this[e]);p[this.dataType]=d,v(d,p,c)}else h(d,this.dataType,this[a],c);return d}function o(c,d){return c.struct&&c.struct.update(this),d}function s(c,d){return t(d[e],function(p,g){p!==d&&h(p.cloneShallow(),g,d,c)}),d}function l(c){var d=this[a];return c==null||d==null?d:d[e][c]}function u(c){return c[a]===c}function v(c,d,p){c[e]={},t(d,function(g,m){h(g,m,c,p)})}function h(c,d,p,g){p[e][d]=c,c[a]=p,c.dataType=d,g.struct&&(c[g.structAttr]=g.struct,g.struct[g.datasAttr[d]]=c),c.getLinkedData=l}var f=i;return dx=f,dx}var px,vV;function cD(){if(vV)return px;vV=1;var r=ie(),t=d$(),e=ei(),a=Mu(),i=function(l,u){this.name=l||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=u};i.prototype={constructor:i,isRemoved:function(){return this.dataIndex<0},eachNode:function(l,u,v){typeof l=="function"&&(v=u,u=l,l=null),l=l||{},r.isString(l)&&(l={order:l});var h=l.order||"preorder",f=this[l.attr||"children"],c;h==="preorder"&&(c=u.call(v,this));for(var d=0;!c&&d<f.length;d++)f[d].eachNode(l,u,v);h==="postorder"&&u.call(v,this)},updateDepthAndHeight:function(l){var u=0;this.depth=l;for(var v=0;v<this.children.length;v++){var h=this.children[v];h.updateDepthAndHeight(l+1),h.height>u&&(u=h.height)}this.height=u+1},getNodeById:function(l){if(this.getId()===l)return this;for(var u=0,v=this.children,h=v.length;u<h;u++){var f=v[u].getNodeById(l);if(f)return f}},contains:function(l){if(l===this)return!0;for(var u=0,v=this.children,h=v.length;u<h;u++){var f=v[u].contains(l);if(f)return f}},getAncestors:function(l){for(var u=[],v=l?this:this.parentNode;v;)u.push(v),v=v.parentNode;return u.reverse(),u},getValue:function(l){var u=this.hostTree.data;return u.get(u.getDimension(l||"value"),this.dataIndex)},setLayout:function(l,u){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,l,u)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(l){if(!(this.dataIndex<0)){var u=this.hostTree,v=u.data.getItemModel(this.dataIndex);return v.getModel(l)}},setVisual:function(l,u){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,l,u)},getVisual:function(l,u){return this.hostTree.data.getItemVisual(this.dataIndex,l,u)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(l){for(var u=l.parentNode;u;){if(u===this)return!0;u=u.parentNode}return!1},isDescendantOf:function(l){return l!==this&&l.isAncestorOf(this)}};function n(l){this.root,this.data,this._nodes=[],this.hostModel=l}n.prototype={constructor:n,type:"tree",eachNode:function(l,u,v){this.root.eachNode(l,u,v)},getNodeByDataIndex:function(l){var u=this.data.getRawIndex(l);return this._nodes[u]},getNodeByName:function(l){return this.root.getNodeByName(l)},update:function(){for(var l=this.data,u=this._nodes,v=0,h=u.length;v<h;v++)u[v].dataIndex=-1;for(var v=0,h=l.count();v<h;v++)u[l.getRawIndex(v)].dataIndex=v},clearLayouts:function(){this.data.clearItemLayouts()}},n.createTree=function(l,u,v){var h=new n(u),f=[],c=1;d(l);function d(m,y){var _=m.value;c=Math.max(c,r.isArray(_)?_.length:1),f.push(m);var x=new i(m.name,h);y?o(x,y):h.root=x,h._nodes.push(x);var S=m.children;if(S)for(var b=0;b<S.length;b++)d(S[b],x)}h.root.updateDepthAndHeight(0);var p=a(f,{coordDimensions:["value"],dimensionsCount:c}),g=new e(p,u);return g.initData(f),v&&v(g),t({mainData:g,struct:h,structAttr:"tree"}),h.update(),h};function o(l,u){var v=u.children;l.parentNode!==u&&(v.push(l),l.parentNode=u)}var s=n;return px=s,px}var gx,hV;function vme(){if(hV)return gx;hV=1;var r=Ir(),t=cD(),e=Yt(),a=e.encodeHTML,i=gr(),n=r.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(o){var s={name:o.name,children:o.data},l=o.leaves||{},u=new i(l,this,this.ecModel),v=t.createTree(s,this,h);function h(p){p.wrapMethod("getItemModel",function(g,m){var y=v.getNodeByDataIndex(m);return(!y.children.length||!y.isExpand)&&(g.parentModel=u),g})}var f=0;v.eachNode("preorder",function(p){p.depth>f&&(f=p.depth)});var c=o.expandAndCollapse,d=c&&o.initialTreeDepth>=0?o.initialTreeDepth:f;return v.root.eachNode("preorder",function(p){var g=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=g&&g.collapsed!=null?!g.collapsed:p.depth<=d}),v.data},getOrient:function(){var o=this.get("orient");return o==="horizontal"?o="LR":o==="vertical"&&(o="TB"),o},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o},formatTooltip:function(o){for(var s=this.getData().tree,l=s.root.children[0],u=s.getNodeByDataIndex(o),v=u.getValue(),h=u.name;u&&u!==l;)h=u.parentNode.name+"."+h,u=u.parentNode;return a(h+(isNaN(v)||v==null?"":" : "+v))},defaultOption:{zlevel:0,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",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});return gx=n,gx}var Gn={},fV;function p$(){if(fV)return Gn;fV=1;var r=Ut();function t(d){d.hierNode={defaultAncestor:null,ancestor:d,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var p=[d],g,m;g=p.pop();)if(m=g.children,g.isExpand&&m.length)for(var y=m.length,_=y-1;_>=0;_--){var x=m[_];x.hierNode={defaultAncestor:null,ancestor:x,prelim:0,modifier:0,change:0,shift:0,i:_,thread:null},p.push(x)}}function e(d,p){var g=d.isExpand?d.children:[],m=d.parentNode.children,y=d.hierNode.i?m[d.hierNode.i-1]:null;if(g.length){s(d);var _=(g[0].hierNode.prelim+g[g.length-1].hierNode.prelim)/2;y?(d.hierNode.prelim=y.hierNode.prelim+p(d,y),d.hierNode.modifier=d.hierNode.prelim-_):d.hierNode.prelim=_}else y&&(d.hierNode.prelim=y.hierNode.prelim+p(d,y));d.parentNode.hierNode.defaultAncestor=l(d,y,d.parentNode.hierNode.defaultAncestor||m[0],p)}function a(d){var p=d.hierNode.prelim+d.parentNode.hierNode.modifier;d.setLayout({x:p},!0),d.hierNode.modifier+=d.parentNode.hierNode.modifier}function i(d){return arguments.length?d:c}function n(d,p){var g={};return d-=Math.PI/2,g.x=p*Math.cos(d),g.y=p*Math.sin(d),g}function o(d,p){return r.getLayoutRect(d.getBoxLayoutParams(),{width:p.getWidth(),height:p.getHeight()})}function s(d){for(var p=d.children,g=p.length,m=0,y=0;--g>=0;){var _=p[g];_.hierNode.prelim+=m,_.hierNode.modifier+=m,y+=_.hierNode.change,m+=_.hierNode.shift+y}}function l(d,p,g,m){if(p){for(var y=d,_=d,x=_.parentNode.children[0],S=p,b=y.hierNode.modifier,w=_.hierNode.modifier,A=x.hierNode.modifier,T=S.hierNode.modifier;S=u(S),_=v(_),S&&_;){y=u(y),x=v(x),y.hierNode.ancestor=d;var C=S.hierNode.prelim+T-_.hierNode.prelim-w+m(S,_);C>0&&(f(h(S,d,g),d,C),w+=C,b+=C),T+=S.hierNode.modifier,w+=_.hierNode.modifier,b+=y.hierNode.modifier,A+=x.hierNode.modifier}S&&!u(y)&&(y.hierNode.thread=S,y.hierNode.modifier+=T-b),_&&!v(x)&&(x.hierNode.thread=_,x.hierNode.modifier+=w-A,g=d)}return g}function u(d){var p=d.children;return p.length&&d.isExpand?p[p.length-1]:d.hierNode.thread}function v(d){var p=d.children;return p.length&&d.isExpand?p[0]:d.hierNode.thread}function h(d,p,g){return d.hierNode.ancestor.parentNode===p.parentNode?d.hierNode.ancestor:g}function f(d,p,g){var m=g/(p.hierNode.i-d.hierNode.i);p.hierNode.change-=m,p.hierNode.shift+=g,p.hierNode.modifier+=g,p.hierNode.prelim+=g,d.hierNode.change+=m}function c(d,p){return d.parentNode===p.parentNode?1:2}return Gn.init=t,Gn.firstWalk=e,Gn.secondWalk=a,Gn.separation=i,Gn.radialCoordinate=n,Gn.getViewRect=o,Gn}var mx,cV;function hme(){if(cV)return mx;cV=1;var r=ie(),t=qe(),e=gg(),a=p$(),i=a.radialCoordinate,n=Pe(),o=uf(),s=hD(),l=uD(),u=xf(),v=Sg(),h=v.onIrrelevantElement,f=It();f.__DEV__;var c=st(),d=c.parsePercent,p=t.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(w,A){var T=A.childPoints,C=T.length,M=A.parentPoint,L=T[0],D=T[C-1];if(C===1){w.moveTo(M[0],M[1]),w.lineTo(L[0],L[1]);return}var P=A.orient,I=P==="TB"||P==="BT"?0:1,R=1-I,E=d(A.forkPosition,1),k=[];k[I]=M[I],k[R]=M[R]+(D[R]-M[R])*E,w.moveTo(M[0],M[1]),w.lineTo(k[0],k[1]),w.moveTo(L[0],L[1]),k[I]=L[I],w.lineTo(k[0],k[1]),k[I]=D[I],w.lineTo(k[0],k[1]),w.lineTo(D[0],D[1]);for(var B=1;B<C-1;B++){var F=T[B];w.moveTo(F[0],F[1]),k[I]=F[I],w.lineTo(k[0],k[1])}}}),g=n.extendChartView({type:"tree",init:function(w,A){this._oldTree,this._mainGroup=new t.Group,this._controller=new u(A.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(w,A,T,C){var M=w.getData(),L=w.layoutInfo,D=this._mainGroup,P=w.get("layout");P==="radial"?D.attr("position",[L.x+L.width/2,L.y+L.height/2]):D.attr("position",[L.x,L.y]),this._updateViewCoordSys(w,L,P),this._updateController(w,A,T);var I=this._data,R={expandAndCollapse:w.get("expandAndCollapse"),layout:P,edgeShape:w.get("edgeShape"),edgeForkPosition:w.get("edgeForkPosition"),orient:w.getOrient(),curvature:w.get("lineStyle.curveness"),symbolRotate:w.get("symbolRotate"),symbolOffset:w.get("symbolOffset"),hoverAnimation:w.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};M.diff(I).add(function(E){m(M,E)&&_(M,E,null,D,w,R)}).update(function(E,k){var B=I.getItemGraphicEl(k);if(!m(M,E)){B&&S(I,k,B,D,w,R);return}_(M,E,B,D,w,R)}).remove(function(E){var k=I.getItemGraphicEl(E);k&&S(I,E,k,D,w,R)}).execute(),this._nodeScaleRatio=w.get("nodeScaleRatio"),this._updateNodeAndLinkScale(w),R.expandAndCollapse===!0&&M.eachItemGraphicEl(function(E,k){E.off("click").on("click",function(){T.dispatchAction({type:"treeExpandAndCollapse",seriesId:w.id,dataIndex:k})})}),this._data=M},_updateViewCoordSys:function(w){var A=w.getData(),T=[];A.each(function(I){var R=A.getItemLayout(I);R&&!isNaN(R.x)&&!isNaN(R.y)&&T.push([+R.x,+R.y])});var C=[],M=[];o.fromPoints(T,C,M);var L=this._min,D=this._max;M[0]-C[0]===0&&(C[0]=L?L[0]:C[0]-1,M[0]=D?D[0]:M[0]+1),M[1]-C[1]===0&&(C[1]=L?L[1]:C[1]-1,M[1]=D?D[1]:M[1]+1);var P=w.coordinateSystem=new s;P.zoomLimit=w.get("scaleLimit"),P.setBoundingRect(C[0],C[1],M[0]-C[0],M[1]-C[1]),P.setCenter(w.get("center")),P.setZoom(w.get("zoom")),this.group.attr({position:P.position,scale:P.scale}),this._viewCoordSys=P,this._min=C,this._max=M},_updateController:function(w,A,T){var C=this._controller,M=this._controllerHost,L=this.group;C.setPointerChecker(function(D,P,I){var R=L.getBoundingRect();return R.applyTransform(L.transform),R.contain(P,I)&&!h(D,T,w)}),C.enable(w.get("roam")),M.zoomLimit=w.get("scaleLimit"),M.zoom=w.coordinateSystem.getZoom(),C.off("pan").off("zoom").on("pan",function(D){l.updateViewOnPan(M,D.dx,D.dy),T.dispatchAction({seriesId:w.id,type:"treeRoam",dx:D.dx,dy:D.dy})},this).on("zoom",function(D){l.updateViewOnZoom(M,D.scale,D.originX,D.originY),T.dispatchAction({seriesId:w.id,type:"treeRoam",zoom:D.scale,originX:D.originX,originY:D.originY}),this._updateNodeAndLinkScale(w)},this)},_updateNodeAndLinkScale:function(w){var A=w.getData(),T=this._getNodeGlobalScale(w),C=[T,T];A.eachItemGraphicEl(function(M,L){M.attr("scale",C)})},_getNodeGlobalScale:function(w){var A=w.coordinateSystem;if(A.type!=="view")return 1;var T=this._nodeScaleRatio,C=A.scale,M=C&&C[0]||1,L=A.getZoom(),D=(L-1)*T+1;return D/M},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function m(w,A){var T=w.getItemLayout(A);return T&&!isNaN(T.x)&&!isNaN(T.y)&&w.getItemVisual(A,"symbol")!=="none"}function y(w,A,T){return T.itemModel=A,T.itemStyle=A.getModel("itemStyle").getItemStyle(),T.hoverItemStyle=A.getModel("emphasis.itemStyle").getItemStyle(),T.lineStyle=A.getModel("lineStyle").getLineStyle(),T.labelModel=A.getModel("label"),T.hoverLabelModel=A.getModel("emphasis.label"),w.isExpand===!1&&w.children.length!==0?T.symbolInnerColor=T.itemStyle.fill:T.symbolInnerColor="#fff",T}function _(w,A,T,C,M,R){var D=!T,P=w.tree.getNodeByDataIndex(A),I=P.getModel(),R=y(P,I,R),E=w.tree.root,k=P.parentNode===E?P:P.parentNode||P,B=w.getItemGraphicEl(k.dataIndex),F=k.getLayout(),V=B?{x:B.position[0],y:B.position[1],rawX:B.__radialOldRawX,rawY:B.__radialOldRawY}:F,N=P.getLayout();D?(T=new e(w,A,R),T.attr("position",[V.x,V.y])):T.updateData(w,A,R),T.__radialOldRawX=T.__radialRawX,T.__radialOldRawY=T.__radialRawY,T.__radialRawX=N.rawX,T.__radialRawY=N.rawY,C.add(T),w.setItemGraphicEl(A,T),t.updateProps(T,{position:[N.x,N.y]},M);var O=T.getSymbolPath();if(R.layout==="radial"){var z=E.children[0],G=z.getLayout(),q=z.children.length,H,U;if(N.x===G.x&&P.isExpand===!0){var W={};W.x=(z.children[0].getLayout().x+z.children[q-1].getLayout().x)/2,W.y=(z.children[0].getLayout().y+z.children[q-1].getLayout().y)/2,H=Math.atan2(W.y-G.y,W.x-G.x),H<0&&(H=Math.PI*2+H),U=W.x<G.x,U&&(H=H-Math.PI)}else H=Math.atan2(N.y-G.y,N.x-G.x),H<0&&(H=Math.PI*2+H),P.children.length===0||P.children.length!==0&&P.isExpand===!1?(U=N.x<G.x,U&&(H=H-Math.PI)):(U=N.x>G.x,U||(H=H-Math.PI));var Y=U?"left":"right",X=R.labelModel.get("rotate"),K=X*(Math.PI/180);O.setStyle({textPosition:R.labelModel.get("position")||Y,textRotation:X==null?-H:K,textOrigin:"center",verticalAlign:"middle"})}x(M,P,E,T,V,F,N,C,R)}function x(w,A,T,C,M,L,D,P,I){var R=I.edgeShape,E=C.__edge;if(R==="curve")A.parentNode&&A.parentNode!==T&&(E||(E=C.__edge=new t.BezierCurve({shape:b(I,M,M),style:r.defaults({opacity:0,strokeNoScale:!0},I.lineStyle)})),t.updateProps(E,{shape:b(I,L,D),style:r.defaults({opacity:1},I.lineStyle)},w));else if(R==="polyline"&&I.layout==="orthogonal"&&A!==T&&A.children&&A.children.length!==0&&A.isExpand===!0){for(var k=A.children,B=[],F=0;F<k.length;F++){var V=k[F].getLayout();B.push([V.x,V.y])}E||(E=C.__edge=new p({shape:{parentPoint:[D.x,D.y],childPoints:[[D.x,D.y]],orient:I.orient,forkPosition:I.edgeForkPosition},style:r.defaults({opacity:0,strokeNoScale:!0},I.lineStyle)})),t.updateProps(E,{shape:{parentPoint:[D.x,D.y],childPoints:B},style:r.defaults({opacity:1},I.lineStyle)},w)}P.add(E)}function S(w,A,T,C,M,R){for(var D=w.tree.getNodeByDataIndex(A),P=w.tree.root,I=D.getModel(),R=y(D,I,R),E=D.parentNode===P?D:D.parentNode||D,N=R.edgeShape,k;k=E.getLayout(),k==null;)E=E.parentNode===P?E:E.parentNode||E;t.updateProps(T,{position:[k.x+1,k.y+1]},M,function(){C.remove(T),w.setItemGraphicEl(A,null)}),T.fadeOut(null,{keepLabel:!0});var B=w.getItemGraphicEl(E.dataIndex),F=B.__edge,V=T.__edge||(E.isExpand===!1||E.children.length===1?F:void 0),N=R.edgeShape;V&&(N==="curve"?t.updateProps(V,{shape:b(R,k,k),style:{opacity:0}},M,function(){C.remove(V)}):N==="polyline"&&R.layout==="orthogonal"&&t.updateProps(V,{shape:{parentPoint:[k.x,k.y],childPoints:[[k.x,k.y]]},style:{opacity:0}},M,function(){C.remove(V)}))}function b(w,A,T){var C,M,L,D,P=w.orient,I,R,E,k;if(w.layout==="radial"){I=A.rawX,E=A.rawY,R=T.rawX,k=T.rawY;var B=i(I,E),F=i(I,E+(k-E)*w.curvature),V=i(R,k+(E-k)*w.curvature),N=i(R,k);return{x1:B.x,y1:B.y,x2:N.x,y2:N.y,cpx1:F.x,cpy1:F.y,cpx2:V.x,cpy2:V.y}}else I=A.x,E=A.y,R=T.x,k=T.y,(P==="LR"||P==="RL")&&(C=I+(R-I)*w.curvature,M=E,L=R+(I-R)*w.curvature,D=k),(P==="TB"||P==="BT")&&(C=I,M=E+(k-E)*w.curvature,L=R,D=k+(E-k)*w.curvature);return{x1:I,y1:E,x2:R,y2:k,cpx1:C,cpy1:M,cpx2:L,cpy2:D}}return mx=g,mx}var dV={},pV;function fme(){if(pV)return dV;pV=1;var r=Pe(),t=vD(),e=t.updateCenterAndZoom;return r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(a,i){i.eachComponent({mainType:"series",subType:"tree",query:a},function(n){var o=a.dataIndex,s=n.getData().tree,l=s.getNodeByDataIndex(o);l.isExpand=!l.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(a,i){i.eachComponent({mainType:"series",subType:"tree",query:a},function(n){var o=n.coordinateSystem,s=e(o,a);n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})}),dV}var Ec={},gV;function cme(){if(gV)return Ec;gV=1;function r(e,a,i){for(var n=[e],o=[],s;s=n.pop();)if(o.push(s),s.isExpand){var l=s.children;if(l.length)for(var u=0;u<l.length;u++)n.push(l[u])}for(;s=o.pop();)a(s,i)}function t(e,a){for(var i=[e],n;n=i.pop();)if(a(n),n.isExpand){var o=n.children;if(o.length)for(var s=o.length-1;s>=0;s--)i.push(o[s])}}return Ec.eachAfter=r,Ec.eachBefore=t,Ec}var yx,mV;function dme(){if(mV)return yx;mV=1;var r=cme(),t=r.eachAfter,e=r.eachBefore,a=p$(),i=a.init,n=a.firstWalk,o=a.secondWalk,s=a.separation,l=a.radialCoordinate,u=a.getViewRect;function v(f,c){f.eachSeriesByType("tree",function(d){h(d,c)})}function h(f,c){var d=u(f,c);f.layoutInfo=d;var p=f.get("layout"),g=0,m=0,y=null;p==="radial"?(g=2*Math.PI,m=Math.min(d.height,d.width)/2,y=s(function(I,R){return(I.parentNode===R.parentNode?1:2)/I.depth})):(g=d.width,m=d.height,y=s());var _=f.getData().tree.root,x=_.children[0];if(x){i(_),t(x,n,y),_.hierNode.modifier=-x.hierNode.prelim,e(x,o);var S=x,b=x,w=x;e(x,function(I){var R=I.getLayout().x;R<S.getLayout().x&&(S=I),R>b.getLayout().x&&(b=I),I.depth>w.depth&&(w=I)});var A=S===b?1:y(S,b)/2,T=A-S.getLayout().x,C=0,M=0,L=0,D=0;if(p==="radial")C=g/(b.getLayout().x+A+T),M=m/(w.depth-1||1),e(x,function(I){L=(I.getLayout().x+T)*C,D=(I.depth-1)*M;var R=l(L,D);I.setLayout({x:R.x,y:R.y,rawX:L,rawY:D},!0)});else{var P=f.getOrient();P==="RL"||P==="LR"?(M=m/(b.getLayout().x+A+T),C=g/(w.depth-1||1),e(x,function(I){D=(I.getLayout().x+T)*M,L=P==="LR"?(I.depth-1)*C:g-(I.depth-1)*C,I.setLayout({x:L,y:D},!0)})):(P==="TB"||P==="BT")&&(C=g/(b.getLayout().x+A+T),M=m/(w.depth-1||1),e(x,function(I){L=(I.getLayout().x+T)*C,D=P==="TB"?(I.depth-1)*M:m-(I.depth-1)*M,I.setLayout({x:L,y:D},!0)}))}}}return yx=v,yx}var yV;function pme(){if(yV)return lV;yV=1;var r=Pe();vme(),hme(),fme();var t=Xs(),e=dme();return r.registerVisual(t("tree","circle")),r.registerLayout(e),lV}var _V={},wl={},xV;function Qs(){if(xV)return wl;xV=1;var r=ie();function t(n,o,s){if(n&&r.indexOf(o,n.type)>=0){var l=s.getData().tree.root,u=n.targetNode;if(typeof u=="string"&&(u=l.getNodeById(u)),u&&l.contains(u))return{node:u};var v=n.targetNodeId;if(v!=null&&(u=l.getNodeById(v)))return{node:u}}}function e(n){for(var o=[];n;)n=n.parentNode,n&&o.push(n);return o.reverse()}function a(n,o){var s=e(n);return r.indexOf(s,o)>=0}function i(n,o){for(var s=[];n;){var l=n.dataIndex;s.push({name:n.name,dataIndex:l,value:o.getRawValue(l)}),n=n.parentNode}return s.reverse(),s}return wl.retrieveTargetInfo=t,wl.getPathToRoot=e,wl.aboveViewRoot=a,wl.wrapTreePathInfo=i,wl}var _x,SV;function gme(){if(SV)return _x;SV=1;var r=ie(),t=Ir(),e=cD(),a=gr(),i=Yt(),n=i.encodeHTML,o=i.addCommas,s=Qs(),l=s.wrapTreePathInfo,u=t.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,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)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(f,c){var d={name:f.name,children:f.data};v(d);var p=f.levels||[],g=this.designatedVisualItemStyle={},m=new a({itemStyle:g},this,c);p=f.levels=h(p,c);var y=r.map(p||[],function(S){return new a(S,m,c)},this),_=e.createTree(d,this,x);function x(S){S.wrapMethod("getItemModel",function(b,w){var A=_.getNodeByDataIndex(w),T=y[A.depth];return b.parentModel=T||m,b})}return _.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(f){var c=this.getData(),d=this.getRawValue(f),p=r.isArray(d)?o(d[0]):o(d),g=c.getName(f);return n(g+": "+p)},getDataParams:function(f){var c=t.prototype.getDataParams.apply(this,arguments),d=this.getData().tree.getNodeByDataIndex(f);return c.treePathInfo=l(d,this),c},setLayoutInfo:function(f){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,f)},mapIdToIndex:function(f){var c=this._idIndexMap;c||(c=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var d=c.get(f);return d==null&&c.set(f,d=this._idIndexMapCount++),d},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(f){f?this._viewRoot=f:f=this._viewRoot;var c=this.getRawData().tree.root;(!f||f!==c&&!c.contains(f))&&(this._viewRoot=c)}});function v(f){var c=0;r.each(f.children,function(p){v(p);var g=p.value;r.isArray(g)&&(g=g[0]),c+=g});var d=f.value;r.isArray(d)&&(d=d[0]),(d==null||isNaN(d))&&(d=c),d<0&&(d=0),r.isArray(f.value)?f.value[0]=d:f.value=d}function h(f,c){var d=c.get("color");if(d){f=f||[];var p;if(r.each(f,function(m){var y=new a(m),_=y.get("color");(y.get("itemStyle.color")||_&&_!=="none")&&(p=!0)}),!p){var g=f[0]||(f[0]={});g.color=d.slice()}return f}}return _x=u,_x}var xx,bV;function mme(){if(bV)return xx;bV=1;var r=qe(),t=Ut(),e=ie(),a=Qs(),i=a.wrapTreePathInfo,n=8,o=8,s=5;function l(f){this.group=new r.Group,f.add(this.group)}l.prototype={constructor:l,render:function(f,c,d,p){var g=f.getModel("breadcrumb"),m=this.group;if(m.removeAll(),!(!g.get("show")||!d)){var y=g.getModel("itemStyle"),_=y.getModel("textStyle"),x={pos:{left:g.get("left"),right:g.get("right"),top:g.get("top"),bottom:g.get("bottom")},box:{width:c.getWidth(),height:c.getHeight()},emptyItemWidth:g.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(d,x,_),this._renderContent(f,x,y,_,p),t.positionElement(m,x.pos,x.box)}},_prepare:function(f,c,d){for(var p=f;p;p=p.parentNode){var g=p.getModel().get("name"),m=d.getTextRect(g),y=Math.max(m.width+n*2,c.emptyItemWidth);c.totalWidth+=y+o,c.renderList.push({node:p,text:g,width:y})}},_renderContent:function(f,c,d,p,g){for(var m=0,y=c.emptyItemWidth,_=f.get("breadcrumb.height"),x=t.getAvailableSize(c.pos,c.box),S=c.totalWidth,b=c.renderList,w=b.length-1;w>=0;w--){var A=b[w],T=A.node,C=A.width,M=A.text;S>x.width&&(S-=C-y,C=y,M=null);var L=new r.Polygon({shape:{points:u(m,0,C,_,w===b.length-1,w===0)},style:e.defaults(d.getItemStyle(),{lineJoin:"bevel",text:M,textFill:p.getTextColor(),textFont:p.getFont()}),z:10,onclick:e.curry(g,T)});this.group.add(L),v(L,f,T),m+=C+o}},remove:function(){this.group.removeAll()}};function u(f,c,d,p,g,m){var y=[[g?f:f-s,c],[f+d,c],[f+d,c+p],[g?f:f-s,c+p]];return!m&&y.splice(2,0,[f+d+s,c+p/2]),!g&&y.push([f,c+p/2]),y}function v(f,c,d){f.eventData={componentType:"series",componentSubType:"treemap",componentIndex:c.componentIndex,seriesIndex:c.componentIndex,seriesName:c.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:d&&d.dataIndex,name:d&&d.name},treePathInfo:d&&i(d,c)}}var h=l;return xx=h,xx}var Sx={},wV;function yme(){if(wV)return Sx;wV=1;var r=ie();function t(){var e=[],a={},i;return{add:function(n,o,s,l,u){return r.isString(l)&&(u=l,l=0),a[n.id]?!1:(a[n.id]=1,e.push({el:n,target:o,time:s,delay:l,easing:u}),!0)},done:function(n){return i=n,this},start:function(){for(var n=e.length,o=0,s=e.length;o<s;o++){var l=e[o];l.el.animateTo(l.target,l.time,l.delay,l.easing,u)}return this;function u(){n--,n||(e.length=0,a={},i&&i())}}}}return Sx.createWrap=t,Sx}var bx,TV;function _me(){if(TV)return bx;TV=1;var r=Pe(),t=ie(),e=qe(),a=Zs(),i=Qs(),n=mme(),o=xf(),s=rr(),l=ha(),u=yme(),v=Tu(),h=Yt(),f=h.windowOpen,c=t.bind,d=e.Group,p=e.Rect,g=t.each,m=3,y=["label"],_=["emphasis","label"],x=["upperLabel"],S=["emphasis","upperLabel"],b=10,w=1,A=2,T=v([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C=function(I){var R=T(I);return R.stroke=R.fill=R.lineWidth=null,R},M=r.extendChartView({type:"treemap",init:function(I,R){this._containerGroup,this._storage=L(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(I,R,E,k){var B=R.findComponents({mainType:"series",subType:"treemap",query:k});if(!(t.indexOf(B,I)<0)){this.seriesModel=I,this.api=E,this.ecModel=R;var F=["treemapZoomToNode","treemapRootToNode"],V=i.retrieveTargetInfo(k,F,I),N=k&&k.type,O=I.layoutInfo,z=!this._oldTree,G=this._storage,q=N==="treemapRootToNode"&&V&&G?{rootNodeGroup:G.nodeGroup[V.node.getRawIndex()],direction:k.direction}:null,H=this._giveContainerGroup(O),U=this._doRender(H,I,q);!z&&(!N||N==="treemapZoomToNode"||N==="treemapRootToNode")?this._doAnimation(H,U,I,q):U.renderFinally(),this._resetController(E),this._renderBreadcrumb(I,E,V)}},_giveContainerGroup:function(I){var R=this._containerGroup;return R||(R=this._containerGroup=new d,this._initEvents(R),this.group.add(R)),R.attr("position",[I.x,I.y]),R},_doRender:function(I,R,E){var k=R.getData().tree,B=this._oldTree,F=L(),V=L(),N=this._storage,O=[],z=t.curry(D,R,V,N,E,F,O);q(k.root?[k.root]:[],B&&B.root?[B.root]:[],I,k===B||!B,0);var G=H(N);return this._oldTree=k,this._storage=V,{lastsForAnimation:F,willDeleteEls:G,renderFinally:U};function q(W,Y,X,K,Q){K?(Y=W,g(W,function(Z,ee){!Z.isRemoved()&&te(ee,ee)})):new a(Y,W,j,j).add(te).update(te).remove(t.curry(te,null)).execute();function j(Z){return Z.getId()}function te(Z,ee){var le=Z!=null?W[Z]:null,oe=ee!=null?Y[ee]:null,fe=z(le,oe,X,Q);fe&&q(le&&le.viewChildren||[],oe&&oe.viewChildren||[],fe,K,Q+1)}}function H(W){var Y=L();return W&&g(W,function(X,K){var Q=Y[K];g(X,function(j){j&&(Q.push(j),j.__tmWillDelete=1)})}),Y}function U(){g(G,function(W){g(W,function(Y){Y.parent&&Y.parent.remove(Y)})}),g(O,function(W){W.invisible=!0,W.dirty()})}},_doAnimation:function(I,R,E,k){if(E.get("animation")){var B=E.get("animationDurationUpdate"),F=E.get("animationEasing"),V=u.createWrap();g(R.willDeleteEls,function(N,O){g(N,function(z,G){if(!z.invisible){var q=z.parent,H;if(k&&k.direction==="drillDown")H=q===k.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var U=0,W=0;q.__tmWillDelete||(U=q.__tmNodeWidth/2,W=q.__tmNodeHeight/2),H=O==="nodeGroup"?{position:[U,W],style:{opacity:0}}:{shape:{x:U,y:W,width:0,height:0},style:{opacity:0}}}H&&V.add(z,H,B,F)}})}),g(this._storage,function(N,O){g(N,function(z,G){var q=R.lastsForAnimation[O][G],H={};q&&(O==="nodeGroup"?q.old&&(H.position=z.position.slice(),z.attr("position",q.old)):(q.old&&(H.shape=t.extend({},z.shape),z.setShape(q.old)),q.fadein?(z.setStyle("opacity",0),H.style={opacity:1}):z.style.opacity!==1&&(H.style={opacity:1})),V.add(z,H,B,F))})},this),this._state="animating",V.done(c(function(){this._state="ready",R.renderFinally()},this)).start()}},_resetController:function(I){var R=this._controller;R||(R=this._controller=new o(I.getZr()),R.enable(this.seriesModel.get("roam")),R.on("pan",c(this._onPan,this)),R.on("zoom",c(this._onZoom,this)));var E=new s(0,0,I.getWidth(),I.getHeight());R.setPointerChecker(function(k,B,F){return E.contain(B,F)})},_clearController:function(){var I=this._controller;I&&(I.dispose(),I=null)},_onPan:function(I){if(this._state!=="animating"&&(Math.abs(I.dx)>m||Math.abs(I.dy)>m)){var R=this.seriesModel.getData().tree.root;if(!R)return;var E=R.getLayout();if(!E)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:E.x+I.dx,y:E.y+I.dy,width:E.width,height:E.height}})}},_onZoom:function(I){var R=I.originX,E=I.originY;if(this._state!=="animating"){var k=this.seriesModel.getData().tree.root;if(!k)return;var B=k.getLayout();if(!B)return;var F=new s(B.x,B.y,B.width,B.height),V=this.seriesModel.layoutInfo;R-=V.x,E-=V.y;var N=l.create();l.translate(N,N,[-R,-E]),l.scale(N,N,[I.scale,I.scale]),l.translate(N,N,[R,E]),F.applyTransform(N),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(I){I.on("click",function(R){if(this._state==="ready"){var E=this.seriesModel.get("nodeClick",!0);if(E){var k=this.findTarget(R.offsetX,R.offsetY);if(k){var B=k.node;if(B.getLayout().isLeafRoot)this._rootToNode(k);else if(E==="zoomToNode")this._zoomToNode(k);else if(E==="link"){var F=B.hostTree.data.getItemModel(B.dataIndex),V=F.get("link",!0),N=F.get("target",!0)||"blank";V&&f(V,N)}}}}},this)},_renderBreadcrumb:function(I,R,E){E||(E=I.get("leafDepth",!0)!=null?{node:I.getViewRoot()}:this.findTarget(R.getWidth()/2,R.getHeight()/2),E||(E={node:I.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new n(this.group))).render(I,R,E.node,c(k,this));function k(B){this._state!=="animating"&&(i.aboveViewRoot(I.getViewRoot(),B)?this._rootToNode({node:B}):this._zoomToNode({node:B}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=L(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(I){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:I.node})},_rootToNode:function(I){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:I.node})},findTarget:function(I,R){var E,k=this.seriesModel.getViewRoot();return k.eachNode({attr:"viewChildren",order:"preorder"},function(B){var F=this._storage.background[B.getRawIndex()];if(F){var V=F.transformCoordToLocal(I,R),N=F.shape;if(N.x<=V[0]&&V[0]<=N.x+N.width&&N.y<=V[1]&&V[1]<=N.y+N.height)E={node:B,offsetX:V[0],offsetY:V[1]};else return!1}},this),E}});function L(){return{nodeGroup:[],background:[],content:[]}}function D(I,R,E,k,B,F,V,N,O,z){if(!V)return;var G=V.getLayout(),q=I.getData();if(q.setItemGraphicEl(V.dataIndex,null),!G||!G.isInView)return;var H=G.width,U=G.height,W=G.borderWidth,Y=G.invisible,X=V.getRawIndex(),K=N&&N.getRawIndex(),Q=V.viewChildren,j=G.upperHeight,te=Q&&Q.length,Z=V.getModel("itemStyle"),ee=V.getModel("emphasis.itemStyle"),le=ue("nodeGroup",d);if(!le)return;if(O.add(le),le.attr("position",[G.x||0,G.y||0]),le.__tmNodeWidth=H,le.__tmNodeHeight=U,G.isAboveViewRoot)return le;var oe=V.getModel(),fe=ue("background",p,z,w);if(fe&&ve(le,fe,te&&G.upperLabelHeight),te)e.isHighDownDispatcher(le)&&e.setAsHighDownDispatcher(le,!1),fe&&(e.setAsHighDownDispatcher(fe,!0),q.setItemGraphicEl(V.dataIndex,fe));else{var se=ue("content",p,z,A);se&&ye(le,se),fe&&e.isHighDownDispatcher(fe)&&e.setAsHighDownDispatcher(fe,!1),e.setAsHighDownDispatcher(le,!0),q.setItemGraphicEl(V.dataIndex,le)}return le;function ve(ge,pe,Ce){if(pe.dataIndex=V.dataIndex,pe.seriesIndex=I.seriesIndex,pe.setShape({x:0,y:0,width:H,height:U}),Y)Me(pe);else{pe.invisible=!1;var ze=V.getVisual("borderColor",!0),Ve=ee.get("borderColor"),ke=C(Z);ke.fill=ze;var lt=T(ee);if(lt.fill=Ve,Ce){var dt=H-2*W;J(ke,lt,ze,dt,j,{x:W,y:0,width:dt,height:j})}else ke.text=lt.text=null;pe.setStyle(ke),e.setElementHoverStyle(pe,lt)}ge.add(pe)}function ye(ge,pe){pe.dataIndex=V.dataIndex,pe.seriesIndex=I.seriesIndex;var Ce=Math.max(H-2*W,0),ze=Math.max(U-2*W,0);if(pe.culling=!0,pe.setShape({x:W,y:W,width:Ce,height:ze}),Y)Me(pe);else{pe.invisible=!1;var Ve=V.getVisual("color",!0),ke=C(Z);ke.fill=Ve;var lt=T(ee);J(ke,lt,Ve,Ce,ze),pe.setStyle(ke),e.setElementHoverStyle(pe,lt)}ge.add(pe)}function Me(ge){!ge.invisible&&F.push(ge)}function J(ge,pe,Ce,ze,Ve,ke){var lt=oe.get("name"),dt=oe.getModel(ke?x:y),Dt=oe.getModel(ke?S:_),Tt=dt.getShallow("show");e.setLabelStyle(ge,pe,dt,Dt,{defaultText:Tt?lt:null,autoColor:Ce,isRectText:!0,labelFetcher:I,labelDataIndex:V.dataIndex,labelProp:ke?"upperLabel":"label"}),ne(ge,ke,G),ne(pe,ke,G),ke&&(ge.textRect=t.clone(ke)),ge.truncate=Tt&&dt.get("ellipsis")?{outerWidth:ze,outerHeight:Ve,minChar:2}:null}function ne(ge,pe,Ce){var ze=ge.text;if(!pe&&Ce.isLeafRoot&&ze!=null){var Ve=I.get("drillDownIcon",!0);ge.text=Ve?Ve+" "+ze:ze}}function ue(ge,pe,Ce,ze){var Ve=K!=null&&E[ge][K],ke=B[ge];return Ve?(E[ge][K]=null,me(ke,Ve,ge)):Y||(Ve=new pe({z:P(Ce,ze)}),Ve.__tmDepth=Ce,Ve.__tmStorageName=ge,xe(ke,Ve,ge)),R[ge][X]=Ve}function me(ge,pe,Ce){var ze=ge[X]={};ze.old=Ce==="nodeGroup"?pe.position.slice():t.extend({},pe.shape)}function xe(ge,pe,Ce){var ze=ge[X]={},Ve=V.parentNode;if(Ve&&(!k||k.direction==="drillDown")){var ke=0,lt=0,dt=B.background[Ve.getRawIndex()];!k&&dt&&dt.old&&(ke=dt.old.width,lt=dt.old.height),ze.old=Ce==="nodeGroup"?[0,lt]:{x:ke,y:lt,width:0,height:0}}ze.fadein=Ce!=="nodeGroup"}}function P(I,R){var E=I*b+R;return(E-1)/E}return bx=M,bx}var AV={},CV;function xme(){if(CV)return AV;CV=1;for(var r=Pe(),t=Qs(),e=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],i=0;i<a.length;i++)r.registerAction({type:a[i],update:"updateView"},e);return r.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"treemap",query:n},s);function s(l,u){var v=["treemapZoomToNode","treemapRootToNode"],h=t.retrieveTargetInfo(n,v,l);if(h){var f=l.getViewRoot();f&&(n.direction=t.aboveViewRoot(f,h.node)?"rollUp":"drillDown"),l.resetViewRoot(h.node)}}}),AV}var Tx,MV;function js(){if(MV)return Tx;MV=1;var r=ie(),t=en(),e=st(),a=e.linearMap,i=r.each,n=r.isObject,o=-1,s=function(w){var A=w.mappingMethod,T=w.type,C=this.option=r.clone(w);this.type=T,this.mappingMethod=A,this._normalizeData=x[A];var M=l[T];this.applyVisual=M.applyVisual,this.getColorMapper=M.getColorMapper,this._doMap=M._doMap[A],A==="piecewise"?(h(C),u(C)):A==="category"?C.categories?v(C):h(C,!0):(r.assert(A!=="linear"||C.dataExtent),h(C))};s.prototype={constructor:s,mapValueToVisual:function(w){var A=this._normalizeData(w);return this._doMap(A,w)},getNormalizer:function(){return r.bind(this._normalizeData,this)}};var l=s.visualHandlers={color:{applyVisual:d("color"),getColorMapper:function(){var w=this.option;return r.bind(w.mappingMethod==="category"?function(A,T){return!T&&(A=this._normalizeData(A)),p.call(this,A)}:function(A,T,C){var M=!!C;return!T&&(A=this._normalizeData(A)),C=t.fastLerp(A,w.parsedVisual,C),M?C:t.stringify(C,"rgba")},this)},_doMap:{linear:function(w){return t.stringify(t.fastLerp(w,this.option.parsedVisual),"rgba")},category:p,piecewise:function(w,A){var T=y.call(this,A);return T==null&&(T=t.stringify(t.fastLerp(w,this.option.parsedVisual),"rgba")),T},fixed:g}},colorHue:f(function(w,A){return t.modifyHSL(w,A)}),colorSaturation:f(function(w,A){return t.modifyHSL(w,null,A)}),colorLightness:f(function(w,A){return t.modifyHSL(w,null,null,A)}),colorAlpha:f(function(w,A){return t.modifyAlpha(w,A)}),opacity:{applyVisual:d("opacity"),_doMap:m([0,1])},liftZ:{applyVisual:d("liftZ"),_doMap:{linear:g,category:g,piecewise:g,fixed:g}},symbol:{applyVisual:function(w,A,T){var C=this.mapValueToVisual(w);if(r.isString(C))T("symbol",C);else if(n(C))for(var M in C)C.hasOwnProperty(M)&&T(M,C[M])},_doMap:{linear:c,category:p,piecewise:function(w,A){var T=y.call(this,A);return T==null&&(T=c.call(this,w)),T},fixed:g}},symbolSize:{applyVisual:d("symbolSize"),_doMap:m([0,1])}};function u(w){var A=w.pieceList;w.hasSpecialVisual=!1,r.each(A,function(T,C){T.originIndex=C,T.visual!=null&&(w.hasSpecialVisual=!0)})}function v(w){var A=w.categories,T=w.visual,C=w.categoryMap={};if(i(A,function(D,P){C[D]=P}),!r.isArray(T)){var M=[];r.isObject(T)?i(T,function(D,P){var I=C[P];M[I!=null?I:o]=D}):M[o]=T,T=_(w,M)}for(var L=A.length-1;L>=0;L--)T[L]==null&&(delete C[A[L]],A.pop())}function h(w,A){var T=w.visual,C=[];r.isObject(T)?i(T,function(L){C.push(L)}):T!=null&&C.push(T);var M={color:1,symbol:1};!A&&C.length===1&&!M.hasOwnProperty(w.type)&&(C[1]=C[0]),_(w,C)}function f(w){return{applyVisual:function(A,T,C){A=this.mapValueToVisual(A),C("color",w(T("color"),A))},_doMap:m([0,1])}}function c(w){var A=this.option.visual;return A[Math.round(a(w,[0,1],[0,A.length-1],!0))]||{}}function d(w){return function(A,T,C){C(w,this.mapValueToVisual(A))}}function p(w){var A=this.option.visual;return A[this.option.loop&&w!==o?w%A.length:w]}function g(){return this.option.visual[0]}function m(w){return{linear:function(A){return a(A,w,this.option.visual,!0)},category:p,piecewise:function(A,T){var C=y.call(this,T);return C==null&&(C=a(A,w,this.option.visual,!0)),C},fixed:g}}function y(w){var A=this.option,T=A.pieceList;if(A.hasSpecialVisual){var C=s.findPieceIndex(w,T),M=T[C];if(M&&M.visual)return M.visual[this.type]}}function _(w,A){return w.visual=A,w.type==="color"&&(w.parsedVisual=r.map(A,function(T){return t.parse(T)})),A}var x={linear:function(w){return a(w,this.option.dataExtent,[0,1],!0)},piecewise:function(w){var A=this.option.pieceList,T=s.findPieceIndex(w,A,!0);if(T!=null)return a(T,[0,A.length-1],[0,1],!0)},category:function(w){var A=this.option.categories?this.option.categoryMap[w]:w;return A==null?o:A},fixed:r.noop};s.listVisualTypes=function(){var w=[];return r.each(l,function(A,T){w.push(T)}),w},s.addVisualHandler=function(w,A){l[w]=A},s.isValidType=function(w){return l.hasOwnProperty(w)},s.eachVisual=function(w,A,T){r.isObject(w)?r.each(w,A,T):A.call(T,w)},s.mapVisual=function(w,A,T){var C,M=r.isArray(w)?[]:r.isObject(w)?{}:(C=!0,null);return s.eachVisual(w,function(L,D){var P=A.call(T,L,D);C?M=P:M[D]=P}),M},s.retrieveVisuals=function(w){var A={},T;return w&&i(l,function(C,M){w.hasOwnProperty(M)&&(A[M]=w[M],T=!0)}),T?A:null},s.prepareVisualTypes=function(w){if(n(w)){var A=[];i(w,function(T,C){A.push(C)}),w=A}else if(r.isArray(w))w=w.slice();else return[];return w.sort(function(T,C){return C==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),w},s.dependsOn=function(w,A){return A==="color"?!!(w&&w.indexOf(A)===0):w===A},s.findPieceIndex=function(w,A,T){for(var C,M=1/0,L=0,D=A.length;L<D;L++){var P=A[L].value;if(P!=null){if(P===w||typeof P=="string"&&P===w+"")return L;T&&k(P,L)}}for(var L=0,D=A.length;L<D;L++){var I=A[L],R=I.interval,E=I.close;if(R){if(R[0]===-1/0){if(S(E[1],w,R[1]))return L}else if(R[1]===1/0){if(S(E[0],R[0],w))return L}else if(S(E[0],R[0],w)&&S(E[1],w,R[1]))return L;T&&k(R[0],L),T&&k(R[1],L)}}if(T)return w===1/0?A.length-1:w===-1/0?0:C;function k(B,F){var V=Math.abs(B-w);V<M&&(M=V,C=F)}};function S(w,A,T){return w?A<=T:A<T}var b=s;return Tx=b,Tx}var Ax,DV;function Sme(){if(DV)return Ax;DV=1;var r=js(),t=en(),e=ie(),a=e.isArray,i="itemStyle",n={seriesType:"treemap",reset:function(d,p,g,m){var y=d.getData().tree,_=y.root;_.isRemoved()||o(_,{},d.getViewRoot().getAncestors(),d)}};function o(d,p,g,m){var y=d.getModel(),_=d.getLayout();if(!(!_||_.invisible||!_.isInView)){var x=d.getModel(i),S=s(x,p,m),b=x.get("borderColor"),w=x.get("borderColorSaturation"),A;w!=null&&(A=l(S),b=u(w,A)),d.setVisual("borderColor",b);var T=d.viewChildren;if(!T||!T.length)A=l(S),d.setVisual("color",A);else{var C=h(d,y,_,x,S,T);e.each(T,function(M,L){if(M.depth>=g.length||M===g[M.depth]){var D=c(y,S,M,L,C,m);o(M,D,g,m)}})}}}function s(d,p,g){var m=e.extend({},p),y=g.designatedVisualItemStyle;return e.each(["color","colorAlpha","colorSaturation"],function(_){y[_]=p[_];var x=d.get(_);y[_]=null,x!=null&&(m[_]=x)}),m}function l(d){var p=v(d,"color");if(p){var g=v(d,"colorAlpha"),m=v(d,"colorSaturation");return m&&(p=t.modifyHSL(p,null,null,m)),g&&(p=t.modifyAlpha(p,g)),p}}function u(d,p){return p!=null?t.modifyHSL(p,null,null,d):null}function v(d,p){var g=d[p];if(g!=null&&g!=="none")return g}function h(d,p,g,m,y,_){if(!(!_||!_.length)){var x=f(p,"color")||y.color!=null&&y.color!=="none"&&(f(p,"colorAlpha")||f(p,"colorSaturation"));if(x){var S=p.get("visualMin"),b=p.get("visualMax"),w=g.dataExtent.slice();S!=null&&S<w[0]&&(w[0]=S),b!=null&&b>w[1]&&(w[1]=b);var A=p.get("colorMappingBy"),T={type:x.name,dataExtent:w,visual:x.range};T.type==="color"&&(A==="index"||A==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var C=new r(T);return C.__drColorMappingBy=A,C}}}function f(d,p){var g=d.get(p);return a(g)&&g.length?{name:p,range:g}:null}function c(d,p,g,m,y,_){var x=e.extend({},p);if(y){var S=y.type,b=S==="color"&&y.__drColorMappingBy,w=b==="index"?m:b==="id"?_.mapIdToIndex(g.getId()):g.getValue(d.get("visualDimension"));x[S]=y.mapValueToVisual(w)}return x}return Ax=n,Ax}var Cx,LV;function bme(){if(LV)return Cx;LV=1;var r=ie(),t=rr(),e=st(),a=e.parsePercent,i=e.MAX_SAFE_INTEGER,n=Ut(),o=Qs(),s=Math.max,l=Math.min,u=r.retrieve,v=r.each,h=["itemStyle","borderWidth"],f=["itemStyle","gapWidth"],c=["upperLabel","show"],d=["upperLabel","height"],p={seriesType:"treemap",reset:function(M,L,D,P){var I=D.getWidth(),R=D.getHeight(),E=M.option,k=n.getLayoutRect(M.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()}),B=E.size||[],F=a(u(k.width,B[0]),I),V=a(u(k.height,B[1]),R),N=P&&P.type,O=["treemapZoomToNode","treemapRootToNode"],z=o.retrieveTargetInfo(P,O,M),G=N==="treemapRender"||N==="treemapMove"?P.rootRect:null,q=M.getViewRoot(),H=o.getPathToRoot(q);if(N!=="treemapMove"){var U=N==="treemapZoomToNode"?w(M,z,q,F,V):G?[G.width,G.height]:[F,V],W=E.sort;W&&W!=="asc"&&W!=="desc"&&(W="desc");var Y={squareRatio:E.squareRatio,sort:W,leafDepth:E.leafDepth};q.hostTree.clearLayouts();var X={x:0,y:0,width:U[0],height:U[1],area:U[0]*U[1]};q.setLayout(X),g(q,Y,!1,0);var X=q.getLayout();v(H,function(Q,j){var te=(H[j+1]||q).getValue();Q.setLayout(r.extend({dataExtent:[te,te],borderWidth:0,upperHeight:0},X))})}var K=M.getData().tree.root;K.setLayout(A(k,G,z),!0),M.setLayoutInfo(k),T(K,new t(-k.x,-k.y,I,R),H,q,0)}};function g(M,L,D,P){var I,R;if(!M.isRemoved()){var E=M.getLayout();I=E.width,R=E.height;var z=M.getModel(),k=z.get(h),B=z.get(f)/2,F=C(z),V=Math.max(k,F),N=k-B,O=V-B,z=M.getModel();M.setLayout({borderWidth:k,upperHeight:V,upperLabelHeight:F},!0),I=s(I-2*N,0),R=s(R-N-O,0);var G=I*R,q=m(M,z,G,L,D,P);if(q.length){var H={x:N,y:O,width:I,height:R},U=l(I,R),W=1/0,Y=[];Y.area=0;for(var X=0,K=q.length;X<K;){var Q=q[X];Y.push(Q),Y.area+=Q.getLayout().area;var j=S(Y,U,L.squareRatio);j<=W?(X++,W=j):(Y.area-=Y.pop().getLayout().area,b(Y,U,H,B,!1),U=l(H.width,H.height),Y.length=Y.area=0,W=1/0)}if(Y.length&&b(Y,U,H,B,!0),!D){var te=z.get("childrenVisibleMin");te!=null&&G<te&&(D=!0)}for(var X=0,K=q.length;X<K;X++)g(q[X],L,D,P+1)}}}function m(M,L,D,P,I,R){var E=M.children||[],k=P.sort;k!=="asc"&&k!=="desc"&&(k=null);var B=P.leafDepth!=null&&P.leafDepth<=R;if(I&&!B)return M.viewChildren=[];E=r.filter(E,function(z){return!z.isRemoved()}),_(E,k);var F=x(L,E,k);if(F.sum===0)return M.viewChildren=[];if(F.sum=y(L,D,F.sum,k,E),F.sum===0)return M.viewChildren=[];for(var V=0,N=E.length;V<N;V++){var O=E[V].getValue()/F.sum*D;E[V].setLayout({area:O})}return B&&(E.length&&M.setLayout({isLeafRoot:!0},!0),E.length=0),M.viewChildren=E,M.setLayout({dataExtent:F.dataExtent},!0),E}function y(M,L,D,P,I){if(!P)return D;for(var R=M.get("visibleMin"),E=I.length,k=E,B=E-1;B>=0;B--){var F=I[P==="asc"?E-B-1:B].getValue();F/D*L<R&&(k=B,D-=F)}return P==="asc"?I.splice(0,E-k):I.splice(k,E-k),D}function _(M,L){return L&&M.sort(function(D,P){var I=L==="asc"?D.getValue()-P.getValue():P.getValue()-D.getValue();return I===0?L==="asc"?D.dataIndex-P.dataIndex:P.dataIndex-D.dataIndex:I}),M}function x(M,L,D){for(var P=0,I=0,R=L.length;I<R;I++)P+=L[I].getValue();var E=M.get("visualDimension"),k;if(!L||!L.length)k=[NaN,NaN];else if(E==="value"&&D)k=[L[L.length-1].getValue(),L[0].getValue()],D==="asc"&&k.reverse();else{var k=[1/0,-1/0];v(L,function(F){var V=F.getValue(E);V<k[0]&&(k[0]=V),V>k[1]&&(k[1]=V)})}return{sum:P,dataExtent:k}}function S(M,L,D){for(var P=0,I=1/0,R=0,E,k=M.length;R<k;R++)E=M[R].getLayout().area,E&&(E<I&&(I=E),E>P&&(P=E));var B=M.area*M.area,F=L*L*D;return B?s(F*P/B,B/(F*I)):1/0}function b(M,L,D,P,I){var R=L===D.width?0:1,E=1-R,k=["x","y"],B=["width","height"],F=D[k[R]],V=L?M.area/L:0;(I||V>D[B[E]])&&(V=D[B[E]]);for(var N=0,O=M.length;N<O;N++){var z=M[N],G={},q=V?z.getLayout().area/V:0,H=G[B[E]]=s(V-2*P,0),U=D[k[R]]+D[B[R]]-F,W=N===O-1||U<q?U:q,Y=G[B[R]]=s(W-2*P,0);G[k[E]]=D[k[E]]+l(P,H/2),G[k[R]]=F+l(P,Y/2),F+=W,z.setLayout(G,!0)}D[k[E]]+=V,D[B[E]]-=V}function w(M,L,D,P,I){var R=(L||{}).node,E=[P,I];if(!R||R===D)return E;for(var k,B=P*I,F=B*M.option.zoomToNodeRatio;k=R.parentNode;){for(var V=0,N=k.children,O=0,z=N.length;O<z;O++)V+=N[O].getValue();var G=R.getValue();if(G===0)return E;F*=V/G;var q=k.getModel(),H=q.get(h),U=Math.max(H,C(q));F+=4*H*H+(3*H+U)*Math.pow(F,.5),F>i&&(F=i),R=k}F<B&&(F=B);var W=Math.pow(F/B,.5);return[P*W,I*W]}function A(M,L,D){if(L)return{x:L.x,y:L.y};var P={x:0,y:0};if(!D)return P;var I=D.node,R=I.getLayout();if(!R)return P;for(var E=[R.width/2,R.height/2],k=I;k;){var B=k.getLayout();E[0]+=B.x,E[1]+=B.y,k=k.parentNode}return{x:M.width/2-E[0],y:M.height/2-E[1]}}function T(M,L,D,P,I){var R=M.getLayout(),E=D[I],k=E&&E===M;if(!(E&&!k||I===D.length&&M!==P)){M.setLayout({isInView:!0,invisible:!k&&!L.intersect(R),isAboveViewRoot:k},!0);var B=new t(L.x-R.x,L.y-R.y,L.width,L.height);v(M.viewChildren||[],function(F){T(F,B,D,P,I+1)})}}function C(M){return M.get(c)?M.get(d):0}return Cx=p,Cx}var IV;function wme(){if(IV)return _V;IV=1;var r=Pe();gme(),_me(),xme();var t=Sme(),e=bme();return r.registerVisual(t),r.registerLayout(e),_V}var PV={},Mx,RV;function Tme(){if(RV)return Mx;RV=1;var r=It();r.__DEV__;var t=ie(),e=Dn(),a=e.enableClassCheck;function i(h){return"_EC_"+h}var n=function(h){this._directed=h||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},o=n.prototype;o.type="graph",o.isDirected=function(){return this._directed},o.addNode=function(h,f){h=h==null?""+f:""+h;var c=this._nodesMap;if(!c[i(h)]){var d=new s(h,f);return d.hostGraph=this,this.nodes.push(d),c[i(h)]=d,d}},o.getNodeByIndex=function(h){var f=this.data.getRawIndex(h);return this.nodes[f]},o.getNodeById=function(h){return this._nodesMap[i(h)]},o.addEdge=function(h,f,c){var d=this._nodesMap,p=this._edgesMap;if(typeof h=="number"&&(h=this.nodes[h]),typeof f=="number"&&(f=this.nodes[f]),s.isInstance(h)||(h=d[i(h)]),s.isInstance(f)||(f=d[i(f)]),!(!h||!f)){var g=h.id+"-"+f.id,m=new l(h,f,c);return m.hostGraph=this,this._directed&&(h.outEdges.push(m),f.inEdges.push(m)),h.edges.push(m),h!==f&&f.edges.push(m),this.edges.push(m),p[g]=m,m}},o.getEdgeByIndex=function(h){var f=this.edgeData.getRawIndex(h);return this.edges[f]},o.getEdge=function(h,f){s.isInstance(h)&&(h=h.id),s.isInstance(f)&&(f=f.id);var c=this._edgesMap;return this._directed?c[h+"-"+f]:c[h+"-"+f]||c[f+"-"+h]},o.eachNode=function(h,f){for(var c=this.nodes,d=c.length,p=0;p<d;p++)c[p].dataIndex>=0&&h.call(f,c[p],p)},o.eachEdge=function(h,f){for(var c=this.edges,d=c.length,p=0;p<d;p++)c[p].dataIndex>=0&&c[p].node1.dataIndex>=0&&c[p].node2.dataIndex>=0&&h.call(f,c[p],p)},o.breadthFirstTraverse=function(h,f,c,d){if(s.isInstance(f)||(f=this._nodesMap[i(f)]),!!f){for(var p=c==="out"?"outEdges":c==="in"?"inEdges":"edges",g=0;g<this.nodes.length;g++)this.nodes[g].__visited=!1;if(!h.call(d,f,null))for(var m=[f];m.length;)for(var y=m.shift(),_=y[p],g=0;g<_.length;g++){var x=_[g],S=x.node1===y?x.node2:x.node1;if(!S.__visited){if(h.call(d,S,y))return;m.push(S),S.__visited=!0}}}},o.update=function(){for(var h=this.data,f=this.edgeData,c=this.nodes,d=this.edges,p=0,g=c.length;p<g;p++)c[p].dataIndex=-1;for(var p=0,g=h.count();p<g;p++)c[h.getRawIndex(p)].dataIndex=p;f.filterSelf(function(m){var y=d[f.getRawIndex(m)];return y.node1.dataIndex>=0&&y.node2.dataIndex>=0});for(var p=0,g=d.length;p<g;p++)d[p].dataIndex=-1;for(var p=0,g=f.count();p<g;p++)d[f.getRawIndex(p)].dataIndex=p},o.clone=function(){for(var h=new n(this._directed),f=this.nodes,c=this.edges,d=0;d<f.length;d++)h.addNode(f[d].id,f[d].dataIndex);for(var d=0;d<c.length;d++){var p=c[d];h.addEdge(p.node1.id,p.node2.id,p.dataIndex)}return h};function s(h,f){this.id=h==null?"":h,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=f==null?-1:f}s.prototype={constructor:s,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(h){if(!(this.dataIndex<0)){var f=this.hostGraph,c=f.data.getItemModel(this.dataIndex);return c.getModel(h)}}};function l(h,f,c){this.node1=h,this.node2=f,this.dataIndex=c==null?-1:c}l.prototype.getModel=function(h){if(!(this.dataIndex<0)){var f=this.hostGraph,c=f.edgeData.getItemModel(this.dataIndex);return c.getModel(h)}};var u=function(h,f){return{getValue:function(c){var d=this[h][f];return d.get(d.getDimension(c||"value"),this.dataIndex)},setVisual:function(c,d){this.dataIndex>=0&&this[h][f].setItemVisual(this.dataIndex,c,d)},getVisual:function(c,d){return this[h][f].getItemVisual(this.dataIndex,c,d)},setLayout:function(c,d){this.dataIndex>=0&&this[h][f].setItemLayout(this.dataIndex,c,d)},getLayout:function(){return this[h][f].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[h][f].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[h][f].getRawIndex(this.dataIndex)}}};t.mixin(s,u("hostGraph","data")),t.mixin(l,u("hostGraph","edgeData")),n.Node=s,n.Edge=l,a(s),a(l);var v=n;return Mx=v,Mx}var Dx,EV;function g$(){if(EV)return Dx;EV=1;var r=ie(),t=ei(),e=Tme(),a=d$(),i=Mu(),n=bi(),o=In();function s(l,u,v,h,f){for(var c=new e(h),d=0;d<l.length;d++)c.addNode(r.retrieve(l[d].id,l[d].name,d),d);for(var p=[],g=[],m=0,d=0;d<u.length;d++){var y=u[d],_=y.source,x=y.target;c.addEdge(_,x,m)&&(g.push(y),p.push(r.retrieve(y.id,_+" > "+x)),m++)}var S=v.get("coordinateSystem"),b;if(S==="cartesian2d"||S==="polar")b=o(l,v);else{var w=n.get(S),A=w&&w.type!=="view"?w.dimensions||[]:[];r.indexOf(A,"value")<0&&A.concat(["value"]);var T=i(l,{coordDimensions:A});b=new t(T,v),b.initData(l)}var C=new t(["value"],v);return C.initData(g,p),f&&f(b,C),a({mainData:b,struct:c,structAttr:"graph",datas:{node:b,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),c.update(),c}return Dx=s,Dx}var bv={},kV;function bg(){if(kV)return bv;kV=1;var r=ie(),t="-->",e=function(f){return f.get("autoCurveness")||null},a=function(f,c){var d=e(f),p=20,g=[];if(typeof d=="number")p=d;else if(r.isArray(d)){f.__curvenessList=d;return}c>p&&(p=c);var m=p%2?p+2:p+3;g=[];for(var y=0;y<m;y++)g.push((y%2?y+1:y)/10*(y%2?-1:1));f.__curvenessList=g},i=function(f,c,d){var p=[f.id,f.dataIndex].join("."),g=[c.id,c.dataIndex].join(".");return[d.uid,p,g].join(t)},n=function(f){var c=f.split(t);return[c[0],c[2],c[1]].join(t)},o=function(f,c){var d=i(f.node1,f.node2,c);return c.__edgeMap[d]},s=function(f,c){var d=l(i(f.node1,f.node2,c),c),p=l(i(f.node2,f.node1,c),c);return d+p},l=function(f,c){var d=c.__edgeMap;return d[f]?d[f].length:0};function u(f){e(f)&&(f.__curvenessList=[],f.__edgeMap={},a(f))}function v(f,c,d,p){if(e(d)){var g=i(f,c,d),m=d.__edgeMap,y=m[n(g)];m[g]&&!y?m[g].isForward=!0:y&&m[g]&&(y.isForward=!0,m[g].isForward=!1),m[g]=m[g]||[],m[g].push(p)}}function h(f,c,d,p){var g=e(c),m=r.isArray(g);if(!g)return null;var y=o(f,c);if(!y)return null;for(var _=-1,x=0;x<y.length;x++)if(y[x]===d){_=x;break}var S=s(f,c);a(c,S),f.lineStyle=f.lineStyle||{};var b=i(f.node1,f.node2,c),w=c.__curvenessList,A=m||S%2?0:1;if(y.isForward)return w[A+_];var T=n(b),C=l(T,c),M=w[_+C+A];return p?m?g&&g[0]===0?(C+A)%2?M:-M:((C%2?0:1)+A)%2?M:-M:(C+A)%2?M:-M:w[_+C+A]}return bv.initCurvenessList=u,bv.createEdgeMapForCurveness=v,bv.getCurvenessForEdge=h,bv}var Lx,OV;function Ame(){if(OV)return Lx;OV=1;var r=Pe(),t=ei(),e=ie(),a=_t(),i=a.defaultEmphasis,n=gr(),o=Yt(),s=o.encodeHTML,l=g$(),u=yf(),v=bg(),h=v.initCurvenessList,f=v.createEdgeMapForCurveness,c=r.extendSeriesModel({type:"series.graph",init:function(p){c.superApply(this,"init",arguments);var g=this;function m(){return g._categoriesData}this.legendVisualProvider=new u(m,m),this.fillDataTextStyle(p.edges||p.links),this._updateCategoriesData()},mergeOption:function(p){c.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(p.edges||p.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(p){c.superApply(this,"mergeDefaultAndTheme",arguments),i(p,["edgeLabel"],["show"])},getInitialData:function(p,g){var m=p.edges||p.links||[],y=p.data||p.nodes||[],_=this;if(y&&m){h(this);var x=l(y,m,this,!0,S);return e.each(x.edges,function(b){f(b.node1,b.node2,this,b.dataIndex)},this),x.data}function S(b,w){b.wrapMethod("getItemModel",function(D){var P=_._categoriesModels,I=D.getShallow("category"),R=P[I];return R&&(R.parentModel=D.parentModel,D.parentModel=R),D});var A=_.getModel("edgeLabel"),T=new n({label:A.option},A.parentModel,g),C=_.getModel("emphasis.edgeLabel"),M=new n({emphasis:{label:C.option}},C.parentModel,g);w.wrapMethod("getItemModel",function(D){return D.customizeGetParent(L),D});function L(D){return D=this.parsePath(D),D&&D[0]==="label"?T:D&&D[0]==="emphasis"&&D[1]==="label"?M:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(p,g,m){if(m==="edge"){var y=this.getData(),_=this.getDataParams(p,m),x=y.graph.getEdgeByIndex(p),S=y.getName(x.node1.dataIndex),b=y.getName(x.node2.dataIndex),w=[];return S!=null&&w.push(S),b!=null&&w.push(b),w=s(w.join(" > ")),_.value&&(w+=" : "+s(_.value)),w}else return c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var p=e.map(this.option.categories||[],function(m){return m.value!=null?m:e.extend({value:0},m)}),g=new t(["value"],this);g.initData(p),this._categoriesData=g,this._categoriesModels=g.mapArray(function(m){return g.getItemModel(m,!0)})},setZoom:function(p){this.option.zoom=p},setCenter:function(p){this.option.center=p},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},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:{label:{show:!0}}}}),d=c;return Lx=d,Lx}var Ix,NV;function Cme(){if(NV)return Ix;NV=1;var r=qe(),t=Jt(),e=r.Line.prototype,a=r.BezierCurve.prototype;function i(o){return isNaN(+o.cpx1)||isNaN(+o.cpy1)}var n=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(o,s){this[i(s)?"_buildPathLine":"_buildPathCurve"](o,s)},_buildPathLine:e.buildPath,_buildPathCurve:a.buildPath,pointAt:function(o){return this[i(this.shape)?"_pointAtLine":"_pointAtCurve"](o)},_pointAtLine:e.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(o){var s=this.shape,l=i(s)?[s.x2-s.x1,s.y2-s.y1]:this._tangentAtCurve(o);return t.normalize(l,l)},_tangentAtCurve:a.tangentAt});return Ix=n,Ix}var Px,zV;function dD(){if(zV)return Px;zV=1;var r=ie(),t=Jt(),e=ti(),a=Cme(),i=qe(),n=st(),o=n.round,s=["fromSymbol","toSymbol"];function l(g){return"_"+g+"Type"}function u(g,m,y){var _=m.getItemVisual(y,g);if(!(!_||_==="none")){var x=m.getItemVisual(y,"color"),S=m.getItemVisual(y,g+"Size"),b=m.getItemVisual(y,g+"Rotate");r.isArray(S)||(S=[S,S]);var w=e.createSymbol(_,-S[0]/2,-S[1]/2,S[0],S[1],x);return w.__specifiedRotation=b==null||isNaN(b)?void 0:+b*Math.PI/180||0,w.name=g,w}}function v(g){var m=new a({name:"line",subPixelOptimize:!0});return h(m.shape,g),m}function h(g,m){g.x1=m[0][0],g.y1=m[0][1],g.x2=m[1][0],g.y2=m[1][1],g.percent=1;var y=m[2];y?(g.cpx1=y[0],g.cpy1=y[1]):(g.cpx1=NaN,g.cpy1=NaN)}function f(){var g=this,m=g.childOfName("fromSymbol"),y=g.childOfName("toSymbol"),_=g.childOfName("label");if(!(!m&&!y&&_.ignore)){for(var x=1,S=this.parent;S;)S.scale&&(x/=S.scale[0]),S=S.parent;var b=g.childOfName("line");if(!(!this.__dirty&&!b.__dirty)){var w=b.shape.percent,A=b.pointAt(0),T=b.pointAt(w),C=t.sub([],T,A);if(t.normalize(C,C),m){m.attr("position",A);var M=m.__specifiedRotation;if(M==null){var L=b.tangentAt(0);m.attr("rotation",Math.PI/2-Math.atan2(L[1],L[0]))}else m.attr("rotation",M);m.attr("scale",[x*w,x*w])}if(y){y.attr("position",T);var M=y.__specifiedRotation;if(M==null){var L=b.tangentAt(1);y.attr("rotation",-Math.PI/2-Math.atan2(L[1],L[0]))}else y.attr("rotation",M);y.attr("scale",[x*w,x*w])}if(!_.ignore){_.attr("position",T);var D,P,I,R,E=_.__labelDistance,k=E[0]*x,B=E[1]*x,F=w/2,L=b.tangentAt(F),V=[L[1],-L[0]],N=b.pointAt(F);V[1]>0&&(V[0]=-V[0],V[1]=-V[1]);var O=L[0]<0?-1:1;if(_.__position!=="start"&&_.__position!=="end"){var z=-Math.atan2(L[1],L[0]);T[0]<A[0]&&(z=Math.PI+z),_.attr("rotation",z)}var G;switch(_.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-B,I="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=B,I="top";break;default:G=0,I="middle"}switch(_.__position){case"end":D=[C[0]*k+T[0],C[1]*B+T[1]],P=C[0]>.8?"left":C[0]<-.8?"right":"center",I=C[1]>.8?"top":C[1]<-.8?"bottom":"middle";break;case"start":D=[-C[0]*k+A[0],-C[1]*B+A[1]],P=C[0]>.8?"right":C[0]<-.8?"left":"center",I=C[1]>.8?"bottom":C[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":D=[k*O+A[0],A[1]+G],P=L[0]<0?"right":"left",R=[-k*O,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":D=[N[0],N[1]+G],P="center",R=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":D=[-k*O+T[0],T[1]+G],P=L[0]>=0?"right":"left",R=[k*O,-G];break}_.attr({style:{textVerticalAlign:_.__verticalAlign||I,textAlign:_.__textAlign||P},position:D,scale:[x,x],origin:R})}}}}function c(g,m,y){i.Group.call(this),this._createLine(g,m,y)}var d=c.prototype;d.beforeUpdate=f,d._createLine=function(g,m,y){var _=g.hostModel,x=g.getItemLayout(m),S=v(x);S.shape.percent=0,i.initProps(S,{shape:{percent:1}},_,m),this.add(S);var b=new i.Text({name:"label",lineLabelOriginalOpacity:1});this.add(b),r.each(s,function(w){var A=u(w,g,m);this.add(A),this[l(w)]=g.getItemVisual(m,w)},this),this._updateCommonStl(g,m,y)},d.updateData=function(g,m,y){var _=g.hostModel,x=this.childOfName("line"),S=g.getItemLayout(m),b={shape:{}};h(b.shape,S),i.updateProps(x,b,_,m),r.each(s,function(w){var A=g.getItemVisual(m,w),T=l(w);if(this[T]!==A){this.remove(this.childOfName(w));var C=u(w,g,m);this.add(C)}this[T]=A},this),this._updateCommonStl(g,m,y)},d._updateCommonStl=function(g,m,y){var _=g.hostModel,x=this.childOfName("line"),S=y&&y.lineStyle,b=y&&y.hoverLineStyle,w=y&&y.labelModel,A=y&&y.hoverLabelModel;if(!y||g.hasItemOption){var T=g.getItemModel(m);S=T.getModel("lineStyle").getLineStyle(),b=T.getModel("emphasis.lineStyle").getLineStyle(),w=T.getModel("label"),A=T.getModel("emphasis.label")}var C=g.getItemVisual(m,"color"),M=r.retrieve3(g.getItemVisual(m,"opacity"),S.opacity,1);x.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:C,opacity:M},S)),x.hoverStyle=b,r.each(s,function(N){var O=this.childOfName(N);O&&(O.setColor(C),O.setStyle({opacity:M}))},this);var L=w.getShallow("show"),D=A.getShallow("show"),P=this.childOfName("label"),I,R;if((L||D)&&(I=C||"#000",R=_.getFormattedLabel(m,"normal",g.dataType),R==null)){var E=_.getRawValue(m);R=E==null?g.getName(m):isFinite(E)?o(E):E}var k=L?R:null,B=D?r.retrieve2(_.getFormattedLabel(m,"emphasis",g.dataType),R):null,F=P.style;if(k!=null||B!=null){i.setTextStyle(P.style,w,{text:k},{autoColor:I}),P.__textAlign=F.textAlign,P.__verticalAlign=F.textVerticalAlign,P.__position=w.get("position")||"middle";var V=w.get("distance");r.isArray(V)||(V=[V,V]),P.__labelDistance=V}B!=null?P.hoverStyle={text:B,textFill:A.getTextColor(!0),fontStyle:A.getShallow("fontStyle"),fontWeight:A.getShallow("fontWeight"),fontSize:A.getShallow("fontSize"),fontFamily:A.getShallow("fontFamily")}:P.hoverStyle={text:null},P.ignore=!L&&!D,i.setHoverStyle(this)},d.highlight=function(){this.trigger("emphasis")},d.downplay=function(){this.trigger("normal")},d.updateLayout=function(g,m){this.setLinePoints(g.getItemLayout(m))},d.setLinePoints=function(g){var m=this.childOfName("line");h(m.shape,g),m.dirty()},r.inherits(c,i.Group);var p=c;return Px=p,Px}var Rx,BV;function pD(){if(BV)return Rx;BV=1;var r=qe(),t=dD();function e(h){this._ctor=h||t,this.group=new r.Group}var a=e.prototype;a.isPersistent=function(){return!0},a.updateData=function(h){var f=this,c=f.group,d=f._lineData;f._lineData=h,d||c.removeAll();var p=s(h);h.diff(d).add(function(g){i(f,h,g,p)}).update(function(g,m){n(f,d,h,m,g,p)}).remove(function(g){c.remove(d.getItemGraphicEl(g))}).execute()};function i(h,f,c,d){var p=f.getItemLayout(c);if(u(p)){var g=new h._ctor(f,c,d);f.setItemGraphicEl(c,g),h.group.add(g)}}function n(h,f,c,d,p,g){var m=f.getItemGraphicEl(d);if(!u(c.getItemLayout(p))){h.group.remove(m);return}m?m.updateData(c,p,g):m=new h._ctor(c,p,g),c.setItemGraphicEl(p,m),h.group.add(m)}a.updateLayout=function(){var h=this._lineData;h&&h.eachItemGraphicEl(function(f,c){f.updateLayout(h,c)},this)},a.incrementalPrepareUpdate=function(h){this._seriesScope=s(h),this._lineData=null,this.group.removeAll()};function o(h){return h.animators&&h.animators.length>0}a.incrementalUpdate=function(h,f){function c(m){!m.isGroup&&!o(m)&&(m.incremental=m.useHoverLayer=!0)}for(var d=h.start;d<h.end;d++){var p=f.getItemLayout(d);if(u(p)){var g=new this._ctor(f,d,this._seriesScope);g.traverse(c),this.group.add(g),f.setItemGraphicEl(d,g)}}};function s(h){var f=h.hostModel;return{lineStyle:f.getModel("lineStyle").getLineStyle(),hoverLineStyle:f.getModel("emphasis.lineStyle").getLineStyle(),labelModel:f.getModel("label"),hoverLabelModel:f.getModel("emphasis.label")}}a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var h=this._incremental;h&&h.clearDisplaybles()};function l(h){return isNaN(h[0])||isNaN(h[1])}function u(h){return!l(h[0])&&!l(h[1])}var v=e;return Rx=v,Rx}var kc={},VV;function gD(){if(VV)return kc;VV=1;function r(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var i=e.option.nodeScaleRatio,n=a.scale,o=n&&n[0]||1,s=a.getZoom(),l=(s-1)*i+1;return l/o}function t(e){var a=e.getVisual("symbolSize");return a instanceof Array&&(a=(a[0]+a[1])/2),+a}return kc.getNodeGlobalScale=r,kc.getSymbolSize=t,kc}var Ex,GV;function Mme(){if(GV)return Ex;GV=1;var r=yo(),t=Jt(),e=gD(),a=e.getSymbolSize,i=[],n=[],o=[],s=r.quadraticAt,l=t.distSquare,u=Math.abs;function v(f,c,d){for(var p=f[0],g=f[1],m=f[2],y=1/0,_,x=d*d,S=.1,b=.1;b<=.9;b+=.1){i[0]=s(p[0],g[0],m[0],b),i[1]=s(p[1],g[1],m[1],b);var w=u(l(i,c)-x);w<y&&(y=w,_=b)}for(var A=0;A<32;A++){var T=_+S;n[0]=s(p[0],g[0],m[0],_),n[1]=s(p[1],g[1],m[1],_),o[0]=s(p[0],g[0],m[0],T),o[1]=s(p[1],g[1],m[1],T);var w=l(n,c)-x;if(u(w)<.01)break;var C=l(o,c)-x;S/=2,w<0?C>=0?_=_+S:_=_-S:C>=0?_=_-S:_=_+S}return _}function h(f,c){var d=[],p=r.quadraticSubdivide,g=[[],[],[]],m=[[],[]],y=[];c/=2,f.eachEdge(function(_,x){var S=_.getLayout(),b=_.getVisual("fromSymbol"),w=_.getVisual("toSymbol");S.__original||(S.__original=[t.clone(S[0]),t.clone(S[1])],S[2]&&S.__original.push(t.clone(S[2])));var A=S.__original;if(S[2]!=null){if(t.copy(g[0],A[0]),t.copy(g[1],A[2]),t.copy(g[2],A[1]),b&&b!=="none"){var T=a(_.node1),C=v(g,A[0],T*c);p(g[0][0],g[1][0],g[2][0],C,d),g[0][0]=d[3],g[1][0]=d[4],p(g[0][1],g[1][1],g[2][1],C,d),g[0][1]=d[3],g[1][1]=d[4]}if(w&&w!=="none"){var T=a(_.node2),C=v(g,A[1],T*c);p(g[0][0],g[1][0],g[2][0],C,d),g[1][0]=d[1],g[2][0]=d[2],p(g[0][1],g[1][1],g[2][1],C,d),g[1][1]=d[1],g[2][1]=d[2]}t.copy(S[0],g[0]),t.copy(S[1],g[2]),t.copy(S[2],g[1])}else{if(t.copy(m[0],A[0]),t.copy(m[1],A[1]),t.sub(y,m[1],m[0]),t.normalize(y,y),b&&b!=="none"){var T=a(_.node1);t.scaleAndAdd(m[0],m[0],y,T*c)}if(w&&w!=="none"){var T=a(_.node2);t.scaleAndAdd(m[1],m[1],y,-T*c)}t.copy(S[0],m[0]),t.copy(S[1],m[1])}})}return Ex=h,Ex}var kx,FV;function Dme(){if(FV)return kx;FV=1;var r=Pe(),t=ie(),e=df(),a=pD(),i=xf(),n=uD(),o=Sg(),s=o.onIrrelevantElement,l=qe(),u=Mme(),v=gD(),h=v.getNodeGlobalScale,f="__focusNodeAdjacency",c="__unfocusNodeAdjacency",d=["itemStyle","opacity"],p=["lineStyle","opacity"];function g(x,S){var b=x.getVisual("opacity");return b!=null?b:x.getModel().get(S)}function m(x,S,b){var w=x.getGraphicEl(),A=g(x,S);b!=null&&(A==null&&(A=1),A*=b),w.downplay&&w.downplay(),w.traverse(function(T){if(!T.isGroup){var C=T.lineLabelOriginalOpacity;(C==null||b!=null)&&(C=A),T.setStyle("opacity",C)}})}function y(x,S){var b=g(x,S),w=x.getGraphicEl();w.traverse(function(A){!A.isGroup&&A.setStyle("opacity",b)}),w.highlight&&w.highlight()}var _=r.extendChartView({type:"graph",init:function(x,S){var b=new e,w=new a,A=this.group;this._controller=new i(S.getZr()),this._controllerHost={target:A},A.add(b.group),A.add(w.group),this._symbolDraw=b,this._lineDraw=w,this._firstRender=!0},render:function(x,S,b){var w=this,A=x.coordinateSystem;this._model=x;var T=this._symbolDraw,C=this._lineDraw,M=this.group;if(A.type==="view"){var L={position:A.position,scale:A.scale};this._firstRender?M.attr(L):l.updateProps(M,L,x)}u(x.getGraph(),h(x));var D=x.getData();T.updateData(D);var P=x.getEdgeData();C.updateData(P),this._updateNodeAndLinkScale(),this._updateController(x,S,b),clearTimeout(this._layoutTimeout);var I=x.forceLayout,R=x.get("force.layoutAnimation");I&&this._startForceLayoutIteration(I,R),D.eachItemGraphicEl(function(F,V){var N=D.getItemModel(V);F.off("drag").off("dragend");var O=N.get("draggable");O&&F.on("drag",function(){I&&(I.warmUp(),!this._layouting&&this._startForceLayoutIteration(I,R),I.setFixed(V),D.setItemLayout(V,F.position))},this).on("dragend",function(){I&&I.setUnfixed(V)},this),F.setDraggable(O&&I),F[f]&&F.off("mouseover",F[f]),F[c]&&F.off("mouseout",F[c]),N.get("focusNodeAdjacency")&&(F.on("mouseover",F[f]=function(){w._clearTimer(),b.dispatchAction({type:"focusNodeAdjacency",seriesId:x.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[c]=function(){w._dispatchUnfocus(b)}))},this),D.graph.eachEdge(function(F){var V=F.getGraphicEl();V[f]&&V.off("mouseover",V[f]),V[c]&&V.off("mouseout",V[c]),F.getModel().get("focusNodeAdjacency")&&(V.on("mouseover",V[f]=function(){w._clearTimer(),b.dispatchAction({type:"focusNodeAdjacency",seriesId:x.id,edgeDataIndex:F.dataIndex})}),V.on("mouseout",V[c]=function(){w._dispatchUnfocus(b)}))});var E=x.get("layout")==="circular"&&x.get("circular.rotateLabel"),k=D.getLayout("cx"),B=D.getLayout("cy");D.eachItemGraphicEl(function(F,V){var N=D.getItemModel(V),O=N.get("label.rotate")||0,z=F.getSymbolPath();if(E){var G=D.getItemLayout(V),q=Math.atan2(G[1]-B,G[0]-k);q<0&&(q=Math.PI*2+q);var H=G[0]<k;H&&(q=q-Math.PI);var U=H?"left":"right";l.modifyLabelStyle(z,{textRotation:-q,textPosition:U,textOrigin:"center"},{textPosition:U})}else l.modifyLabelStyle(z,{textRotation:O*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(x,S){var b=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){b._unfocusDelayTimer=null,x.dispatchAction({type:"unfocusNodeAdjacency",seriesId:b._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(x,S,b,w){var A=x.getData(),T=A.graph,C=w.dataIndex,M=w.edgeDataIndex,L=T.getNodeByIndex(C),D=T.getEdgeByIndex(M);!L&&!D||(T.eachNode(function(P){m(P,d,.1)}),T.eachEdge(function(P){m(P,p,.1)}),L&&(y(L,d),t.each(L.edges,function(P){P.dataIndex<0||(y(P,p),y(P.node1,d),y(P.node2,d))})),D&&(y(D,p),y(D.node1,d),y(D.node2,d)))},unfocusNodeAdjacency:function(x,S,b,w){var A=x.getData().graph;A.eachNode(function(T){m(T,d)}),A.eachEdge(function(T){m(T,p)})},_startForceLayoutIteration:function(x,S){var b=this;(function w(){x.step(function(A){b.updateLayout(b._model),(b._layouting=!A)&&(S?b._layoutTimeout=setTimeout(w,16):w())})})()},_updateController:function(x,S,b){var w=this._controller,A=this._controllerHost,T=this.group;if(w.setPointerChecker(function(C,M,L){var D=T.getBoundingRect();return D.applyTransform(T.transform),D.contain(M,L)&&!s(C,b,x)}),x.coordinateSystem.type!=="view"){w.disable();return}w.enable(x.get("roam")),A.zoomLimit=x.get("scaleLimit"),A.zoom=x.coordinateSystem.getZoom(),w.off("pan").off("zoom").on("pan",function(C){n.updateViewOnPan(A,C.dx,C.dy),b.dispatchAction({seriesId:x.id,type:"graphRoam",dx:C.dx,dy:C.dy})}).on("zoom",function(C){n.updateViewOnZoom(A,C.scale,C.originX,C.originY),b.dispatchAction({seriesId:x.id,type:"graphRoam",zoom:C.scale,originX:C.originX,originY:C.originY}),this._updateNodeAndLinkScale(),u(x.getGraph(),h(x)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var x=this._model,S=x.getData(),b=h(x),w=[b,b];S.eachItemGraphicEl(function(A,T){A.attr("scale",w)})},updateLayout:function(x){u(x.getGraph(),h(x)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(x,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});return kx=_,kx}var HV={},qV={},WV;function m$(){if(WV)return qV;WV=1;var r=Pe();return r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),qV}var UV;function Lme(){if(UV)return HV;UV=1;var r=Pe(),t=vD(),e=t.updateCenterAndZoom;m$();var a={type:"graphRoam",event:"graphRoam",update:"none"};return r.registerAction(a,function(i,n){n.eachComponent({mainType:"series",query:i},function(o){var s=o.coordinateSystem,l=e(s,i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom)})}),HV}var Ox,$V;function Ime(){if($V)return Ox;$V=1;function r(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(a){var i=a.getCategoriesData(),n=a.getGraph(),o=n.data,s=i.mapArray(i.getName);o.filterSelf(function(l){var u=o.getItemModel(l),v=u.getShallow("category");if(v!=null){typeof v=="number"&&(v=s[v]);for(var h=0;h<e.length;h++)if(!e[h].isSelected(v))return!1}return!0})},this)}return Ox=r,Ox}var Nx,YV;function Pme(){if(YV)return Nx;YV=1;function r(t){var e={};t.eachSeriesByType("graph",function(a){var i=a.getCategoriesData(),n=a.getData(),o={};i.each(function(s){var l=i.getName(s);o["ec-"+l]=s;var u=i.getItemModel(s),v=u.get("itemStyle.color")||a.getColorFromPalette(l,e);i.setItemVisual(s,"color",v);for(var h=["opacity","symbol","symbolSize","symbolKeepAspect"],f=0;f<h.length;f++){var c=u.getShallow(h[f],!0);c!=null&&i.setItemVisual(s,h[f],c)}}),i.count()&&n.each(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){typeof u=="string"&&(u=o["ec-"+u]);for(var v=["color","opacity","symbol","symbolSize","symbolKeepAspect"],h=0;h<v.length;h++)n.getItemVisual(s,v[h],!0)==null&&n.setItemVisual(s,v[h],i.getItemVisual(u,v[h]))}})})}return Nx=r,Nx}var zx,ZV;function Rme(){if(ZV)return zx;ZV=1;function r(e){return e instanceof Array||(e=[e,e]),e}function t(e){e.eachSeriesByType("graph",function(a){var i=a.getGraph(),n=a.getEdgeData(),o=r(a.get("edgeSymbol")),s=r(a.get("edgeSymbolSize")),l="lineStyle.color".split("."),u="lineStyle.opacity".split(".");n.setVisual("fromSymbol",o&&o[0]),n.setVisual("toSymbol",o&&o[1]),n.setVisual("fromSymbolSize",s&&s[0]),n.setVisual("toSymbolSize",s&&s[1]),n.setVisual("color",a.get(l)),n.setVisual("opacity",a.get(u)),n.each(function(v){var h=n.getItemModel(v),f=i.getEdgeByIndex(v),c=r(h.getShallow("symbol",!0)),d=r(h.getShallow("symbolSize",!0)),p=h.get(l),g=h.get(u);switch(p){case"source":p=f.node1.getVisual("color");break;case"target":p=f.node2.getVisual("color");break}c[0]&&f.setVisual("fromSymbol",c[0]),c[1]&&f.setVisual("toSymbol",c[1]),d[0]&&f.setVisual("fromSymbolSize",d[0]),d[1]&&f.setVisual("toSymbolSize",d[1]),f.setVisual("color",p),f.setVisual("opacity",g)})})}return zx=t,zx}var Oc={},XV;function y$(){if(XV)return Oc;XV=1;var r=Jt(),t=ie(),e=bg(),a=e.getCurvenessForEdge;function i(o){var s=o.coordinateSystem;if(!(s&&s.type!=="view")){var l=o.getGraph();l.eachNode(function(u){var v=u.getModel();u.setLayout([+v.get("x"),+v.get("y")])}),n(l,o)}}function n(o,s){o.eachEdge(function(l,u){var v=t.retrieve3(l.getModel().get("lineStyle.curveness"),-a(l,s,u,!0),0),h=r.clone(l.node1.getLayout()),f=r.clone(l.node2.getLayout()),c=[h,f];+v&&c.push([(h[0]+f[0])/2-(h[1]-f[1])*v,(h[1]+f[1])/2-(f[0]-h[0])*v]),l.setLayout(c)})}return Oc.simpleLayout=i,Oc.simpleLayoutEdge=n,Oc}var Bx,KV;function Eme(){if(KV)return Bx;KV=1;var r=ie(),t=r.each,e=y$(),a=e.simpleLayout,i=e.simpleLayoutEdge;function n(o,s){o.eachSeriesByType("graph",function(l){var u=l.get("layout"),v=l.coordinateSystem;if(v&&v.type!=="view"){var h=l.getData(),f=[];t(v.dimensions,function(y){f=f.concat(h.mapDimension(y,!0))});for(var c=0;c<h.count();c++){for(var d=[],p=!1,g=0;g<f.length;g++){var m=h.get(f[g],c);isNaN(m)||(p=!0),d.push(m)}p?h.setItemLayout(c,v.dataToPoint(d)):h.setItemLayout(c,[NaN,NaN])}i(h.graph,l)}else(!u||u==="none")&&a(l)})}return Bx=n,Bx}var Vx={},QV;function _$(){if(QV)return Vx;QV=1;var r=Jt(),t=gD(),e=t.getSymbolSize,a=t.getNodeGlobalScale,i=ie(),n=bg(),o=n.getCurvenessForEdge,s=Math.PI,l=[];function u(h,f){var c=h.coordinateSystem;if(!(c&&c.type!=="view")){var d=c.getBoundingRect(),p=h.getData(),g=p.graph,m=d.width/2+d.x,y=d.height/2+d.y,_=Math.min(d.width,d.height)/2,x=p.count();p.setLayout({cx:m,cy:y}),x&&(v[f](h,c,g,p,_,m,y,x),g.eachEdge(function(S,b){var w=i.retrieve3(S.getModel().get("lineStyle.curveness"),o(S,h,b),0),A=r.clone(S.node1.getLayout()),T=r.clone(S.node2.getLayout()),C,M=(A[0]+T[0])/2,L=(A[1]+T[1])/2;+w&&(w*=3,C=[m*w+M*(1-w),y*w+L*(1-w)]),S.setLayout([A,T,C])}))}}var v={value:function(h,f,c,d,p,g,m,y){var _=0,x=d.getSum("value"),S=Math.PI*2/(x||y);c.eachNode(function(b){var w=b.getValue("value"),A=S*(x?w:1)/2;_+=A,b.setLayout([p*Math.cos(_)+g,p*Math.sin(_)+m]),_+=A})},symbolSize:function(h,f,c,d,p,g,m,y){var _=0;l.length=y;var x=a(h);c.eachNode(function(w){var A=e(w);isNaN(A)&&(A=2),A<0&&(A=0),A*=x;var T=Math.asin(A/2/p);isNaN(T)&&(T=s/2),l[w.dataIndex]=T,_+=T*2});var S=(2*s-_)/y/2,b=0;c.eachNode(function(w){var A=S+l[w.dataIndex];b+=A,w.setLayout([p*Math.cos(b)+g,p*Math.sin(b)+m]),b+=A})}};return Vx.circularLayout=u,Vx}var Gx,jV;function kme(){if(jV)return Gx;jV=1;var r=_$(),t=r.circularLayout;function e(a){a.eachSeriesByType("graph",function(i){i.get("layout")==="circular"&&t(i,"symbolSize")})}return Gx=e,Gx}var Fx={},JV;function Ome(){if(JV)return Fx;JV=1;var r=Jt(),t=r.scaleAndAdd;function e(a,i,n){for(var o=n.rect,s=o.width,l=o.height,u=[o.x+s/2,o.y+l/2],v=n.gravity==null?.1:n.gravity,h=0;h<a.length;h++){var f=a[h];f.p||(f.p=r.create(s*(Math.random()-.5)+u[0],l*(Math.random()-.5)+u[1])),f.pp=r.clone(f.p),f.edges=null}var c=n.friction==null?.6:n.friction,d=c;return{warmUp:function(){d=c*.8},setFixed:function(p){a[p].fixed=!0},setUnfixed:function(p){a[p].fixed=!1},step:function(p){for(var g=[],m=a.length,y=0;y<i.length;y++){var _=i[y];if(!_.ignoreForceLayout){var x=_.n1,S=_.n2;r.sub(g,S.p,x.p);var b=r.len(g)-_.d,w=S.w/(x.w+S.w);isNaN(w)&&(w=0),r.normalize(g,g),!x.fixed&&t(x.p,x.p,g,w*b*d),!S.fixed&&t(S.p,S.p,g,-(1-w)*b*d)}}for(var y=0;y<m;y++){var A=a[y];A.fixed||(r.sub(g,u,A.p),t(A.p,A.p,g,v*d))}for(var y=0;y<m;y++)for(var x=a[y],T=y+1;T<m;T++){var S=a[T];r.sub(g,S.p,x.p);var b=r.len(g);b===0&&(r.set(g,Math.random()-.5,Math.random()-.5),b=1);var C=(x.rep+S.rep)/b/b;!x.fixed&&t(x.pp,x.pp,g,C),!S.fixed&&t(S.pp,S.pp,g,-C)}for(var M=[],y=0;y<m;y++){var A=a[y];A.fixed||(r.sub(M,A.p,A.pp),t(A.p,A.p,M,d),r.copy(A.pp,A.p))}d=d*.992,p&&p(a,i,d<.01)}}}return Fx.forceLayout=e,Fx}var Hx,e5;function Nme(){if(e5)return Hx;e5=1;var r=Ome(),t=r.forceLayout,e=y$(),a=e.simpleLayout,i=_$(),n=i.circularLayout,o=st(),s=o.linearMap,l=Jt(),u=ie(),v=bg(),h=v.getCurvenessForEdge;function f(c){c.eachSeriesByType("graph",function(d){var p=d.coordinateSystem;if(!(p&&p.type!=="view"))if(d.get("layout")==="force"){var g=d.preservedPoints||{},m=d.getGraph(),y=m.data,_=m.edgeData,x=d.getModel("force"),S=x.get("initLayout");d.preservedPoints?y.each(function(R){var E=y.getId(R);y.setItemLayout(R,g[E]||[NaN,NaN])}):!S||S==="none"?a(d):S==="circular"&&n(d,"value");var b=y.getDataExtent("value"),w=_.getDataExtent("value"),A=x.get("repulsion"),T=x.get("edgeLength");u.isArray(A)||(A=[A,A]),u.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var C=y.mapArray("value",function(R,E){var k=y.getItemLayout(E),B=s(R,b,A);return isNaN(B)&&(B=(A[0]+A[1])/2),{w:B,rep:B,fixed:y.getItemModel(E).get("fixed"),p:!k||isNaN(k[0])||isNaN(k[1])?null:k}}),M=_.mapArray("value",function(R,E){var k=m.getEdgeByIndex(E),B=s(R,w,T);isNaN(B)&&(B=(T[0]+T[1])/2);var F=k.getModel(),V=u.retrieve3(F.get("lineStyle.curveness"),-h(k,d,E,!0),0);return{n1:C[k.node1.dataIndex],n2:C[k.node2.dataIndex],d:B,curveness:V,ignoreForceLayout:F.get("ignoreForceLayout")}}),p=d.coordinateSystem,L=p.getBoundingRect(),D=t(C,M,{rect:L,gravity:x.get("gravity"),friction:x.get("friction")}),P=D.step;D.step=function(R){for(var E=0,k=C.length;E<k;E++)C[E].fixed&&l.copy(C[E].p,m.getNodeByIndex(E).getLayout());P(function(B,F,V){for(var N=0,O=B.length;N<O;N++)B[N].fixed||m.getNodeByIndex(N).setLayout(B[N].p),g[y.getId(N)]=B[N].p;for(var N=0,O=F.length;N<O;N++){var z=F[N],G=m.getEdgeByIndex(N),q=z.n1.p,H=z.n2.p,U=G.getLayout();U=U?U.slice():[],U[0]=U[0]||[],U[1]=U[1]||[],l.copy(U[0],q),l.copy(U[1],H),+z.curveness&&(U[2]=[(q[0]+H[0])/2-(q[1]-H[1])*z.curveness,(q[1]+H[1])/2-(H[0]-q[0])*z.curveness]),G.setLayout(U)}R&&R(V)})},d.forceLayout=D,d.preservedPoints=g,D.step()}else d.forceLayout=null})}return Hx=f,Hx}var qx,t5;function zme(){if(t5)return qx;t5=1;var r=hD(),t=Ut(),e=t.getLayoutRect,a=uf();function i(o,s,l){var u=o.getBoxLayoutParams();return u.aspect=l,e(u,{width:s.getWidth(),height:s.getHeight()})}function n(o,s){var l=[];return o.eachSeriesByType("graph",function(u){var v=u.get("coordinateSystem");if(!v||v==="view"){var h=u.getData(),f=h.mapArray(function(b){var w=h.getItemModel(b);return[+w.get("x"),+w.get("y")]}),c=[],d=[];a.fromPoints(f,c,d),d[0]-c[0]===0&&(d[0]+=1,c[0]-=1),d[1]-c[1]===0&&(d[1]+=1,c[1]-=1);var p=(d[0]-c[0])/(d[1]-c[1]),g=i(u,s,p);isNaN(p)&&(c=[g.x,g.y],d=[g.x+g.width,g.y+g.height]);var m=d[0]-c[0],y=d[1]-c[1],_=g.width,x=g.height,S=u.coordinateSystem=new r;S.zoomLimit=u.get("scaleLimit"),S.setBoundingRect(c[0],c[1],m,y),S.setViewRect(g.x,g.y,_,x),S.setCenter(u.get("center")),S.setZoom(u.get("zoom")),l.push(S)}}),l}return qx=n,qx}var r5;function Bme(){if(r5)return PV;r5=1;var r=Pe();Ame(),Dme(),Lme();var t=Ime(),e=Xs(),a=Pme(),i=Rme(),n=Eme(),o=kme(),s=Nme(),l=zme();return r.registerProcessor(t),r.registerVisual(e("graph","circle",null)),r.registerVisual(a),r.registerVisual(i),r.registerLayout(n),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,o),r.registerLayout(s),r.registerCoordinateSystem("graphView",{create:l}),PV}var a5={},Wx,i5;function Vme(){if(i5)return Wx;i5=1;var r=Lu(),t=Ir(),e=t.extend({type:"series.gauge",getInitialData:function(i,n){return r(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=e;return Wx=a,Wx}var Ux,n5;function Gme(){if(n5)return Ux;n5=1;var r=ur(),t=r.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,a){var i=Math.cos,n=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-i(l)*s*(s>=o/3?1:2),v=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,v),e.lineTo(a.x+i(l)*s,a.y+n(l)*s),e.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),e.lineTo(a.x-i(l)*s,a.y-n(l)*s),e.lineTo(u,v)}});return Ux=t,Ux}var $x,o5;function Fme(){if(o5)return $x;o5=1;var r=Gme(),t=qe(),e=tn(),a=st(),i=a.parsePercent,n=a.round,o=a.linearMap;function s(f,c){var d=f.get("center"),p=c.getWidth(),g=c.getHeight(),m=Math.min(p,g),y=i(d[0],c.getWidth()),_=i(d[1],c.getHeight()),x=i(f.get("radius"),m/2);return{cx:y,cy:_,r:x}}function l(f,c){return c&&(typeof c=="string"?f=c.replace("{value}",f!=null?f:""):typeof c=="function"&&(f=c(f))),f}var u=Math.PI*2,v=e.extend({type:"gauge",render:function(f,c,d){this.group.removeAll();var p=f.get("axisLine.lineStyle.color"),g=s(f,d);this._renderMain(f,c,d,p,g)},dispose:function(){},_renderMain:function(f,c,d,p,g){for(var m=this.group,y=f.getModel("axisLine"),_=y.getModel("lineStyle"),x=f.get("clockwise"),S=-f.get("startAngle")/180*Math.PI,b=-f.get("endAngle")/180*Math.PI,w=(b-S)%u,A=S,T=_.get("width"),C=y.get("show"),M=0;C&&M<p.length;M++){var L=Math.min(Math.max(p[M][0],0),1),b=S+w*L,D=new t.Sector({shape:{startAngle:A,endAngle:b,cx:g.cx,cy:g.cy,clockwise:x,r0:g.r-T,r:g.r},silent:!0});D.setStyle({fill:p[M][1]}),D.setStyle(_.getLineStyle(["color","borderWidth","borderColor"])),m.add(D),A=b}var P=function(R){if(R<=0)return p[0][1];for(var E=0;E<p.length;E++)if(p[E][0]>=R&&(E===0?0:p[E-1][0])<R)return p[E][1];return p[E-1][1]};if(!x){var I=S;S=b,b=I}this._renderTicks(f,c,d,P,g,S,b,x),this._renderPointer(f,c,d,P,g,S,b,x),this._renderTitle(f,c,d,P,g),this._renderDetail(f,c,d,P,g)},_renderTicks:function(f,c,d,p,g,m,y,_){for(var x=this.group,S=g.cx,b=g.cy,w=g.r,A=+f.get("min"),T=+f.get("max"),C=f.getModel("splitLine"),M=f.getModel("axisTick"),L=f.getModel("axisLabel"),D=f.get("splitNumber"),P=M.get("splitNumber"),I=i(C.get("length"),w),R=i(M.get("length"),w),E=m,k=(y-m)/D,B=k/P,F=C.getModel("lineStyle").getLineStyle(),V=M.getModel("lineStyle").getLineStyle(),N=0;N<=D;N++){var O=Math.cos(E),z=Math.sin(E);if(C.get("show")){var G=new t.Line({shape:{x1:O*w+S,y1:z*w+b,x2:O*(w-I)+S,y2:z*(w-I)+b},style:F,silent:!0});F.stroke==="auto"&&G.setStyle({stroke:p(N/D)}),x.add(G)}if(L.get("show")){var q=l(n(N/D*(T-A)+A),L.get("formatter")),H=L.get("distance"),U=p(N/D);x.add(new t.Text({style:t.setTextStyle({},L,{text:q,x:O*(w-I-H)+S,y:z*(w-I-H)+b,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:O<-.4?"left":O>.4?"right":"center"},{autoColor:U}),silent:!0}))}if(M.get("show")&&N!==D){for(var W=0;W<=P;W++){var O=Math.cos(E),z=Math.sin(E),Y=new t.Line({shape:{x1:O*w+S,y1:z*w+b,x2:O*(w-R)+S,y2:z*(w-R)+b},silent:!0,style:V});V.stroke==="auto"&&Y.setStyle({stroke:p((N+W/P)/D)}),x.add(Y),E+=B}E-=B}else E+=k}},_renderPointer:function(f,c,d,p,g,m,y,_){var x=this.group,S=this._data;if(!f.get("pointer.show")){S&&S.eachItemGraphicEl(function(C){x.remove(C)});return}var b=[+f.get("min"),+f.get("max")],w=[m,y],A=f.getData(),T=A.mapDimension("value");A.diff(S).add(function(C){var M=new r({shape:{angle:m}});t.initProps(M,{shape:{angle:o(A.get(T,C),b,w,!0)}},f),x.add(M),A.setItemGraphicEl(C,M)}).update(function(C,M){var L=S.getItemGraphicEl(M);t.updateProps(L,{shape:{angle:o(A.get(T,C),b,w,!0)}},f),x.add(L),A.setItemGraphicEl(C,L)}).remove(function(C){var M=S.getItemGraphicEl(C);x.remove(M)}).execute(),A.eachItemGraphicEl(function(C,M){var L=A.getItemModel(M),D=L.getModel("pointer");C.setShape({x:g.cx,y:g.cy,width:i(D.get("width"),g.r),r:i(D.get("length"),g.r)}),C.useStyle(L.getModel("itemStyle").getItemStyle()),C.style.fill==="auto"&&C.setStyle("fill",p(o(A.get(T,M),b,[0,1],!0))),t.setHoverStyle(C,L.getModel("emphasis.itemStyle").getItemStyle())}),this._data=A},_renderTitle:function(f,c,d,p,g){var m=f.getData(),y=m.mapDimension("value"),_=f.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),S=g.cx+i(x[0],g.r),b=g.cy+i(x[1],g.r),w=+f.get("min"),A=+f.get("max"),T=f.getData().get(y,0),C=p(o(T,[w,A],[0,1],!0));this.group.add(new t.Text({silent:!0,style:t.setTextStyle({},_,{x:S,y:b,text:m.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:C,forceRich:!0})}))}},_renderDetail:function(f,c,d,p,g){var m=f.getModel("detail"),y=+f.get("min"),_=+f.get("max");if(m.get("show")){var x=m.get("offsetCenter"),S=g.cx+i(x[0],g.r),b=g.cy+i(x[1],g.r),w=i(m.get("width"),g.r),A=i(m.get("height"),g.r),T=f.getData(),C=T.get(T.mapDimension("value"),0),M=p(o(C,[y,_],[0,1],!0));this.group.add(new t.Text({silent:!0,style:t.setTextStyle({},m,{x:S,y:b,text:l(C,m.get("formatter")),textWidth:isNaN(w)?null:w,textHeight:isNaN(A)?null:A,textAlign:"center",textVerticalAlign:"middle"},{autoColor:M,forceRich:!0})}))}}}),h=v;return $x=h,$x}var s5;function Hme(){return s5||(s5=1,Vme(),Fme()),a5}var l5={},Yx,u5;function qme(){if(u5)return Yx;u5=1;var r=Pe(),t=ie(),e=Lu(),a=_t(),i=a.defaultEmphasis,n=Ln(),o=n.makeSeriesEncodeForNameBased,s=yf(),l=r.extendSeriesModel({type:"series.funnel",init:function(v){l.superApply(this,"init",arguments),this.legendVisualProvider=new s(t.bind(this.getData,this),t.bind(this.getRawData,this)),this._defaultLabelLine(v)},getInitialData:function(v,h){return e(this,{coordDimensions:["value"],encodeDefaulter:t.curry(o,this)})},_defaultLabelLine:function(v){i(v,"labelLine",["show"]);var h=v.labelLine,f=v.emphasis.labelLine;h.show=h.show&&v.label.show,f.show=f.show&&v.emphasis.label.show},getDataParams:function(v){var h=this.getData(),f=l.superCall(this,"getDataParams",v),c=h.mapDimension("value"),d=h.getSum(c);return f.percent=d?+(h.get(c,v)/d*100).toFixed(2):0,f.$vars.push("percent"),f},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,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,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),u=l;return Yx=u,Yx}var Zx,v5;function Wme(){if(v5)return Zx;v5=1;var r=qe(),t=ie(),e=tn();function a(l,u){r.Group.call(this);var v=new r.Polygon,h=new r.Polyline,f=new r.Text;this.add(v),this.add(h),this.add(f),this.highDownOnUpdate=function(c,d){d==="emphasis"?(h.ignore=h.hoverIgnore,f.ignore=f.hoverIgnore):(h.ignore=h.normalIgnore,f.ignore=f.normalIgnore)},this.updateData(l,u,!0)}var i=a.prototype,n=["itemStyle","opacity"];i.updateData=function(l,u,v){var h=this.childAt(0),f=l.hostModel,c=l.getItemModel(u),d=l.getItemLayout(u),p=l.getItemModel(u).get(n);p=p==null?1:p,h.useStyle({}),v?(h.setShape({points:d.points}),h.setStyle({opacity:0}),r.initProps(h,{style:{opacity:p}},f,u)):r.updateProps(h,{style:{opacity:p},shape:{points:d.points}},f,u);var g=c.getModel("itemStyle"),m=l.getItemVisual(u,"color");h.setStyle(t.defaults({lineJoin:"round",fill:m},g.getItemStyle(["opacity"]))),h.hoverStyle=g.getModel("emphasis").getItemStyle(),this._updateLabel(l,u),r.setHoverStyle(this)},i._updateLabel=function(l,u){var v=this.childAt(1),h=this.childAt(2),f=l.hostModel,c=l.getItemModel(u),d=l.getItemLayout(u),p=d.label,x=l.getItemVisual(u,"color");r.updateProps(v,{shape:{points:p.linePoints||p.linePoints}},f,u),r.updateProps(h,{style:{x:p.x,y:p.y}},f,u),h.attr({rotation:p.rotation,origin:[p.x,p.y],z2:10});var g=c.getModel("label"),m=c.getModel("emphasis.label"),y=c.getModel("labelLine"),_=c.getModel("emphasis.labelLine"),x=l.getItemVisual(u,"color");r.setLabelStyle(h.style,h.hoverStyle={},g,m,{labelFetcher:l.hostModel,labelDataIndex:u,defaultText:l.getName(u),autoColor:x,useInsideStyle:!!p.inside},{textAlign:p.textAlign,textVerticalAlign:p.verticalAlign}),h.ignore=h.normalIgnore=!g.get("show"),h.hoverIgnore=!m.get("show"),v.ignore=v.normalIgnore=!y.get("show"),v.hoverIgnore=!_.get("show"),v.setStyle({stroke:x}),v.setStyle(y.getModel("lineStyle").getLineStyle()),v.hoverStyle=_.getModel("lineStyle").getLineStyle()},t.inherits(a,r.Group);var o=e.extend({type:"funnel",render:function(l,u,v){var h=l.getData(),f=this._data,c=this.group;h.diff(f).add(function(d){var p=new a(h,d);h.setItemGraphicEl(d,p),c.add(p)}).update(function(d,p){var g=f.getItemGraphicEl(p);g.updateData(h,d),c.add(g),h.setItemGraphicEl(d,g)}).remove(function(d){var p=f.getItemGraphicEl(d);c.remove(p)}).execute(),this._data=h},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),s=o;return Zx=s,Zx}var Xx,h5;function Ume(){if(h5)return Xx;h5=1;var r=It();r.__DEV__;var t=Ut(),e=st(),a=e.parsePercent,i=e.linearMap;function n(u,v){return t.getLayoutRect(u.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()})}function o(u,v){for(var h=u.mapDimension("value"),f=u.mapArray(h,function(m){return m}),c=[],d=v==="ascending",p=0,g=u.count();p<g;p++)c[p]=p;return typeof v=="function"?c.sort(v):v!=="none"&&c.sort(function(m,y){return d?f[m]-f[y]:f[y]-f[m]}),c}function s(u){u.each(function(v){var h=u.getItemModel(v),f=h.getModel("label"),c=f.get("position"),d=h.get("orient"),p=h.getModel("labelLine"),g=u.getItemLayout(v),m=g.points,y=c==="inner"||c==="inside"||c==="center"||c==="insideLeft"||c==="insideRight",_,x,S,b;if(y)c==="insideLeft"?(x=(m[0][0]+m[3][0])/2+5,S=(m[0][1]+m[3][1])/2,_="left"):c==="insideRight"?(x=(m[1][0]+m[2][0])/2-5,S=(m[1][1]+m[2][1])/2,_="right"):(x=(m[0][0]+m[1][0]+m[2][0]+m[3][0])/4,S=(m[0][1]+m[1][1]+m[2][1]+m[3][1])/4,_="center"),b=[[x,S],[x,S]];else{var w,A,T,C,M=p.get("length");c==="left"?(w=(m[3][0]+m[0][0])/2,A=(m[3][1]+m[0][1])/2,T=w-M,x=T-5,_="right"):c==="right"?(w=(m[1][0]+m[2][0])/2,A=(m[1][1]+m[2][1])/2,T=w+M,x=T+5,_="left"):c==="top"?(w=(m[3][0]+m[0][0])/2,A=(m[3][1]+m[0][1])/2,C=A-M,S=C-5,_="center"):c==="bottom"?(w=(m[1][0]+m[2][0])/2,A=(m[1][1]+m[2][1])/2,C=A+M,S=C+5,_="center"):c==="rightTop"?(w=d==="horizontal"?m[3][0]:m[1][0],A=d==="horizontal"?m[3][1]:m[1][1],d==="horizontal"?(C=A-M,S=C-5,_="center"):(T=w+M,x=T+5,_="top")):c==="rightBottom"?(w=m[2][0],A=m[2][1],d==="horizontal"?(C=A+M,S=C+5,_="center"):(T=w+M,x=T+5,_="bottom")):c==="leftTop"?(w=m[0][0],A=d==="horizontal"?m[0][1]:m[1][1],d==="horizontal"?(C=A-M,S=C-5,_="center"):(T=w-M,x=T-5,_="right")):c==="leftBottom"?(w=d==="horizontal"?m[1][0]:m[3][0],A=d==="horizontal"?m[1][1]:m[2][1],d==="horizontal"?(C=A+M,S=C+5,_="center"):(T=w-M,x=T-5,_="right")):(w=(m[1][0]+m[2][0])/2,A=(m[1][1]+m[2][1])/2,d==="horizontal"?(C=A+M,S=C+5,_="center"):(T=w+M,x=T+5,_="left")),d==="horizontal"?(T=w,x=T):(C=A,S=C),b=[[w,A],[T,C]]}g.label={linePoints:b,x,y:S,verticalAlign:"middle",textAlign:_,inside:y}})}function l(u,v,h){u.eachSeriesByType("funnel",function(f){var c=f.getData(),d=c.mapDimension("value"),p=f.get("sort"),g=n(f,v),m=o(c,p),y=f.get("orient"),_=g.width,x=g.height,S=g.x,b=g.y,w=y==="horizontal"?[a(f.get("minSize"),x),a(f.get("maxSize"),x)]:[a(f.get("minSize"),_),a(f.get("maxSize"),_)],A=c.getDataExtent(d),T=f.get("min"),C=f.get("max");T==null&&(T=Math.min(A[0],0)),C==null&&(C=A[1]);var M=f.get("funnelAlign"),L=f.get("gap"),D=y==="horizontal"?_:x,P=(D-L*(c.count()-1))/c.count(),I=function(z,G){if(y==="horizontal"){var U=c.get(d,z)||0,q=i(U,[T,C],w,!0),H;switch(M){case"top":H=b;break;case"center":H=b+(x-q)/2;break;case"bottom":H=b+(x-q);break}return[[G,H],[G,H+q]]}var U=c.get(d,z)||0,W=i(U,[T,C],w,!0),Y;switch(M){case"left":Y=S;break;case"center":Y=S+(_-W)/2;break;case"right":Y=S+_-W;break}return[[Y,G],[Y+W,G]]};p==="ascending"&&(P=-P,L=-L,y==="horizontal"?S+=_:b+=x,m=m.reverse());for(var R=0;R<m.length;R++){var E=m[R],k=m[R+1],B=c.getItemModel(E);if(y==="horizontal"){var F=B.get("itemStyle.width");F==null?F=P:(F=a(F,_),p==="ascending"&&(F=-F));var V=I(E,S),N=I(k,S+F);S+=F+L,c.setItemLayout(E,{points:V.concat(N.slice().reverse())})}else{var O=B.get("itemStyle.height");O==null?O=P:(O=a(O,x),p==="ascending"&&(O=-O));var V=y==="horizontal"?I(E,S):I(E,b),N=y==="horizontal"?I(k,S+F):I(k,b+O);b+=O+L,c.setItemLayout(E,{points:V.concat(N.slice().reverse())})}}s(c)})}return Xx=l,Xx}var f5;function $me(){if(f5)return l5;f5=1;var r=Pe();qme(),Wme();var t=_g(),e=Ume(),a=_f();return r.registerVisual(t("funnel")),r.registerLayout(e),r.registerProcessor(a("funnel")),l5}var c5={},d5={},Kx,p5;function Yme(){if(p5)return Kx;p5=1;var r=ie(),t=_t();function e(n){a(n),i(n)}function a(n){if(!n.parallel){var o=!1;r.each(n.series,function(s){s&&s.type==="parallel"&&(o=!0)}),o&&(n.parallel=[{}])}}function i(n){var o=t.normalizeToArray(n.parallelAxis);r.each(o,function(s){if(r.isObject(s)){var l=s.parallelIndex||0,u=t.normalizeToArray(n.parallel)[l];u&&u.parallelAxisDefault&&r.merge(s,u.parallelAxisDefault,!1)}})}return Kx=e,Kx}var g5={},Qx,m5;function Zme(){if(m5)return Qx;m5=1;var r=ie(),t=So(),e=function(i,n,o,s,l){t.call(this,i,n,o),this.type=s||"value",this.axisIndex=l};e.prototype={constructor:e,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},r.inherits(e,t);var a=e;return Qx=a,Qx}var jx,y5;function Iu(){if(y5)return jx;y5=1;function r(a,i,n,o,s,l){a=a||0;var u=n[1]-n[0];if(s!=null&&(s=e(s,[0,u])),l!=null&&(l=Math.max(l,s!=null?s:0)),o==="all"){var v=Math.abs(i[1]-i[0]);v=e(v,[0,u]),s=l=e(v,[s,l]),o=0}i[0]=e(i[0],n),i[1]=e(i[1],n);var h=t(i,o);i[o]+=a;var f=s||0,c=n.slice();h.sign<0?c[0]+=f:c[1]-=f,i[o]=e(i[o],c);var d=t(i,o);s!=null&&(d.sign!==h.sign||d.span<s)&&(i[1-o]=i[o]+h.sign*s);var d=t(i,o);return l!=null&&d.span>l&&(i[1-o]=i[o]+d.sign*l),i}function t(a,i){var n=a[i]-a[1-i];return{span:Math.abs(n),sign:n>0?-1:n<0?1:i?-1:1}}function e(a,i){return Math.min(i[1]!=null?i[1]:1/0,Math.max(i[0]!=null?i[0]:-1/0,a))}return jx=r,jx}var Jx,_5;function Xme(){if(_5)return Jx;_5=1;var r=ie(),t=ha(),e=Ut(),a=wi(),i=Zme(),n=qe(),o=st(),s=Iu(),l=r.each,u=Math.min,v=Math.max,h=Math.floor,f=Math.ceil,c=o.round,d=Math.PI;function p(x,S,b){this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=x.dimensions,this._rect,this._model=x,this._init(x,S,b)}p.prototype={type:"parallel",constructor:p,_init:function(x,S,b){var w=x.dimensions,A=x.parallelAxisIndex;l(w,function(T,C){var M=A[C],L=S.getComponent("parallelAxis",M),D=this._axesMap.set(T,new i(T,a.createScaleByModel(L),[0,0],L.get("type"),M)),P=D.type==="category";D.onBand=P&&L.get("boundaryGap"),D.inverse=L.get("inverse"),L.axis=D,D.model=L,D.coordinateSystem=L.coordinateSystem=this},this)},update:function(x,S){this._updateAxesFromSeries(this._model,x)},containPoint:function(x){var S=this._makeLayoutInfo(),b=S.axisBase,w=S.layoutBase,A=S.pixelDimIndex,T=x[1-A],C=x[A];return T>=b&&T<=b+S.axisLength&&C>=w&&C<=w+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(x,S){S.eachSeries(function(b){if(x.contains(b,S)){var w=b.getData();l(this.dimensions,function(A){var T=this._axesMap.get(A);T.scale.unionExtentFromData(w,w.mapDimension(A)),a.niceScaleExtent(T.scale,T.model)},this)}},this)},resize:function(x,S){this._rect=e.getLayoutRect(x.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var x=this._model,S=this._rect,b=["x","y"],w=["width","height"],A=x.get("layout"),T=A==="horizontal"?0:1,C=S[w[T]],M=[0,C],L=this.dimensions.length,D=g(x.get("axisExpandWidth"),M),P=g(x.get("axisExpandCount")||0,[0,L]),I=x.get("axisExpandable")&&L>3&&L>P&&P>1&&D>0&&C>0,R=x.get("axisExpandWindow"),E;if(R)E=g(R[1]-R[0],M),R[1]=R[0]+E;else{E=g(D*(P-1),M);var k=x.get("axisExpandCenter")||h(L/2);R=[D*k-E/2],R[1]=R[0]+E}var B=(C-E)/(L-P);B<3&&(B=0);var F=[h(c(R[0]/D,1))+1,f(c(R[1]/D,1))-1],V=B/D*R[0];return{layout:A,pixelDimIndex:T,layoutBase:S[b[T]],layoutLength:C,axisBase:S[b[1-T]],axisLength:S[w[1-T]],axisExpandable:I,axisExpandWidth:D,axisCollapseWidth:B,axisExpandWindow:R,axisCount:L,winInnerIndices:F,axisExpandWindow0Pos:V}},_layoutAxes:function(){var x=this._rect,S=this._axesMap,b=this.dimensions,w=this._makeLayoutInfo(),A=w.layout;S.each(function(T){var C=[0,w.axisLength],M=T.inverse?1:0;T.setExtent(C[M],C[1-M])}),l(b,function(T,C){var M=(w.axisExpandable?y:m)(C,w),L={horizontal:{x:M.position,y:w.axisLength},vertical:{x:0,y:M.position}},D={horizontal:d/2,vertical:0},P=[L[A].x+x.x,L[A].y+x.y],I=D[A],R=t.create();t.rotate(R,R,I),t.translate(R,R,P),this._axesLayout[T]={position:P,rotation:I,transform:R,axisNameAvailableWidth:M.axisNameAvailableWidth,axisLabelShow:M.axisLabelShow,nameTruncateMaxWidth:M.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(x){return this._axesMap.get(x)},dataToPoint:function(x,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(x),S)},eachActiveState:function(x,S,b,w){b==null&&(b=0),w==null&&(w=x.count());var A=this._axesMap,T=this.dimensions,C=[],M=[];r.each(T,function(B){C.push(x.mapDimension(B)),M.push(A.get(B).model)});for(var L=this.hasAxisBrushed(),D=b;D<w;D++){var P;if(!L)P="normal";else{P="active";for(var I=x.getValues(C,D),R=0,E=T.length;R<E;R++){var k=M[R].getActiveState(I[R]);if(k==="inactive"){P="inactive";break}}}S(P,D)}},hasAxisBrushed:function(){for(var x=this.dimensions,S=this._axesMap,b=!1,w=0,A=x.length;w<A;w++)S.get(x[w]).model.getActiveState()!=="normal"&&(b=!0);return b},axisCoordToPoint:function(x,S){var b=this._axesLayout[S];return n.applyTransform([x,0],b.transform)},getAxisLayout:function(x){return r.clone(this._axesLayout[x])},getSlidedAxisExpandWindow:function(x){var S=this._makeLayoutInfo(),b=S.pixelDimIndex,w=S.axisExpandWindow.slice(),A=w[1]-w[0],T=[0,S.axisExpandWidth*(S.axisCount-1)];if(!this.containPoint(x))return{behavior:"none",axisExpandWindow:w};var C=x[b]-S.layoutBase-S.axisExpandWindow0Pos,M,L="slide",D=S.axisCollapseWidth,P=this._model.get("axisExpandSlideTriggerArea"),I=P[0]!=null;if(D)I&&D&&C<A*P[0]?(L="jump",M=C-A*P[2]):I&&D&&C>A*(1-P[0])?(L="jump",M=C-A*(1-P[2])):(M=C-A*P[1])>=0&&(M=C-A*(1-P[1]))<=0&&(M=0),M*=S.axisExpandWidth/D,M?s(M,w,T,"all"):L="none";else{var A=w[1]-w[0],R=T[1]*C/A;w=[v(0,R-A/2)],w[1]=u(T[1],w[0]+A),w[0]=w[1]-A}return{axisExpandWindow:w,behavior:L}}};function g(x,S){return u(v(x,S[0]),S[1])}function m(x,S){var b=S.layoutLength/(S.axisCount-1);return{position:b*x,axisNameAvailableWidth:b,axisLabelShow:!0}}function y(x,S){var b=S.layoutLength,w=S.axisExpandWidth,A=S.axisCount,T=S.axisCollapseWidth,C=S.winInnerIndices,M,L=T,D=!1,P;return x<C[0]?(M=x*T,P=T):x<=C[1]?(M=S.axisExpandWindow0Pos+x*w-S.axisExpandWindow[0],L=w,D=!0):(M=b-(A-1-x)*T,P=T),{position:M,axisNameAvailableWidth:L,axisLabelShow:D,nameTruncateMaxWidth:P}}var _=p;return Jx=_,Jx}var x5;function x$(){if(x5)return g5;x5=1;var r=Xme(),t=bi();function e(a,i){var n=[];return a.eachComponent("parallel",function(o,s){var l=new r(o,a,i);l.name="parallel_"+s,l.resize(o,i),o.coordinateSystem=l,l.model=o,n.push(l)}),a.eachSeries(function(o){if(o.get("coordinateSystem")==="parallel"){var s=a.queryComponents({mainType:"parallel",index:o.get("parallelIndex"),id:o.get("parallelId")})[0];o.coordinateSystem=s.coordinateSystem}}),n}return t.register("parallel",{create:e}),g5}var eS,S5;function Kme(){if(S5)return eS;S5=1;var r=ie(),t=Lr(),e=Tu(),a=mg(),i=st(),n=Du(),o=t.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return e([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(v){var h=this.activeIntervals=r.clone(v);if(h)for(var f=h.length-1;f>=0;f--)i.asc(h[f])},getActiveState:function(v){var h=this.activeIntervals;if(!h.length)return"normal";if(v==null||isNaN(v))return"inactive";if(h.length===1){var f=h[0];if(f[0]<=v&&v<=f[1])return"active"}else for(var c=0,d=h.length;c<d;c++)if(h[c][0]<=v&&v<=h[c][1])return"active";return"inactive"}}),s={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};r.merge(o.prototype,n);function l(v,h){return h.type||(h.data?"category":"value")}a("parallel",o,l,s);var u=o;return eS=u,eS}var tS,b5;function Qme(){if(b5)return tS;b5=1;var r=ie(),t=Lr();Kme();var e=t.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,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},init:function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(a){var i=this.option;a&&r.merge(i,a,!0),this._initDimensions()},contains:function(a,i){var n=a.get("parallelIndex");return n!=null&&i.getComponent("parallel",n)===this},setAxisExpand:function(a){r.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){a.hasOwnProperty(i)&&(this.option[i]=a[i])},this)},_initDimensions:function(){var a=this.dimensions=[],i=this.parallelAxisIndex=[],n=r.filter(this.dependentModels.parallelAxis,function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);r.each(n,function(o){a.push("dim"+o.get("dim")),i.push(o.componentIndex)})}});return tS=e,tS}var w5={},T5={},A5;function jme(){if(A5)return T5;A5=1;var r=Pe(),t={type:"axisAreaSelect",event:"axisAreaSelected"};return r.registerAction(t,function(e,a){a.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,a){a.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})}),T5}var rS,C5;function mD(){if(C5)return rS;C5=1;var r=It();r.__DEV__;var t=ie(),e=Ws(),a=qe(),i=h$(),n=Zs(),o=t.curry,s=t.each,l=t.map,u=Math.min,v=Math.max,h=Math.pow,f=1e4,c=6,d=6,p="globalPan",g={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},y={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},_=0;function x(J){e.call(this),this._zr=J,this.group=new a.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+_++,this._handlers={},s(oe,function(ne,ue){this._handlers[ue]=t.bind(ne,this)},this)}x.prototype={constructor:x,enableBrush:function(J){return this._brushType&&b(this),J.brushType&&S(this,J),this},setPanels:function(J){if(J&&J.length){var ne=this._panels={};t.each(J,function(ue){ne[ue.panelId]=t.clone(ue)})}else this._panels=null;return this},mount:function(J){J=J||{},this._enableGlobalPan=J.enableGlobalPan;var ne=this.group;return this._zr.add(ne),ne.attr({position:J.position||[0,0],rotation:J.rotation||0,scale:J.scale||[1,1]}),this._transform=ne.getLocalTransform(),this},eachCover:function(J,ne){s(this._covers,J,ne)},updateCovers:function(J){J=t.map(J,function(ke){return t.merge(t.clone(y),ke,!0)});var ne="\0-brush-index-",ue=this._covers,me=this._covers=[],xe=this,ge=this._creatingCover;return new n(ue,J,Ce,pe).add(ze).update(ze).remove(Ve).execute(),this;function pe(ke,lt){return(ke.id!=null?ke.id:ne+lt)+"-"+ke.brushType}function Ce(ke,lt){return pe(ke.__brushOption,lt)}function ze(ke,lt){var dt=J[ke];if(lt!=null&&ue[lt]===ge)me[ke]=ue[lt];else{var Dt=me[ke]=lt!=null?(ue[lt].__brushOption=dt,ue[lt]):C(xe,T(xe,dt));D(xe,Dt)}}function Ve(ke){ue[ke]!==ge&&xe.group.remove(ue[ke])}},unmount:function(){return this.enableBrush(!1),E(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},t.mixin(x,e);function S(J,ne){var ue=J._zr;J._enableGlobalPan||i.take(ue,p,J._uid),w(ue,J._handlers),J._brushType=ne.brushType,J._brushOption=t.merge(t.clone(y),ne,!0)}function b(J){var ne=J._zr;i.release(ne,p,J._uid),A(ne,J._handlers),J._brushType=J._brushOption=null}function w(J,ne){s(ne,function(ue,me){J.on(me,ue)})}function A(J,ne){s(ne,function(ue,me){J.off(me,ue)})}function T(J,ne){var ue=ve[ne.brushType].createCover(J,ne);return ue.__brushOption=ne,L(ue,ne),J.group.add(ue),ue}function C(J,ne){var ue=P(ne);return ue.endCreating&&(ue.endCreating(J,ne),L(ne,ne.__brushOption)),ne}function M(J,ne){var ue=ne.__brushOption;P(ne).updateCoverShape(J,ne,ue.range,ue)}function L(J,ne){var ue=ne.z;ue==null&&(ue=f),J.traverse(function(me){me.z=ue,me.z2=ue})}function D(J,ne){P(ne).updateCommon(J,ne),M(J,ne)}function P(J){return ve[J.__brushOption.brushType]}function I(J,ne,ue){var me=J._panels;if(!me)return!0;var xe,ge=J._transform;return s(me,function(pe){pe.isTargetByCursor(ne,ue,ge)&&(xe=pe)}),xe}function R(J,ne){var ue=J._panels;if(!ue)return!0;var me=ne.__brushOption.panelId;return me!=null?ue[me]:!0}function E(J){var ne=J._covers,ue=ne.length;return s(ne,function(me){J.group.remove(me)},J),ne.length=0,!!ue}function k(J,ne){var ue=l(J._covers,function(me){var xe=me.__brushOption,ge=t.clone(xe.range);return{brushType:xe.brushType,panelId:xe.panelId,range:ge}});J.trigger("brush",ue,{isEnd:!!ne.isEnd,removeOnClick:!!ne.removeOnClick})}function B(J){var ne=J._track;if(!ne.length)return!1;var ue=ne[ne.length-1],me=ne[0],xe=ue[0]-me[0],ge=ue[1]-me[1],pe=h(xe*xe+ge*ge,.5);return pe>c}function F(J){var ne=J.length-1;return ne<0&&(ne=0),[J[0],J[ne]]}function V(J,ne,ue,me){var xe=new a.Group;return xe.add(new a.Rect({name:"main",style:G(ue),silent:!0,draggable:!0,cursor:"move",drift:o(J,ne,xe,"nswe"),ondragend:o(k,ne,{isEnd:!0})})),s(me,function(ge){xe.add(new a.Rect({name:ge,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:o(J,ne,xe,ge),ondragend:o(k,ne,{isEnd:!0})}))}),xe}function N(J,ne,ue,me){var xe=me.brushStyle.lineWidth||0,ge=v(xe,d),pe=ue[0][0],Ce=ue[1][0],ze=pe-xe/2,Ve=Ce-xe/2,ke=ue[0][1],lt=ue[1][1],dt=ke-ge+xe/2,Dt=lt-ge+xe/2,Tt=ke-pe,Bt=lt-Ce,Vt=Tt+xe,Ke=Bt+xe;z(J,ne,"main",pe,Ce,Tt,Bt),me.transformable&&(z(J,ne,"w",ze,Ve,ge,Ke),z(J,ne,"e",dt,Ve,ge,Ke),z(J,ne,"n",ze,Ve,Vt,ge),z(J,ne,"s",ze,Dt,Vt,ge),z(J,ne,"nw",ze,Ve,ge,ge),z(J,ne,"ne",dt,Ve,ge,ge),z(J,ne,"sw",ze,Dt,ge,ge),z(J,ne,"se",dt,Dt,ge,ge))}function O(J,ne){var ue=ne.__brushOption,me=ue.transformable,xe=ne.childAt(0);xe.useStyle(G(ue)),xe.attr({silent:!me,cursor:me?"move":"default"}),s(["w","e","n","s","se","sw","ne","nw"],function(ge){var pe=ne.childOfName(ge),Ce=U(J,ge);pe&&pe.attr({silent:!me,invisible:!me,cursor:me?m[Ce]+"-resize":null})})}function z(J,ne,ue,me,xe,ge,pe){var Ce=ne.childOfName(ue);Ce&&Ce.setShape(Q(K(J,ne,[[me,xe],[me+ge,xe+pe]])))}function G(J){return t.defaults({strokeNoScale:!0},J.brushStyle)}function q(J,ne,ue,me){var xe=[u(J,ue),u(ne,me)],ge=[v(J,ue),v(ne,me)];return[[xe[0],ge[0]],[xe[1],ge[1]]]}function H(J){return a.getTransform(J.group)}function U(J,ne){if(ne.length>1){ne=ne.split("");var ue=[U(J,ne[0]),U(J,ne[1])];return(ue[0]==="e"||ue[0]==="w")&&ue.reverse(),ue.join("")}else{var me={w:"left",e:"right",n:"top",s:"bottom"},xe={left:"w",right:"e",top:"n",bottom:"s"},ue=a.transformDirection(me[ne],H(J));return xe[ue]}}function W(J,ne,ue,me,xe,ge,pe,Ce){var ze=me.__brushOption,Ve=J(ze.range),ke=X(ue,ge,pe);s(xe.split(""),function(lt){var dt=g[lt];Ve[dt[0]][dt[1]]+=ke[dt[0]]}),ze.range=ne(q(Ve[0][0],Ve[1][0],Ve[0][1],Ve[1][1])),D(ue,me),k(ue,{isEnd:!1})}function Y(J,ne,ue,me,xe){var ge=ne.__brushOption.range,pe=X(J,ue,me);s(ge,function(Ce){Ce[0]+=pe[0],Ce[1]+=pe[1]}),D(J,ne),k(J,{isEnd:!1})}function X(J,ne,ue){var me=J.group,xe=me.transformCoordToLocal(ne,ue),ge=me.transformCoordToLocal(0,0);return[xe[0]-ge[0],xe[1]-ge[1]]}function K(J,ne,ue){var me=R(J,ne);return me&&me!==!0?me.clipPath(ue,J._transform):t.clone(ue)}function Q(J){var ne=u(J[0][0],J[1][0]),ue=u(J[0][1],J[1][1]),me=v(J[0][0],J[1][0]),xe=v(J[0][1],J[1][1]);return{x:ne,y:ue,width:me-ne,height:xe-ue}}function j(J,ne,ue){if(!(!J._brushType||se(J,ne))){var me=J._zr,xe=J._covers,ge=I(J,ne,ue);if(!J._dragging)for(var pe=0;pe<xe.length;pe++){var Ce=xe[pe].__brushOption;if(ge&&(ge===!0||Ce.panelId===ge.panelId)&&ve[Ce.brushType].contain(xe[pe],ue[0],ue[1]))return}ge&&me.setCursorStyle("crosshair")}}function te(J){var ne=J.event;ne.preventDefault&&ne.preventDefault()}function Z(J,ne,ue){return J.childOfName("main").contain(ne,ue)}function ee(J,ne,ue,me){var xe=J._creatingCover,ge=J._creatingPanel,pe=J._brushOption,Ce;if(J._track.push(ue.slice()),B(J)||xe){if(ge&&!xe){pe.brushMode==="single"&&E(J);var ze=t.clone(pe);ze.brushType=le(ze.brushType,ge),ze.panelId=ge===!0?null:ge.panelId,xe=J._creatingCover=T(J,ze),J._covers.push(xe)}if(xe){var Ve=ve[le(J._brushType,ge)],ke=xe.__brushOption;ke.range=Ve.getCreatingRange(K(J,xe,J._track)),me&&(C(J,xe),Ve.updateCommon(J,xe)),M(J,xe),Ce={isEnd:me}}}else me&&pe.brushMode==="single"&&pe.removeOnClick&&I(J,ne,ue)&&E(J)&&(Ce={isEnd:me,removeOnClick:!0});return Ce}function le(J,ne){return J==="auto"?ne.defaultBrushType:J}var oe={mousedown:function(J){if(this._dragging)fe(this,J);else if(!J.target||!J.target.draggable){te(J);var ne=this.group.transformCoordToLocal(J.offsetX,J.offsetY);this._creatingCover=null;var ue=this._creatingPanel=I(this,J,ne);ue&&(this._dragging=!0,this._track=[ne.slice()])}},mousemove:function(J){var ne=J.offsetX,ue=J.offsetY,me=this.group.transformCoordToLocal(ne,ue);if(j(this,J,me),this._dragging){te(J);var xe=ee(this,J,me,!1);xe&&k(this,xe)}},mouseup:function(J){fe(this,J)}};function fe(J,ne){if(J._dragging){te(ne);var ue=ne.offsetX,me=ne.offsetY,xe=J.group.transformCoordToLocal(ue,me),ge=ee(J,ne,xe,!0);J._dragging=!1,J._track=[],J._creatingCover=null,ge&&k(J,ge)}}function se(J,ne,ue){var me=J._zr;return ne<0||ne>me.getWidth()||ue<0||ue>me.getHeight()}var ve={lineX:ye(0),lineY:ye(1),rect:{createCover:function(J,ne){return V(o(W,function(ue){return ue},function(ue){return ue}),J,ne,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(J){var ne=F(J);return q(ne[1][0],ne[1][1],ne[0][0],ne[0][1])},updateCoverShape:function(J,ne,ue,me){N(J,ne,ue,me)},updateCommon:O,contain:Z},polygon:{createCover:function(J,ne){var ue=new a.Group;return ue.add(new a.Polyline({name:"main",style:G(ne),silent:!0})),ue},getCreatingRange:function(J){return J},endCreating:function(J,ne){ne.remove(ne.childAt(0)),ne.add(new a.Polygon({name:"main",draggable:!0,drift:o(Y,J,ne),ondragend:o(k,J,{isEnd:!0})}))},updateCoverShape:function(J,ne,ue,me){ne.childAt(0).setShape({points:K(J,ne,ue)})},updateCommon:O,contain:Z}};function ye(J){return{createCover:function(ne,ue){return V(o(W,function(me){var xe=[me,[0,100]];return J&&xe.reverse(),xe},function(me){return me[J]}),ne,ue,[["w","e"],["n","s"]][J])},getCreatingRange:function(ne){var ue=F(ne),me=u(ue[0][J],ue[1][J]),xe=v(ue[0][J],ue[1][J]);return[me,xe]},updateCoverShape:function(ne,ue,me,xe){var ge,pe=R(ne,ue);if(pe!==!0&&pe.getLinearBrushOtherExtent)ge=pe.getLinearBrushOtherExtent(J,ne._transform);else{var Ce=ne._zr;ge=[0,[Ce.getWidth(),Ce.getHeight()][1-J]]}var ze=[me,ge];J&&ze.reverse(),N(ne,ue,ze,xe)},updateCommon:O,contain:Z}}var Me=x;return rS=Me,rS}var wv={},M5;function S$(){if(M5)return wv;M5=1;var r=rr(),t=Sg(),e=t.onIrrelevantElement,a=qe();function i(l){return l=s(l),function(u,v){return a.clipPointsByRect(u,l)}}function n(l,u){return l=s(l),function(v){var h=u!=null?u:v,f=h?l.width:l.height,c=h?l.x:l.y;return[c,c+(f||0)]}}function o(l,u,v){return l=s(l),function(h,f,c){return l.contain(f[0],f[1])&&!e(h,u,v)}}function s(l){return r.create(l)}return wv.makeRectPanelClipPath=i,wv.makeLinearBrushOtherExtent=n,wv.makeRectIsTargetByCursor=o,wv}var aS,D5;function Jme(){if(D5)return aS;D5=1;var r=Pe(),t=ie(),e=bo(),a=mD(),i=S$(),n=qe(),o=["axisLine","axisTickLabel","axisName"],s=r.extendComponentView({type:"parallelAxis",init:function(f,c){s.superApply(this,"init",arguments),(this._brushController=new a(c.getZr())).on("brush",t.bind(this._onBrush,this))},render:function(f,c,d,p){if(!l(f,c,p)){this.axisModel=f,this.api=d,this.group.removeAll();var g=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),!!f.get("show")){var m=v(f,c),y=m.coordinateSystem,_=f.getAreaSelectStyle(),x=_.width,S=f.axis.dim,b=y.getAxisLayout(S),w=t.extend({strokeContainThreshold:x},b),A=new e(f,w);t.each(o,A.add,A),this._axisGroup.add(A.getGroup()),this._refreshBrushController(w,_,f,m,x,d);var T=p&&p.animation===!1?null:f;n.groupTransition(g,this._axisGroup,T)}}},_refreshBrushController:function(f,c,d,p,g,m){var y=d.axis.getExtent(),_=y[1]-y[0],x=Math.min(30,Math.abs(_)*.1),S=n.BoundingRect.create({x:y[0],y:-g/2,width:_,height:g});S.x-=x,S.width+=2*x,this._brushController.mount({enableGlobalPan:!0,rotation:f.rotation,position:f.position}).setPanels([{panelId:"pl",clipPath:i.makeRectPanelClipPath(S),isTargetByCursor:i.makeRectIsTargetByCursor(S,m,p),getLinearBrushOtherExtent:i.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:c,removeOnClick:!0}).updateCovers(u(d))},_onBrush:function(f,c){var d=this.axisModel,p=d.axis,g=t.map(f,function(m){return[p.coordToData(m.range[0],!0),p.coordToData(m.range[1],!0)]});(!d.option.realtime===c.isEnd||c.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:d.id,intervals:g})},dispose:function(){this._brushController.dispose()}});function l(f,c,d){return d&&d.type==="axisAreaSelect"&&c.findComponents({mainType:"parallelAxis",query:d})[0]===f}function u(f){var c=f.axis;return t.map(f.activeIntervals,function(d){return{brushType:"lineX",panelId:"pl",range:[c.dataToCoord(d[0],!0),c.dataToCoord(d[1],!0)]}})}function v(f,c){return c.getComponent("parallel",f.get("parallelIndex"))}var h=s;return aS=h,aS}var L5;function eye(){return L5||(L5=1,x$(),jme(),Jme()),w5}var I5;function b$(){if(I5)return d5;I5=1;var r=Pe(),t=ie(),e=_o(),a=Yme();x$(),Qme(),eye();var i=5;r.extendComponentView({type:"parallel",render:function(s,l,u){this._model=s,this._api=u,this._handlers||(this._handlers={},t.each(n,function(v,h){u.getZr().on(h,this._handlers[h]=t.bind(v,this))},this)),e.createOrUpdate(this,"_throttledDispatchExpand",s.get("axisExpandRate"),"fixRate")},dispose:function(s,l){t.each(this._handlers,function(u,v){l.getZr().off(v,u)}),this._handlers=null},_throttledDispatchExpand:function(s){this._dispatchExpand(s)},_dispatchExpand:function(s){s&&this._api.dispatchAction(t.extend({type:"parallelAxisExpand"},s))}});var n={mousedown:function(s){o(this,"click")&&(this._mouseDownPoint=[s.offsetX,s.offsetY])},mouseup:function(s){var l=this._mouseDownPoint;if(o(this,"click")&&l){var u=[s.offsetX,s.offsetY],v=Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2);if(v>i)return;var h=this._model.coordinateSystem.getSlidedAxisExpandWindow([s.offsetX,s.offsetY]);h.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:h.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(s){if(!(this._mouseDownPoint||!o(this,"mousemove"))){var l=this._model,u=l.coordinateSystem.getSlidedAxisExpandWindow([s.offsetX,s.offsetY]),v=u.behavior;v==="jump"&&this._throttledDispatchExpand.debounceNextCall(l.get("axisExpandDebounce")),this._throttledDispatchExpand(v==="none"?null:{axisExpandWindow:u.axisExpandWindow,animation:v==="jump"?null:!1})}}};function o(s,l){var u=s._model;return u.get("axisExpandable")&&u.get("axisExpandTriggerOn")===l}return r.registerPreprocessor(a),d5}var iS,P5;function tye(){if(P5)return iS;P5=1;var r=ie(),t=r.each,e=r.createHashMap,a=Ir(),i=In(),n=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(l,u){var v=this.getSource();return o(v,this),i(v,this)},getRawIndicesByActiveState:function(l){var u=this.coordinateSystem,v=this.getData(),h=[];return u.eachActiveState(v,function(f,c){l===f&&h.push(v.getRawIndex(c))}),h},defaultOption:{zlevel:0,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"}});function o(l,u){if(!l.encodeDefine){var v=u.ecModel.getComponent("parallel",u.get("parallelIndex"));if(v){var h=l.encodeDefine=e();t(v.dimensions,function(f){var c=s(f);h.set(f,c)})}}}function s(l){return+l.replace("dim","")}return iS=n,iS}var nS,R5;function rye(){if(R5)return nS;R5=1;var r=qe(),t=tn(),e=.3,a=t.extend({type:"parallel",init:function(){this._dataGroup=new r.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(h,f,c,d){var p=this._dataGroup,g=h.getData(),m=this._data,y=h.coordinateSystem,_=y.dimensions,x=s(h);g.diff(m).add(S).update(b).remove(w).execute();function S(T){var C=o(g,p,T,_,y);l(C,g,T,x)}function b(T,C){var M=m.getItemGraphicEl(C),L=n(g,T,_,y);g.setItemGraphicEl(T,M);var D=d&&d.animation===!1?null:h;r.updateProps(M,{shape:{points:L}},D,T),l(M,g,T,x)}function w(T){var C=m.getItemGraphicEl(T);p.remove(C)}if(!this._initialized){this._initialized=!0;var A=i(y,h,function(){setTimeout(function(){p.removeClipPath()})});p.setClipPath(A)}this._data=g},incrementalPrepareRender:function(h,f,c){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(h,f,c){for(var d=f.getData(),p=f.coordinateSystem,g=p.dimensions,m=s(f),y=h.start;y<h.end;y++){var _=o(d,this._dataGroup,y,g,p);_.incremental=!0,l(_,d,y,m)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function i(h,f,c){var d=h.model,p=h.getRect(),g=new r.Rect({shape:{x:p.x,y:p.y,width:p.width,height:p.height}}),m=d.get("layout")==="horizontal"?"width":"height";return g.setShape(m,0),r.initProps(g,{shape:{width:p.width,height:p.height}},f,c),g}function n(h,f,c,d){for(var p=[],g=0;g<c.length;g++){var m=c[g],y=h.get(h.mapDimension(m),f);u(y,d.getAxis(m).type)||p.push(d.dataToPoint(y,m))}return p}function o(h,f,c,d,p){var g=n(h,c,d,p),m=new r.Polyline({shape:{points:g},silent:!0,z2:10});return f.add(m),h.setItemGraphicEl(c,m),m}function s(h){var f=h.get("smooth",!0);return f===!0&&(f=e),{lineStyle:h.getModel("lineStyle").getLineStyle(),smooth:f!=null?f:e}}function l(h,f,c,d){var p=d.lineStyle;if(f.hasItemOption){var g=f.getItemModel(c).getModel("lineStyle");p=g.getLineStyle()}h.useStyle(p);var m=h.style;m.fill=null,m.stroke=f.getItemVisual(c,"color"),m.opacity=f.getItemVisual(c,"opacity"),d.smooth&&(h.shape.smooth=d.smooth)}function u(h,f){return f==="category"?h==null:h==null||isNaN(h)}var v=a;return nS=v,nS}var oS,E5;function aye(){if(E5)return oS;E5=1;var r=["lineStyle","normal","opacity"],t={seriesType:"parallel",reset:function(e,a,i){var n=e.getModel("itemStyle"),o=e.getModel("lineStyle"),s=a.get("color"),l=o.get("color")||n.get("color")||s[e.seriesIndex%s.length],u=e.get("inactiveOpacity"),v=e.get("activeOpacity"),h=e.getModel("lineStyle").getLineStyle(),f=e.coordinateSystem,c=e.getData(),d={normal:h.opacity,active:v,inactive:u};c.setVisual("color",l);function p(g,m){f.eachActiveState(m,function(y,_){var x=d[y];if(y==="normal"&&m.hasItemOption){var S=m.getItemModel(_).get(r,!0);S!=null&&(x=S)}m.setItemVisual(_,"opacity",x)},g.start,g.end)}return{progress:p}}};return oS=t,oS}var k5;function iye(){if(k5)return c5;k5=1;var r=Pe();b$(),tye(),rye();var t=aye();return r.registerVisual(t),c5}var O5={},sS,N5;function nye(){if(N5)return sS;N5=1;var r=Ir(),t=g$(),e=Yt(),a=e.encodeHTML,i=gr(),n=It();n.__DEV__;var o=r.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(l,u){for(var v=l.edges||l.links,h=l.data||l.nodes,f=l.levels,c=this.levelModels={},d=0;d<f.length;d++)f[d].depth!=null&&f[d].depth>=0&&(c[f[d].depth]=new i(f[d],this,u));if(h&&v){var p=t(h,v,this,!0,g);return p.data}function g(m,y){m.wrapMethod("getItemModel",function(_,x){return _.customizeGetParent(function(S){var b=this.parentModel,w=b.getData().getItemLayout(x).depth,A=b.levelModels[w];return A||this.parentModel}),_}),y.wrapMethod("getItemModel",function(_,x){return _.customizeGetParent(function(S){var b=this.parentModel,w=b.getGraph().getEdgeByIndex(x),A=w.node1.getLayout().depth,T=b.levelModels[A];return T||this.parentModel}),_})}},setNodePosition:function(l,u){var v=this.option.data[l];v.localX=u[0],v.localY=u[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(l,u,v){if(v==="edge"){var h=this.getDataParams(l,v),f=h.data,c=f.source+" -- "+f.target;return h.value&&(c+=" : "+h.value),a(c)}else if(v==="node"){var d=this.getGraph().getNodeByIndex(l),p=d.getLayout().value,g=this.getDataParams(l,v).data.name;if(p)var c=g+" : "+p;return a(c)}return o.superCall(this,"formatTooltip",l,u)},optionUpdated:function(){var l=this.option;l.focusNodeAdjacency===!0&&(l.focusNodeAdjacency="allEdges")},getDataParams:function(l,u){var v=o.superCall(this,"getDataParams",l,u);if(v.value==null&&u==="node"){var h=this.getGraph().getNodeByIndex(l),f=h.getLayout().value;v.value=f}return v},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),s=o;return sS=s,sS}var lS,z5;function oye(){if(z5)return lS;z5=1;var r=qe(),t=Pe(),e=ie(),a=["itemStyle","opacity"],i=["emphasis","itemStyle","opacity"],n=["lineStyle","opacity"],o=["emphasis","lineStyle","opacity"];function s(c,d){return c.getVisual("opacity")||c.getModel().get(d)}function l(c,d,p){var g=c.getGraphicEl(),m=s(c,d);p!=null&&(m==null&&(m=1),m*=p),g.downplay&&g.downplay(),g.traverse(function(y){y.type!=="group"&&y.setStyle("opacity",m)})}function u(c,d){var p=s(c,d),g=c.getGraphicEl();g.traverse(function(m){m.type!=="group"&&m.setStyle("opacity",p)}),g.highlight&&g.highlight()}var v=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(c,d){var p=d.extent;c.moveTo(d.x1,d.y1),c.bezierCurveTo(d.cpx1,d.cpy1,d.cpx2,d.cpy2,d.x2,d.y2),d.orient==="vertical"?(c.lineTo(d.x2+p,d.y2),c.bezierCurveTo(d.cpx2+p,d.cpy2,d.cpx1+p,d.cpy1,d.x1+p,d.y1)):(c.lineTo(d.x2,d.y2+p),c.bezierCurveTo(d.cpx2,d.cpy2+p,d.cpx1,d.cpy1+p,d.x1,d.y1+p)),c.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),h=t.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(c,d,p){var g=this,m=c.getGraph(),y=this.group,_=c.layoutInfo,x=_.width,S=_.height,b=c.getData(),w=c.getData("edge"),A=c.get("orient");this._model=c,y.removeAll(),y.attr("position",[_.x,_.y]),m.eachEdge(function(T){var C=new v;C.dataIndex=T.dataIndex,C.seriesIndex=c.seriesIndex,C.dataType="edge";var M=T.getModel("lineStyle"),L=M.get("curveness"),D=T.node1.getLayout(),P=T.node1.getModel(),I=P.get("localX"),R=P.get("localY"),E=T.node2.getLayout(),k=T.node2.getModel(),B=k.get("localX"),F=k.get("localY"),V=T.getLayout(),N,O,z,G,q,H,U,W;switch(C.shape.extent=Math.max(1,V.dy),C.shape.orient=A,A==="vertical"?(N=(I!=null?I*x:D.x)+V.sy,O=(R!=null?R*S:D.y)+D.dy,z=(B!=null?B*x:E.x)+V.ty,G=F!=null?F*S:E.y,q=N,H=O*(1-L)+G*L,U=z,W=O*L+G*(1-L)):(N=(I!=null?I*x:D.x)+D.dx,O=(R!=null?R*S:D.y)+V.sy,z=B!=null?B*x:E.x,G=(F!=null?F*S:E.y)+V.ty,q=N*(1-L)+z*L,H=O,U=N*L+z*(1-L),W=G),C.setShape({x1:N,y1:O,x2:z,y2:G,cpx1:q,cpy1:H,cpx2:U,cpy2:W}),C.setStyle(M.getItemStyle()),C.style.fill){case"source":C.style.fill=T.node1.getVisual("color");break;case"target":C.style.fill=T.node2.getVisual("color");break}r.setHoverStyle(C,T.getModel("emphasis.lineStyle").getItemStyle()),y.add(C),w.setItemGraphicEl(T.dataIndex,C)}),m.eachNode(function(T){var C=T.getLayout(),M=T.getModel(),L=M.get("localX"),D=M.get("localY"),P=M.getModel("label"),I=M.getModel("emphasis.label"),R=new r.Rect({shape:{x:L!=null?L*x:C.x,y:D!=null?D*S:C.y,width:C.dx,height:C.dy},style:M.getModel("itemStyle").getItemStyle()}),E=T.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(R.style,E,P,I,{labelFetcher:c,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),R.setStyle("fill",T.getVisual("color")),r.setHoverStyle(R,E),y.add(R),b.setItemGraphicEl(T.dataIndex,R),R.dataType="node"}),b.eachItemGraphicEl(function(T,C){var M=b.getItemModel(C);M.get("draggable")&&(T.drift=function(L,D){g._focusAdjacencyDisabled=!0,this.shape.x+=L,this.shape.y+=D,this.dirty(),p.dispatchAction({type:"dragNode",seriesId:c.id,dataIndex:b.getRawIndex(C),localX:this.shape.x/x,localY:this.shape.y/S})},T.ondragend=function(){g._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),M.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){g._focusAdjacencyDisabled||(g._clearTimer(),p.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){g._focusAdjacencyDisabled||g._dispatchUnfocus(p)}))}),w.eachItemGraphicEl(function(T,C){var M=w.getItemModel(C);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),M.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){g._focusAdjacencyDisabled||(g._clearTimer(),p.dispatchAction({type:"focusNodeAdjacency",seriesId:c.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){g._focusAdjacencyDisabled||g._dispatchUnfocus(p)}))}),!this._data&&c.get("animation")&&y.setClipPath(f(y.getBoundingRect(),c,function(){y.removeClipPath()})),this._data=c.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(c){var d=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){d._unfocusDelayTimer=null,c.dispatchAction({type:"unfocusNodeAdjacency",seriesId:d._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(c,d,p,g){var m=c.getData(),y=m.graph,_=g.dataIndex,x=m.getItemModel(_),S=g.edgeDataIndex;if(!(_==null&&S==null)){var b=y.getNodeByIndex(_),w=y.getEdgeByIndex(S);if(y.eachNode(function(T){l(T,a,.1)}),y.eachEdge(function(T){l(T,n,.1)}),b){u(b,i);var A=x.get("focusNodeAdjacency");A==="outEdges"?e.each(b.outEdges,function(T){T.dataIndex<0||(u(T,o),u(T.node2,i))}):A==="inEdges"?e.each(b.inEdges,function(T){T.dataIndex<0||(u(T,o),u(T.node1,i))}):A==="allEdges"&&e.each(b.edges,function(T){T.dataIndex<0||(u(T,o),T.node1!==b&&u(T.node1,i),T.node2!==b&&u(T.node2,i))})}w&&(u(w,o),u(w.node1,i),u(w.node2,i))}},unfocusNodeAdjacency:function(c,d,p,g){var m=c.getGraph();m.eachNode(function(y){l(y,a)}),m.eachEdge(function(y){l(y,n)})}});function f(c,d,p){var g=new r.Rect({shape:{x:c.x-10,y:c.y-10,width:0,height:c.height+20}});return r.initProps(g,{shape:{width:c.width+20}},d,p),g}return lS=h,lS}var B5={},V5;function sye(){if(V5)return B5;V5=1;var r=Pe();return m$(),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),B5}var uS,G5;function lye(){if(G5)return uS;G5=1;var r=Ut(),t=ie(),e=_t(),a=e.groupData;function i(M,L,D){M.eachSeriesByType("sankey",function(P){var I=P.get("nodeWidth"),R=P.get("nodeGap"),E=n(P,L);P.layoutInfo=E;var k=E.width,B=E.height,F=P.getGraph(),V=F.nodes,N=F.edges;s(V);var O=t.filter(V,function(H){return H.getLayout().value===0}),z=O.length!==0?0:P.get("layoutIterations"),G=P.get("orient"),q=P.get("nodeAlign");o(V,N,I,R,k,B,z,G,q)})}function n(M,L){return r.getLayoutRect(M.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()})}function o(M,L,D,P,I,R,E,k,B){l(M,L,D,I,R,k,B),c(M,L,R,I,P,E,k),C(M,k)}function s(M){t.each(M,function(L){var D=A(L.outEdges,w),P=A(L.inEdges,w),I=L.getValue()||0,R=Math.max(D,P,I);L.setLayout({value:R},!0)})}function l(M,L,D,P,I,R,E){for(var k=[],B=[],F=[],V=[],N=0,te=0,O=0;O<L.length;O++)k[O]=1;for(O=0;O<M.length;O++)B[O]=M[O].inEdges.length,B[O]===0&&F.push(M[O]);for(var z=-1;F.length;){for(var G=0;G<F.length;G++){var q=F[G],H=q.hostGraph.data.getRawDataItem(q.dataIndex),U=H.depth!=null&&H.depth>=0;U&&H.depth>z&&(z=H.depth),q.setLayout({depth:U?H.depth:N},!0),R==="vertical"?q.setLayout({dy:D},!0):q.setLayout({dx:D},!0);for(var W=0;W<q.outEdges.length;W++){var Y=q.outEdges[W],X=L.indexOf(Y);k[X]=0;var K=Y.node2,Q=M.indexOf(K);--B[Q]===0&&V.indexOf(K)<0&&V.push(K)}}++N,F=V,V=[]}for(O=0;O<k.length;O++)if(k[O]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var j=z>N-1?z:N-1;E&&E!=="left"&&v(M,E,R,j);var te=R==="vertical"?(I-D)/j:(P-D)/j;f(M,te,R)}function u(M){var L=M.hostGraph.data.getRawDataItem(M.dataIndex);return L.depth!=null&&L.depth>=0}function v(M,L,D,P){if(L==="right"){for(var I=[],R=M,E=0;R.length;){for(var k=0;k<R.length;k++){var B=R[k];B.setLayout({skNodeHeight:E},!0);for(var F=0;F<B.inEdges.length;F++){var V=B.inEdges[F];I.indexOf(V.node1)<0&&I.push(V.node1)}}R=I,I=[],++E}t.each(M,function(N){u(N)||N.setLayout({depth:Math.max(0,P-N.getLayout().skNodeHeight)},!0)})}else L==="justify"&&h(M,P)}function h(M,L){t.each(M,function(D){!u(D)&&!D.outEdges.length&&D.setLayout({depth:L},!0)})}function f(M,L,D){t.each(M,function(P){var I=P.getLayout().depth*L;D==="vertical"?P.setLayout({y:I},!0):P.setLayout({x:I},!0)})}function c(M,L,D,P,I,R,E){var k=d(M,E);p(k,L,D,P,I,E),g(k,I,D,P,E);for(var B=1;R>0;R--)B*=.99,m(k,B,E),g(k,I,D,P,E),T(k,B,E),g(k,I,D,P,E)}function d(M,L){var D=[],P=L==="vertical"?"y":"x",I=a(M,function(R){return R.getLayout()[P]});return I.keys.sort(function(R,E){return R-E}),t.each(I.keys,function(R){D.push(I.buckets.get(R))}),D}function p(M,L,D,P,I,R){var E=1/0;t.each(M,function(k){var B=k.length,F=0;t.each(k,function(N){F+=N.getLayout().value});var V=R==="vertical"?(P-(B-1)*I)/F:(D-(B-1)*I)/F;V<E&&(E=V)}),t.each(M,function(k){t.each(k,function(B,F){var V=B.getLayout().value*E;R==="vertical"?(B.setLayout({x:F},!0),B.setLayout({dx:V},!0)):(B.setLayout({y:F},!0),B.setLayout({dy:V},!0))})}),t.each(L,function(k){var B=+k.getValue()*E;k.setLayout({dy:B},!0)})}function g(M,L,D,P,I){var R=I==="vertical"?"x":"y";t.each(M,function(E){E.sort(function(q,H){return q.getLayout()[R]-H.getLayout()[R]});for(var k,B,F,V=0,N=E.length,O=I==="vertical"?"dx":"dy",z=0;z<N;z++)B=E[z],F=V-B.getLayout()[R],F>0&&(k=B.getLayout()[R]+F,I==="vertical"?B.setLayout({x:k},!0):B.setLayout({y:k},!0)),V=B.getLayout()[R]+B.getLayout()[O]+L;var G=I==="vertical"?P:D;if(F=V-L-G,F>0)for(k=B.getLayout()[R]-F,I==="vertical"?B.setLayout({x:k},!0):B.setLayout({y:k},!0),V=k,z=N-2;z>=0;--z)B=E[z],F=B.getLayout()[R]+B.getLayout()[O]+L-V,F>0&&(k=B.getLayout()[R]-F,I==="vertical"?B.setLayout({x:k},!0):B.setLayout({y:k},!0)),V=B.getLayout()[R]})}function m(M,L,D){t.each(M.slice().reverse(),function(P){t.each(P,function(I){if(I.outEdges.length){var R=A(I.outEdges,y,D)/A(I.outEdges,w,D);if(isNaN(R)){var E=I.outEdges.length;R=E?A(I.outEdges,_,D)/E:0}if(D==="vertical"){var k=I.getLayout().x+(R-b(I,D))*L;I.setLayout({x:k},!0)}else{var B=I.getLayout().y+(R-b(I,D))*L;I.setLayout({y:B},!0)}}})})}function y(M,L){return b(M.node2,L)*M.getValue()}function _(M,L){return b(M.node2,L)}function x(M,L){return b(M.node1,L)*M.getValue()}function S(M,L){return b(M.node1,L)}function b(M,L){return L==="vertical"?M.getLayout().x+M.getLayout().dx/2:M.getLayout().y+M.getLayout().dy/2}function w(M){return M.getValue()}function A(M,L,D){for(var P=0,I=M.length,R=-1;++R<I;){var E=+L.call(M,M[R],D);isNaN(E)||(P+=E)}return P}function T(M,L,D){t.each(M,function(P){t.each(P,function(I){if(I.inEdges.length){var R=A(I.inEdges,x,D)/A(I.inEdges,w,D);if(isNaN(R)){var E=I.inEdges.length;R=E?A(I.inEdges,S,D)/E:0}if(D==="vertical"){var k=I.getLayout().x+(R-b(I,D))*L;I.setLayout({x:k},!0)}else{var B=I.getLayout().y+(R-b(I,D))*L;I.setLayout({y:B},!0)}}})})}function C(M,L){var D=L==="vertical"?"x":"y";t.each(M,function(P){P.outEdges.sort(function(I,R){return I.node2.getLayout()[D]-R.node2.getLayout()[D]}),P.inEdges.sort(function(I,R){return I.node1.getLayout()[D]-R.node1.getLayout()[D]})}),t.each(M,function(P){var I=0,R=0;t.each(P.outEdges,function(E){E.setLayout({sy:I},!0),I+=E.getLayout().dy}),t.each(P.inEdges,function(E){E.setLayout({ty:R},!0),R+=E.getLayout().dy})})}return uS=i,uS}var vS,F5;function uye(){if(F5)return vS;F5=1;var r=js(),t=ie();function e(a,i){a.eachSeriesByType("sankey",function(n){var o=n.getGraph(),s=o.nodes;if(s.length){var l=1/0,u=-1/0;t.each(s,function(v){var h=v.getLayout().value;h<l&&(l=h),h>u&&(u=h)}),t.each(s,function(v){var h=new r({type:"color",mappingMethod:"linear",dataExtent:[l,u],visual:n.get("color")}),f=h.mapValueToVisual(v.getLayout().value),c=v.getModel().get("itemStyle.color");c!=null?v.setVisual("color",c):v.setVisual("color",f)})}})}return vS=e,vS}var H5;function vye(){if(H5)return O5;H5=1;var r=Pe();nye(),oye(),sye();var t=lye(),e=uye();return r.registerLayout(t),r.registerVisual(e),O5}var q5={},hS={},W5;function w$(){if(W5)return hS;W5=1;var r=Lu(),t=ie(),e=cf(),a=e.getDimensionTypeByAxis,i=Ln(),n=i.makeSeriesEncodeForAxisCoordSys,o={_baseAxisDim:null,getInitialData:function(s,l){var u,v=l.getComponent("xAxis",this.get("xAxisIndex")),h=l.getComponent("yAxis",this.get("yAxisIndex")),f=v.get("type"),c=h.get("type"),d;f==="category"?(s.layout="horizontal",u=v.getOrdinalMeta(),d=!0):c==="category"?(s.layout="vertical",u=h.getOrdinalMeta(),d=!0):s.layout=s.layout||"horizontal";var p=["x","y"],g=s.layout==="horizontal"?0:1,m=this._baseAxisDim=p[g],y=p[1-g],_=[v,h],x=_[g].get("type"),S=_[1-g].get("type"),b=s.data;if(b&&d){var w=[];t.each(b,function(C,M){var L;C.value&&t.isArray(C.value)?(L=C.value.slice(),C.value.unshift(M)):t.isArray(C)?(L=C.slice(),C.unshift(M)):L=C,w.push(L)}),s.data=w}var A=this.defaultValueDimensions,T=[{name:m,type:a(x),ordinalMeta:u,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:y,type:a(S),dimsDef:A.slice()}];return r(this,{coordDimensions:T,dimensionsCount:A.length+1,encodeDefaulter:t.curry(n,T,this)})},getBaseAxis:function(){var s=this._baseAxisDim;return this.ecModel.getComponent(s+"Axis",this.get(s+"AxisIndex")).axis}};return hS.seriesModelMixin=o,hS}var fS,U5;function hye(){if(U5)return fS;U5=1;var r=ie(),t=Ir(),e=w$(),a=e.seriesModelMixin,i=t.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(i,a,!0);var n=i;return fS=n,fS}var cS,$5;function fye(){if($5)return cS;$5=1;var r=ie(),t=tn(),e=qe(),a=ur(),i=["itemStyle"],n=["emphasis","itemStyle"],o=t.extend({type:"boxplot",render:function(f,c,d){var p=f.getData(),g=this.group,m=this._data;this._data||g.removeAll();var y=f.get("layout")==="horizontal"?1:0;p.diff(m).add(function(_){if(p.hasValue(_)){var x=p.getItemLayout(_),S=l(x,p,_,y,!0);p.setItemGraphicEl(_,S),g.add(S)}}).update(function(_,x){var S=m.getItemGraphicEl(x);if(!p.hasValue(_)){g.remove(S);return}var b=p.getItemLayout(_);S?u(b,S,p,_):S=l(b,p,_,y),g.add(S),p.setItemGraphicEl(_,S)}).remove(function(_){var x=m.getItemGraphicEl(_);x&&g.remove(x)}).execute(),this._data=p},remove:function(f){var c=this.group,d=this._data;this._data=null,d&&d.eachItemGraphicEl(function(p){p&&c.remove(p)})},dispose:r.noop}),s=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(f,c){var d=c.points,p=0;for(f.moveTo(d[p][0],d[p][1]),p++;p<4;p++)f.lineTo(d[p][0],d[p][1]);for(f.closePath();p<d.length;p++)f.moveTo(d[p][0],d[p][1]),p++,f.lineTo(d[p][0],d[p][1])}});function l(f,c,d,p,g){var m=f.ends,y=new s({shape:{points:g?v(m,p,f):m}});return u(f,y,c,d,g),y}function u(f,c,d,p,g){var m=d.hostModel,y=e[g?"initProps":"updateProps"];y(c,{shape:{points:f.ends}},m,p);var _=d.getItemModel(p),x=_.getModel(i),S=d.getItemVisual(p,"color"),b=x.getItemStyle(["borderColor"]);b.stroke=S,b.strokeNoScale=!0,c.useStyle(b),c.z2=100;var w=_.getModel(n).getItemStyle();e.setHoverStyle(c,w)}function v(f,c,d){return r.map(f,function(p){return p=p.slice(),p[c]=d.initBaseline,p})}var h=o;return cS=h,cS}var dS,Y5;function cye(){if(Y5)return dS;Y5=1;var r=["itemStyle","borderColor"];function t(e,a){var i=e.get("color");e.eachRawSeriesByType("boxplot",function(n){var o=i[n.seriesIndex%i.length],s=n.getData();s.setVisual({legendSymbol:"roundRect",color:n.get(r)||o}),e.isSeriesFiltered(n)||s.each(function(l){var u=s.getItemModel(l);s.setItemVisual(l,{color:u.get(r,!0)})})})}return dS=t,dS}var pS,Z5;function dye(){if(Z5)return pS;Z5=1;var r=ie(),t=st(),e=t.parsePercent,a=r.each;function i(l){var u=n(l);a(u,function(v){var h=v.seriesModels;h.length&&(o(v),a(h,function(f,c){s(f,v.boxOffsetList[c],v.boxWidthList[c])}))})}function n(l){var u=[],v=[];return l.eachSeriesByType("boxplot",function(h){var f=h.getBaseAxis(),c=r.indexOf(v,f);c<0&&(c=v.length,v[c]=f,u[c]={axis:f,seriesModels:[]}),u[c].seriesModels.push(h)}),u}function o(l){var u,v=l.axis,h=l.seriesModels,f=h.length,c=l.boxWidthList=[],d=l.boxOffsetList=[],p=[],g;if(v.type==="category")g=v.getBandWidth();else{var m=0;a(h,function(b){m=Math.max(m,b.getData().count())}),u=v.getExtent(),Math.abs(u[1]-u[0])/m}a(h,function(b){var w=b.get("boxWidth");r.isArray(w)||(w=[w,w]),p.push([e(w[0],g)||0,e(w[1],g)||0])});var y=g*.8-2,_=y/f*.3,x=(y-_*(f-1))/f,S=x/2-y/2;a(h,function(b,w){d.push(S),S+=_+x,c.push(Math.min(Math.max(x,p[w][0]),p[w][1]))})}function s(l,u,v){var h=l.coordinateSystem,f=l.getData(),c=v/2,d=l.get("layout")==="horizontal"?0:1,p=1-d,g=["x","y"],m=f.mapDimension(g[d]),y=f.mapDimension(g[p],!0);if(m==null||y.length<5)return;for(var _=0;_<f.count();_++){var x=f.get(m,_),S=M(x,y[2],_),b=M(x,y[0],_),w=M(x,y[1],_),A=M(x,y[3],_),T=M(x,y[4],_),C=[];L(C,w,0),L(C,A,1),C.push(b,w,T,A),D(C,b),D(C,T),D(C,S),f.setItemLayout(_,{initBaseline:S[p],ends:C})}function M(P,I,R){var E=f.get(I,R),k=[];k[d]=P,k[p]=E;var B;return isNaN(P)||isNaN(E)?B=[NaN,NaN]:(B=h.dataToPoint(k),B[d]+=u),B}function L(P,I,R){var E=I.slice(),k=I.slice();E[d]+=c,k[d]-=c,R?P.push(E,k):P.push(k,E)}function D(P,I){var R=I.slice(),E=I.slice();R[d]-=c,E[d]+=c,P.push(R,E)}}return pS=i,pS}var X5;function pye(){if(X5)return q5;X5=1;var r=Pe();hye(),fye();var t=cye(),e=dye();return r.registerVisual(t),r.registerLayout(e),q5}var K5={},gS,Q5;function gye(){if(Q5)return gS;Q5=1;var r=ie(),t=Ir(),e=w$(),a=e.seriesModelMixin,i=t.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(o,s,l){var u=s.getItemLayout(o);return u&&l.rect(u.brushRect)}});r.mixin(i,a,!0);var n=i;return gS=n,gS}var mS,j5;function mye(){if(j5)return mS;j5=1;var r=ie(),t=tn(),e=qe(),a=ur(),i=pf(),n=i.createClipPath,o=["itemStyle"],s=["emphasis","itemStyle"],l=["color","color0","borderColor","borderColor0"],u=t.extend({type:"candlestick",render:function(_,x,S){this.group.removeClipPath(),this._updateDrawMode(_),this._isLargeDraw?this._renderLarge(_):this._renderNormal(_)},incrementalPrepareRender:function(_,x,S){this._clear(),this._updateDrawMode(_)},incrementalRender:function(_,x,S,b){this._isLargeDraw?this._incrementalRenderLarge(_,x):this._incrementalRenderNormal(_,x)},_updateDrawMode:function(_){var x=_.pipelineContext.large;(this._isLargeDraw==null||x^this._isLargeDraw)&&(this._isLargeDraw=x,this._clear())},_renderNormal:function(_){var x=_.getData(),S=this._data,b=this.group,w=x.getLayout("isSimpleBox"),A=_.get("clip",!0),T=_.coordinateSystem,C=T.getArea&&T.getArea();this._data||b.removeAll(),x.diff(S).add(function(M){if(x.hasValue(M)){var L,D=x.getItemLayout(M);if(A&&f(C,D))return;L=h(D,M,!0),e.initProps(L,{shape:{points:D.ends}},_,M),c(L,x,M,w),b.add(L),x.setItemGraphicEl(M,L)}}).update(function(M,L){var D=S.getItemGraphicEl(L);if(!x.hasValue(M)){b.remove(D);return}var P=x.getItemLayout(M);if(A&&f(C,P)){b.remove(D);return}D?e.updateProps(D,{shape:{points:P.ends}},_,M):D=h(P),c(D,x,M,w),b.add(D),x.setItemGraphicEl(M,D)}).remove(function(M){var L=S.getItemGraphicEl(M);L&&b.remove(L)}).execute(),this._data=x},_renderLarge:function(_){this._clear(),g(_,this.group);var x=_.get("clip",!0)?n(_.coordinateSystem,!1,_):null;x?this.group.setClipPath(x):this.group.removeClipPath()},_incrementalRenderNormal:function(_,x){for(var S=x.getData(),b=S.getLayout("isSimpleBox"),w;(w=_.next())!=null;){var A,T=S.getItemLayout(w);A=h(T),c(A,S,w,b),A.incremental=!0,this.group.add(A)}},_incrementalRenderLarge:function(_,x){g(x,this.group,!0)},remove:function(_){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:r.noop}),v=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(_,x){var S=x.points;this.__simpleBox?(_.moveTo(S[4][0],S[4][1]),_.lineTo(S[6][0],S[6][1])):(_.moveTo(S[0][0],S[0][1]),_.lineTo(S[1][0],S[1][1]),_.lineTo(S[2][0],S[2][1]),_.lineTo(S[3][0],S[3][1]),_.closePath(),_.moveTo(S[4][0],S[4][1]),_.lineTo(S[5][0],S[5][1]),_.moveTo(S[6][0],S[6][1]),_.lineTo(S[7][0],S[7][1]))}});function h(_,x,S){var b=_.ends;return new v({shape:{points:S?d(b,_):b},z2:100})}function f(_,x){for(var S=!0,b=0;b<x.ends.length;b++)if(_.contain(x.ends[b][0],x.ends[b][1])){S=!1;break}return S}function c(_,x,S,b){var w=x.getItemModel(S),A=w.getModel(o),T=x.getItemVisual(S,"color"),C=x.getItemVisual(S,"borderColor")||T,M=A.getItemStyle(l);_.useStyle(M),_.style.strokeNoScale=!0,_.style.fill=T,_.style.stroke=C,_.__simpleBox=b;var L=w.getModel(s).getItemStyle();e.setHoverStyle(_,L)}function d(_,x){return r.map(_,function(S){return S=S.slice(),S[1]=x.initBaseline,S})}var p=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(_,x){for(var S=x.points,b=0;b<S.length;)if(this.__sign===S[b++]){var w=S[b++];_.moveTo(w,S[b++]),_.lineTo(w,S[b++])}else b+=3}});function g(_,x,S){var b=_.getData(),w=b.getLayout("largePoints"),A=new p({shape:{points:w},__sign:1});x.add(A);var T=new p({shape:{points:w},__sign:-1});x.add(T),m(1,A,_,b),m(-1,T,_,b),S&&(A.incremental=!0,T.incremental=!0)}function m(_,x,S,b){var w=_>0?"P":"N",A=b.getVisual("borderColor"+w)||b.getVisual("color"+w),T=S.getModel(o).getItemStyle(l);x.useStyle(T),x.style.fill=null,x.style.stroke=A}var y=u;return mS=y,mS}var yS,J5;function yye(){if(J5)return yS;J5=1;var r=ie();function t(e){!e||!r.isArray(e.series)||r.each(e.series,function(a){r.isObject(a)&&a.type==="k"&&(a.type="candlestick")})}return yS=t,yS}var _S,eG;function _ye(){if(eG)return _S;eG=1;var r=Cu(),t=["itemStyle","borderColor"],e=["itemStyle","borderColor0"],a=["itemStyle","color"],i=["itemStyle","color0"],n={seriesType:"candlestick",plan:r(),performRawSeries:!0,reset:function(o,s){var l=o.getData();if(l.setVisual({legendSymbol:"roundRect",colorP:h(1,o),colorN:h(-1,o),borderColorP:f(1,o),borderColorN:f(-1,o)}),s.isSeriesFiltered(o))return;var u=o.pipelineContext.large;return!u&&{progress:v};function v(c,d){for(var p;(p=c.next())!=null;){var g=d.getItemModel(p),m=d.getItemLayout(p).sign;d.setItemVisual(p,{color:h(m,g),borderColor:f(m,g)})}}function h(c,d){return d.get(c>0?a:i)}function f(c,d){return d.get(c>0?t:e)}}};return _S=n,_S}var xS,tG;function xye(){if(tG)return xS;tG=1;var r=qe(),t=r.subPixelOptimize,e=Cu(),a=st(),i=a.parsePercent,n=ie(),o=n.retrieve2,s=typeof Float32Array<"u"?Float32Array:Array,l={seriesType:"candlestick",plan:e(),reset:function(h){var f=h.coordinateSystem,c=h.getData(),d=v(h,c),p=0,g=1,m=["x","y"],y=c.mapDimension(m[p]),_=c.mapDimension(m[g],!0),x=_[0],S=_[1],b=_[2],w=_[3];if(c.setLayout({candleWidth:d,isSimpleBox:d<=1.3}),y==null||_.length<4)return;return{progress:h.pipelineContext.large?T:A};function A(C,M){for(var L;(L=C.next())!=null;){var D=M.get(y,L),P=M.get(x,L),I=M.get(S,L),R=M.get(b,L),E=M.get(w,L),k=Math.min(P,I),B=Math.max(P,I),F=G(k,D),V=G(B,D),N=G(R,D),O=G(E,D),z=[];q(z,V,0),q(z,F,1),z.push(U(O),U(V),U(N),U(F)),M.setItemLayout(L,{sign:u(M,L,P,I,S),initBaseline:P>I?V[g]:F[g],ends:z,brushRect:H(R,E,D)})}function G(W,Y){var X=[];return X[p]=Y,X[g]=W,isNaN(Y)||isNaN(W)?[NaN,NaN]:f.dataToPoint(X)}function q(W,Y,X){var K=Y.slice(),Q=Y.slice();K[p]=t(K[p]+d/2,1,!1),Q[p]=t(Q[p]-d/2,1,!0),X?W.push(K,Q):W.push(Q,K)}function H(W,Y,X){var K=G(W,X),Q=G(Y,X);return K[p]-=d/2,Q[p]-=d/2,{x:K[0],y:K[1],width:d,height:Q[1]-K[1]}}function U(W){return W[p]=t(W[p],1),W}}function T(C,M){for(var L=new s(C.count*4),D=0,P,I=[],R=[],E;(E=C.next())!=null;){var k=M.get(y,E),B=M.get(x,E),F=M.get(S,E),V=M.get(b,E),N=M.get(w,E);if(isNaN(k)||isNaN(V)||isNaN(N)){L[D++]=NaN,D+=3;continue}L[D++]=u(M,E,B,F,S),I[p]=k,I[g]=V,P=f.dataToPoint(I,null,R),L[D++]=P?P[0]:NaN,L[D++]=P?P[1]:NaN,I[g]=N,P=f.dataToPoint(I,null,R),L[D++]=P?P[1]:NaN}M.setLayout("largePoints",L)}}};function u(h,f,c,d,p){var g;return c>d?g=-1:c<d?g=1:g=f>0?h.get(p,f-1)<=d?1:-1:1,g}function v(h,f){var c=h.getBaseAxis(),d,p=c.type==="category"?c.getBandWidth():(d=c.getExtent(),Math.abs(d[1]-d[0])/f.count()),g=i(o(h.get("barMaxWidth"),p),p),m=i(o(h.get("barMinWidth"),1),p),y=h.get("barWidth");return y!=null?i(y,p):Math.max(Math.min(p/2,g),m)}return xS=l,xS}var rG;function Sye(){if(rG)return K5;rG=1;var r=Pe();gye(),mye();var t=yye(),e=_ye(),a=xye();return r.registerPreprocessor(t),r.registerVisual(e),r.registerLayout(a),K5}var aG={},SS,iG;function bye(){if(iG)return SS;iG=1;var r=In(),t=Ir(),e=t.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(a,i){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});return SS=e,SS}var bS,nG;function wye(){if(nG)return bS;nG=1;var r=ie(),t=ti(),e=t.createSymbol,a=qe(),i=a.Group,n=st(),o=n.parsePercent,s=gg(),l=3;function u(d){return r.isArray(d)||(d=[+d,+d]),d}function v(d,p){var g=p.rippleEffectColor||p.color;d.eachChild(function(m){m.attr({z:p.z,zlevel:p.zlevel,style:{stroke:p.brushType==="stroke"?g:null,fill:p.brushType==="fill"?g:null}})})}function h(d,p){i.call(this);var g=new s(d,p),m=new i;this.add(g),this.add(m),m.beforeUpdate=function(){this.attr(g.getScale())},this.updateData(d,p)}var f=h.prototype;f.stopEffectAnimation=function(){this.childAt(1).removeAll()},f.startEffectAnimation=function(d){for(var p=d.symbolType,g=d.color,m=this.childAt(1),y=0;y<l;y++){var _=e(p,-1,-1,2,2,g);_.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var x=-y/l*d.period+d.effectOffset;_.animate("",!0).when(d.period,{scale:[d.rippleScale/2,d.rippleScale/2]}).delay(x).start(),_.animateStyle(!0).when(d.period,{opacity:0}).delay(x).start(),m.add(_)}v(m,d)},f.updateEffectAnimation=function(d){for(var p=this._effectCfg,g=this.childAt(1),m=["symbolType","period","rippleScale"],y=0;y<m.length;y++){var _=m[y];if(p[_]!==d[_]){this.stopEffectAnimation(),this.startEffectAnimation(d);return}}v(g,d)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateData=function(d,p){var g=d.hostModel;this.childAt(0).updateData(d,p);var m=this.childAt(1),y=d.getItemModel(p),_=d.getItemVisual(p,"symbol"),x=u(d.getItemVisual(p,"symbolSize")),S=d.getItemVisual(p,"color");m.attr("scale",x),m.traverse(function(D){D.attr({fill:S})});var b=y.getShallow("symbolOffset");if(b){var w=m.position;w[0]=o(b[0],x[0]),w[1]=o(b[1],x[1])}var A=d.getItemVisual(p,"symbolRotate");m.rotation=(A||0)*Math.PI/180||0;var T={};if(T.showEffectOn=g.get("showEffectOn"),T.rippleScale=y.get("rippleEffect.scale"),T.brushType=y.get("rippleEffect.brushType"),T.period=y.get("rippleEffect.period")*1e3,T.effectOffset=p/d.count(),T.z=y.getShallow("z")||0,T.zlevel=y.getShallow("zlevel")||0,T.symbolType=_,T.color=S,T.rippleEffectColor=y.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),T.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(T):this.startEffectAnimation(T),this._effectCfg=T;else{this._effectCfg=null,this.stopEffectAnimation();var C=this.childAt(0),M=function(){C.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},L=function(){C.downplay(),T.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",M,this).on("mouseout",L,this).on("emphasis",M,this).on("normal",L,this)}this._effectCfg=T},f.fadeOut=function(d){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),d&&d()},r.inherits(h,i);var c=h;return bS=c,bS}var wS,oG;function Tye(){if(oG)return wS;oG=1;var r=Pe(),t=df(),e=wye(),a=ha(),i=gf(),n=r.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new t(e)},render:function(o,s,l){var u=o.getData(),v=this._symbolDraw;v.updateData(u),this.group.add(v.group)},updateTransform:function(o,s,l){var u=o.getData();this.group.dirty();var v=i().reset(o);v.progress&&v.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_updateGroupTransform:function(o){var s=o.coordinateSystem;s&&s.getRoamTransform&&(this.group.transform=a.clone(s.getRoamTransform()),this.group.decomposeTransform())},remove:function(o,s){this._symbolDraw&&this._symbolDraw.remove(s)},dispose:function(){}});return wS=n,wS}var sG;function Aye(){if(sG)return aG;sG=1;var r=Pe();bye(),Tye();var t=Xs(),e=gf();return r.registerVisual(t("effectScatter","circle")),r.registerLayout(e("effectScatter")),aG}var lG={},TS,uG;function Cye(){if(uG)return TS;uG=1;var r=It();r.__DEV__;var t=Ir(),e=ei(),a=ie(),i=a.concatArray,n=a.mergeAll,o=a.map,s=Yt(),l=s.encodeHTML;bi();var u=typeof Uint32Array>"u"?Array:Uint32Array,v=typeof Float64Array>"u"?Array:Float64Array;function h(d){var p=d.data;p&&p[0]&&p[0][0]&&p[0][0].coord&&(d.data=o(p,function(g){var m=[g[0].coord,g[1].coord],y={coords:m};return g[0].name&&(y.fromName=g[0].name),g[1].name&&(y.toName=g[1].name),n([y,g[0],g[1]])}))}var f=t.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(d){d.data=d.data||[],h(d);var p=this._processFlatCoordsArray(d.data);this._flatCoords=p.flatCoords,this._flatCoordsOffset=p.flatCoordsOffset,p.flatCoords&&(d.data=new Float32Array(p.count)),f.superApply(this,"init",arguments)},mergeOption:function(d){if(h(d),d.data){var p=this._processFlatCoordsArray(d.data);this._flatCoords=p.flatCoords,this._flatCoordsOffset=p.flatCoordsOffset,p.flatCoords&&(d.data=new Float32Array(p.count))}f.superApply(this,"mergeOption",arguments)},appendData:function(d){var p=this._processFlatCoordsArray(d.data);p.flatCoords&&(this._flatCoords?(this._flatCoords=i(this._flatCoords,p.flatCoords),this._flatCoordsOffset=i(this._flatCoordsOffset,p.flatCoordsOffset)):(this._flatCoords=p.flatCoords,this._flatCoordsOffset=p.flatCoordsOffset),d.data=new Float32Array(p.count)),this.getRawData().appendData(d.data)},_getCoordsFromItemModel:function(d){var p=this.getData().getItemModel(d),g=p.option instanceof Array?p.option:p.getShallow("coords");return g},getLineCoordsCount:function(d){return this._flatCoordsOffset?this._flatCoordsOffset[d*2+1]:this._getCoordsFromItemModel(d).length},getLineCoords:function(d,p){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[d*2],m=this._flatCoordsOffset[d*2+1],y=0;y<m;y++)p[y]=p[y]||[],p[y][0]=this._flatCoords[g+y*2],p[y][1]=this._flatCoords[g+y*2+1];return m}else{for(var _=this._getCoordsFromItemModel(d),y=0;y<_.length;y++)p[y]=p[y]||[],p[y][0]=_[y][0],p[y][1]=_[y][1];return _.length}},_processFlatCoordsArray:function(d){var p=0;if(this._flatCoords&&(p=this._flatCoords.length),typeof d[0]=="number"){for(var g=d.length,m=new u(g),y=new v(g),_=0,x=0,S=0,b=0;b<g;){S++;var w=d[b++];m[x++]=_+p,m[x++]=w;for(var A=0;A<w;A++){var T=d[b++],C=d[b++];y[_++]=T,y[_++]=C}}return{flatCoordsOffset:new Uint32Array(m.buffer,0,x),flatCoords:y,count:S}}return{flatCoordsOffset:null,flatCoords:null,count:d.length}},getInitialData:function(d,p){var g=new e(["value"],this);return g.hasItemOption=!1,g.initData(d.data,[],function(m,y,_,x){if(m instanceof Array)return NaN;g.hasItemOption=!0;var S=m.value;if(S!=null)return S instanceof Array?S[x]:S}),g},formatTooltip:function(d){var p=this.getData(),g=p.getItemModel(d),m=g.get("name");if(m)return m;var y=g.get("fromName"),_=g.get("toName"),x=[];return y!=null&&x.push(y),_!=null&&x.push(_),l(x.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var d=this.option.progressive;return d==null?this.option.large?1e4:this.get("progressive"):d},getProgressiveThreshold:function(){var d=this.option.progressiveThreshold;return d==null?this.option.large?2e4:this.get("progressiveThreshold"):d},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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}}}),c=f;return TS=c,TS}var AS,vG;function T$(){if(vG)return AS;vG=1;var r=qe(),t=dD(),e=ie(),a=ti(),i=a.createSymbol,n=Jt(),o=yo();function s(v,h,f){r.Group.call(this),this.add(this.createLine(v,h,f)),this._updateEffectSymbol(v,h)}var l=s.prototype;l.createLine=function(v,h,f){return new t(v,h,f)},l._updateEffectSymbol=function(v,h){var f=v.getItemModel(h),c=f.getModel("effect"),d=c.get("symbolSize"),p=c.get("symbol");e.isArray(d)||(d=[d,d]);var g=c.get("color")||v.getItemVisual(h,"color"),m=this.childAt(1);this._symbolType!==p&&(this.remove(m),m=i(p,-.5,-.5,1,1,g),m.z2=100,m.culling=!0,this.add(m)),m&&(m.setStyle("shadowColor",g),m.setStyle(c.getItemStyle(["color"])),m.attr("scale",d),m.setColor(g),m.attr("scale",d),this._symbolType=p,this._symbolScale=d,this._updateEffectAnimation(v,c,h))},l._updateEffectAnimation=function(v,h,f){var c=this.childAt(1);if(c){var d=this,p=v.getItemLayout(f),g=h.get("period")*1e3,m=h.get("loop"),y=h.get("constantSpeed"),_=e.retrieve(h.get("delay"),function(w){return w/v.count()*g/3}),x=typeof _=="function";if(c.ignore=!0,this.updateAnimationPoints(c,p),y>0&&(g=this.getLineLength(c)/y*1e3),g!==this._period||m!==this._loop){c.stopAnimation();var S=_;x&&(S=_(f)),c.__t>0&&(S=-g*c.__t),c.__t=0;var b=c.animate("",m).when(g,{__t:1}).delay(S).during(function(){d.updateSymbolPosition(c)});m||b.done(function(){d.remove(c)}),b.start()}this._period=g,this._loop=m}},l.getLineLength=function(v){return n.dist(v.__p1,v.__cp1)+n.dist(v.__cp1,v.__p2)},l.updateAnimationPoints=function(v,h){v.__p1=h[0],v.__p2=h[1],v.__cp1=h[2]||[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]},l.updateData=function(v,h,f){this.childAt(0).updateData(v,h,f),this._updateEffectSymbol(v,h)},l.updateSymbolPosition=function(v){var h=v.__p1,f=v.__p2,c=v.__cp1,d=v.__t,p=v.position,g=[p[0],p[1]],m=o.quadraticAt,y=o.quadraticDerivativeAt;p[0]=m(h[0],c[0],f[0],d),p[1]=m(h[1],c[1],f[1],d);var _=y(h[0],c[0],f[0],d),x=y(h[1],c[1],f[1],d);if(v.rotation=-Math.atan2(x,_)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(v.__lastT!==void 0&&v.__lastT<v.__t){var S=n.dist(g,p)*1.05;v.attr("scale",[v.scale[0],S]),d===1&&(p[0]=g[0]+(p[0]-g[0])/2,p[1]=g[1]+(p[1]-g[1])/2)}else if(v.__lastT===1){var S=2*n.dist(h,p);v.attr("scale",[v.scale[0],S])}else v.attr("scale",this._symbolScale);v.__lastT=v.__t,v.ignore=!1},l.updateLayout=function(v,h){this.childAt(0).updateLayout(v,h);var f=v.getItemModel(h).getModel("effect");this._updateEffectAnimation(v,f,h)},e.inherits(s,r.Group);var u=s;return AS=u,AS}var CS,hG;function A$(){if(hG)return CS;hG=1;var r=qe(),t=ie();function e(n,o,s){r.Group.call(this),this._createPolyline(n,o,s)}var a=e.prototype;a._createPolyline=function(n,o,s){var l=n.getItemLayout(o),u=new r.Polyline({shape:{points:l}});this.add(u),this._updateCommonStl(n,o,s)},a.updateData=function(n,o,s){var l=n.hostModel,u=this.childAt(0),v={shape:{points:n.getItemLayout(o)}};r.updateProps(u,v,l,o),this._updateCommonStl(n,o,s)},a._updateCommonStl=function(n,o,s){var l=this.childAt(0),u=n.getItemModel(o),v=n.getItemVisual(o,"color"),h=s&&s.lineStyle,f=s&&s.hoverLineStyle;(!s||n.hasItemOption)&&(h=u.getModel("lineStyle").getLineStyle(),f=u.getModel("emphasis.lineStyle").getLineStyle()),l.useStyle(t.defaults({strokeNoScale:!0,fill:"none",stroke:v},h)),l.hoverStyle=f,r.setHoverStyle(this)},a.updateLayout=function(n,o){var s=this.childAt(0);s.setShape("points",n.getItemLayout(o))},t.inherits(e,r.Group);var i=e;return CS=i,CS}var MS,fG;function Mye(){if(fG)return MS;fG=1;var r=A$(),t=ie(),e=T$(),a=Jt();function i(s,l,u){e.call(this,s,l,u),this._lastFrame=0,this._lastFramePercent=0}var n=i.prototype;n.createLine=function(s,l,u){return new r(s,l,u)},n.updateAnimationPoints=function(s,l){this._points=l;for(var u=[0],v=0,h=1;h<l.length;h++){var f=l[h-1],c=l[h];v+=a.dist(f,c),u.push(v)}if(v!==0){for(var h=0;h<u.length;h++)u[h]/=v;this._offsets=u,this._length=v}},n.getLineLength=function(s){return this._length},n.updateSymbolPosition=function(s){var l=s.__t,u=this._points,v=this._offsets,h=u.length;if(v){var f=this._lastFrame,c;if(l<this._lastFramePercent){var d=Math.min(f+1,h-1);for(c=d;c>=0&&!(v[c]<=l);c--);c=Math.min(c,h-2)}else{for(var c=f;c<h&&!(v[c]>l);c++);c=Math.min(c-1,h-2)}a.lerp(s.position,u[c],u[c+1],(l-v[c])/(v[c+1]-v[c]));var p=u[c+1][0]-u[c][0],g=u[c+1][1]-u[c][1];s.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=c,this._lastFramePercent=l,s.ignore=!1}},t.inherits(i,e);var o=i;return MS=o,MS}var DS,cG;function Dye(){if(cG)return DS;cG=1;var r=qe(),t=rD(),e=P9(),a=R9(),i=r.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(l,u){var v=u.segs,h=u.curveness;if(u.polyline)for(var f=0;f<v.length;){var c=v[f++];if(c>0){l.moveTo(v[f++],v[f++]);for(var d=1;d<c;d++)l.lineTo(v[f++],v[f++])}}else for(var f=0;f<v.length;){var p=v[f++],g=v[f++],m=v[f++],y=v[f++];if(l.moveTo(p,g),h>0){var _=(p+m)/2-(g-y)*h,x=(g+y)/2-(m-p)*h;l.quadraticCurveTo(_,x,m,y)}else l.lineTo(m,y)}},findDataIndex:function(l,u){var v=this.shape,h=v.segs,f=v.curveness;if(v.polyline)for(var c=0,d=0;d<h.length;){var p=h[d++];if(p>0)for(var g=h[d++],m=h[d++],y=1;y<p;y++){var _=h[d++],x=h[d++];if(e.containStroke(g,m,_,x))return c}c++}else for(var c=0,d=0;d<h.length;){var g=h[d++],m=h[d++],_=h[d++],x=h[d++];if(f>0){var S=(g+_)/2-(m-x)*f,b=(m+x)/2-(_-g)*f;if(a.containStroke(g,m,S,b,_,x))return c}else if(e.containStroke(g,m,_,x))return c;c++}return-1}});function n(){this.group=new r.Group}var o=n.prototype;o.isPersistent=function(){return!this._incremental},o.updateData=function(l){this.group.removeAll();var u=new i({rectHover:!0,cursor:"default"});u.setShape({segs:l.getLayout("linesPoints")}),this._setCommon(u,l),this.group.add(u),this._incremental=null},o.incrementalPrepareUpdate=function(l){this.group.removeAll(),this._clearIncremental(),l.count()>5e5?(this._incremental||(this._incremental=new t({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.incrementalUpdate=function(l,u){var v=new i;v.setShape({segs:u.getLayout("linesPoints")}),this._setCommon(v,u,!!this._incremental),this._incremental?this._incremental.addDisplayable(v,!0):(v.rectHover=!0,v.cursor="default",v.__startIndex=l.start,this.group.add(v))},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._setCommon=function(l,u,v){var h=u.hostModel;l.setShape({polyline:h.get("polyline"),curveness:h.get("lineStyle.curveness")}),l.useStyle(h.getModel("lineStyle").getLineStyle()),l.style.strokeNoScale=!0;var f=u.getVisual("color");f&&l.setStyle("stroke",f),l.setStyle("fill"),v||(l.seriesIndex=h.seriesIndex,l.on("mousemove",function(c){l.dataIndex=null;var d=l.findDataIndex(c.offsetX,c.offsetY);d>0&&(l.dataIndex=d+l.__startIndex)}))},o._clearIncremental=function(){var l=this._incremental;l&&l.clearDisplaybles()};var s=n;return DS=s,DS}var LS,dG;function C$(){if(dG)return LS;dG=1;var r=Cu(),t={seriesType:"lines",plan:r(),reset:function(e){var a=e.coordinateSystem,i=e.get("polyline"),n=e.pipelineContext.large;function o(s,l){var u=[];if(n){var v,h=s.end-s.start;if(i){for(var f=0,c=s.start;c<s.end;c++)f+=e.getLineCoordsCount(c);v=new Float32Array(h+f*2)}else v=new Float32Array(h*4);for(var d=0,p=[],c=s.start;c<s.end;c++){var g=e.getLineCoords(c,u);i&&(v[d++]=g);for(var m=0;m<g;m++)p=a.dataToPoint(u[m],!1,p),v[d++]=p[0],v[d++]=p[1]}l.setLayout("linesPoints",v)}else for(var c=s.start;c<s.end;c++){var y=l.getItemModel(c),g=e.getLineCoords(c,u),_=[];if(i)for(var x=0;x<g;x++)_.push(a.dataToPoint(u[x]));else{_[0]=a.dataToPoint(u[0]),_[1]=a.dataToPoint(u[1]);var S=y.get("lineStyle.curveness");+S&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*S,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*S])}l.setItemLayout(c,_)}}return{progress:o}}};return LS=t,LS}var IS,pG;function Lye(){if(pG)return IS;pG=1;var r=It();r.__DEV__;var t=Pe(),e=pD(),a=T$(),i=dD(),n=A$(),o=Mye(),s=Dye(),l=C$(),u=pf(),v=u.createClipPath,h=t.extendChartView({type:"lines",init:function(){},render:function(f,c,d){var p=f.getData(),g=this._updateLineDraw(p,f),m=f.get("zlevel"),y=f.get("effect.trailLength"),_=d.getZr(),x=_.painter.getType()==="svg";x||_.painter.getLayer(m).clear(!0),this._lastZlevel!=null&&!x&&_.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(f)&&y&&(x||_.configLayer(m,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(y/10+.9,1),0)})),g.updateData(p);var S=f.get("clip",!0)&&v(f.coordinateSystem,!1,f);S?this.group.setClipPath(S):this.group.removeClipPath(),this._lastZlevel=m,this._finished=!0},incrementalPrepareRender:function(f,c,d){var p=f.getData(),g=this._updateLineDraw(p,f);g.incrementalPrepareUpdate(p),this._clearLayer(d),this._finished=!1},incrementalRender:function(f,c,d){this._lineDraw.incrementalUpdate(f,c.getData()),this._finished=f.end===c.getData().count()},updateTransform:function(f,c,d){var p=f.getData(),g=f.pipelineContext;if(!this._finished||g.large||g.progressiveRender)return{update:!0};var m=l.reset(f);m.progress&&m.progress({start:0,end:p.count()},p),this._lineDraw.updateLayout(),this._clearLayer(d)},_updateLineDraw:function(f,c){var d=this._lineDraw,p=this._showEffect(c),g=!!c.get("polyline"),m=c.pipelineContext,y=m.large;return(!d||p!==this._hasEffet||g!==this._isPolyline||y!==this._isLargeDraw)&&(d&&d.remove(),d=this._lineDraw=y?new s:new e(g?p?o:n:p?a:i),this._hasEffet=p,this._isPolyline=g,this._isLargeDraw=y,this.group.removeAll()),this.group.add(d.group),d},_showEffect:function(f){return!!f.get("effect.show")},_clearLayer:function(f){var c=f.getZr(),d=c.painter.getType()==="svg";!d&&this._lastZlevel!=null&&c.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(f,c){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(c)},dispose:function(){}});return IS=h,IS}var PS,gG;function Iye(){if(gG)return PS;gG=1;function r(a){return a instanceof Array||(a=[a,a]),a}var t="lineStyle.opacity".split("."),e={seriesType:"lines",reset:function(a,i,n){var o=r(a.get("symbol")),s=r(a.get("symbolSize")),l=a.getData();l.setVisual("fromSymbol",o&&o[0]),l.setVisual("toSymbol",o&&o[1]),l.setVisual("fromSymbolSize",s&&s[0]),l.setVisual("toSymbolSize",s&&s[1]),l.setVisual("opacity",a.get(t));function u(v,h){var f=v.getItemModel(h),c=r(f.getShallow("symbol",!0)),d=r(f.getShallow("symbolSize",!0)),p=f.get(t);c[0]&&v.setItemVisual(h,"fromSymbol",c[0]),c[1]&&v.setItemVisual(h,"toSymbol",c[1]),d[0]&&v.setItemVisual(h,"fromSymbolSize",d[0]),d[1]&&v.setItemVisual(h,"toSymbolSize",d[1]),v.setItemVisual(h,"opacity",p)}return{dataEach:l.hasItemOption?u:null}}};return PS=e,PS}var mG;function Pye(){if(mG)return lG;mG=1;var r=Pe();Cye(),Lye();var t=C$(),e=Iye();return r.registerLayout(t),r.registerVisual(e),lG}var yG={},RS,_G;function Rye(){if(_G)return RS;_G=1;var r=Ir(),t=In(),e=bi(),a=r.extend({type:"series.heatmap",getInitialData:function(i,n){return t(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var i=e.get(this.get("coordinateSystem"));if(i&&i.dimensions)return i.dimensions[0]==="lng"&&i.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});return RS=a,RS}var ES,xG;function Eye(){if(xG)return ES;xG=1;var r=ie(),t=256;function e(){var i=r.createCanvas();this.canvas=i,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}e.prototype={update:function(i,n,o,s,l,u){var v=this._getBrush(),h=this._getGradient(i,l,"inRange"),f=this._getGradient(i,l,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,p=d.getContext("2d"),g=i.length;d.width=n,d.height=o;for(var m=0;m<g;++m){var y=i[m],_=y[0],x=y[1],S=y[2],b=s(S);p.globalAlpha=b,p.drawImage(v,_-c,x-c)}if(!d.width||!d.height)return d;for(var w=p.getImageData(0,0,d.width,d.height),A=w.data,T=0,C=A.length,M=this.minOpacity,L=this.maxOpacity,D=L-M;T<C;){var b=A[T+3]/256,P=Math.floor(b*(t-1))*4;if(b>0){var I=u(b)?h:f;b>0&&(b=b*D+M),A[T++]=I[P],A[T++]=I[P+1],A[T++]=I[P+2],A[T++]=I[P+3]*b*256}else T+=4}return p.putImageData(w,0,0),d},_getBrush:function(){var i=this._brushCanvas||(this._brushCanvas=r.createCanvas()),n=this.pointSize+this.blurSize,o=n*2;i.width=o,i.height=o;var s=i.getContext("2d");return s.clearRect(0,0,o,o),s.shadowOffsetX=o,s.shadowBlur=this.blurSize,s.shadowColor="#000",s.beginPath(),s.arc(-n,n,this.pointSize,0,Math.PI*2,!0),s.closePath(),s.fill(),i},_getGradient:function(i,n,o){for(var s=this._gradientPixels,l=s[o]||(s[o]=new Uint8ClampedArray(256*4)),u=[0,0,0,0],v=0,h=0;h<256;h++)n[o](h/255,!0,u),l[v++]=u[0],l[v++]=u[1],l[v++]=u[2],l[v++]=u[3];return l}};var a=e;return ES=a,ES}var kS,SG;function kye(){if(SG)return kS;SG=1;var r=It();r.__DEV__;var t=Pe(),e=qe(),a=Eye(),i=ie();function n(u,v,h){var f=u[1]-u[0];v=i.map(v,function(p){return{interval:[(p.interval[0]-u[0])/f,(p.interval[1]-u[0])/f]}});var c=v.length,d=0;return function(p){for(var g=d;g<c;g++){var m=v[g].interval;if(m[0]<=p&&p<=m[1]){d=g;break}}if(g===c)for(var g=d-1;g>=0;g--){var m=v[g].interval;if(m[0]<=p&&p<=m[1]){d=g;break}}return g>=0&&g<c&&h[g]}}function o(u,v){var h=u[1]-u[0];return v=[(v[0]-u[0])/h,(v[1]-u[0])/h],function(f){return f>=v[0]&&f<=v[1]}}function s(u){var v=u.dimensions;return v[0]==="lng"&&v[1]==="lat"}var l=t.extendChartView({type:"heatmap",render:function(u,v,h){var f;v.eachComponent("visualMap",function(d){d.eachTargetSeries(function(p){p===u&&(f=d)})}),this.group.removeAll(),this._incrementalDisplayable=null;var c=u.coordinateSystem;c.type==="cartesian2d"||c.type==="calendar"?this._renderOnCartesianAndCalendar(u,h,0,u.getData().count()):s(c)&&this._renderOnGeo(c,u,f,h)},incrementalPrepareRender:function(u,v,h){this.group.removeAll()},incrementalRender:function(u,v,h,f){var c=v.coordinateSystem;c&&this._renderOnCartesianAndCalendar(v,f,u.start,u.end,!0)},_renderOnCartesianAndCalendar:function(u,v,h,f,c){var d=u.coordinateSystem,p,g;if(d.type==="cartesian2d"){var m=d.getAxis("x"),y=d.getAxis("y");p=m.getBandWidth(),g=y.getBandWidth()}for(var _=this.group,x=u.getData(),S="itemStyle",b="emphasis.itemStyle",w="label",A="emphasis.label",T=u.getModel(S).getItemStyle(["color"]),C=u.getModel(b).getItemStyle(),M=u.getModel(w),L=u.getModel(A),D=d.type,P=D==="cartesian2d"?[x.mapDimension("x"),x.mapDimension("y"),x.mapDimension("value")]:[x.mapDimension("time"),x.mapDimension("value")],I=h;I<f;I++){var R;if(D==="cartesian2d"){if(isNaN(x.get(P[2],I)))continue;var E=d.dataToPoint([x.get(P[0],I),x.get(P[1],I)]);R=new e.Rect({shape:{x:Math.floor(Math.round(E[0])-p/2),y:Math.floor(Math.round(E[1])-g/2),width:Math.ceil(p),height:Math.ceil(g)},style:{fill:x.getItemVisual(I,"color"),opacity:x.getItemVisual(I,"opacity")}})}else{if(isNaN(x.get(P[1],I)))continue;R=new e.Rect({z2:1,shape:d.dataToRect([x.get(P[0],I)]).contentShape,style:{fill:x.getItemVisual(I,"color"),opacity:x.getItemVisual(I,"opacity")}})}var k=x.getItemModel(I);x.hasItemOption&&(T=k.getModel(S).getItemStyle(["color"]),C=k.getModel(b).getItemStyle(),M=k.getModel(w),L=k.getModel(A));var B=u.getRawValue(I),F="-";B&&B[2]!=null&&(F=B[2]),e.setLabelStyle(T,C,M,L,{labelFetcher:u,labelDataIndex:I,defaultText:F,isRectText:!0}),R.setStyle(T),e.setHoverStyle(R,x.hasItemOption?C:i.extend({},C)),R.incremental=c,c&&(R.useHoverLayer=!0),_.add(R),x.setItemGraphicEl(I,R)}},_renderOnGeo:function(u,v,h,f){var c=h.targetVisuals.inRange,d=h.targetVisuals.outOfRange,p=v.getData(),g=this._hmLayer||this._hmLayer||new a;g.blurSize=v.get("blurSize"),g.pointSize=v.get("pointSize"),g.minOpacity=v.get("minOpacity"),g.maxOpacity=v.get("maxOpacity");var m=u.getViewRect().clone(),y=u.getRoamTransform();m.applyTransform(y);var _=Math.max(m.x,0),x=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),b=Math.min(m.height+m.y,f.getHeight()),w=S-_,A=b-x,T=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],C=p.mapArray(T,function(P,I,R){var E=u.dataToPoint([P,I]);return E[0]-=_,E[1]-=x,E.push(R),E}),M=h.getExtent(),L=h.type==="visualMap.continuous"?o(M,h.option.range):n(M,h.getPieceList(),h.option.selected);g.update(C,w,A,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:d.color.getColorMapper()},L);var D=new e.Image({style:{width:w,height:A,x:_,y:x,image:g.canvas},silent:!0});this.group.add(D)},dispose:function(){}});return kS=l,kS}var bG;function Oye(){return bG||(bG=1,Rye(),kye()),yG}var wG={},OS,TG;function Nye(){if(TG)return OS;TG=1;var r=l$(),t=r.extend({type:"series.pictorialBar",dependencies:["grid"],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,hoverAnimation:!1},getInitialData:function(a){return a.stack=null,t.superApply(this,"getInitialData",arguments)}}),e=t;return OS=e,OS}var NS,AG;function zye(){if(AG)return NS;AG=1;var r=Pe(),t=ie(),e=qe(),a=ti(),i=a.createSymbol,n=st(),o=n.parsePercent,s=n.isNumeric,l=u$(),u=l.setLabel,v=["itemStyle","borderWidth"],h=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],f=new e.Circle,c=r.extendChartView({type:"pictorialBar",render:function(N,O,z){var G=this.group,q=N.getData(),H=this._data,U=N.coordinateSystem,W=U.getBaseAxis(),Y=!!W.isHorizontal(),X=U.grid.getRect(),K={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:N,coordSys:U,coordSysExtent:[[X.x,X.x+X.width],[X.y,X.y+X.height]],isHorizontal:Y,valueDim:h[+Y],categoryDim:h[1-Y]};return q.diff(H).add(function(Q){if(q.hasValue(Q)){var j=T(q,Q),te=d(q,Q,j,K),Z=D(q,K,te);q.setItemGraphicEl(Q,Z),G.add(Z),B(Z,K,te)}}).update(function(Q,j){var te=H.getItemGraphicEl(j);if(!q.hasValue(Q)){G.remove(te);return}var Z=T(q,Q),ee=d(q,Q,Z,K),le=R(q,ee);te&&le!==te.__pictorialShapeStr&&(G.remove(te),q.setItemGraphicEl(Q,null),te=null),te?P(te,K,ee):te=D(q,K,ee,!0),q.setItemGraphicEl(Q,te),te.__pictorialSymbolMeta=ee,G.add(te),B(te,K,ee)}).remove(function(Q){var j=H.getItemGraphicEl(Q);j&&I(H,Q,j.__pictorialSymbolMeta.animationModel,j)}).execute(),this._data=q,this.group},dispose:t.noop,remove:function(N,O){var z=this.group,G=this._data;N.get("animation")?G&&G.eachItemGraphicEl(function(q){I(G,q.dataIndex,N,q)}):z.removeAll()}});function d(N,O,z,G){var q=N.getItemLayout(O),H=z.get("symbolRepeat"),U=z.get("symbolClip"),W=z.get("symbolPosition")||"start",Y=z.get("symbolRotate"),X=(Y||0)*Math.PI/180||0,K=z.get("symbolPatternSize")||2,Q=z.isAnimationEnabled(),j={dataIndex:O,layout:q,itemModel:z,symbolType:N.getItemVisual(O,"symbol")||"circle",color:N.getItemVisual(O,"color"),symbolClip:U,symbolRepeat:H,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:K,rotation:X,animationModel:Q?z:null,hoverAnimation:Q&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};p(z,H,q,G,j),m(N,O,q,H,U,j.boundingLength,j.pxSign,K,G,j),y(z,j.symbolScale,X,G,j);var te=j.symbolSize,Z=z.get("symbolOffset");return t.isArray(Z)&&(Z=[o(Z[0],te[0]),o(Z[1],te[1])]),_(z,te,q,H,U,Z,W,j.valueLineWidth,j.boundingLength,j.repeatCutLength,G,j),j}function p(N,O,z,G,q){var H=G.valueDim,U=N.get("symbolBoundingData"),W=G.coordSys.getOtherAxis(G.coordSys.getBaseAxis()),Y=W.toGlobalCoord(W.dataToCoord(0)),X=1-+(z[H.wh]<=0),K;if(t.isArray(U)){var Q=[g(W,U[0])-Y,g(W,U[1])-Y];Q[1]<Q[0]&&Q.reverse(),K=Q[X]}else U!=null?K=g(W,U)-Y:O?K=G.coordSysExtent[H.index][X]-Y:K=z[H.wh];q.boundingLength=K,O&&(q.repeatCutLength=z[H.wh]),q.pxSign=K>0?1:K<0?-1:0}function g(N,O){return N.toGlobalCoord(N.dataToCoord(N.scale.parse(O)))}function m(N,O,z,G,q,H,U,W,Y,X){var K=Y.valueDim,Q=Y.categoryDim,j=Math.abs(z[Q.wh]),te=N.getItemVisual(O,"symbolSize");t.isArray(te)?te=te.slice():(te==null&&(te="100%"),te=[te,te]),te[Q.index]=o(te[Q.index],j),te[K.index]=o(te[K.index],G?j:Math.abs(H)),X.symbolSize=te;var Z=X.symbolScale=[te[0]/W,te[1]/W];Z[K.index]*=(Y.isHorizontal?-1:1)*U}function y(N,O,z,G,q){var H=N.get(v)||0;H&&(f.attr({scale:O.slice(),rotation:z}),f.updateTransform(),H/=f.getLineScale(),H*=O[G.valueDim.index]),q.valueLineWidth=H}function _(N,O,z,G,q,H,U,W,Y,X,K,Q){var j=K.categoryDim,te=K.valueDim,Z=Q.pxSign,ee=Math.max(O[te.index]+W,0),le=ee;if(G){var oe=Math.abs(Y),fe=t.retrieve(N.get("symbolMargin"),"15%")+"",se=!1;fe.lastIndexOf("!")===fe.length-1&&(se=!0,fe=fe.slice(0,fe.length-1)),fe=o(fe,O[te.index]);var ve=Math.max(ee+fe*2,0),ye=se?0:fe*2,Me=s(G),J=Me?G:F((oe+ye)/ve),ne=oe-J*ee;fe=ne/2/(se?J:J-1),ve=ee+fe*2,ye=se?0:fe*2,!Me&&G!=="fixed"&&(J=X?F((Math.abs(X)+ye)/ve):0),le=J*ve-ye,Q.repeatTimes=J,Q.symbolMargin=fe}var ue=Z*(le/2),me=Q.pathPosition=[];me[j.index]=z[j.wh]/2,me[te.index]=U==="start"?ue:U==="end"?Y-ue:Y/2,H&&(me[0]+=H[0],me[1]+=H[1]);var xe=Q.bundlePosition=[];xe[j.index]=z[j.xy],xe[te.index]=z[te.xy];var ge=Q.barRectShape=t.extend({},z);ge[te.wh]=Z*Math.max(Math.abs(z[te.wh]),Math.abs(me[te.index]+ue)),ge[j.wh]=z[j.wh];var pe=Q.clipShape={};pe[j.xy]=-z[j.xy],pe[j.wh]=K.ecSize[j.wh],pe[te.xy]=0,pe[te.wh]=z[te.wh]}function x(N){var O=N.symbolPatternSize,z=i(N.symbolType,-O/2,-O/2,O,O,N.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function S(N,O,z,G){var q=N.__pictorialBundle,H=z.symbolSize,U=z.valueLineWidth,W=z.pathPosition,Y=O.valueDim,X=z.repeatTimes||0,K=0,Q=H[O.valueDim.index]+U+z.symbolMargin*2;for(E(N,function(oe){oe.__pictorialAnimationIndex=K,oe.__pictorialRepeatTimes=X,K<X?k(oe,null,Z(K),z,G):k(oe,null,{scale:[0,0]},z,G,function(){q.remove(oe)}),L(oe,z),K++});K<X;K++){var j=x(z);j.__pictorialAnimationIndex=K,j.__pictorialRepeatTimes=X,q.add(j);var te=Z(K);k(j,{position:te.position,scale:[0,0]},{scale:te.scale,rotation:te.rotation},z,G),j.on("mouseover",ee).on("mouseout",le),L(j,z)}function Z(oe){var fe=W.slice(),se=z.pxSign,ve=oe;return(z.symbolRepeatDirection==="start"?se>0:se<0)&&(ve=X-1-oe),fe[Y.index]=Q*(ve-X/2+.5)+W[Y.index],{position:fe,scale:z.symbolScale.slice(),rotation:z.rotation}}function ee(){E(N,function(oe){oe.trigger("emphasis")})}function le(){E(N,function(oe){oe.trigger("normal")})}}function b(N,O,z,G){var q=N.__pictorialBundle,H=N.__pictorialMainPath;H?k(H,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,G):(H=N.__pictorialMainPath=x(z),q.add(H),k(H,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,G),H.on("mouseover",U).on("mouseout",W)),L(H,z);function U(){this.trigger("emphasis")}function W(){this.trigger("normal")}}function w(N,O,z){var G=t.extend({},O.barRectShape),q=N.__pictorialBarRect;q?k(q,null,{shape:G},O,z):(q=N.__pictorialBarRect=new e.Rect({z2:2,shape:G,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),N.add(q))}function A(N,O,z,G){if(z.symbolClip){var q=N.__pictorialClipPath,H=t.extend({},z.clipShape),U=O.valueDim,W=z.animationModel,Y=z.dataIndex;if(q)e.updateProps(q,{shape:H},W,Y);else{H[U.wh]=0,q=new e.Rect({shape:H}),N.__pictorialBundle.setClipPath(q),N.__pictorialClipPath=q;var X={};X[U.wh]=z.clipShape[U.wh],e[G?"updateProps":"initProps"](q,{shape:X},W,Y)}}}function T(N,O){var z=N.getItemModel(O);return z.getAnimationDelayParams=C,z.isAnimationEnabled=M,z}function C(N){return{index:N.__pictorialAnimationIndex,count:N.__pictorialRepeatTimes}}function M(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function L(N,O){N.off("emphasis").off("normal");var z=O.symbolScale.slice();O.hoverAnimation&&N.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function D(N,O,z,G){var q=new e.Group,H=new e.Group;return q.add(H),q.__pictorialBundle=H,H.attr("position",z.bundlePosition.slice()),z.symbolRepeat?S(q,O,z):b(q,O,z),w(q,z,G),A(q,O,z,G),q.__pictorialShapeStr=R(N,z),q.__pictorialSymbolMeta=z,q}function P(N,O,z){var G=z.animationModel,q=z.dataIndex,H=N.__pictorialBundle;e.updateProps(H,{position:z.bundlePosition.slice()},G,q),z.symbolRepeat?S(N,O,z,!0):b(N,O,z,!0),w(N,z,!0),A(N,O,z,!0)}function I(N,O,z,G){var q=G.__pictorialBarRect;q&&(q.style.text=null);var H=[];E(G,function(U){H.push(U)}),G.__pictorialMainPath&&H.push(G.__pictorialMainPath),G.__pictorialClipPath&&(z=null),t.each(H,function(U){e.updateProps(U,{scale:[0,0]},z,O,function(){G.parent&&G.parent.remove(G)})}),N.setItemGraphicEl(O,null)}function R(N,O){return[N.getItemVisual(O.dataIndex,"symbol")||"none",!!O.symbolRepeat,!!O.symbolClip].join(":")}function E(N,O,z){t.each(N.__pictorialBundle.children(),function(G){G!==N.__pictorialBarRect&&O.call(z,G)})}function k(N,O,z,G,q,H){O&&N.attr(O),G.symbolClip&&!q?z&&N.attr(z):z&&e[q?"updateProps":"initProps"](N,z,G.animationModel,G.dataIndex,H)}function B(N,O,z){var G=z.color,q=z.dataIndex,H=z.itemModel,U=H.getModel("itemStyle").getItemStyle(["color"]),W=H.getModel("emphasis.itemStyle").getItemStyle(),Y=H.getShallow("cursor");E(N,function(j){j.setColor(G),j.setStyle(t.defaults({fill:G,opacity:z.opacity},U)),e.setHoverStyle(j,W),Y&&(j.cursor=Y),j.z2=z.z2});var X={},K=O.valueDim.posDesc[+(z.boundingLength>0)],Q=N.__pictorialBarRect;u(Q.style,X,H,G,O.seriesModel,q,K),e.setHoverStyle(Q,X)}function F(N){var O=Math.round(N);return Math.abs(N-O)<1e-4?O:Math.ceil(N)}var V=c;return NS=V,NS}var CG;function Bye(){if(CG)return wG;CG=1;var r=Pe(),t=ie();sD(),Nye(),zye();var e=pg(),a=e.layout,i=Xs();return mf(),r.registerLayout(t.curry(a,"pictorialBar")),r.registerVisual(i("pictorialBar","roundRect")),wG}var MG={},DG={},LG={},zS,IG;function Vye(){if(IG)return zS;IG=1;var r=ie(),t=So(),e=function(i,n,o,s,l){t.call(this,i,n,o),this.type=s||"value",this.position=l||"bottom",this.orient=null};e.prototype={constructor:e,model:null,isHorizontal:function(){var i=this.position;return i==="top"||i==="bottom"},pointToData:function(i,n){return this.coordinateSystem.pointToData(i,n)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(e,t);var a=e;return zS=a,zS}var BS,PG;function Gye(){if(PG)return BS;PG=1;var r=Vye(),t=wi(),e=Ut(),a=e.getLayoutRect,i=ie(),n=i.each;function o(l,u,v){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(l,u,v),this.model=l}o.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:o,_init:function(l,u,v){var h=this.dimension,f=new r(h,t.createScaleByModel(l),[0,0],l.get("type"),l.get("position")),c=f.type==="category";f.onBand=c&&l.get("boundaryGap"),f.inverse=l.get("inverse"),f.orient=l.get("orient"),l.axis=f,f.model=l,f.coordinateSystem=this,this._axis=f},update:function(l,u){l.eachSeries(function(v){if(v.coordinateSystem===this){var h=v.getData();n(h.mapDimension(this.dimension,!0),function(f){this._axis.scale.unionExtentFromData(h,f)},this),t.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(l,u){this._rect=a({left:l.get("left"),top:l.get("top"),right:l.get("right"),bottom:l.get("bottom"),width:l.get("width"),height:l.get("height")},{width:u.getWidth(),height:u.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var l=this._rect,u=this._axis,v=u.isHorizontal(),h=v?[0,l.width]:[0,l.height],f=u.reverse?1:0;u.setExtent(h[f],h[1-f]),this._updateAxisTransform(u,v?l.x:l.y)},_updateAxisTransform:function(l,u){var v=l.getExtent(),h=v[0]+v[1],f=l.isHorizontal();l.toGlobalCoord=f?function(c){return c+u}:function(c){return h-c+u},l.toLocalCoord=f?function(c){return c-u}:function(c){return h-c+u}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(l){var u=this.getRect(),v=this.getAxis(),h=v.orient;return h==="horizontal"?v.contain(v.toLocalCoord(l[0]))&&l[1]>=u.y&&l[1]<=u.y+u.height:v.contain(v.toLocalCoord(l[1]))&&l[0]>=u.y&&l[0]<=u.y+u.height},pointToData:function(l){var u=this.getAxis();return[u.coordToData(u.toLocalCoord(l[u.orient==="horizontal"?0:1]))]},dataToPoint:function(l){var u=this.getAxis(),v=this.getRect(),h=[],f=u.orient==="horizontal"?0:1;return l instanceof Array&&(l=l[0]),h[f]=u.toGlobalCoord(u.dataToCoord(+l)),h[1-f]=f===0?v.y+v.height/2:v.x+v.width/2,h}};var s=o;return BS=s,BS}var RG;function Fye(){if(RG)return LG;RG=1;var r=Gye(),t=bi();function e(a,i){var n=[];return a.eachComponent("singleAxis",function(o,s){var l=new r(o,a,i);l.name="single_"+s,l.resize(o,i),o.coordinateSystem=l,n.push(l)}),a.eachSeries(function(o){if(o.get("coordinateSystem")==="singleAxis"){var s=a.queryComponents({mainType:"singleAxis",index:o.get("singleAxisIndex"),id:o.get("singleAxisId")})[0];o.coordinateSystem=s&&s.coordinateSystem}}),n}return t.register("single",{create:e,dimensions:r.prototype.dimensions}),LG}var VS={},EG;function M$(){if(EG)return VS;EG=1;var r=ie();function t(e,a){a=a||{};var i=e.coordinateSystem,n=e.axis,o={},s=n.position,l=n.orient,u=i.getRect(),v=[u.x,u.x+u.width,u.y,u.y+u.height],h={horizontal:{top:v[2],bottom:v[3]},vertical:{left:v[0],right:v[1]}};o.position=[l==="vertical"?h.vertical[s]:v[0],l==="horizontal"?h.horizontal[s]:v[3]];var f={horizontal:0,vertical:1};o.rotation=Math.PI/2*f[l];var c={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=c[s],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),r.retrieve(a.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var d=a.rotate;return d==null&&(d=e.get("axisLabel.rotate")),o.labelRotation=s==="top"?-d:d,o.z2=1,o}return VS.layout=t,VS}var GS,kG;function Hye(){if(kG)return GS;kG=1;var r=ie(),t=bo(),e=qe(),a=M$(),i=Ks(),n=s$(),o=n.rectCoordAxisBuildSplitArea,s=n.rectCoordAxisHandleRemove,l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine"],v=i.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(f,c,d,p){var g=this.group;g.removeAll();var m=this._axisGroup;this._axisGroup=new e.Group;var y=a.layout(f),_=new t(f,y);r.each(l,_.add,_),g.add(this._axisGroup),g.add(_.getGroup()),r.each(u,function(x){f.get(x+".show")&&this["_"+x](f)},this),e.groupTransition(m,this._axisGroup,f),v.superCall(this,"render",f,c,d,p)},remove:function(){s(this)},_splitLine:function(f){var c=f.axis;if(!c.scale.isBlank()){var d=f.getModel("splitLine"),p=d.getModel("lineStyle"),g=p.get("width"),m=p.get("color");m=m instanceof Array?m:[m];for(var y=f.coordinateSystem.getRect(),_=c.isHorizontal(),x=[],S=0,b=c.getTicksCoords({tickModel:d}),w=[],A=[],T=0;T<b.length;++T){var C=c.toGlobalCoord(b[T].coord);_?(w[0]=C,w[1]=y.y,A[0]=C,A[1]=y.y+y.height):(w[0]=y.x,w[1]=C,A[0]=y.x+y.width,A[1]=C);var M=S++%m.length;x[M]=x[M]||[],x[M].push(new e.Line({subPixelOptimize:!0,shape:{x1:w[0],y1:w[1],x2:A[0],y2:A[1]},style:{lineWidth:g},silent:!0}))}for(var T=0;T<x.length;++T)this.group.add(e.mergePath(x[T],{style:{stroke:m[T%m.length],lineDash:p.getLineDash(g),lineWidth:g},silent:!0}))}},_splitArea:function(f){o(this,this._axisGroup,f,f)}}),h=v;return GS=h,GS}var FS,OG;function qye(){if(OG)return FS;OG=1;var r=ie(),t=Lr(),e=mg(),a=Du(),i=t.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),n={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}}};function o(l,u){return u.type||(u.data?"category":"value")}r.merge(i.prototype,a),e("single",i,o,n);var s=i;return FS=s,FS}var NG={},HS,zG;function D$(){if(zG)return HS;zG=1;var r=ie(),t=_t();function e(a,i){var n=[],o=a.seriesIndex,s;if(o==null||!(s=i.getSeriesByIndex(o)))return{point:[]};var l=s.getData(),u=t.queryDataIndex(l,a);if(u==null||u<0||r.isArray(u))return{point:[]};var v=l.getItemGraphicEl(u),h=s.coordinateSystem;if(s.getTooltipPosition)n=s.getTooltipPosition(u)||[];else if(h&&h.dataToPoint)n=h.dataToPoint(l.getValues(r.map(h.dimensions,function(c){return l.mapDimension(c)}),u,!0))||[];else if(v){var f=v.getBoundingRect().clone();f.applyTransform(v.transform),n=[f.x+f.width/2,f.y+f.height/2]}return{point:n,el:v}}return HS=e,HS}var qS,BG;function Wye(){if(BG)return qS;BG=1;var r=ie(),t=_t(),e=t.makeInner,a=yg(),i=D$(),n=r.each,o=r.curry,s=e();function l(_,x,S){var b=_.currTrigger,w=[_.x,_.y],A=_,T=_.dispatchAction||r.bind(S.dispatchAction,S),C=x.getComponent("axisPointer").coordSysAxesInfo;if(C){y(w)&&(w=i({seriesIndex:A.seriesIndex,dataIndex:A.dataIndex},x).point);var M=y(w),L=A.axesInfo,D=C.axesInfo,P=b==="leave"||y(w),I={},R={},E={list:[],map:{}},k={showPointer:o(h,R),showTooltip:o(f,E)};n(C.coordSysMap,function(F,V){var N=M||F.containPoint(w);n(C.coordSysAxesInfo[V],function(O,z){var G=O.axis,q=g(L,O);if(!P&&N&&(!L||q)){var H=q&&q.value;H==null&&!M&&(H=G.pointToData(w)),H!=null&&u(O,H,k,!1,I)}})});var B={};return n(D,function(F,V){var N=F.linkGroup;N&&!R[V]&&n(N.axesInfo,function(O,z){var G=R[z];if(O!==F&&G){var q=G.value;N.mapper&&(q=F.axis.scale.parse(N.mapper(q,m(O),m(F)))),B[F.key]=q}})}),n(B,function(F,V){u(D[V],F,k,!0,I)}),c(R,D,I),d(E,w,_,T),p(D,T,S),I}}function u(_,x,S,b,w){var A=_.axis;if(!(A.scale.isBlank()||!A.containData(x))){if(!_.involveSeries){S.showPointer(_,x);return}var T=v(x,_),C=T.payloadBatch,M=T.snapToValue;C[0]&&w.seriesIndex==null&&r.extend(w,C[0]),!b&&_.snap&&A.containData(M)&&M!=null&&(x=M),S.showPointer(_,x,C,w),S.showTooltip(_,T,M)}}function v(_,x){var S=x.axis,b=S.dim,w=_,A=[],T=Number.MAX_VALUE,C=-1;return n(x.seriesModels,function(M,L){var D=M.getData().mapDimension(b,!0),P,I;if(M.getAxisTooltipData){var R=M.getAxisTooltipData(D,_,S);I=R.dataIndices,P=R.nestestValue}else{if(I=M.getData().indicesOfNearest(D[0],_,S.type==="category"?.5:null),!I.length)return;P=M.getData().get(D[0],I[0])}if(!(P==null||!isFinite(P))){var E=_-P,k=Math.abs(E);k<=T&&((k<T||E>=0&&C<0)&&(T=k,C=E,w=P,A.length=0),n(I,function(B){A.push({seriesIndex:M.seriesIndex,dataIndexInside:B,dataIndex:M.getData().getRawIndex(B)})}))}}),{payloadBatch:A,snapToValue:w}}function h(_,x,S,b){_[x.key]={value:S,payloadBatch:b}}function f(_,x,S,b){var w=S.payloadBatch,A=x.axis,T=A.model,C=x.axisPointerModel;if(!(!x.triggerTooltip||!w.length)){var M=x.coordSys.model,L=a.makeKey(M),D=_.map[L];D||(D=_.map[L]={coordSysId:M.id,coordSysIndex:M.componentIndex,coordSysType:M.type,coordSysMainType:M.mainType,dataByAxis:[]},_.list.push(D)),D.dataByAxis.push({axisDim:A.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:b,valueLabelOpt:{precision:C.get("label.precision"),formatter:C.get("label.formatter")},seriesDataIndices:w.slice()})}}function c(_,x,S){var b=S.axesInfo=[];n(x,function(w,A){var T=w.axisPointerModel.option,C=_[A];C?(!w.useHandle&&(T.status="show"),T.value=C.value,T.seriesDataIndices=(C.payloadBatch||[]).slice()):!w.useHandle&&(T.status="hide"),T.status==="show"&&b.push({axisDim:w.axis.dim,axisIndex:w.axis.model.componentIndex,value:T.value})})}function d(_,x,S,b){if(y(x)||!_.list.length){b({type:"hideTip"});return}var w=((_.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};b({type:"showTip",escapeConnect:!0,x:x[0],y:x[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:w.dataIndexInside,dataIndex:w.dataIndex,seriesIndex:w.seriesIndex,dataByCoordSys:_.list})}function p(_,x,S){var b=S.getZr(),w="axisPointerLastHighlights",A=s(b)[w]||{},T=s(b)[w]={};n(_,function(L,D){var P=L.axisPointerModel.option;P.status==="show"&&n(P.seriesDataIndices,function(I){var R=I.seriesIndex+" | "+I.dataIndex;T[R]=I})});var C=[],M=[];r.each(A,function(L,D){!T[D]&&M.push(L)}),r.each(T,function(L,D){!A[D]&&C.push(L)}),M.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:M}),C.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:C})}function g(_,x){for(var S=0;S<(_||[]).length;S++){var b=_[S];if(x.axis.dim===b.axisDim&&x.axis.model.componentIndex===b.axisIndex)return b}}function m(_){var x=_.axis.model,S={},b=S.axisDim=_.axis.dim;return S.axisIndex=S[b+"AxisIndex"]=x.componentIndex,S.axisName=S[b+"AxisName"]=x.name,S.axisId=S[b+"AxisId"]=x.id,S}function y(_){return!_||_[0]==null||isNaN(_[0])||_[1]==null||isNaN(_[1])}return qS=l,qS}var WS,VG;function Uye(){if(VG)return WS;VG=1;var r=Pe(),t=r.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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=t;return WS=e,WS}var Nc={},GG;function L$(){if(GG)return Nc;GG=1;var r=ie(),t=pr(),e=_t(),a=e.makeInner,i=a(),n=r.each;function o(c,d,p){if(!t.node){var g=d.getZr();i(g).records||(i(g).records={}),s(g,d);var m=i(g).records[c]||(i(g).records[c]={});m.handler=p}}function s(c,d){if(i(c).initialized)return;i(c).initialized=!0,p("click",r.curry(v,"click")),p("mousemove",r.curry(v,"mousemove")),p("globalout",u);function p(g,m){c.on(g,function(y){var _=h(d);n(i(c).records,function(x){x&&m(x,y,_.dispatchAction)}),l(_.pendings,d)})}}function l(c,d){var p=c.showTip.length,g=c.hideTip.length,m;p?m=c.showTip[p-1]:g&&(m=c.hideTip[g-1]),m&&(m.dispatchAction=null,d.dispatchAction(m))}function u(c,d,p){c.handler("leave",null,p)}function v(c,d,p,g){d.handler(c,p,g)}function h(c){var d={showTip:[],hideTip:[]},p=function(g){var m=d[g.type];m?m.push(g):(g.dispatchAction=p,c.dispatchAction(g))};return{dispatchAction:p,pendings:d}}function f(c,d){if(!t.node){var p=d.getZr(),g=(i(p).records||{})[c];g&&(i(p).records[c]=null)}}return Nc.register=o,Nc.unregister=f,Nc}var US,FG;function $ye(){if(FG)return US;FG=1;var r=Pe(),t=L$(),e=r.extendComponentView({type:"axisPointer",render:function(i,n,o){var s=n.getComponent("tooltip"),l=i.get("triggerOn")||s&&s.get("triggerOn")||"mousemove|click";t.register("axisPointer",o,function(u,v,h){l!=="none"&&(u==="leave"||l.indexOf(u)>=0)&&h({type:"updateAxisPointer",currTrigger:u,x:v&&v.offsetX,y:v&&v.offsetY})})},remove:function(i,n){t.unregister(n.getZr(),"axisPointer"),e.superApply(this._model,"remove",arguments)},dispose:function(i,n){t.unregister("axisPointer",n),e.superApply(this._model,"dispose",arguments)}}),a=e;return US=a,US}var $S,HG;function yD(){if(HG)return $S;HG=1;var r=ie(),t=Dn(),e=qe(),a=yg(),i=Ji(),n=_o(),o=_t(),s=o.makeInner,l=s(),u=r.clone,v=r.bind;function h(){}h.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(y,_,x,S){var b=_.get("value"),w=_.get("status");if(this._axisModel=y,this._axisPointerModel=_,this._api=x,!(!S&&this._lastValue===b&&this._lastStatus===w)){this._lastValue=b,this._lastStatus=w;var A=this._group,T=this._handle;if(!w||w==="hide"){A&&A.hide(),T&&T.hide();return}A&&A.show(),T&&T.show();var C={};this.makeElOption(C,b,y,_,x);var M=C.graphicKey;M!==this._lastGraphicKey&&this.clear(x),this._lastGraphicKey=M;var L=this._moveAnimation=this.determineAnimation(y,_);if(!A)A=this._group=new e.Group,this.createPointerEl(A,C,y,_),this.createLabelEl(A,C,y,_),x.getZr().add(A);else{var D=r.curry(f,_,L);this.updatePointerEl(A,C,D,_),this.updateLabelEl(A,C,D,_)}g(A,_,!0),this._renderHandle(b)}},remove:function(y){this.clear(y)},dispose:function(y){this.clear(y)},determineAnimation:function(y,_){var x=_.get("animation"),S=y.axis,b=S.type==="category",w=_.get("snap");if(!w&&!b)return!1;if(x==="auto"||x==null){var A=this.animationThreshold;if(b&&S.getBandWidth()>A)return!0;if(w){var T=a.getAxisInfo(y).seriesDataCount,C=S.getExtent();return Math.abs(C[0]-C[1])/T>A}return!1}return x===!0},makeElOption:function(y,_,x,S,b){},createPointerEl:function(y,_,x,S){var b=_.pointer;if(b){var w=l(y).pointerEl=new e[b.type](u(_.pointer));y.add(w)}},createLabelEl:function(y,_,x,S){if(_.label){var b=l(y).labelEl=new e.Rect(u(_.label));y.add(b),d(b,S)}},updatePointerEl:function(y,_,x){var S=l(y).pointerEl;S&&_.pointer&&(S.setStyle(_.pointer.style),x(S,{shape:_.pointer.shape}))},updateLabelEl:function(y,_,x,S){var b=l(y).labelEl;b&&(b.setStyle(_.label.style),x(b,{shape:_.label.shape,position:_.label.position}),d(b,S))},_renderHandle:function(y){if(!(this._dragging||!this.updateHandleTransform)){var _=this._axisPointerModel,x=this._api.getZr(),S=this._handle,b=_.getModel("handle"),w=_.get("status");if(!b.get("show")||!w||w==="hide"){S&&x.remove(S),this._handle=null;return}var A;this._handle||(A=!0,S=this._handle=e.createIcon(b.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(M){i.stop(M.event)},onmousedown:v(this._onHandleDragMove,this,0,0),drift:v(this._onHandleDragMove,this),ondragend:v(this._onHandleDragEnd,this)}),x.add(S)),g(S,_,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(b.getItemStyle(null,T));var C=b.get("size");r.isArray(C)||(C=[C,C]),S.attr("scale",[C[0]/2,C[1]/2]),n.createOrUpdate(this,"_doDispatchAxisPointer",b.get("throttle")||0,"fixRate"),this._moveHandleToValue(y,A)}},_moveHandleToValue:function(y,_){f(this._axisPointerModel,!_&&this._moveAnimation,this._handle,p(this.getHandleTransform(y,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(y,_){var x=this._handle;if(x){this._dragging=!0;var S=this.updateHandleTransform(p(x),[y,_],this._axisModel,this._axisPointerModel);this._payloadInfo=S,x.stopAnimation(),x.attr(p(S)),l(x).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var y=this._handle;if(y){var _=this._payloadInfo,x=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:_.cursorPoint[0],y:_.cursorPoint[1],tooltipOption:_.tooltipOption,axesInfo:[{axisDim:x.axis.dim,axisIndex:x.componentIndex}]})}},_onHandleDragEnd:function(y){this._dragging=!1;var _=this._handle;if(_){var x=this._axisPointerModel.get("value");this._moveHandleToValue(x),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(y){this._lastValue=null,this._lastStatus=null;var _=y.getZr(),x=this._group,S=this._handle;_&&x&&(this._lastGraphicKey=null,x&&_.remove(x),S&&_.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(y,_,x){return x=x||0,{x:y[x],y:y[1-x],width:_[x],height:_[1-x]}}},h.prototype.constructor=h;function f(y,_,x,S){c(l(x).lastProp,S)||(l(x).lastProp=S,_?e.updateProps(x,S,y):(x.stopAnimation(),x.attr(S)))}function c(y,_){if(r.isObject(y)&&r.isObject(_)){var x=!0;return r.each(_,function(S,b){x=x&&c(y[b],S)}),!!x}else return y===_}function d(y,_){y[_.get("label.show")?"show":"hide"]()}function p(y){return{position:y.position.slice(),rotation:y.rotation||0}}function g(y,_,x){var S=_.get("z"),b=_.get("zlevel");y&&y.traverse(function(w){w.type!=="group"&&(S!=null&&(w.z=S),b!=null&&(w.zlevel=b),w.silent=x)})}t.enableClassExtend(h);var m=h;return $S=m,$S}var ki={},qG;function wg(){if(qG)return ki;qG=1;var r=ie(),t=qe(),e=Da(),a=Yt(),i=ha(),n=wi(),o=bo();function s(g){var m=g.get("type"),y=g.getModel(m+"Style"),_;return m==="line"?(_=y.getLineStyle(),_.fill=null):m==="shadow"&&(_=y.getAreaStyle(),_.stroke=null),_}function l(g,m,y,_,x){var S=y.get("value"),b=v(S,m.axis,m.ecModel,y.get("seriesDataIndices"),{precision:y.get("label.precision"),formatter:y.get("label.formatter")}),w=y.getModel("label"),A=a.normalizeCssArray(w.get("padding")||0),T=w.getFont(),C=e.getBoundingRect(b,T),M=x.position,L=C.width+A[1]+A[3],D=C.height+A[0]+A[2],P=x.align;P==="right"&&(M[0]-=L),P==="center"&&(M[0]-=L/2);var I=x.verticalAlign;I==="bottom"&&(M[1]-=D),I==="middle"&&(M[1]-=D/2),u(M,L,D,_);var R=w.get("backgroundColor");(!R||R==="auto")&&(R=m.get("axisLine.lineStyle.color")),g.label={shape:{x:0,y:0,width:L,height:D,r:w.get("borderRadius")},position:M.slice(),style:{text:b,textFont:T,textFill:w.getTextColor(),textPosition:"inside",textPadding:A,fill:R,stroke:w.get("borderColor")||"transparent",lineWidth:w.get("borderWidth")||0,shadowBlur:w.get("shadowBlur"),shadowColor:w.get("shadowColor"),shadowOffsetX:w.get("shadowOffsetX"),shadowOffsetY:w.get("shadowOffsetY")},z2:10}}function u(g,m,y,_){var x=_.getWidth(),S=_.getHeight();g[0]=Math.min(g[0]+m,x)-m,g[1]=Math.min(g[1]+y,S)-y,g[0]=Math.max(g[0],0),g[1]=Math.max(g[1],0)}function v(g,m,y,_,x){g=m.scale.parse(g);var S=m.scale.getLabel(g,{precision:x.precision}),b=x.formatter;if(b){var w={value:n.getAxisRawValue(m,g),axisDimension:m.dim,axisIndex:m.index,seriesData:[]};r.each(_,function(A){var T=y.getSeriesByIndex(A.seriesIndex),C=A.dataIndexInside,M=T&&T.getDataParams(C);M&&w.seriesData.push(M)}),r.isString(b)?S=b.replace("{value}",S):r.isFunction(b)&&(S=b(w))}return S}function h(g,m,y){var _=i.create();return i.rotate(_,_,y.rotation),i.translate(_,_,y.position),t.applyTransform([g.dataToCoord(m),(y.labelOffset||0)+(y.labelDirection||1)*(y.labelMargin||0)],_)}function f(g,m,y,_,x,S){var b=o.innerTextLayout(y.rotation,0,y.labelDirection);y.labelMargin=x.get("label.margin"),l(m,_,x,S,{position:h(_.axis,g,y),align:b.textAlign,verticalAlign:b.textVerticalAlign})}function c(g,m,y){return y=y||0,{x1:g[y],y1:g[1-y],x2:m[y],y2:m[1-y]}}function d(g,m,y){return y=y||0,{x:g[y],y:g[1-y],width:m[y],height:m[1-y]}}function p(g,m,y,_,x,S){return{cx:g,cy:m,r0:y,r:_,startAngle:x,endAngle:S,clockwise:!0}}return ki.buildElStyle=s,ki.buildLabelElOption=l,ki.getValueLabel=v,ki.getTransformedPosition=h,ki.buildCartesianSingleLabelElOption=f,ki.makeLineShape=c,ki.makeRectShape=d,ki.makeSectorShape=p,ki}var YS,WG;function I$(){if(WG)return YS;WG=1;var r=yD(),t=wg(),e=o$(),a=Ks(),i=r.extend({makeElOption:function(u,v,h,f,c){var d=h.axis,p=d.grid,g=f.get("type"),m=n(p,d).getOtherAxis(d).getGlobalExtent(),y=d.toGlobalCoord(d.dataToCoord(v,!0));if(g&&g!=="none"){var _=t.buildElStyle(f),x=o[g](d,y,m);x.style=_,u.graphicKey=x.type,u.pointer=x}var S=e.layout(p.model,h);t.buildCartesianSingleLabelElOption(v,u,S,h,f,c)},getHandleTransform:function(u,v,h){var f=e.layout(v.axis.grid.model,v,{labelInside:!1});return f.labelMargin=h.get("handle.margin"),{position:t.getTransformedPosition(v.axis,u,f),rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(u,v,h,f){var c=h.axis,d=c.grid,p=c.getGlobalExtent(!0),g=n(d,c).getOtherAxis(c).getGlobalExtent(),m=c.dim==="x"?0:1,y=u.position;y[m]+=v[m],y[m]=Math.min(p[1],y[m]),y[m]=Math.max(p[0],y[m]);var _=(g[1]+g[0])/2,x=[_,_];x[m]=y[m];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:y,rotation:u.rotation,cursorPoint:x,tooltipOption:S[m]}}});function n(u,v){var h={};return h[v.dim+"AxisIndex"]=v.index,u.getCartesian(h)}var o={line:function(u,v,h){var f=t.makeLineShape([v,h[0]],[v,h[1]],s(u));return{type:"Line",subPixelOptimize:!0,shape:f}},shadow:function(u,v,h){var f=Math.max(1,u.getBandWidth()),c=h[1]-h[0];return{type:"Rect",shape:t.makeRectShape([v-f/2,h[0]],[f,c],s(u))}}};function s(u){return u.dim==="x"?0:1}a.registerAxisPointerClass("CartesianAxisPointer",i);var l=i;return YS=l,YS}var UG;function Sf(){if(UG)return NG;UG=1;var r=Pe(),t=ie(),e=yg(),a=Wye();return Uye(),$ye(),I$(),r.registerPreprocessor(function(i){if(i){(!i.axisPointer||i.axisPointer.length===0)&&(i.axisPointer={});var n=i.axisPointer.link;n&&!t.isArray(n)&&(i.axisPointer.link=[n])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(i,n){i.getComponent("axisPointer").coordSysAxesInfo=e.collect(i,n)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a),NG}var ZS,$G;function Yye(){if($G)return ZS;$G=1;var r=yD(),t=wg(),e=M$(),a=Ks(),i=["x","y"],n=["width","height"],o=r.extend({makeElOption:function(h,f,c,d,p){var g=c.axis,m=g.coordinateSystem,y=u(m,1-l(g)),_=m.dataToPoint(f)[0],x=d.get("type");if(x&&x!=="none"){var S=t.buildElStyle(d),b=s[x](g,_,y);b.style=S,h.graphicKey=b.type,h.pointer=b}var w=e.layout(c);t.buildCartesianSingleLabelElOption(f,h,w,c,d,p)},getHandleTransform:function(h,f,c){var d=e.layout(f,{labelInside:!1});return d.labelMargin=c.get("handle.margin"),{position:t.getTransformedPosition(f.axis,h,d),rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(h,f,c,d){var p=c.axis,g=p.coordinateSystem,m=l(p),y=u(g,m),_=h.position;_[m]+=f[m],_[m]=Math.min(y[1],_[m]),_[m]=Math.max(y[0],_[m]);var x=u(g,1-m),S=(x[1]+x[0])/2,b=[S,S];return b[m]=_[m],{position:_,rotation:h.rotation,cursorPoint:b,tooltipOption:{verticalAlign:"middle"}}}}),s={line:function(h,f,c){var d=t.makeLineShape([f,c[0]],[f,c[1]],l(h));return{type:"Line",subPixelOptimize:!0,shape:d}},shadow:function(h,f,c){var d=h.getBandWidth(),p=c[1]-c[0];return{type:"Rect",shape:t.makeRectShape([f-d/2,c[0]],[d,p],l(h))}}};function l(h){return h.isHorizontal()?0:1}function u(h,f){var c=h.getRect();return[c[i[f]],c[i[f]]+c[n[f]]]}a.registerAxisPointerClass("SingleAxisPointer",o);var v=o;return ZS=v,ZS}var YG;function P$(){if(YG)return DG;YG=1;var r=Pe();return Fye(),Hye(),qye(),Sf(),Yye(),r.extendComponentView({type:"single"}),DG}var XS,ZG;function Zye(){if(ZG)return XS;ZG=1;var r=Ir(),t=Mu(),e=cf(),a=e.getDimensionTypeByAxis,i=ei(),n=ie(),o=_t(),s=o.groupData,l=Yt(),u=l.encodeHTML,v=yf(),h=2,f=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(d){f.superApply(this,"init",arguments),this.legendVisualProvider=new v(n.bind(this.getData,this),n.bind(this.getRawData,this))},fixData:function(d){var p=d.length,g={},m=s(d,function(A){return g.hasOwnProperty(A[0])||(g[A[0]]=-1),A[2]}),y=[];m.buckets.each(function(A,T){y.push({name:T,dataList:A})});for(var _=y.length,x=0;x<_;++x){for(var S=y[x].name,b=0;b<y[x].dataList.length;++b){var w=y[x].dataList[b][0];g[w]=x}for(var w in g)g.hasOwnProperty(w)&&g[w]!==x&&(g[w]=x,d[p]=[],d[p][0]=w,d[p][1]=0,d[p][2]=S,p++)}return d},getInitialData:function(d,p){for(var g=p.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],m=g.get("type"),y=n.filter(d.data,function(C){return C[2]!==void 0}),_=this.fixData(y||[]),x=[],S=this.nameMap=n.createHashMap(),b=0,w=0;w<_.length;++w)x.push(_[w][h]),S.get(_[w][h])||(S.set(_[w][h],b),b++);var A=t(_,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:a(m)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),T=new i(A,this);return T.initData(_),T},getLayerSeries:function(){for(var d=this.getData(),p=d.count(),g=[],m=0;m<p;++m)g[m]=m;var y=d.mapDimension("single"),_=s(g,function(S){return d.get("name",S)}),x=[];return _.buckets.each(function(S,b){S.sort(function(w,A){return d.get(y,w)-d.get(y,A)}),x.push({name:b,indices:S})}),x},getAxisTooltipData:function(d,p,g){n.isArray(d)||(d=d?[d]:[]);for(var m=this.getData(),y=this.getLayerSeries(),_=[],x=y.length,S,b=0;b<x;++b){for(var w=Number.MAX_VALUE,A=-1,T=y[b].indices.length,C=0;C<T;++C){var M=m.get(d[0],y[b].indices[C]),L=Math.abs(M-p);L<=w&&(S=M,w=L,A=y[b].indices[C])}_.push(A)}return{dataIndices:_,nestestValue:S}},formatTooltip:function(d){var p=this.getData(),g=p.getName(d),m=p.get(p.mapDimension("value"),d);return(isNaN(m)||m==null)&&(m="-"),u(g+" : "+m)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),c=f;return XS=c,XS}var KS,XG;function Xye(){if(XG)return KS;XG=1;var r=Pe(),t=a$(),e=t.Polygon,a=qe(),i=ie(),n=i.bind,o=i.extend,s=Zs(),l=r.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(v,h,f){var c=v.getData(),d=this.group,p=v.getLayerSeries(),g=c.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;d.attr("position",[0,m.y+y[0]]);function _(w){return w.name}var x=new s(this._layersSeries||[],p,_,_),S={};x.add(n(b,this,"add")).update(n(b,this,"update")).remove(n(b,this,"remove")).execute();function b(w,A,T){var C=this._layers;if(w==="remove"){d.remove(C[A]);return}for(var M=[],L=[],D,P=p[A].indices,I=0;I<P.length;I++){var R=c.getItemLayout(P[I]),E=R.x,k=R.y0,B=R.y;M.push([E,k]),L.push([E,k+B]),D=c.getItemVisual(P[I],"color")}var F,V,N=c.getItemLayout(P[0]),O=c.getItemModel(P[I-1]),z=O.getModel("label"),G=z.get("margin");if(w==="add"){var q=S[A]=new a.Group;F=new e({shape:{points:M,stackedOnPoints:L,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V=new a.Text({style:{x:N.x-G,y:N.y0+N.y/2}}),q.add(F),q.add(V),d.add(q),F.setClipPath(u(F.getBoundingRect(),v,function(){F.removeClipPath()}))}else{var q=C[T];F=q.childAt(0),V=q.childAt(1),d.add(q),S[A]=q,a.updateProps(F,{shape:{points:M,stackedOnPoints:L}},v),a.updateProps(V,{style:{x:N.x-G,y:N.y0+N.y/2}},v)}var H=O.getModel("emphasis.itemStyle"),U=O.getModel("itemStyle");a.setTextStyle(V.style,z,{text:z.get("show")?v.getFormattedLabel(P[I-1],"normal")||c.getName(P[I-1]):null,textVerticalAlign:"middle"}),F.setStyle(o({fill:D},U.getItemStyle(["color"]))),a.setHoverStyle(F,H.getItemStyle())}this._layersSeries=p,this._layers=S},dispose:function(){}});function u(v,h,f){var c=new a.Rect({shape:{x:v.x-10,y:v.y-10,width:0,height:v.height+20}});return a.initProps(c,{shape:{width:v.width+20,height:v.height+20}},h,f),c}return KS=l,KS}var QS,KG;function Kye(){if(KG)return QS;KG=1;var r=ie(),t=st();function e(n,o){n.eachSeriesByType("themeRiver",function(s){var l=s.getData(),u=s.coordinateSystem,v={},h=u.getRect();v.rect=h;var f=s.get("boundaryGap"),c=u.getAxis();if(v.boundaryGap=f,c.orient==="horizontal"){f[0]=t.parsePercent(f[0],h.height),f[1]=t.parsePercent(f[1],h.height);var d=h.height-f[0]-f[1];a(l,s,d)}else{f[0]=t.parsePercent(f[0],h.width),f[1]=t.parsePercent(f[1],h.width);var p=h.width-f[0]-f[1];a(l,s,p)}l.setLayout("layoutInfo",v)})}function a(n,o,s){if(n.count())for(var l=o.coordinateSystem,u=o.getLayerSeries(),v=n.mapDimension("single"),h=n.mapDimension("value"),f=r.map(u,function(S){return r.map(S.indices,function(b){var w=l.dataToPoint(n.get(v,b));return w[1]=n.get(h,b),w})}),c=i(f),d=c.y0,p=s/c.max,g=u.length,m=u[0].indices.length,y,_=0;_<m;++_){y=d[_]*p,n.setItemLayout(u[0].indices[_],{layerIndex:0,x:f[0][_][0],y0:y,y:f[0][_][1]*p});for(var x=1;x<g;++x)y+=f[x-1][_][1]*p,n.setItemLayout(u[x].indices[_],{layerIndex:x,x:f[x][_][0],y0:y,y:f[x][_][1]*p})}}function i(n){for(var o=n.length,s=n[0].length,l=[],u=[],v=0,h,f={},c=0;c<s;++c){for(var d=0,h=0;d<o;++d)h+=n[d][c][1];h>v&&(v=h),l.push(h)}for(var p=0;p<s;++p)u[p]=(v-l[p])/2;v=0;for(var g=0;g<s;++g){var m=l[g]+u[g];m>v&&(v=m)}return f.y0=u,f.max=v,f}return QS=e,QS}var jS,QG;function Qye(){if(QG)return jS;QG=1;var r=ie(),t=r.createHashMap;function e(a){a.eachSeriesByType("themeRiver",function(i){var n=i.getData(),o=i.getRawData(),s=i.get("color"),l=t();n.each(function(u){l.set(n.getRawIndex(u),u)}),o.each(function(u){var v=o.getName(u),h=s[(i.nameMap.get(v)-1)%s.length];o.setItemVisual(u,"color",h);var f=l.get(u);f!=null&&n.setItemVisual(f,"color",h)})})}return jS=e,jS}var jG;function jye(){if(jG)return MG;jG=1;var r=Pe();P$(),Zye(),Xye();var t=Kye(),e=Qye(),a=_f();return r.registerLayout(t),r.registerVisual(e),r.registerProcessor(a("themeRiver")),MG}var JG={},JS,e3;function Jye(){if(e3)return JS;e3=1;var r=ie(),t=Ir(),e=cD(),a=gr(),i=Qs(),n=i.wrapTreePathInfo,o=t.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(l,u){var v={name:l.name,children:l.data};s(v);var h=r.map(l.levels||[],function(d){return new a(d,this,u)},this),f=e.createTree(v,this,c);function c(d){d.wrapMethod("getItemModel",function(p,g){var m=f.getNodeByDataIndex(g),y=h[m.depth];return y&&(p.parentModel=y),p})}return f.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(l){var u=t.prototype.getDataParams.apply(this,arguments),v=this.getData().tree.getNodeByDataIndex(l);return u.treePathInfo=n(v,this),u},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",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},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(l){l?this._viewRoot=l:l=this._viewRoot;var u=this.getRawData().tree.root;(!l||l!==u&&!u.contains(l))&&(this._viewRoot=u)}});function s(l){var u=0;r.each(l.children,function(h){s(h);var f=h.value;r.isArray(f)&&(f=f[0]),u+=f});var v=l.value;r.isArray(v)&&(v=v[0]),(v==null||isNaN(v))&&(v=u),v<0&&(v=0),r.isArray(l.value)?l.value[0]=v:l.value=v}return JS=o,JS}var eb,t3;function e0e(){if(t3)return eb;t3=1;var r=ie(),t=qe(),e={NONE:"none",ANCESTOR:"ancestor",SELF:"self"},a=2,i=4;function n(f,c,d){t.Group.call(this);var p=new t.Sector({z2:a});p.seriesIndex=c.seriesIndex;var g=new t.Text({z2:i,silent:f.getModel("label").get("silent")});this.add(p),this.add(g),this.updateData(!0,f,"normal",c,d);function m(){g.ignore=g.hoverIgnore}function y(){g.ignore=g.normalIgnore}this.on("emphasis",m).on("normal",y).on("mouseover",m).on("mouseout",y)}var o=n.prototype;o.updateData=function(f,c,d,p,g){this.node=c,c.piece=this,p=p||this._seriesModel,g=g||this._ecModel;var m=this.childAt(0);m.dataIndex=c.dataIndex;var y=c.getModel(),_=c.getLayout(),x=r.extend({},_);x.label=null;var S=l(c,p,g);h(c,p,S);var b=y.getModel("itemStyle").getItemStyle(),w;if(d==="normal")w=b;else{var A=y.getModel(d+".itemStyle").getItemStyle();w=r.merge(A,b)}w=r.defaults({lineJoin:"bevel",fill:w.fill||S},w),f?(m.setShape(x),m.shape.r=_.r0,t.updateProps(m,{shape:{r:_.r}},p,c.dataIndex),m.useStyle(w)):typeof w.fill=="object"&&w.fill.type||typeof m.style.fill=="object"&&m.style.fill.type?(t.updateProps(m,{shape:x},p),m.useStyle(w)):t.updateProps(m,{shape:x,style:w},p),this._updateLabel(p,S,d);var T=y.getShallow("cursor");if(T&&m.attr("cursor",T),f){var C=p.getShallow("highlightPolicy");this._initEvents(m,c,p,C)}this._seriesModel=p||this._seriesModel,this._ecModel=g||this._ecModel,t.setHoverStyle(this)},o.onEmphasis=function(f){var c=this;this.node.hostTree.root.eachNode(function(d){d.piece&&(c.node===d?d.piece.updateData(!1,d,"emphasis"):v(d,c.node,f)?d.piece.childAt(0).trigger("highlight"):f!==e.NONE&&d.piece.childAt(0).trigger("downplay"))})},o.onNormal=function(){this.node.hostTree.root.eachNode(function(f){f.piece&&f.piece.updateData(!1,f,"normal")})},o.onHighlight=function(){this.updateData(!1,this.node,"highlight")},o.onDownplay=function(){this.updateData(!1,this.node,"downplay")},o._updateLabel=function(f,c,d){var p=this.node.getModel(),g=p.getModel("label"),m=d==="normal"||d==="emphasis"?g:p.getModel(d+".label"),y=p.getModel("emphasis.label"),_=m.get("formatter"),x=_?d:"normal",S=r.retrieve(f.getFormattedLabel(this.node.dataIndex,x,null,null,"label"),this.node.name);V("show")===!1&&(S="");var b=this.node.getLayout(),w=m.get("minAngle");w==null&&(w=g.get("minAngle")),w=w/180*Math.PI;var A=b.endAngle-b.startAngle;w!=null&&Math.abs(A)<w&&(S="");var T=this.childAt(1);t.setLabelStyle(T.style,T.hoverStyle||{},g,y,{defaultText:m.getShallow("show")?S:null,autoColor:c,useInsideStyle:!0});var C=(b.startAngle+b.endAngle)/2,M=Math.cos(C),L=Math.sin(C),D,P=V("position"),I=V("distance")||0,R=V("align");P==="outside"?(D=b.r+I,R=C>Math.PI/2?"right":"left"):!R||R==="center"?(D=(b.r+b.r0)/2,R="center"):R==="left"?(D=b.r0+I,C>Math.PI/2&&(R="right")):R==="right"&&(D=b.r-I,C>Math.PI/2&&(R="left")),T.attr("style",{text:S,textAlign:R,textVerticalAlign:V("verticalAlign")||"middle",opacity:V("opacity")});var E=D*M+b.cx,k=D*L+b.cy;T.attr("position",[E,k]);var B=V("rotate"),F=0;B==="radial"?(F=-C,F<-Math.PI/2&&(F+=Math.PI)):B==="tangential"?(F=Math.PI/2-C,F>Math.PI/2?F-=Math.PI:F<-Math.PI/2&&(F+=Math.PI)):typeof B=="number"&&(F=B*Math.PI/180),T.attr("rotation",F);function V(N){var O=m.get(N);return O==null?g.get(N):O}},o._initEvents=function(f,c,d,p){f.off("mouseover").off("mouseout").off("emphasis").off("normal");var g=this,m=function(){g.onEmphasis(p)},y=function(){g.onNormal()},_=function(){g.onDownplay()},x=function(){g.onHighlight()};d.isAnimationEnabled()&&f.on("mouseover",m).on("mouseout",y).on("emphasis",m).on("normal",y).on("downplay",_).on("highlight",x)},r.inherits(n,t.Group);var s=n;function l(f,c,d){var p=f.getVisual("color"),g=f.getVisual("visualMeta");(!g||g.length===0)&&(p=null);var m=f.getModel("itemStyle").get("color");if(m)return m;if(p)return p;if(f.depth===0)return d.option.color[0];var y=d.option.color.length;return m=d.option.color[u(f)%y],m}function u(f){for(var c=f;c.depth>1;)c=c.parentNode;var d=f.getAncestors()[0];return r.indexOf(d.children,c)}function v(f,c,d){return d===e.NONE?!1:d===e.SELF?f===c:d===e.ANCESTOR?f===c||f.isAncestorOf(c):f===c||f.isDescendantOf(c)}function h(f,c,d){var p=c.getData();p.setItemVisual(f.dataIndex,"color",d)}return eb=s,eb}var tb,r3;function t0e(){if(r3)return tb;r3=1;var r=ie(),t=tn(),e=e0e(),a=Zs(),i=Yt(),n=i.windowOpen,o="sunburstRootToNode",s=t.extend({type:"sunburst",init:function(){},render:function(u,v,h,f){var c=this;this.seriesModel=u,this.api=h,this.ecModel=v;var d=u.getData(),p=d.tree.root,g=u.getViewRoot(),m=this.group,y=u.get("renderLabelForZeroData"),_=[];g.eachNode(function(M){_.push(M)});var x=this._oldChildren||[];if(w(_,x),C(p,g),f&&f.highlight&&f.highlight.piece){var S=u.getShallow("highlightPolicy");f.highlight.piece.onEmphasis(S)}else if(f&&f.unhighlight){var b=this.virtualPiece;!b&&p.children.length&&(b=p.children[0].piece),b&&b.onNormal()}this._initEvents(),this._oldChildren=_;function w(M,L){if(M.length===0&&L.length===0)return;new a(L,M,D,D).add(P).update(P).remove(r.curry(P,null)).execute();function D(I){return I.getId()}function P(I,R){var E=I==null?null:M[I],k=R==null?null:L[R];A(E,k)}}function A(M,L){if(!y&&M&&!M.getValue()&&(M=null),M!==p&&L!==p){if(L&&L.piece)M?(L.piece.updateData(!1,M,"normal",u,v),d.setItemGraphicEl(M.dataIndex,L.piece)):T(L);else if(M){var D=new e(M,u,v);m.add(D),d.setItemGraphicEl(M.dataIndex,D)}}}function T(M){M&&M.piece&&(m.remove(M.piece),M.piece=null)}function C(M,L){if(L.depth>0){c.virtualPiece?c.virtualPiece.updateData(!1,M,"normal",u,v):(c.virtualPiece=new e(M,u,v),m.add(c.virtualPiece)),L.piece._onclickEvent&&L.piece.off("click",L.piece._onclickEvent);var D=function(P){c._rootToNode(L.parentNode)};L.piece._onclickEvent=D,c.virtualPiece.on("click",D)}else c.virtualPiece&&(m.remove(c.virtualPiece),c.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var u=this,v=function(h){var f=!1,c=u.seriesModel.getViewRoot();c.eachNode(function(d){if(!f&&d.piece&&d.piece.childAt(0)===h.target){var p=d.getModel().get("nodeClick");if(p==="rootToNode")u._rootToNode(d);else if(p==="link"){var g=d.getModel(),m=g.get("link");if(m){var y=g.get("target",!0)||"_blank";n(m,y)}}f=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",v),this.group._onclickEvent=v},_rootToNode:function(u){u!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:o,from:this.uid,seriesId:this.seriesModel.id,targetNode:u})},containPoint:function(u,v){var h=v.getData(),f=h.getItemLayout(0);if(f){var c=u[0]-f.cx,d=u[1]-f.cy,p=Math.sqrt(c*c+d*d);return p<=f.r&&p>=f.r0}}}),l=s;return tb=l,tb}var a3={},i3;function r0e(){if(i3)return a3;i3=1;var r=Pe(),t=Qs(),e="sunburstRootToNode";r.registerAction({type:e,update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"sunburst",query:n},s);function s(l,u){var v=t.retrieveTargetInfo(n,[e],l);if(v){var h=l.getViewRoot();h&&(n.direction=t.aboveViewRoot(h,v.node)?"rollUp":"drillDown"),l.resetViewRoot(v.node)}}});var a="sunburstHighlight";r.registerAction({type:a,update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"sunburst",query:n},s);function s(l,u){var v=t.retrieveTargetInfo(n,[a],l);v&&(n.highlight=v.node)}});var i="sunburstUnhighlight";return r.registerAction({type:i,update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"sunburst",query:n},s);function s(l,u){n.unhighlight=!0}}),a3}var rb,n3;function a0e(){if(n3)return rb;n3=1;var r=st(),t=r.parsePercent,e=ie(),a=Math.PI/180;function i(s,l,u,v){l.eachSeriesByType(s,function(h){var f=h.get("center"),c=h.get("radius");e.isArray(c)||(c=[0,c]),e.isArray(f)||(f=[f,f]);var d=u.getWidth(),p=u.getHeight(),g=Math.min(d,p),m=t(f[0],d),y=t(f[1],p),_=t(c[0],g/2),x=t(c[1],g/2),S=-h.get("startAngle")*a,b=h.get("minAngle")*a,w=h.getData().tree.root,A=h.getViewRoot(),T=A.depth,C=h.get("sort");C!=null&&n(A,C);var M=0;e.each(A.children,function(z){!isNaN(z.getValue())&&M++});var L=A.getValue(),D=Math.PI/(L||M)*2,P=A.depth>0,I=A.height-(P?-1:1),R=(x-_)/(I||1),E=h.get("clockwise"),k=h.get("stillShowZeroSum"),B=E?1:-1,F=function(z,G){if(z){var q=G;if(z!==w){var H=z.getValue(),U=L===0&&k?D:H*D;U<b&&(U=b),q=G+B*U;var W=z.depth-T-(P?-1:1),Y=_+R*W,X=_+R*(W+1),K=z.getModel();K.get("r0")!=null&&(Y=t(K.get("r0"),g/2)),K.get("r")!=null&&(X=t(K.get("r"),g/2)),z.setLayout({angle:U,startAngle:G,endAngle:q,clockwise:E,cx:m,cy:y,r0:Y,r:X})}if(z.children&&z.children.length){var Q=0;e.each(z.children,function(j){Q+=F(j,G+Q)})}return q-G}};if(P){var V=_,N=_+R,O=Math.PI*2;w.setLayout({angle:O,startAngle:S,endAngle:S+O,clockwise:E,cx:m,cy:y,r0:V,r:N})}F(A,S)})}function n(s,l){var u=s.children||[];s.children=o(u,l),u.length&&e.each(s.children,function(v){n(v,l)})}function o(s,l){if(typeof l=="function")return s.sort(l);var u=l==="asc";return s.sort(function(v,h){var f=(v.getValue()-h.getValue())*(u?1:-1);return f===0?(v.dataIndex-h.dataIndex)*(u?-1:1):f})}return rb=i,rb}var o3;function i0e(){if(o3)return JG;o3=1;var r=Pe(),t=ie();Jye(),t0e(),r0e();var e=_g(),a=a0e(),i=_f();return r.registerVisual(t.curry(e,"sunburst")),r.registerLayout(t.curry(a,"sunburst")),r.registerProcessor(t.curry(i,"sunburst")),JG}var s3={},ab,l3;function n0e(){if(l3)return ab;l3=1;var r=ie();function t(a,i){return i=i||[0,0],r.map(["x","y"],function(n,o){var s=this.getAxis(n),l=i[o],u=a[o]/2;return s.type==="category"?s.getBandWidth():Math.abs(s.dataToCoord(l-u)-s.dataToCoord(l+u))},this)}function e(a){var i=a.grid.getRect();return{coordSys:{type:"cartesian2d",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(n){return a.dataToPoint(n)},size:r.bind(t,a)}}}return ab=e,ab}var ib,u3;function o0e(){if(u3)return ib;u3=1;var r=ie();function t(a,i){return i=i||[0,0],r.map([0,1],function(n){var o=i[n],s=a[n]/2,l=[],u=[];return l[n]=o-s,u[n]=o+s,l[1-n]=u[1-n]=i[1-n],Math.abs(this.dataToPoint(l)[n]-this.dataToPoint(u)[n])},this)}function e(a){var i=a.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:a.getZoom()},api:{coord:function(n){return a.dataToPoint(n)},size:r.bind(t,a)}}}return ib=e,ib}var nb,v3;function s0e(){if(v3)return nb;v3=1;var r=ie();function t(a,i){var n=this.getAxis(),o=i instanceof Array?i[0]:i,s=(a instanceof Array?a[0]:a)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s))}function e(a){var i=a.getRect();return{coordSys:{type:"singleAxis",x:i.x,y:i.y,width:i.width,height:i.height},api:{coord:function(n){return a.dataToPoint(n)},size:r.bind(t,a)}}}return nb=e,nb}var ob,h3;function l0e(){if(h3)return ob;h3=1;var r=ie();function t(a,i){return r.map(["Radius","Angle"],function(n,o){var s=this["get"+n+"Axis"](),l=i[o],u=a[o]/2,v="dataTo"+n,h=s.type==="category"?s.getBandWidth():Math.abs(s[v](l-u)-s[v](l+u));return n==="Angle"&&(h=h*Math.PI/180),h},this)}function e(a){var i=a.getRadiusAxis(),n=a.getAngleAxis(),o=i.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:o[1],r0:o[0]},api:{coord:r.bind(function(s){var l=i.dataToRadius(s[0]),u=n.dataToAngle(s[1]),v=a.coordToPoint([l,u]);return v.push(l,u*Math.PI/180),v}),size:r.bind(t,a)}}}return ob=e,ob}var sb,f3;function u0e(){if(f3)return sb;f3=1;function r(t){var e=t.getRect(),a=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:a.start,end:a.end,weeks:a.weeks,dayCount:a.allDay}},api:{coord:function(i,n){return t.dataToPoint(i,n)}}}}return sb=r,sb}var c3;function v0e(){if(c3)return s3;c3=1;var r=It();r.__DEV__;var t=ie(),e=qe(),a=oD(),i=a.getDefaultLabel,n=In(),o=pg(),s=o.getLayoutOnAxis,l=Zs(),u=Ir(),v=gr(),h=tn(),f=pf(),c=f.createClipPath,d=n0e(),p=o0e(),g=s0e(),m=l0e(),y=u0e(),_=e.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],S=["emphasis","itemStyle"],b=["label"],w=["emphasis","label"],A="e\0\0",T={cartesian2d:d,geo:p,singleAxis:g,polar:m,calendar:y};u.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(H,U){return n(this.getSource(),this)},getDataParams:function(H,U,W){var Y=u.prototype.getDataParams.apply(this,arguments);return W&&(Y.info=W.info),Y}}),h.extend({type:"custom",_data:null,render:function(H,U,W,Y){var X=this._data,K=H.getData(),Q=this.group,j=D(H,K,U,W);K.diff(X).add(function(Z){I(null,Z,j(Z,Y),H,Q,K)}).update(function(Z,ee){var le=X.getItemGraphicEl(ee);I(le,Z,j(Z,Y),H,Q,K)}).remove(function(Z){var ee=X.getItemGraphicEl(Z);ee&&Q.remove(ee)}).execute();var te=H.get("clip",!0)?c(H.coordinateSystem,!1,H):null;te?Q.setClipPath(te):Q.removeClipPath(),this._data=K},incrementalPrepareRender:function(H,U,W){this.group.removeAll(),this._data=null},incrementalRender:function(H,U,W,Y,X){var K=U.getData(),Q=D(U,K,W,Y);function j(ee){ee.isGroup||(ee.incremental=!0,ee.useHoverLayer=!0)}for(var te=H.start;te<H.end;te++){var Z=I(null,te,Q(te,X),U,this.group,K);Z.traverse(j)}},dispose:t.noop,filterForExposedEvent:function(H,U,W,Y){var X=U.element;if(X==null||W.name===X)return!0;for(;(W=W.parent)&&W!==this.group;)if(W.name===X)return!0;return!1}});function C(H){var U=H.type,W;if(U==="path"){var Y=H.shape,X=Y.width!=null&&Y.height!=null?{x:Y.x||0,y:Y.y||0,width:Y.width,height:Y.height}:null,K=z(Y);W=e.makePath(K,null,X,Y.layout||"center"),W.__customPathData=K}else if(U==="image")W=new e.Image({}),W.__customImagePath=H.style.image;else if(U==="text")W=new e.Text({}),W.__customText=H.style.text;else if(U==="group")W=new e.Group;else{if(U==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Q=e.getShapeClass(U);W=new Q}return W.__customGraphicType=U,W.name=H.name,W}function M(H,U,W,Y,X,K,Q){var j={},te=W.style||{};if(W.shape&&(j.shape=t.clone(W.shape)),W.position&&(j.position=W.position.slice()),W.scale&&(j.scale=W.scale.slice()),W.origin&&(j.origin=W.origin.slice()),W.rotation&&(j.rotation=W.rotation),H.type==="image"&&W.style){var Z=j.style={};t.each(["x","y","width","height"],function(oe){L(oe,Z,te,H.style,K)})}if(H.type==="text"&&W.style){var Z=j.style={};t.each(["x","y"],function(fe){L(fe,Z,te,H.style,K)}),!te.hasOwnProperty("textFill")&&te.fill&&(te.textFill=te.fill),!te.hasOwnProperty("textStroke")&&te.stroke&&(te.textStroke=te.stroke)}if(H.type!=="group"&&(H.useStyle(te),K)){H.style.opacity=0;var ee=te.opacity;ee==null&&(ee=1),e.initProps(H,{style:{opacity:ee}},Y,U)}K?H.attr(j):e.updateProps(H,j,Y,U),W.hasOwnProperty("z2")&&H.attr("z2",W.z2||0),W.hasOwnProperty("silent")&&H.attr("silent",W.silent),W.hasOwnProperty("invisible")&&H.attr("invisible",W.invisible),W.hasOwnProperty("ignore")&&H.attr("ignore",W.ignore),W.hasOwnProperty("info")&&H.attr("info",W.info);var le=W.styleEmphasis;e.setElementHoverStyle(H,le),Q&&e.setAsHighDownDispatcher(H,le!==!1)}function L(H,U,W,Y,X){W[H]!=null&&!X&&(U[H]=W[H],W[H]=Y[H])}function D(H,U,W,Y){var X=H.get("renderItem"),K=H.coordinateSystem,Q={};K&&(Q=K.prepareCustoms?K.prepareCustoms():T[K.type](K));var j=t.defaults({getWidth:Y.getWidth,getHeight:Y.getHeight,getZr:Y.getZr,getDevicePixelRatio:Y.getDevicePixelRatio,value:ye,style:Me,styleEmphasis:J,visual:ne,barLayout:ue,currentSeriesIndices:me,font:xe},Q.api||{}),te={context:{},seriesId:H.id,seriesName:H.name,seriesIndex:H.seriesIndex,coordSys:Q.coordSys,dataInsideLength:U.count(),encode:P(H.getData())},Z,ee=!0,le,oe,fe,se;return function(ge,pe){return Z=ge,ee=!0,X&&X(t.defaults({dataIndexInside:ge,dataIndex:U.getRawIndex(ge),actionType:pe?pe.type:null},te),j)};function ve(ge){ge==null&&(ge=Z),ee&&(le=U.getItemModel(ge),oe=le.getModel(b),fe=le.getModel(w),se=U.getItemVisual(ge,"color"),ee=!1)}function ye(ge,pe){return pe==null&&(pe=Z),U.get(U.getDimension(ge||0),pe)}function Me(ge,pe){pe==null&&(pe=Z),ve(pe);var Ce=le.getModel(x).getItemStyle();se!=null&&(Ce.fill=se);var ze=U.getItemVisual(pe,"opacity");ze!=null&&(Ce.opacity=ze);var Ve=ge?V(ge,oe):oe;return e.setTextStyle(Ce,Ve,null,{autoColor:se,isRectText:!0}),Ce.text=Ve.getShallow("show")?t.retrieve2(H.getFormattedLabel(pe,"normal"),i(U,pe)):null,ge&&N(Ce,ge),Ce}function J(ge,pe){pe==null&&(pe=Z),ve(pe);var Ce=le.getModel(S).getItemStyle(),ze=ge?V(ge,fe):fe;return e.setTextStyle(Ce,ze,null,{isRectText:!0},!0),Ce.text=ze.getShallow("show")?t.retrieve3(H.getFormattedLabel(pe,"emphasis"),H.getFormattedLabel(pe,"normal"),i(U,pe)):null,ge&&N(Ce,ge),Ce}function ne(ge,pe){return pe==null&&(pe=Z),U.getItemVisual(pe,ge)}function ue(ge){if(K.getBaseAxis){var pe=K.getBaseAxis();return s(t.defaults({axis:pe},ge),Y)}}function me(){return W.getCurrentSeriesIndices()}function xe(ge){return e.getFont(ge,W)}}function P(H){var U={};return t.each(H.dimensions,function(W,Y){var X=H.getDimensionInfo(W);if(!X.isExtraCoord){var K=X.coordDim,Q=U[K]=U[K]||[];Q[X.coordDimIndex]=Y}}),U}function I(H,U,W,Y,X,K){return H=R(H,U,W,Y,X,K,!0),H&&K.setItemGraphicEl(U,H),H}function R(H,U,W,Y,X,K,Q){var j=!W;W=W||{};var te=W.type,Z=W.shape,ee=W.style;if(H&&(j||te!=null&&te!==H.__customGraphicType||te==="path"&&G(Z)&&z(Z)!==H.__customPathData||te==="image"&&q(ee,"image")&&ee.image!==H.__customImagePath||te==="text"&&q(Z,"text")&&ee.text!==H.__customText)&&(X.remove(H),H=null),!j){var le=!H;return!H&&(H=C(W)),M(H,U,W,Y,K,le,Q),te==="group"&&E(H,U,W,Y,K),X.add(H),H}}function E(H,U,W,Y,X){var K=W.children,Q=K?K.length:0,j=W.$mergeChildren,te=j==="byName"||W.diffChildrenByName,Z=j===!1;if(!(!Q&&!te&&!Z)){if(te){k({oldChildren:H.children()||[],newChildren:K||[],dataIndex:U,animatableModel:Y,group:H,data:X});return}Z&&H.removeAll();for(var ee=0;ee<Q;ee++)K[ee]&&R(H.childAt(ee),U,K[ee],Y,H,X)}}function k(H){new l(H.oldChildren,H.newChildren,B,B,H).add(F).update(F).remove(O).execute()}function B(H,U){var W=H&&H.name;return W!=null?W:A+U}function F(H,U){var W=this.context,Y=H!=null?W.newChildren[H]:null,X=U!=null?W.oldChildren[U]:null;R(X,W.dataIndex,Y,W.animatableModel,W.group,W.data)}function V(H,U){var W=new v({},U);return t.each(_,function(Y,X){H.hasOwnProperty(Y)&&(W.option[X]=H[Y])}),W}function N(H,U){for(var W in U)(U.hasOwnProperty(W)||!_.hasOwnProperty(W))&&(H[W]=U[W])}function O(H){var U=this.context,W=U.oldChildren[H];W&&U.group.remove(W)}function z(H){return H&&(H.pathData||H.d)}function G(H){return H&&(H.hasOwnProperty("pathData")||H.hasOwnProperty("d"))}function q(H,U){return H&&H.hasOwnProperty(U)}return s3}var d3={},p3;function h0e(){return p3||(p3=1,mf(),I$(),Sf()),d3}var g3={},lb,m3;function f0e(){if(m3)return lb;m3=1;var r=ie(),t=st(),e=t.parsePercent,a=rn(),i=a.isDimensionStacked;function n(v){return v.get("stack")||"__ec_stack_"+v.seriesIndex}function o(v,h){return h.dim+v.model.componentIndex}function s(v,h,f){var c={},d=l(r.filter(h.getSeriesByType(v),function(p){return!h.isSeriesFiltered(p)&&p.coordinateSystem&&p.coordinateSystem.type==="polar"}));h.eachSeriesByType(v,function(p){if(p.coordinateSystem.type==="polar"){var g=p.getData(),m=p.coordinateSystem,y=m.getBaseAxis(),_=o(m,y),x=n(p),S=d[_][x],b=S.offset,w=S.width,A=m.getOtherAxis(y),T=p.coordinateSystem.cx,C=p.coordinateSystem.cy,M=p.get("barMinHeight")||0,L=p.get("barMinAngle")||0;c[x]=c[x]||[];for(var D=g.mapDimension(A.dim),P=g.mapDimension(y.dim),I=i(g,D),R=y.dim!=="radius"||!p.get("roundCap",!0),E=A.dim==="radius"?A.dataToRadius(0):A.dataToAngle(0),k=0,B=g.count();k<B;k++){var F=g.get(D,k),V=g.get(P,k),N=F>=0?"p":"n",O=E;I&&(c[x][V]||(c[x][V]={p:E,n:E}),O=c[x][V][N]);var z,G,q,H;if(A.dim==="radius"){var U=A.dataToRadius(F)-E,W=y.dataToAngle(V);Math.abs(U)<M&&(U=(U<0?-1:1)*M),z=O,G=O+U,q=W-b,H=q-w,I&&(c[x][V][N]=G)}else{var Y=A.dataToAngle(F,R)-E,X=y.dataToRadius(V);Math.abs(Y)<L&&(Y=(Y<0?-1:1)*L),z=X+b,G=z+w,q=O,H=O+Y,I&&(c[x][V][N]=H)}g.setItemLayout(k,{cx:T,cy:C,r0:z,r:G,startAngle:-q*Math.PI/180,endAngle:-H*Math.PI/180})}}},this)}function l(v,h){var f={};r.each(v,function(d,p){var g=d.getData(),m=d.coordinateSystem,y=m.getBaseAxis(),_=o(m,y),x=y.getExtent(),S=y.type==="category"?y.getBandWidth():Math.abs(x[1]-x[0])/g.count(),b=f[_]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},w=b.stacks;f[_]=b;var A=n(d);w[A]||b.autoWidthCount++,w[A]=w[A]||{width:0,maxWidth:0};var T=e(d.get("barWidth"),S),C=e(d.get("barMaxWidth"),S),M=d.get("barGap"),L=d.get("barCategoryGap");T&&!w[A].width&&(T=Math.min(b.remainedWidth,T),w[A].width=T,b.remainedWidth-=T),C&&(w[A].maxWidth=C),M!=null&&(b.gap=M),L!=null&&(b.categoryGap=L)});var c={};return r.each(f,function(d,p){c[p]={};var g=d.stacks,m=d.bandWidth,y=e(d.categoryGap,m),_=e(d.gap,1),x=d.remainedWidth,S=d.autoWidthCount,b=(x-y)/(S+(S-1)*_);b=Math.max(b,0),r.each(g,function(C,M){var L=C.maxWidth;L&&L<b&&(L=Math.min(L,x),C.width&&(L=Math.min(L,C.width)),x-=L,C.width=L,S--)}),b=(x-y)/(S+(S-1)*_),b=Math.max(b,0);var w=0,A;r.each(g,function(C,M){C.width||(C.width=b),A=C,w+=C.width*(1+_)}),A&&(w-=A.width*_);var T=-w/2;r.each(g,function(C,M){c[p][M]=c[p][M]||{offset:T,width:C.width},T+=C.width*(1+_)})}),c}var u=s;return lb=u,lb}var y3={},ub,_3;function c0e(){if(_3)return ub;_3=1;var r=ie(),t=So();function e(i,n){t.call(this,"radius",i,n),this.type="category"}e.prototype={constructor:e,pointToData:function(i,n){return this.polar.pointToData(i,n)[this.dim==="radius"?0:1]},dataToRadius:t.prototype.dataToCoord,radiusToData:t.prototype.coordToData},r.inherits(e,t);var a=e;return ub=a,ub}var vb,x3;function d0e(){if(x3)return vb;x3=1;var r=ie(),t=Da(),e=So(),a=_t(),i=a.makeInner,n=i();function o(l,u){u=u||[0,360],e.call(this,"angle",l,u),this.type="category"}o.prototype={constructor:o,pointToData:function(l,u){return this.polar.pointToData(l,u)[this.dim==="radius"?0:1]},dataToAngle:e.prototype.dataToCoord,angleToData:e.prototype.coordToData,calculateCategoryInterval:function(){var l=this,u=l.getLabelModel(),v=l.scale,h=v.getExtent(),f=v.count();if(h[1]-h[0]<1)return 0;var c=h[0],d=l.dataToCoord(c+1)-l.dataToCoord(c),p=Math.abs(d),g=t.getBoundingRect(c,u.getFont(),"center","top"),m=Math.max(g.height,7),y=m/p;isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(y)),x=n(l.model),S=x.lastAutoInterval,b=x.lastTickCount;return S!=null&&b!=null&&Math.abs(S-_)<=1&&Math.abs(b-f)<=1&&S>_?_=S:(x.lastTickCount=f,x.lastAutoInterval=_),_}},r.inherits(o,e);var s=o;return vb=s,vb}var hb,S3;function p0e(){if(S3)return hb;S3=1;var r=c0e(),t=d0e(),e=function(i){this.name=i||"",this.cx=0,this.cy=0,this._radiusAxis=new r,this._angleAxis=new t,this._radiusAxis.polar=this._angleAxis.polar=this};e.prototype={type:"polar",axisPointerEnabled:!0,constructor:e,dimensions:["radius","angle"],model:null,containPoint:function(i){var n=this.pointToCoord(i);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},containData:function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},getAxis:function(i){return this["_"+i+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(i){var n=[],o=this._angleAxis,s=this._radiusAxis;return o.scale.type===i&&n.push(o),s.scale.type===i&&n.push(s),n},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(i){var n=this._angleAxis;return i===n?this._radiusAxis:n},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(i){var n=i!=null&&i!=="auto"?this.getAxis(i):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},dataToPoint:function(i,n){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],n),this._angleAxis.dataToAngle(i[1],n)])},pointToData:function(i,n){var o=this.pointToCoord(i);return[this._radiusAxis.radiusToData(o[0],n),this._angleAxis.angleToData(o[1],n)]},pointToCoord:function(i){var n=i[0]-this.cx,o=i[1]-this.cy,s=this.getAngleAxis(),l=s.getExtent(),u=Math.min(l[0],l[1]),v=Math.max(l[0],l[1]);s.inverse?u=v-360:v=u+360;var h=Math.sqrt(n*n+o*o);n/=h,o/=h;for(var f=Math.atan2(-o,n)/Math.PI*180,c=f<u?1:-1;f<u||f>v;)f+=c*360;return[h,f]},coordToPoint:function(i){var n=i[0],o=i[1]/180*Math.PI,s=Math.cos(o)*n+this.cx,l=-Math.sin(o)*n+this.cy;return[s,l]},getArea:function(){var i=this.getAngleAxis(),n=this.getRadiusAxis(),o=n.getExtent().slice();o[0]>o[1]&&o.reverse();var s=i.getExtent(),l=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:i.inverse,contain:function(u,v){var h=u-this.cx,f=v-this.cy,c=h*h+f*f,d=this.r,p=this.r0;return c<=d*d&&c>=p*p}}}};var a=e;return hb=a,hb}var b3={},w3;function g0e(){if(w3)return b3;w3=1;var r=ie(),t=Lr(),e=mg(),a=Du(),i=t.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(i.prototype,a);var n={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function o(s,l){return l.type||(l.data?"category":"value")}return e("angle",i,o,n.angle),e("radius",i,o,n.radius),b3}var fb,T3;function m0e(){if(T3)return fb;T3=1;var r=Pe();g0e();var t=r.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var a,i=this.ecModel;return i.eachComponent(e,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});return fb=t,fb}var A3;function _D(){if(A3)return y3;A3=1;var r=It();r.__DEV__;var t=ie(),e=p0e(),a=st(),i=a.parsePercent,n=wi(),o=n.createScaleByModel,s=n.niceScaleExtent,l=bi(),u=rn(),v=u.getStackedDimension;m0e();function h(p,g,m){var y=g.get("center"),_=m.getWidth(),x=m.getHeight();p.cx=i(y[0],_),p.cy=i(y[1],x);var S=p.getRadiusAxis(),b=Math.min(_,x)/2,w=g.get("radius");w==null?w=[0,"100%"]:t.isArray(w)||(w=[0,w]),w=[i(w[0],b),i(w[1],b)],S.inverse?S.setExtent(w[1],w[0]):S.setExtent(w[0],w[1])}function f(p,g){var m=this,y=m.getAngleAxis(),_=m.getRadiusAxis();if(y.scale.setExtent(1/0,-1/0),_.scale.setExtent(1/0,-1/0),p.eachSeries(function(b){if(b.coordinateSystem===m){var w=b.getData();t.each(w.mapDimension("radius",!0),function(A){_.scale.unionExtentFromData(w,v(w,A))}),t.each(w.mapDimension("angle",!0),function(A){y.scale.unionExtentFromData(w,v(w,A))})}}),s(y.scale,y.model),s(_.scale,_.model),y.type==="category"&&!y.onBand){var x=y.getExtent(),S=360/y.scale.count();y.inverse?x[1]+=S:x[1]-=S,y.setExtent(x[0],x[1])}}function c(p,g){if(p.type=g.get("type"),p.scale=o(g),p.onBand=g.get("boundaryGap")&&p.type==="category",p.inverse=g.get("inverse"),g.mainType==="angleAxis"){p.inverse^=g.get("clockwise");var m=g.get("startAngle");p.setExtent(m,m+(p.inverse?-360:360))}g.axis=p,p.model=g}var d={dimensions:e.prototype.dimensions,create:function(p,g){var m=[];return p.eachComponent("polar",function(y,_){var x=new e(_);x.update=f;var S=x.getRadiusAxis(),b=x.getAngleAxis(),w=y.findAxisModel("radiusAxis"),A=y.findAxisModel("angleAxis");c(S,w),c(b,A),h(x,y,g),m.push(x),y.coordinateSystem=x,x.model=y}),p.eachSeries(function(y){if(y.get("coordinateSystem")==="polar"){var _=p.queryComponents({mainType:"polar",index:y.get("polarIndex"),id:y.get("polarId")})[0];y.coordinateSystem=_.coordinateSystem}}),m}};return l.register("polar",d),y3}var C3={},cb,M3;function y0e(){if(M3)return cb;M3=1;var r=ie(),t=qe(),e=gr(),a=Ks(),i=bo(),n=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function o(v,h,f){h[1]>h[0]&&(h=h.slice().reverse());var c=v.coordToPoint([h[0],f]),d=v.coordToPoint([h[1],f]);return{x1:c[0],y1:c[1],x2:d[0],y2:d[1]}}function s(v){var h=v.getRadiusAxis();return h.inverse?0:1}function l(v){var h=v[0],f=v[v.length-1];h&&f&&Math.abs(Math.abs(h.coord-f.coord)-360)<1e-4&&v.pop()}var u=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(v,h){if(this.group.removeAll(),!!v.get("show")){var f=v.axis,c=f.polar,d=c.getRadiusAxis().getExtent(),p=f.getTicksCoords(),g=f.getMinorTicksCoords(),m=r.map(f.getViewLabels(),function(_){var _=r.clone(_);return _.coord=f.dataToCoord(_.tickValue),_});l(m),l(p),r.each(n,function(y){v.get(y+".show")&&(!f.scale.isBlank()||y==="axisLine")&&this["_"+y](v,c,p,g,d,m)},this)}},_axisLine:function(v,h,f,c,d){var p=v.getModel("axisLine.lineStyle"),g=s(h),m=g?0:1,y;d[m]===0?y=new t.Circle({shape:{cx:h.cx,cy:h.cy,r:d[g]},style:p.getLineStyle(),z2:1,silent:!0}):y=new t.Ring({shape:{cx:h.cx,cy:h.cy,r:d[g],r0:d[m]},style:p.getLineStyle(),z2:1,silent:!0}),y.style.fill=null,this.group.add(y)},_axisTick:function(v,h,f,c,d){var p=v.getModel("axisTick"),g=(p.get("inside")?-1:1)*p.get("length"),m=d[s(h)],y=r.map(f,function(_){return new t.Line({shape:o(h,[m,m+g],_.coord)})});this.group.add(t.mergePath(y,{style:r.defaults(p.getModel("lineStyle").getLineStyle(),{stroke:v.get("axisLine.lineStyle.color")})}))},_minorTick:function(v,h,f,c,d){if(c.length){for(var p=v.getModel("axisTick"),g=v.getModel("minorTick"),m=(p.get("inside")?-1:1)*g.get("length"),y=d[s(h)],_=[],x=0;x<c.length;x++)for(var S=0;S<c[x].length;S++)_.push(new t.Line({shape:o(h,[y,y+m],c[x][S].coord)}));this.group.add(t.mergePath(_,{style:r.defaults(g.getModel("lineStyle").getLineStyle(),r.defaults(p.getLineStyle(),{stroke:v.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(v,h,f,c,d,p){var g=v.getCategories(!0),m=v.getModel("axisLabel"),y=m.get("margin"),_=v.get("triggerEvent");r.each(p,function(x,S){var b=m,w=x.tickValue,A=d[s(h)],T=h.coordToPoint([A+y,x.coord]),C=h.cx,M=h.cy,L=Math.abs(T[0]-C)/A<.3?"center":T[0]>C?"left":"right",D=Math.abs(T[1]-M)/A<.3?"middle":T[1]>M?"top":"bottom";g&&g[w]&&g[w].textStyle&&(b=new e(g[w].textStyle,m,m.ecModel));var P=new t.Text({silent:i.isLabelSilent(v)});this.group.add(P),t.setTextStyle(P.style,b,{x:T[0],y:T[1],textFill:b.getTextColor()||v.get("axisLine.lineStyle.color"),text:x.formattedLabel,textAlign:L,textVerticalAlign:D}),_&&(P.eventData=i.makeAxisEventDataBase(v),P.eventData.targetType="axisLabel",P.eventData.value=x.rawLabel)},this)},_splitLine:function(v,h,f,c,d){var p=v.getModel("splitLine"),g=p.getModel("lineStyle"),m=g.get("color"),y=0;m=m instanceof Array?m:[m];for(var _=[],x=0;x<f.length;x++){var S=y++%m.length;_[S]=_[S]||[],_[S].push(new t.Line({shape:o(h,d,f[x].coord)}))}for(var x=0;x<_.length;x++)this.group.add(t.mergePath(_[x],{style:r.defaults({stroke:m[x%m.length]},g.getLineStyle()),silent:!0,z:v.get("z")}))},_minorSplitLine:function(v,h,f,c,d){if(c.length){for(var p=v.getModel("minorSplitLine"),g=p.getModel("lineStyle"),m=[],y=0;y<c.length;y++)for(var _=0;_<c[y].length;_++)m.push(new t.Line({shape:o(h,d,c[y][_].coord)}));this.group.add(t.mergePath(m,{style:g.getLineStyle(),silent:!0,z:v.get("z")}))}},_splitArea:function(v,h,f,c,d){if(f.length){var p=v.getModel("splitArea"),g=p.getModel("areaStyle"),m=g.get("color"),y=0;m=m instanceof Array?m:[m];for(var _=[],x=Math.PI/180,S=-f[0].coord*x,b=Math.min(d[0],d[1]),w=Math.max(d[0],d[1]),A=v.get("clockwise"),T=1;T<f.length;T++){var C=y++%m.length;_[C]=_[C]||[],_[C].push(new t.Sector({shape:{cx:h.cx,cy:h.cy,r0:b,r:w,startAngle:S,endAngle:-f[T].coord*x,clockwise:A},silent:!0})),S=-f[T].coord*x}for(var T=0;T<_.length;T++)this.group.add(t.mergePath(_[T],{style:r.defaults({fill:m[T%m.length]},g.getAreaStyle()),silent:!0}))}}});return cb=u,cb}var D3;function _0e(){return D3||(D3=1,_D(),y0e()),C3}var L3={},db,I3;function x0e(){if(I3)return db;I3=1;var r=ie(),t=qe(),e=bo(),a=Ks(),i=["axisLine","axisTickLabel","axisName"],n=["splitLine","splitArea","minorSplitLine"],o=a.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(l,u){if(this.group.removeAll(),!!l.get("show")){var v=l.axis,h=v.polar,f=h.getAngleAxis(),c=v.getTicksCoords(),d=v.getMinorTicksCoords(),p=f.getExtent()[0],g=v.getExtent(),m=s(h,l,p),y=new e(l,m);r.each(i,y.add,y),this.group.add(y.getGroup()),r.each(n,function(_){l.get(_+".show")&&!v.scale.isBlank()&&this["_"+_](l,h,p,g,c,d)},this)}},_splitLine:function(l,u,v,h,f){var c=l.getModel("splitLine"),d=c.getModel("lineStyle"),p=d.get("color"),g=0;p=p instanceof Array?p:[p];for(var m=[],y=0;y<f.length;y++){var _=g++%p.length;m[_]=m[_]||[],m[_].push(new t.Circle({shape:{cx:u.cx,cy:u.cy,r:f[y].coord}}))}for(var y=0;y<m.length;y++)this.group.add(t.mergePath(m[y],{style:r.defaults({stroke:p[y%p.length],fill:null},d.getLineStyle()),silent:!0}))},_minorSplitLine:function(l,u,v,h,f,c){if(c.length){for(var d=l.getModel("minorSplitLine"),p=d.getModel("lineStyle"),g=[],m=0;m<c.length;m++)for(var y=0;y<c[m].length;y++)g.push(new t.Circle({shape:{cx:u.cx,cy:u.cy,r:c[m][y].coord}}));this.group.add(t.mergePath(g,{style:r.defaults({fill:null},p.getLineStyle()),silent:!0}))}},_splitArea:function(l,u,v,h,f){if(f.length){var c=l.getModel("splitArea"),d=c.getModel("areaStyle"),p=d.get("color"),g=0;p=p instanceof Array?p:[p];for(var m=[],y=f[0].coord,_=1;_<f.length;_++){var x=g++%p.length;m[x]=m[x]||[],m[x].push(new t.Sector({shape:{cx:u.cx,cy:u.cy,r0:y,r:f[_].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),y=f[_].coord}for(var _=0;_<m.length;_++)this.group.add(t.mergePath(m[_],{style:r.defaults({fill:p[_%p.length]},d.getAreaStyle()),silent:!0}))}}});function s(l,u,v){return{position:[l.cx,l.cy],rotation:v/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:u.getModel("axisLabel").get("rotate"),z2:1}}return db=o,db}var P3;function S0e(){return P3||(P3=1,_D(),x0e()),L3}var pb,R3;function b0e(){if(R3)return pb;R3=1;var r=Yt(),t=yD(),e=qe(),a=wg(),i=ha(),n=bo(),o=Ks(),s=t.extend({makeElOption:function(h,f,c,d,p){var g=c.axis;g.dim==="angle"&&(this.animationThreshold=Math.PI/18);var m=g.polar,y=m.getOtherAxis(g),_=y.getExtent(),x;x=g["dataTo"+r.capitalFirst(g.dim)](f);var S=d.get("type");if(S&&S!=="none"){var b=a.buildElStyle(d),w=u[S](g,m,x,_,b);w.style=b,h.graphicKey=w.type,h.pointer=w}var A=d.get("label.margin"),T=l(f,c,d,m,A);a.buildLabelElOption(h,c,d,p,T)}});function l(h,f,c,d,p){var g=f.axis,m=g.dataToCoord(h),y=d.getAngleAxis().getExtent()[0];y=y/180*Math.PI;var _=d.getRadiusAxis().getExtent(),x,S,b;if(g.dim==="radius"){var w=i.create();i.rotate(w,w,y),i.translate(w,w,[d.cx,d.cy]),x=e.applyTransform([m,-p],w);var A=f.getModel("axisLabel").get("rotate")||0,T=n.innerTextLayout(y,A*Math.PI/180,-1);S=T.textAlign,b=T.textVerticalAlign}else{var C=_[1];x=d.coordToPoint([C+p,m]);var M=d.cx,L=d.cy;S=Math.abs(x[0]-M)/C<.3?"center":x[0]>M?"left":"right",b=Math.abs(x[1]-L)/C<.3?"middle":x[1]>L?"top":"bottom"}return{position:x,align:S,verticalAlign:b}}var u={line:function(h,f,c,d,p){return h.dim==="angle"?{type:"Line",shape:a.makeLineShape(f.coordToPoint([d[0],c]),f.coordToPoint([d[1],c]))}:{type:"Circle",shape:{cx:f.cx,cy:f.cy,r:c}}},shadow:function(h,f,c,d,p){var g=Math.max(1,h.getBandWidth()),m=Math.PI/180;return h.dim==="angle"?{type:"Sector",shape:a.makeSectorShape(f.cx,f.cy,d[0],d[1],(-c-g/2)*m,(-c+g/2)*m)}:{type:"Sector",shape:a.makeSectorShape(f.cx,f.cy,c-g/2,c+g/2,0,Math.PI*2)}}};o.registerAxisPointerClass("PolarAxisPointer",s);var v=s;return pb=v,pb}var E3;function w0e(){if(E3)return g3;E3=1;var r=Pe(),t=ie(),e=f0e();return _D(),_0e(),S0e(),Sf(),b0e(),r.registerLayout(t.curry(e,"bar")),r.extendComponentView({type:"polar"}),g3}var k3={},gb,O3;function T0e(){if(O3)return gb;O3=1;var r=ie(),t=_t(),e=Lr(),a=gr(),i=lD(),n=fD(),o=e.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(l){e.prototype.init.apply(this,arguments),t.defaultEmphasis(l,"label",["show"])},optionUpdated:function(){var l=this.option,u=this;l.regions=n.getFilledRegions(l.regions,l.map,l.nameMap),this._optionModelMap=r.reduce(l.regions||[],function(v,h){return h.name&&v.set(h.name,new a(h,u)),v},r.createHashMap()),this.updateSelectedMap(l.regions)},defaultOption:{zlevel:0,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",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(l){return this._optionModelMap.get(l)||new a(null,this,this.ecModel)},getFormattedLabel:function(l,u){u=u||"normal";var v=this.getRegionModel(l),h=v.get((u==="normal"?"":u+".")+"label.formatter"),f={name:l};if(typeof h=="function")return f.status=u,h(f);if(typeof h=="string")return h.replace("{a}",l!=null?l:"")},setZoom:function(l){this.option.zoom=l},setCenter:function(l){this.option.center=l}});r.mixin(o,i);var s=o;return gb=s,gb}var mb,N3;function A0e(){if(N3)return mb;N3=1;var r=f$(),t=Pe(),e=t.extendComponentView({type:"geo",init:function(a,i){var n=new r(i,!0);this._mapDraw=n,this.group.add(n.group)},render:function(a,i,n,o){if(!(o&&o.type==="geoToggleSelect"&&o.from===this.uid)){var s=this._mapDraw;a.get("show")?s.draw(a,i,n,this,o):this._mapDraw.group.removeAll(),this.group.silent=a.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});return mb=e,mb}var z3;function C0e(){if(z3)return k3;z3=1;var r=Pe(),t=ie();T0e(),fD(),A0e(),c$();function e(a,i){i.update="updateView",r.registerAction(i,function(n,o){var s={};return o.eachComponent({mainType:"geo",query:n},function(l){l[a](n.name);var u=l.coordinateSystem;t.each(u.regions,function(v){s[v.name]=l.isSelected(v.name)||!1})}),{selected:s,name:n.name}})}return e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),k3}var B3={},yb,V3;function M0e(){if(V3)return yb;V3=1;var r=ie(),t=Ut(),e=st(),a=bi(),i=864e5;function n(l,u,v){this._model=l}n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(l){l=e.parseDate(l);var u=l.getFullYear(),v=l.getMonth()+1;v=v<10?"0"+v:v;var h=l.getDate();h=h<10?"0"+h:h;var f=l.getDay();return f=Math.abs((f+7-this.getFirstDayOfWeek())%7),{y:u,m:v,d:h,day:f,time:l.getTime(),formatedDate:u+"-"+v+"-"+h,date:l}},getNextNDay:function(l,u){return u=u||0,u===0?this.getDateInfo(l):(l=new Date(this.getDateInfo(l).time),l.setDate(l.getDate()+u),this.getDateInfo(l))},update:function(l,u){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 v=this._rangeInfo.weeks||1,h=["width","height"],f=this._model.get("cellSize").slice(),c=this._model.getBoxLayoutParams(),d=this._orient==="horizontal"?[v,7]:[7,v];r.each([0,1],function(y){m(f,y)&&(c[h[y]]=f[y]*d[y])});var p={width:u.getWidth(),height:u.getHeight()},g=this._rect=t.getLayoutRect(c,p);r.each([0,1],function(y){m(f,y)||(f[y]=g[h[y]]/d[y])});function m(y,_){return y[_]!=null&&y[_]!=="auto"}this._sw=f[0],this._sh=f[1]},dataToPoint:function(l,u){r.isArray(l)&&(l=l[0]),u==null&&(u=!0);var v=this.getDateInfo(l),h=this._rangeInfo,f=v.formatedDate;if(u&&!(v.time>=h.start.time&&v.time<h.end.time+i))return[NaN,NaN];var c=v.day,d=this._getRangeInfo([h.start.time,f]).nthWeek;return this._orient==="vertical"?[this._rect.x+c*this._sw+this._sw/2,this._rect.y+d*this._sh+this._sh/2]:[this._rect.x+d*this._sw+this._sw/2,this._rect.y+c*this._sh+this._sh/2]},pointToData:function(l){var u=this.pointToDate(l);return u&&u.time},dataToRect:function(l,u){var v=this.dataToPoint(l,u);return{contentShape:{x:v[0]-(this._sw-this._lineWidth)/2,y:v[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:v,tl:[v[0]-this._sw/2,v[1]-this._sh/2],tr:[v[0]+this._sw/2,v[1]-this._sh/2],br:[v[0]+this._sw/2,v[1]+this._sh/2],bl:[v[0]-this._sw/2,v[1]+this._sh/2]}},pointToDate:function(l){var u=Math.floor((l[0]-this._rect.x)/this._sw)+1,v=Math.floor((l[1]-this._rect.y)/this._sh)+1,h=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(v,u-1,h):this._getDateByWeeksAndDay(u,v-1,h)},convertToPixel:r.curry(o,"dataToPoint"),convertFromPixel:r.curry(o,"pointToData"),_initRangeOption:function(){var l=this._model.get("range"),u=l;if(r.isArray(u)&&u.length===1&&(u=u[0]),/^\d{4}$/.test(u)&&(l=[u+"-01-01",u+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(u)){var v=this.getDateInfo(u),h=v.date;h.setMonth(h.getMonth()+1);var f=this.getNextNDay(h,-1);l=[v.formatedDate,f.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(u)&&(l=[u,u]);var c=this._getRangeInfo(l);return c.start.time>c.end.time&&l.reverse(),l},_getRangeInfo:function(l){l=[this.getDateInfo(l[0]),this.getDateInfo(l[1])];var u;l[0].time>l[1].time&&(u=!0,l.reverse());var v=Math.floor(l[1].time/i)-Math.floor(l[0].time/i)+1,h=new Date(l[0].time),f=h.getDate(),c=l[1].date.getDate();h.setDate(f+v-1);var d=h.getDate();if(d!==c)for(var p=h.getTime()-l[1].time>0?1:-1;(d=h.getDate())!==c&&(h.getTime()-l[1].time)*p>0;)v-=p,h.setDate(d-p);var g=Math.floor((v+l[0].day+6)/7),m=u?-g+1:g-1;return u&&l.reverse(),{range:[l[0].formatedDate,l[1].formatedDate],start:l[0],end:l[1],allDay:v,weeks:g,nthWeek:m,fweek:l[0].day,lweek:l[1].day}},_getDateByWeeksAndDay:function(l,u,v){var h=this._getRangeInfo(v);if(l>h.weeks||l===0&&u<h.fweek||l===h.weeks&&u>h.lweek)return!1;var f=(l-1)*7-h.fweek+u,c=new Date(h.start.time);return c.setDate(h.start.d+f),this.getDateInfo(c)}},n.dimensions=n.prototype.dimensions,n.getDimensionsInfo=n.prototype.getDimensionsInfo,n.create=function(l,u){var v=[];return l.eachComponent("calendar",function(h){var f=new n(h);v.push(f),h.coordinateSystem=f}),l.eachSeries(function(h){h.get("coordinateSystem")==="calendar"&&(h.coordinateSystem=v[h.get("calendarIndex")||0])}),v};function o(l,u,v,h){var f=v.calendarModel,c=v.seriesModel,d=f?f.coordinateSystem:c?c.coordinateSystem:null;return d===this?d[l](h):null}a.register("calendar",n);var s=n;return yb=s,yb}var _b,G3;function D0e(){if(G3)return _b;G3=1;var r=ie(),t=Lr(),e=Ut(),a=e.getLayoutParams,i=e.sizeCalculable,n=e.mergeLayoutParam,o=t.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(u,v,h,f){var c=a(u);o.superApply(this,"init",arguments),s(u,c)},mergeOption:function(u,v){o.superApply(this,"mergeOption",arguments),s(this.option,u)}});function s(u,v){var h=u.cellSize;r.isArray(h)?h.length===1&&(h[1]=h[0]):h=u.cellSize=[h,h];var f=r.map([0,1],function(c){return i(v,c)&&(h[c]="auto"),h[c]!=null&&h[c]!=="auto"});n(u,v,{type:"box",ignoreSize:f})}var l=o;return _b=l,_b}var xb,F3;function L0e(){if(F3)return xb;F3=1;var r=Pe(),t=ie(),e=qe(),a=Yt(),i=st(),n={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},o={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},s=r.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(l,u,v){var h=this.group;h.removeAll();var f=l.coordinateSystem,c=f.getRangeInfo(),d=f.getOrient();this._renderDayRect(l,c,h),this._renderLines(l,c,d,h),this._renderYearText(l,c,d,h),this._renderMonthText(l,d,h),this._renderWeekText(l,c,d,h)},_renderDayRect:function(l,u,v){for(var h=l.coordinateSystem,f=l.getModel("itemStyle").getItemStyle(),c=h.getCellWidth(),d=h.getCellHeight(),p=u.start.time;p<=u.end.time;p=h.getNextNDay(p,1).time){var g=h.dataToRect([p],!1).tl,m=new e.Rect({shape:{x:g[0],y:g[1],width:c,height:d},cursor:"default",style:f});v.add(m)}},_renderLines:function(l,u,v,h){var f=this,c=l.coordinateSystem,d=l.getModel("splitLine.lineStyle").getLineStyle(),p=l.get("splitLine.show"),g=d.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var m=u.start,y=0;m.time<=u.end.time;y++){x(m.formatedDate),y===0&&(m=c.getDateInfo(u.start.y+"-"+u.start.m));var _=m.date;_.setMonth(_.getMonth()+1),m=c.getDateInfo(_)}x(c.getNextNDay(u.end.time,1).formatedDate);function x(S){f._firstDayOfMonth.push(c.getDateInfo(S)),f._firstDayPoints.push(c.dataToRect([S],!1).tl);var b=f._getLinePointsOfOneWeek(l,S,v);f._tlpoints.push(b[0]),f._blpoints.push(b[b.length-1]),p&&f._drawSplitline(b,d,h)}p&&this._drawSplitline(f._getEdgesPoints(f._tlpoints,g,v),d,h),p&&this._drawSplitline(f._getEdgesPoints(f._blpoints,g,v),d,h)},_getEdgesPoints:function(l,u,v){var h=[l[0].slice(),l[l.length-1].slice()],f=v==="horizontal"?0:1;return h[0][f]=h[0][f]-u/2,h[1][f]=h[1][f]+u/2,h},_drawSplitline:function(l,u,v){var h=new e.Polyline({z2:20,shape:{points:l},style:u});v.add(h)},_getLinePointsOfOneWeek:function(l,u,v){var h=l.coordinateSystem;u=h.getDateInfo(u);for(var f=[],c=0;c<7;c++){var d=h.getNextNDay(u.time,c),p=h.dataToRect([d.time],!1);f[2*d.day]=p.tl,f[2*d.day+1]=p[v==="horizontal"?"bl":"tr"]}return f},_formatterLabel:function(l,u){return typeof l=="string"&&l?a.formatTplSimple(l,u):typeof l=="function"?l(u):u.nameMap},_yearTextPositionControl:function(l,u,v,h,f){u=u.slice();var c=["center","bottom"];h==="bottom"?(u[1]+=f,c=["center","top"]):h==="left"?u[0]-=f:h==="right"?(u[0]+=f,c=["center","top"]):u[1]-=f;var d=0;return(h==="left"||h==="right")&&(d=Math.PI/2),{rotation:d,position:u,style:{textAlign:c[0],textVerticalAlign:c[1]}}},_renderYearText:function(l,u,v,h){var f=l.getModel("yearLabel");if(f.get("show")){var c=f.get("margin"),d=f.get("position");d||(d=v!=="horizontal"?"top":"left");var p=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],g=(p[0][0]+p[1][0])/2,m=(p[0][1]+p[1][1])/2,y=v==="horizontal"?0:1,_={top:[g,p[y][1]],bottom:[g,p[1-y][1]],left:[p[1-y][0],m],right:[p[y][0],m]},x=u.start.y;+u.end.y>+u.start.y&&(x=x+"-"+u.end.y);var S=f.get("formatter"),b={start:u.start.y,end:u.end.y,nameMap:x},w=this._formatterLabel(S,b),A=new e.Text({z2:30});e.setTextStyle(A.style,f,{text:w}),A.attr(this._yearTextPositionControl(A,_[d],v,d,c)),h.add(A)}},_monthTextPositionControl:function(l,u,v,h,f){var c="left",d="top",p=l[0],g=l[1];return v==="horizontal"?(g=g+f,u&&(c="center"),h==="start"&&(d="bottom")):(p=p+f,u&&(d="middle"),h==="start"&&(c="right")),{x:p,y:g,textAlign:c,textVerticalAlign:d}},_renderMonthText:function(l,u,v){var h=l.getModel("monthLabel");if(h.get("show")){var f=h.get("nameMap"),c=h.get("margin"),d=h.get("position"),p=h.get("align"),g=[this._tlpoints,this._blpoints];t.isString(f)&&(f=n[f.toUpperCase()]||[]);var m=d==="start"?0:1,y=u==="horizontal"?0:1;c=d==="start"?-c:c;for(var _=p==="center",x=0;x<g[m].length-1;x++){var S=g[m][x].slice(),b=this._firstDayOfMonth[x];if(_){var w=this._firstDayPoints[x];S[y]=(w[y]+g[0][x+1][y])/2}var A=h.get("formatter"),T=f[+b.m-1],C={yyyy:b.y,yy:(b.y+"").slice(2),MM:b.m,M:+b.m,nameMap:T},M=this._formatterLabel(A,C),L=new e.Text({z2:30});t.extend(e.setTextStyle(L.style,h,{text:M}),this._monthTextPositionControl(S,_,u,d,c)),v.add(L)}}},_weekTextPositionControl:function(l,u,v,h,f){var c="center",d="middle",p=l[0],g=l[1],m=v==="start";return u==="horizontal"?(p=p+h+(m?1:-1)*f[0]/2,c=m?"right":"left"):(g=g+h+(m?1:-1)*f[1]/2,d=m?"bottom":"top"),{x:p,y:g,textAlign:c,textVerticalAlign:d}},_renderWeekText:function(l,u,v,h){var f=l.getModel("dayLabel");if(f.get("show")){var c=l.coordinateSystem,d=f.get("position"),p=f.get("nameMap"),g=f.get("margin"),m=c.getFirstDayOfWeek();t.isString(p)&&(p=o[p.toUpperCase()]||[]);var y=c.getNextNDay(u.end.time,7-u.lweek).time,_=[c.getCellWidth(),c.getCellHeight()];g=i.parsePercent(g,_[v==="horizontal"?0:1]),d==="start"&&(y=c.getNextNDay(u.start.time,-(7+u.fweek)).time,g=-g);for(var x=0;x<7;x++){var S=c.getNextNDay(y,x),b=c.dataToRect([S.time],!1).center,w=x;w=Math.abs((x+m)%7);var A=new e.Text({z2:30});t.extend(e.setTextStyle(A.style,f,{text:p[w]}),this._weekTextPositionControl(b,v,d,g,_)),h.add(A)}}}});return xb=s,xb}var H3;function I0e(){return H3||(H3=1,M0e(),D0e(),L0e()),B3}var q3={},W3;function P0e(){if(W3)return q3;W3=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=_t(),i=qe(),n=Ut(),o=st(),s=o.parsePercent,l={path:null,compoundPath:null,group:i.Group,image:i.Image,text:i.Text};t.registerPreprocessor(function(y){var _=y.graphic;e.isArray(_)?!_[0]||!_[0].elements?y.graphic=[{elements:_}]:y.graphic=[y.graphic[0]]:_&&!_.elements&&(y.graphic=[{elements:[_]}])});var u=t.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(y){var _=this.option.elements;this.option.elements=null,u.superApply(this,"mergeOption",arguments),this.option.elements=_},optionUpdated:function(y,_){var x=this.option,S=(_?x:y).elements,b=x.elements=_?[]:x.elements,w=[];this._flatten(S,w);var A=a.mappingToExists(b,w);a.makeIdAndName(A);var T=this._elOptionsToUpdate=[];e.each(A,function(M,L){var D=M.option;D&&(T.push(D),d(M,D),p(b,L,D),g(b[L],D))},this);for(var C=b.length-1;C>=0;C--)b[C]==null?b.splice(C,1):delete b[C].$action},_flatten:function(y,_,x){e.each(y,function(S){if(S){x&&(S.parentOption=x),_.push(S);var b=S.children;S.type==="group"&&b&&this._flatten(b,_,S),delete S.children}},this)},useElOptionsToUpdate:function(){var y=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,y}});t.extendComponentView({type:"graphic",init:function(y,_){this._elMap=e.createHashMap(),this._lastGraphicModel},render:function(y,_,x){y!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=y,this._updateElements(y),this._relocate(y,x)},_updateElements:function(y){var _=y.useElOptionsToUpdate();if(_){var x=this._elMap,S=this.group;e.each(_,function(b){var w=b.$action,A=b.id,T=x.get(A),C=b.parentId,M=C!=null?x.get(C):S,L=b.style;b.type==="text"&&L&&(b.hv&&b.hv[1]&&(L.textVerticalAlign=L.textBaseline=null),!L.hasOwnProperty("textFill")&&L.fill&&(L.textFill=L.fill),!L.hasOwnProperty("textStroke")&&L.stroke&&(L.textStroke=L.stroke));var D=f(b);!w||w==="merge"?T?T.attr(D):v(A,M,D,x):w==="replace"?(h(T,x),v(A,M,D,x)):w==="remove"&&h(T,x);var P=x.get(A);P&&(P.__ecGraphicWidthOption=b.width,P.__ecGraphicHeightOption=b.height,m(P,y))})}},_relocate:function(y,_){for(var x=y.option.elements,S=this.group,b=this._elMap,w=_.getWidth(),A=_.getHeight(),T=0;T<x.length;T++){var C=x[T],M=b.get(C.id);if(!(!M||!M.isGroup)){var L=M.parent,D=L===S;M.__ecGraphicWidth=s(M.__ecGraphicWidthOption,D?w:L.__ecGraphicWidth)||0,M.__ecGraphicHeight=s(M.__ecGraphicHeightOption,D?A:L.__ecGraphicHeight)||0}}for(var T=x.length-1;T>=0;T--){var C=x[T],M=b.get(C.id);if(M){var L=M.parent,P=L===S?{width:w,height:A}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};n.positionElement(M,C,P,null,{hv:C.hv,boundingMode:C.bounding})}}},_clear:function(){var y=this._elMap;y.each(function(_){h(_,y)}),this._elMap=e.createHashMap()},dispose:function(){this._clear()}});function v(y,_,x,S){var b=x.type,w=l.hasOwnProperty(b)?l[b]:i.getShapeClass(b),A=new w(x);_.add(A),S.set(y,A),A.__ecGraphicId=y}function h(y,_){var x=y&&y.parent;x&&(y.type==="group"&&y.traverse(function(S){h(S,_)}),_.removeKey(y.__ecGraphicId),x.remove(y))}function f(y){return y=e.extend({},y),e.each(["id","parentId","$action","hv","bounding"].concat(n.LOCATION_PARAMS),function(_){delete y[_]}),y}function c(y,_){var x;return e.each(_,function(S){y[S]!=null&&y[S]!=="auto"&&(x=!0)}),x}function d(y,_){var x=y.exist;if(_.id=y.keyInfo.id,!_.type&&x&&(_.type=x.type),_.parentId==null){var S=_.parentOption;S?_.parentId=S.id:x&&(_.parentId=x.parentId)}_.parentOption=null}function p(y,_,x){var S=e.extend({},x),b=y[_],w=x.$action||"merge";w==="merge"?b?(e.merge(b,S,!0),n.mergeLayoutParam(b,S,{ignoreSize:!0}),n.copyLayoutParams(x,b)):y[_]=S:w==="replace"?y[_]=S:w==="remove"&&b&&(y[_]=null)}function g(y,_){y&&(y.hv=_.hv=[c(_,["left","right"]),c(_,["top","bottom"])],y.type==="group"&&(y.width==null&&(y.width=_.width=0),y.height==null&&(y.height=_.height=0)))}function m(y,_,x){var S=y.eventData;!y.silent&&!y.ignore&&!S&&(S=y.eventData={componentType:"graphic",componentIndex:_.componentIndex,name:y.name}),S&&(S.info=y.info)}return q3}var U3={},zc={},$3;function wo(){if($3)return zc;$3=1;var r={};function t(a,i){r[a]=i}function e(a){return r[a]}return zc.register=t,zc.get=e,zc}var Sb,Y3;function R0e(){if(Y3)return Sb;Y3=1;var r=Pe(),t=ie(),e=wo(),a=r.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),t.each(this.option.feature,function(n,o){var s=e.get(o);s&&t.merge(n,s.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,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}}}),i=a;return Sb=i,Sb}var Bc={},Z3;function R$(){if(Z3)return Bc;Z3=1;var r=Ut(),t=r.getLayoutRect,e=r.box,a=r.positionElement,i=Yt(),n=qe();function o(l,u,v){var h=u.getBoxLayoutParams(),f=u.get("padding"),c={width:v.getWidth(),height:v.getHeight()},d=t(h,c,f);e(u.get("orient"),l,u.get("itemGap"),d.width,d.height),a(l,h,c,f)}function s(f,u){var v=i.normalizeCssArray(u.get("padding")),h=u.getItemStyle(["color","opacity"]);h.fill=u.get("backgroundColor");var f=new n.Rect({shape:{x:f.x-v[3],y:f.y-v[0],width:f.width+v[1]+v[3],height:f.height+v[0]+v[2],r:u.get("borderRadius")},style:h,silent:!0,z2:-1});return f}return Bc.layout=o,Bc.makeBackground=s,Bc}var bb,X3;function E0e(){if(X3)return bb;X3=1;var r=Pe(),t=ie(),e=Da(),a=wo(),i=qe(),n=gr(),o=Zs(),s=R$(),l=r.extendComponentView({type:"toolbox",render:function(v,h,f,c){var d=this.group;if(d.removeAll(),!v.get("show"))return;var p=+v.get("itemSize"),g=v.get("feature")||{},m=this._features||(this._features={}),y=[];t.each(g,function(S,b){y.push(b)}),new o(this._featureNames||[],y).add(_).update(_).remove(t.curry(_,null)).execute(),this._featureNames=y;function _(S,b){var w=y[S],A=y[b],T=g[w],C=new n(T,v,v.ecModel),M;if(c&&c.newTitle!=null&&c.featureName===w&&(T.title=c.newTitle),w&&!A){if(u(w))M={model:C,onclick:C.option.onclick,featureName:w};else{var L=a.get(w);if(!L)return;M=new L(C,h,f)}m[w]=M}else{if(M=m[A],!M)return;M.model=C,M.ecModel=h,M.api=f}if(!w&&A){M.dispose&&M.dispose(h,f);return}if(!C.get("show")||M.unusable){M.remove&&M.remove(h,f);return}x(C,M,w),C.setIconStatus=function(D,P){var I=this.option,R=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[D]=P,R[D]&&R[D].trigger(P)},M.render&&M.render(C,h,f,c)}function x(S,b,w){var A=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),C=b.getIcons?b.getIcons():S.get("icon"),M=S.get("title")||{};if(typeof C=="string"){var L=C,D=M;C={},M={},C[w]=L,M[w]=D}var P=S.iconPaths={};t.each(C,function(I,R){var E=i.createIcon(I,{},{x:-p/2,y:-p/2,width:p,height:p});E.setStyle(A.getItemStyle()),E.hoverStyle=T.getItemStyle(),E.setStyle({text:M[R],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var k=v.getModel("tooltip");k&&k.get("show")&&E.attr("tooltip",t.extend({content:M[R],formatter:k.get("formatter",!0)||function(){return M[R]},formatterParams:{componentType:"toolbox",name:R,title:M[R],$vars:["name","title"]},position:k.get("position",!0)||"bottom"},k.option)),i.setHoverStyle(E),v.get("showTitle")&&(E.__title=M[R],E.on("mouseover",function(){var B=T.getItemStyle(),F=v.get("orient")==="vertical"?v.get("right")==null?"right":"left":v.get("bottom")==null?"bottom":"top";E.setStyle({textFill:T.get("textFill")||B.fill||B.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||F})}).on("mouseout",function(){E.setStyle({textFill:null,textBackgroundColor:null})})),E.trigger(S.get("iconStatus."+R)||"normal"),d.add(E),E.on("click",t.bind(b.onclick,b,h,f,R)),P[R]=E})}s.layout(d,v,f),d.add(s.makeBackground(d.getBoundingRect(),v)),d.eachChild(function(S){var b=S.__title,w=S.hoverStyle;if(w&&b){var A=e.getBoundingRect(b,e.makeFont(w)),T=S.position[0]+d.position[0],C=S.position[1]+d.position[1]+p,M=!1;C+A.height>f.getHeight()&&(w.textPosition="top",M=!0);var L=M?-5-A.height:p+8;T+A.width/2>f.getWidth()?(w.textPosition=["100%",L],w.textAlign="right"):T-A.width/2<0&&(w.textPosition=[0,L],w.textAlign="left")}})},updateView:function(v,h,f,c){t.each(this._features,function(d){d.updateView&&d.updateView(d.model,h,f,c)})},remove:function(v,h){t.each(this._features,function(f){f.remove&&f.remove(v,h)}),this.group.removeAll()},dispose:function(v,h){t.each(this._features,function(f){f.dispose&&f.dispose(v,h)})}});function u(v){return v.indexOf("my")===0}return bb=l,bb}var wb,K3;function k0e(){if(K3)return wb;K3=1;var r=pr(),t=xo(),e=wo(),a=t.toolbox.saveAsImage;function i(s){this.model=s}i.defaultOption={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:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},i.prototype.unusable=!r.canvasSupported;var n=i.prototype;n.onclick=function(s,l){var u=this.model,v=u.get("name")||s.get("title.0.text")||"echarts",h=l.getZr().painter.getType()==="svg",f=h?"svg":u.get("type",!0)||"png",c=l.getConnectedDataURL({type:f,backgroundColor:u.get("backgroundColor",!0)||s.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if(typeof MouseEvent=="function"&&!r.browser.ie&&!r.browser.edge){var d=document.createElement("a");d.download=v+"."+f,d.target="_blank",d.href=c;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob){for(var g=atob(c.split(",")[1]),m=g.length,y=new Uint8Array(m);m--;)y[m]=g.charCodeAt(m);var _=new Blob([y]);window.navigator.msSaveOrOpenBlob(_,v+"."+f)}else{var x=u.get("lang"),S='<body style="margin:0;"><img src="'+c+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',b=window.open();b.document.write(S)}},e.register("saveAsImage",i);var o=i;return wb=o,wb}var Tb,Q3;function O0e(){if(Q3)return Tb;Q3=1;var r=Pe(),t=ie(),e=xo(),a=wo(),i=e.toolbox.magicType,n="__ec_magicType_stack__";function o(h){this.model=h}o.defaultOption={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.clone(i.title),option:{},seriesIndex:{}};var s=o.prototype;s.getIcons=function(){var h=this.model,f=h.get("icon"),c={};return t.each(h.get("type"),function(d){f[d]&&(c[d]=f[d])}),c};var l={line:function(h,f,c,d){if(h==="bar")return t.merge({id:f,type:"line",data:c.get("data"),stack:c.get("stack"),markPoint:c.get("markPoint"),markLine:c.get("markLine")},d.get("option.line")||{},!0)},bar:function(h,f,c,d){if(h==="line")return t.merge({id:f,type:"bar",data:c.get("data"),stack:c.get("stack"),markPoint:c.get("markPoint"),markLine:c.get("markLine")},d.get("option.bar")||{},!0)},stack:function(h,f,c,d){var p=c.get("stack")===n;if(h==="line"||h==="bar")return d.setIconStatus("stack",p?"normal":"emphasis"),t.merge({id:f,stack:p?"":n},d.get("option.stack")||{},!0)}},u=[["line","bar"],["stack"]];s.onclick=function(h,f,c){var d=this.model,p=d.get("seriesIndex."+c);if(l[c]){var g={series:[]},m=function(x){var S=x.subType,b=x.id,w=l[c](S,b,x,d);w&&(t.defaults(w,x.option),g.series.push(w));var A=x.coordinateSystem;if(A&&A.type==="cartesian2d"&&(c==="line"||c==="bar")){var T=A.getAxesByScale("ordinal")[0];if(T){var C=T.dim,M=C+"Axis",L=h.queryComponents({mainType:M,index:x.get(name+"Index"),id:x.get(name+"Id")})[0],D=L.componentIndex;g[M]=g[M]||[];for(var P=0;P<=D;P++)g[M][D]=g[M][D]||{};g[M][D].boundaryGap=c==="bar"}}};t.each(u,function(x){t.indexOf(x,c)>=0&&t.each(x,function(S){d.setIconStatus(S,"normal")})}),d.setIconStatus(c,"emphasis"),h.eachComponent({mainType:"series",query:p==null?null:{seriesIndex:p}},m);var y;if(c==="stack"){var _=g.series&&g.series[0]&&g.series[0].stack===n;y=_?t.merge({stack:i.title.tiled},i.title):t.clone(i.title)}f.dispatchAction({type:"changeMagicType",currentType:c,newOption:g,newTitle:y,featureName:"magicType"})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(h,f){f.mergeOption(h.newOption)}),a.register("magicType",o);var v=o;return Tb=v,Tb}var Ab,j3;function N0e(){if(j3)return Ab;j3=1;var r=Pe(),t=ie(),e=Ji(),a=xo(),i=wo(),n=a.toolbox.dataView,o=new Array(60).join("-"),s=" ";function l(S){var b={},w=[],A=[];return S.eachRawSeries(function(T){var C=T.coordinateSystem;if(C&&(C.type==="cartesian2d"||C.type==="polar")){var M=C.getBaseAxis();if(M.type==="category"){var L=M.dim+"_"+M.index;b[L]||(b[L]={categoryAxis:M,valueAxis:C.getOtherAxis(M),series:[]},A.push({axisDim:M.dim,axisIndex:M.index})),b[L].series.push(T)}else w.push(T)}else w.push(T)}),{seriesGroupByCategoryAxis:b,other:w,meta:A}}function u(S){var b=[];return t.each(S,function(w,A){var T=w.categoryAxis,C=w.valueAxis,M=C.dim,L=[" "].concat(t.map(w.series,function(k){return k.name})),D=[T.model.getCategories()];t.each(w.series,function(k){var B=k.getRawData();D.push(k.getRawData().mapArray(B.mapDimension(M),function(F){return F}))});for(var P=[L.join(s)],I=0;I<D[0].length;I++){for(var R=[],E=0;E<D.length;E++)R.push(D[E][I]);P.push(R.join(s))}b.push(P.join("\n"))}),b.join("\n\n"+o+"\n\n")}function v(S){return t.map(S,function(b){var w=b.getRawData(),A=[b.name],T=[];return w.each(w.dimensions,function(){for(var C=arguments.length,M=arguments[C-1],L=w.getName(M),D=0;D<C-1;D++)T[D]=arguments[D];A.push((L?L+s:"")+T.join(s))}),A.join("\n")}).join("\n\n"+o+"\n\n")}function h(S){var b=l(S);return{value:t.filter([u(b.seriesGroupByCategoryAxis),v(b.other)],function(w){return w.replace(/[\n\t\s]/g,"")}).join("\n\n"+o+"\n\n"),meta:b.meta}}function f(S){return S.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function c(S){var b=S.slice(0,S.indexOf("\n"));if(b.indexOf(s)>=0)return!0}var d=new RegExp("["+s+"]+","g");function p(S){for(var b=S.split(/\n+/g),w=f(b.shift()).split(d),A=[],T=t.map(w,function(D){return{name:D,data:[]}}),C=0;C<b.length;C++){var M=f(b[C]).split(d);A.push(M.shift());for(var L=0;L<M.length;L++)T[L]&&(T[L].data[C]=M[L])}return{series:T,categories:A}}function g(S){for(var b=S.split(/\n+/g),w=f(b.shift()),A=[],T=0;T<b.length;T++){var C=f(b[T]);if(C){var M=C.split(d),L="",D,P=!1;isNaN(M[0])?(P=!0,L=M[0],M=M.slice(1),A[T]={name:L,value:[]},D=A[T].value):D=A[T]=[];for(var I=0;I<M.length;I++)D.push(+M[I]);D.length===1&&(P?A[T].value=D[0]:A[T]=D[0])}}return{name:w,data:A}}function m(S,b){var w=S.split(new RegExp("\n*"+o+"\n*","g")),A={series:[]};return t.each(w,function(T,C){if(c(T)){var M=p(T),L=b[C],D=L.axisDim+"Axis";L&&(A[D]=A[D]||[],A[D][L.axisIndex]={data:M.categories},A.series=A.series.concat(M.series))}else{var M=g(T);A.series.push(M)}}),A}function y(S){this._dom=null,this.model=S}y.defaultOption={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.clone(n.title),lang:t.clone(n.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},y.prototype.onclick=function(S,b){var w=b.getDom(),A=this.model;this._dom&&w.removeChild(this._dom);var T=document.createElement("div");T.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",T.style.backgroundColor=A.get("backgroundColor")||"#fff";var C=document.createElement("h4"),M=A.get("lang")||[];C.innerHTML=M[0]||A.get("title"),C.style.cssText="margin: 10px 20px;",C.style.color=A.get("textColor");var L=document.createElement("div"),D=document.createElement("textarea");L.style.cssText="display:block;width:100%;overflow:auto;";var P=A.get("optionToContent"),I=A.get("contentToOption"),R=h(S);if(typeof P=="function"){var E=P(b.getOption());typeof E=="string"?L.innerHTML=E:t.isDom(E)&&L.appendChild(E)}else L.appendChild(D),D.readOnly=A.get("readOnly"),D.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",D.style.color=A.get("textColor"),D.style.borderColor=A.get("textareaBorderColor"),D.style.backgroundColor=A.get("textareaColor"),D.value=R.value;var k=R.meta,B=document.createElement("div");B.style.cssText="position:absolute;bottom:0;left:0;right:0;";var F="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",V=document.createElement("div"),N=document.createElement("div");F+=";background-color:"+A.get("buttonColor"),F+=";color:"+A.get("buttonTextColor");var O=this;function z(){w.removeChild(T),O._dom=null}e.addEventListener(V,"click",z),e.addEventListener(N,"click",function(){var G;try{typeof I=="function"?G=I(L,b.getOption()):G=m(D.value,k)}catch(q){throw z(),new Error("Data view format error "+q)}G&&b.dispatchAction({type:"changeDataView",newOption:G}),z()}),V.innerHTML=M[1],N.innerHTML=M[2],N.style.cssText=F,V.style.cssText=F,!A.get("readOnly")&&B.appendChild(N),B.appendChild(V),T.appendChild(C),T.appendChild(L),T.appendChild(B),L.style.height=w.clientHeight-80+"px",w.appendChild(T),this._dom=T},y.prototype.remove=function(S,b){this._dom&&b.getDom().removeChild(this._dom)},y.prototype.dispose=function(S,b){this.remove(S,b)};function _(S,b){return t.map(S,function(w,A){var T=b&&b[A];if(t.isObject(T)&&!t.isArray(T)){var C=t.isObject(w)&&!t.isArray(w);C||(w={value:w});var M=T.name!=null&&w.name==null;return w=t.defaults(w,T),M&&delete w.name,w}else return w})}i.register("dataView",y),r.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(S,b){var w=[];t.each(S.newOption.series,function(A){var T=b.getSeriesByName(A.name)[0];if(!T)w.push(t.extend({type:"scatter"},A));else{var C=T.get("data");w.push({name:A.name,data:_(A.data,C)})}}),b.mergeOption(t.defaults({series:w},S.newOption))});var x=y;return Ab=x,Ab}var Cb,J3;function E$(){if(J3)return Cb;J3=1;var r=It();r.__DEV__;var t=ie(),e=qe(),a=_t(),i=S$(),n=t.each,o=t.indexOf,s=t.curry,l=["dataToPoint","pointToData"],u=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function v(A,T,C){var M=this._targetInfoList=[],L={},D=c(T,A);n(d,function(P,I){(!C||!C.include||o(C.include,I)>=0)&&P(D,M,L)})}var h=v.prototype;h.setOutputRanges=function(A,T){this.matchOutputRanges(A,T,function(C,M,L){if((C.coordRanges||(C.coordRanges=[])).push(M),!C.coordRange){C.coordRange=M;var D=m[C.brushType](0,L,M);C.__rangeOffset={offset:_[C.brushType](D.values,C.range,[1,1]),xyMinMax:D.xyMinMax}}})},h.matchOutputRanges=function(A,T,C){n(A,function(M){var L=this.findTargetInfo(M,T);L&&L!==!0&&t.each(L.coordSyses,function(D){var P=m[M.brushType](1,D,M.range);C(M,P.values,D,T)})},this)},h.setInputRanges=function(A,T){n(A,function(C){var M=this.findTargetInfo(C,T);if(C.range=C.range||[],M&&M!==!0){C.panelId=M.panelId;var L=m[C.brushType](0,M.coordSys,C.coordRange),D=C.__rangeOffset;C.range=D?_[C.brushType](L.values,D.offset,S(L.xyMinMax,D.xyMinMax)):L.values}},this)},h.makePanelOpts=function(A,T){return t.map(this._targetInfoList,function(C){var M=C.getPanelRect();return{panelId:C.panelId,defaultBrushType:T&&T(C),clipPath:i.makeRectPanelClipPath(M),isTargetByCursor:i.makeRectIsTargetByCursor(M,A,C.coordSysModel),getLinearBrushOtherExtent:i.makeLinearBrushOtherExtent(M)}})},h.controlSeries=function(A,T,C){var M=this.findTargetInfo(A,C);return M===!0||M&&o(M.coordSyses,T.coordinateSystem)>=0},h.findTargetInfo=function(A,T){for(var C=this._targetInfoList,M=c(T,A),L=0;L<C.length;L++){var D=C[L],P=A.panelId;if(P){if(D.panelId===P)return D}else for(var L=0;L<p.length;L++)if(p[L](M,D))return D}return!0};function f(A){return A[0]>A[1]&&A.reverse(),A}function c(A,T){return a.parseFinder(A,T,{includeMainTypes:u})}var d={grid:function(A,T){var C=A.xAxisModels,M=A.yAxisModels,L=A.gridModels,D=t.createHashMap(),P={},I={};!C&&!M&&!L||(n(C,function(R){var E=R.axis.grid.model;D.set(E.id,E),P[E.id]=!0}),n(M,function(R){var E=R.axis.grid.model;D.set(E.id,E),I[E.id]=!0}),n(L,function(R){D.set(R.id,R),P[R.id]=!0,I[R.id]=!0}),D.each(function(R){var E=R.coordinateSystem,k=[];n(E.getCartesians(),function(B,F){(o(C,B.getAxis("x").model)>=0||o(M,B.getAxis("y").model)>=0)&&k.push(B)}),T.push({panelId:"grid--"+R.id,gridModel:R,coordSysModel:R,coordSys:k[0],coordSyses:k,getPanelRect:g.grid,xAxisDeclared:P[R.id],yAxisDeclared:I[R.id]})}))},geo:function(A,T){n(A.geoModels,function(C){var M=C.coordinateSystem;T.push({panelId:"geo--"+C.id,geoModel:C,coordSysModel:C,coordSys:M,coordSyses:[M],getPanelRect:g.geo})})}},p=[function(A,T){var C=A.xAxisModel,M=A.yAxisModel,L=A.gridModel;return!L&&C&&(L=C.axis.grid.model),!L&&M&&(L=M.axis.grid.model),L&&L===T.gridModel},function(A,T){var C=A.geoModel;return C&&C===T.geoModel}],g={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var A=this.coordSys,T=A.getBoundingRect().clone();return T.applyTransform(e.getTransform(A)),T}},m={lineX:s(y,0),lineY:s(y,1),rect:function(A,T,C){var M=T[l[A]]([C[0][0],C[1][0]]),L=T[l[A]]([C[0][1],C[1][1]]),D=[f([M[0],L[0]]),f([M[1],L[1]])];return{values:D,xyMinMax:D}},polygon:function(A,T,C){var M=[[1/0,-1/0],[1/0,-1/0]],L=t.map(C,function(D){var P=T[l[A]](D);return M[0][0]=Math.min(M[0][0],P[0]),M[1][0]=Math.min(M[1][0],P[1]),M[0][1]=Math.max(M[0][1],P[0]),M[1][1]=Math.max(M[1][1],P[1]),P});return{values:L,xyMinMax:M}}};function y(A,T,C,M){var L=C.getAxis(["x","y"][A]),D=f(t.map([0,1],function(I){return T?L.coordToData(L.toLocalCoord(M[I])):L.toGlobalCoord(L.dataToCoord(M[I]))})),P=[];return P[A]=D,P[1-A]=[NaN,NaN],{values:D,xyMinMax:P}}var _={lineX:s(x,0),lineY:s(x,1),rect:function(A,T,C){return[[A[0][0]-C[0]*T[0][0],A[0][1]-C[0]*T[0][1]],[A[1][0]-C[1]*T[1][0],A[1][1]-C[1]*T[1][1]]]},polygon:function(A,T,C){return t.map(A,function(M,L){return[M[0]-C[0]*T[L][0],M[1]-C[1]*T[L][1]]})}};function x(A,T,C,M){return[T[0]-M[A]*C[0],T[1]-M[A]*C[1]]}function S(A,T){var C=b(A),M=b(T),L=[C[0]/M[0],C[1]/M[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function b(A){return A?[A[0][1]-A[0][0],A[1][1]-A[1][0]]:[NaN,NaN]}var w=v;return Cb=w,Cb}var Tl={},eF;function k$(){if(eF)return Tl;eF=1;var r=ie(),t=r.each,e="\0_ec_hist_store";function a(l,u){var v=s(l);t(u,function(h,f){for(var c=v.length-1;c>=0;c--){var d=v[c];if(d[f])break}if(c<0){var p=l.queryComponents({mainType:"dataZoom",subType:"select",id:f})[0];if(p){var g=p.getPercentRange();v[0][f]={dataZoomId:f,start:g[0],end:g[1]}}}}),v.push(u)}function i(l){var u=s(l),v=u[u.length-1];u.length>1&&u.pop();var h={};return t(v,function(f,c){for(var d=u.length-1;d>=0;d--){var f=u[d][c];if(f){h[c]=f;break}}}),h}function n(l){l[e]=null}function o(l){return s(l).length}function s(l){var u=l[e];return u||(u=l[e]=[{}]),u}return Tl.push=a,Tl.pop=i,Tl.clear=n,Tl.count=o,Tl}var tF={},rF={},aF;function xD(){if(aF)return rF;aF=1;var r=Lr();return r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}),rF}var Al={},iF;function SD(){if(iF)return Al;iF=1;var r=ie(),t=Yt(),e=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function i(l){return r.indexOf(a,l)>=0}function n(l,u){l=l.slice();var v=r.map(l,t.capitalFirst);u=(u||[]).slice();var h=r.map(u,t.capitalFirst);return function(f,c){r.each(l,function(d,p){for(var g={name:d,capital:v[p]},m=0;m<u.length;m++)g[u[m]]=d+h[m];f.call(c,g)})}}var o=n(e,["axisIndex","axis","index","id"]);function s(l,u,v){return function(d){var p={nodes:[],records:{}};if(u(function(y){p.records[y.name]={}}),!d)return p;c(d,p);var g;do g=!1,l(m);while(g);function m(y){!h(y,p)&&f(y,p)&&(c(y,p),g=!0)}return p};function h(d,p){return r.indexOf(p.nodes,d)>=0}function f(d,p){var g=!1;return u(function(m){r.each(v(d,m)||[],function(y){p.records[m.name][y]&&(g=!0)})}),g}function c(d,p){p.nodes.push(d),u(function(g){r.each(v(d,g)||[],function(m){p.records[g.name][m]=!0})})}}return Al.isCoordSupported=i,Al.createNameEach=n,Al.eachAxisDim=o,Al.createLinkedNodesFinder=s,Al}var Mb,nF;function z0e(){if(nF)return Mb;nF=1;var r=ie(),t=st(),e=SD(),a=Iu(),i=r.each,n=t.asc,o=function(f,c,d,p){this._dimName=f,this._axisIndex=c,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=p,this._dataZoomModel=d};o.prototype={constructor:o,hostedBy:function(f){return this._dataZoomModel===f},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var f=[],c=this.ecModel;return c.eachSeries(function(d){if(e.isCoordSupported(d.get("coordinateSystem"))){var p=this._dimName,g=c.queryComponents({mainType:p+"Axis",index:d.get(p+"AxisIndex"),id:d.get(p+"AxisId")})[0];this._axisIndex===(g&&g.componentIndex)&&f.push(d)}},this),f},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var f=this._dimName,c=this.ecModel,d=this.getAxisModel(),p=f==="x"||f==="y",g,m;p?(m="gridIndex",g=f==="x"?"y":"x"):(m="polarIndex",g=f==="angle"?"radius":"angle");var y;return c.eachComponent(g+"Axis",function(_){(_.get(m)||0)===(d.get(m)||0)&&(y=_)}),y},getMinMaxSpan:function(){return r.clone(this._minMaxSpan)},calculateDataWindow:function(f){var c=this._dataExtent,d=this.getAxisModel(),p=d.axis.scale,g=this._dataZoomModel.getRangePropMode(),m=[0,100],y=[],_=[],x;i(["start","end"],function(w,A){var T=f[w],C=f[w+"Value"];g[A]==="percent"?(T==null&&(T=m[A]),C=p.parse(t.linearMap(T,m,c))):(x=!0,C=C==null?c[A]:p.parse(C),T=t.linearMap(C,c,m)),_[A]=C,y[A]=T}),n(_),n(y);var S=this._minMaxSpan;x?b(_,y,c,m,!1):b(y,_,m,c,!0);function b(w,A,T,C,M){var L=M?"Span":"ValueSpan";a(0,w,T,"all",S["min"+L],S["max"+L]);for(var D=0;D<2;D++)A[D]=t.linearMap(w[D],T,C,!0),M&&(A[D]=p.parse(A[D]))}return{valueWindow:_,percentWindow:y}},reset:function(f){if(f===this._dataZoomModel){var c=this.getTargetSeriesModels();this._dataExtent=s(this,this._dimName,c),v(this);var d=this.calculateDataWindow(f.settledOption);this._valueWindow=d.valueWindow,this._percentWindow=d.percentWindow,u(this)}},restore:function(f){f===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,u(this,!0))},filterData:function(f,c){if(f!==this._dataZoomModel)return;var d=this._dimName,p=this.getTargetSeriesModels(),g=f.get("filterMode"),m=this._valueWindow;if(g==="none")return;i(p,function(_){var x=_.getData(),S=x.mapDimension(d,!0);S.length&&(g==="weakFilter"?x.filterSelf(function(b){for(var w,A,T,C=0;C<S.length;C++){var M=x.get(S[C],b),L=!isNaN(M),D=M<m[0],P=M>m[1];if(L&&!D&&!P)return!0;L&&(T=!0),D&&(w=!0),P&&(A=!0)}return T&&w&&A}):i(S,function(b){if(g==="empty")_.setData(x=x.map(b,function(A){return y(A)?A:NaN}));else{var w={};w[b]=m,x.selectRange(w)}}),i(S,function(b){x.setApproximateExtent(m,b)}))});function y(_){return _>=m[0]&&_<=m[1]}}};function s(f,c,d){var p=[1/0,-1/0];return i(d,function(g){var m=g.getData();m&&i(m.mapDimension(c,!0),function(y){var _=m.getApproximateExtent(y);_[0]<p[0]&&(p[0]=_[0]),_[1]>p[1]&&(p[1]=_[1])})}),p[1]<p[0]&&(p=[NaN,NaN]),l(f,p),p}function l(f,c){var d=f.getAxisModel(),p=d.getMin(!0),g=d.get("type")==="category",m=g&&d.getCategories().length;p!=null&&p!=="dataMin"&&typeof p!="function"?c[0]=p:g&&(c[0]=m>0?0:NaN);var y=d.getMax(!0);return y!=null&&y!=="dataMax"&&typeof y!="function"?c[1]=y:g&&(c[1]=m>0?m-1:NaN),d.get("scale",!0)||(c[0]>0&&(c[0]=0),c[1]<0&&(c[1]=0)),c}function u(f,c){var d=f.getAxisModel(),p=f._percentWindow,g=f._valueWindow;if(p){var m=t.getPixelPrecision(g,[0,500]);m=Math.min(m,20);var y=c||p[0]===0&&p[1]===100;d.setRange(y?null:+g[0].toFixed(m),y?null:+g[1].toFixed(m))}}function v(f){var c=f._minMaxSpan={},d=f._dataZoomModel,p=f._dataExtent;i(["min","max"],function(g){var m=d.get(g+"Span"),y=d.get(g+"ValueSpan");y!=null&&(y=f.getAxisModel().axis.scale.parse(y)),y!=null?m=t.linearMap(p[0]+y,p,[0,100],!0):m!=null&&(y=t.linearMap(m,[0,100],p,!0)-p[0]),c[g+"Span"]=m,c[g+"ValueSpan"]=y})}var h=o;return Mb=h,Mb}var Db,oF;function Pu(){if(oF)return Db;oF=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=pr(),i=_t(),n=SD(),o=z0e(),s=e.each,l=n.eachAxisDim,u=t.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(c,d,p){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var g=v(c);this.settledOption=g,this.mergeDefaultAndTheme(c,p),this.doInit(g)},mergeOption:function(c){var d=v(c);e.merge(this.option,c,!0),e.merge(this.settledOption,d,!0),this.doInit(d)},doInit:function(c){var d=this.option;a.canvasSupported||(d.realtime=!1),this._setDefaultThrottle(c),h(this,c);var p=this.settledOption;s([["start","startValue"],["end","endValue"]],function(g,m){this._rangePropMode[m]==="value"&&(d[g[0]]=p[g[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var c=this._axisProxies;this.eachTargetAxis(function(d,p,g,m){var y=this.dependentModels[d.axis][p],_=y.__dzAxisProxy||(y.__dzAxisProxy=new o(d.name,p,this,m));c[d.name+"_"+p]=_},this)},_resetTarget:function(){var c=this.option,d=this._judgeAutoMode();l(function(p){var g=p.axisIndex;c[g]=i.normalizeToArray(c[g])},this),d==="axisIndex"?this._autoSetAxisIndex():d==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var c=this.option,d=!1;l(function(g){c[g.axisIndex]!=null&&(d=!0)},this);var p=c.orient;if(p==null&&d)return"orient";if(!d)return p==null&&(c.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var c=!0,d=this.get("orient",!0),p=this.option,g=this.dependentModels;if(c){var m=d==="vertical"?"y":"x";g[m+"Axis"].length?(p[m+"AxisIndex"]=[0],c=!1):s(g.singleAxis,function(y){c&&y.get("orient",!0)===d&&(p.singleAxisIndex=[y.componentIndex],c=!1)})}c&&l(function(y){if(c){var _=[],x=this.dependentModels[y.axis];if(x.length&&!_.length)for(var S=0,b=x.length;S<b;S++)x[S].get("type")==="category"&&_.push(S);p[y.axisIndex]=_,_.length&&(c=!1)}},this),c&&this.ecModel.eachSeries(function(y){this._isSeriesHasAllAxesTypeOf(y,"value")&&l(function(_){var x=p[_.axisIndex],S=y.get(_.axisIndex),b=y.get(_.axisId),w=y.ecModel.queryComponents({mainType:_.axis,index:S,id:b})[0];S=w.componentIndex,e.indexOf(x,S)<0&&x.push(S)})},this)},_autoSetOrient:function(){var c;this.eachTargetAxis(function(d){!c&&(c=d.name)},this),this.option.orient=c==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(c,d){var p=!0;return l(function(g){var m=c.get(g.axisIndex),y=this.dependentModels[g.axis][m];(!y||y.get("type")!==d)&&(p=!1)},this),p},_setDefaultThrottle:function(c){if(c.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var d=this.ecModel.option;this.option.throttle=d.animation&&d.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var c;return l(function(d){if(c==null){var p=this.get(d.axisIndex);p.length&&(c=this.dependentModels[d.axis][p[0]])}},this),c},eachTargetAxis:function(c,d){var p=this.ecModel;l(function(g){s(this.get(g.axisIndex),function(m){c.call(d,g,m,this,p)},this)},this)},getAxisProxy:function(c,d){return this._axisProxies[c+"_"+d]},getAxisModel:function(c,d){var p=this.getAxisProxy(c,d);return p&&p.getAxisModel()},setRawRange:function(c){var d=this.option,p=this.settledOption;s([["start","startValue"],["end","endValue"]],function(g){(c[g[0]]!=null||c[g[1]]!=null)&&(d[g[0]]=p[g[0]]=c[g[0]],d[g[1]]=p[g[1]]=c[g[1]])},this),h(this,c)},setCalculatedRange:function(c){var d=this.option;s(["start","startValue","end","endValue"],function(p){d[p]=c[p]})},getPercentRange:function(){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataPercentWindow()},getValueRange:function(c,d){if(c==null&&d==null){var p=this.findRepresentativeAxisProxy();if(p)return p.getDataValueWindow()}else return this.getAxisProxy(c,d).getDataValueWindow()},findRepresentativeAxisProxy:function(c){if(c)return c.__dzAxisProxy;var d=this._axisProxies;for(var p in d)if(d.hasOwnProperty(p)&&d[p].hostedBy(this))return d[p];for(var p in d)if(d.hasOwnProperty(p)&&!d[p].hostedBy(this))return d[p]},getRangePropMode:function(){return this._rangePropMode.slice()}});function v(c){var d={};return s(["start","end","startValue","endValue","throttle"],function(p){c.hasOwnProperty(p)&&(d[p]=c[p])}),d}function h(c,d){var p=c._rangePropMode,g=c.get("rangeMode");s([["start","startValue"],["end","endValue"]],function(m,y){var _=d[m[0]]!=null,x=d[m[1]]!=null;_&&!x?p[y]="percent":!_&&x?p[y]="value":g?p[y]=g[y]:_&&(p[y]="percent")})}var f=u;return Db=f,Db}var Lb,sF;function Ru(){if(sF)return Lb;sF=1;var r=fg(),t=r.extend({type:"dataZoom",render:function(e,a,i,n){this.dataZoomModel=e,this.ecModel=a,this.api=i},getTargetCoordInfo:function(){var e=this.dataZoomModel,a=this.ecModel,i={};e.eachTargetAxis(function(o,s){var l=a.getComponent(o.axis,s);if(l){var u=l.getCoordSysModel();u&&n(u,l,i[u.mainType]||(i[u.mainType]=[]),u.componentIndex)}},this);function n(o,s,l,u){for(var v,h=0;h<l.length;h++)if(l[h].model===o){v=l[h];break}v||l.push(v={model:o,axisModels:[],coordIndex:u}),v.axisModels.push(s)}return i}});return Lb=t,Lb}var Ib,lF;function B0e(){if(lF)return Ib;lF=1;var r=Pu(),t=r.extend({type:"dataZoom.select"});return Ib=t,Ib}var Pb,uF;function V0e(){if(uF)return Pb;uF=1;var r=Ru(),t=r.extend({type:"dataZoom.select"});return Pb=t,Pb}var vF={},hF;function bD(){if(hF)return vF;hF=1;var r=Pe(),t=ie(),e=t.createHashMap,a=t.each;return r.registerProcessor({getTargetSeries:function(i){var n=e();return i.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(s,l,u){var v=u.getAxisProxy(s.name,l);a(v.getTargetSeriesModels(),function(h){n.set(h.uid,h)})})}),n},modifyOutputEnd:!0,overallReset:function(i,n){i.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(s,l,u){u.getAxisProxy(s.name,l).reset(u,n)}),o.eachTargetAxis(function(s,l,u){u.getAxisProxy(s.name,l).filterData(u,n)})}),i.eachComponent("dataZoom",function(o){var s=o.findRepresentativeAxisProxy(),l=s.getDataPercentWindow(),u=s.getDataValueWindow();o.setCalculatedRange({start:l[0],end:l[1],startValue:u[0],endValue:u[1]})})}}),vF}var fF={},cF;function wD(){if(cF)return fF;cF=1;var r=Pe(),t=ie(),e=SD();return r.registerAction("dataZoom",function(a,i){var n=e.createLinkedNodesFinder(t.bind(i.eachComponent,i,"dataZoom"),e.eachAxisDim,function(s,l){return s.get(l.axisIndex)}),o=[];i.eachComponent({mainType:"dataZoom",query:a},function(s,l){o.push.apply(o,n(s).nodes)}),t.each(o,function(s,l){s.setRawRange({start:a.start,end:a.end,startValue:a.startValue,endValue:a.endValue})})}),fF}var dF;function G0e(){return dF||(dF=1,xD(),Pu(),Ru(),B0e(),V0e(),bD(),wD()),tF}var Rb,pF;function F0e(){if(pF)return Rb;pF=1;var r=Pe(),t=ie(),e=mD(),a=E$(),i=k$(),n=Iu(),o=xo(),s=wo();G0e();var l=o.toolbox.dataZoom,u=t.each,v="\0_ec_\0toolbox-dataZoom_";function h(y,_,x){(this._brushController=new e(x.getZr())).on("brush",t.bind(this._onBrush,this)).mount(),this._isZoomActive}h.defaultOption={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.clone(l.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var f=h.prototype;f.render=function(y,_,x,S){this.model=y,this.ecModel=_,this.api=x,g(y,_,this,S,x),p(y,_)},f.onclick=function(y,_,x){c[x].call(this)},f.remove=function(y,_){this._brushController.unmount()},f.dispose=function(y,_){this._brushController.dispose()};var c={zoom:function(){var y=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:y})},back:function(){this._dispatchZoomAction(i.pop(this.ecModel))}};f._onBrush=function(y,_){if(!_.isEnd||!y.length)return;var x={},S=this.ecModel;this._brushController.updateCovers([]);var b=new a(d(this.model.option),S,{include:["grid"]});b.matchOutputRanges(y,S,function(T,C,M){if(M.type==="cartesian2d"){var L=T.brushType;L==="rect"?(w("x",M,C[0]),w("y",M,C[1])):w({lineX:"x",lineY:"y"}[L],M,C)}}),i.push(S,x),this._dispatchZoomAction(x);function w(T,C,M){var L=C.getAxis(T),D=L.model,P=A(T,D,S),I=P.findRepresentativeAxisProxy(D).getMinMaxSpan();(I.minValueSpan!=null||I.maxValueSpan!=null)&&(M=n(0,M.slice(),L.scale.getExtent(),0,I.minValueSpan,I.maxValueSpan)),P&&(x[P.id]={dataZoomId:P.id,startValue:M[0],endValue:M[1]})}function A(T,C,M){var L;return M.eachComponent({mainType:"dataZoom",subType:"select"},function(D){var P=D.getAxisModel(T,C.componentIndex);P&&(L=D)}),L}},f._dispatchZoomAction=function(y){var _=[];u(y,function(x,S){_.push(t.clone(x))}),_.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:_})};function d(y){var _={};return t.each(["xAxisIndex","yAxisIndex"],function(x){_[x]=y[x],_[x]==null&&(_[x]="all"),(_[x]===!1||_[x]==="none")&&(_[x]=[])}),_}function p(y,_){y.setIconStatus("back",i.count(_)>1?"emphasis":"normal")}function g(y,_,x,S,b){var w=x._isZoomActive;S&&S.type==="takeGlobalCursor"&&(w=S.key==="dataZoomSelect"?S.dataZoomSelectActive:!1),x._isZoomActive=w,y.setIconStatus("zoom",w?"emphasis":"normal");var A=new a(d(y.option),_,{include:["grid"]});x._brushController.setPanels(A.makePanelOpts(b,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(w?{brushType:"auto",brushStyle:y.getModel("brushStyle").getItemStyle()}:!1)}s.register("dataZoom",h),r.registerPreprocessor(function(y){if(!y)return;var _=y.dataZoom||(y.dataZoom=[]);t.isArray(_)||(y.dataZoom=_=[_]);var x=y.toolbox;if(x&&(t.isArray(x)&&(x=x[0]),x&&x.feature)){var S=x.feature.dataZoom;b("xAxis",S),b("yAxis",S)}function b(A,T){if(T){var C=A+"Index",M=T[C];M!=null&&M!=="all"&&!t.isArray(M)&&(M=M===!1||M==="none"?[]:[M]),w(A,function(L,D){if(!(M!=null&&M!=="all"&&t.indexOf(M,D)===-1)){var P={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:v+A+D};P[C]=D,_.push(P)}})}}function w(A,T){var C=y[A];t.isArray(C)||(C=C?[C]:[]),u(C,T)}});var m=h;return Rb=m,Rb}var Eb,gF;function H0e(){if(gF)return Eb;gF=1;var r=Pe(),t=k$(),e=xo(),a=wo(),i=e.toolbox.restore;function n(l){this.model=l}n.defaultOption={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:i.title};var o=n.prototype;o.onclick=function(l,u,v){t.clear(l),u.dispatchAction({type:"restore",from:this.uid})},a.register("restore",n),r.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(l,u){u.resetOption("recreate")});var s=n;return Eb=s,Eb}var mF;function q0e(){return mF||(mF=1,R0e(),E0e(),k0e(),O0e(),N0e(),F0e(),H0e()),U3}var yF={},kb,_F;function W0e(){if(_F)return kb;_F=1;var r=Pe(),t=r.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});return kb=t,kb}var Ob,xF;function U0e(){if(xF)return Ob;xF=1;var r=ie(),t=en(),e=Ji(),a=b9(),i=pr(),n=Yt(),o=r.each,s=n.toCamelCase,l=["","-webkit-","-moz-","-o-"],u="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function v(g){var m="cubic-bezier(0.23, 1, 0.32, 1)",y="left "+g+"s "+m+",top "+g+"s "+m;return r.map(l,function(_){return _+"transition:"+y}).join(";")}function h(g){var m=[],y=g.get("fontSize"),_=g.getTextColor();_&&m.push("color:"+_),m.push("font:"+g.getFont());var x=g.get("lineHeight");x==null&&(x=Math.round(y*3/2)),y&&m.push("line-height:"+x+"px");var S=g.get("textShadowColor"),b=g.get("textShadowBlur")||0,w=g.get("textShadowOffsetX")||0,A=g.get("textShadowOffsetY")||0;return b&&m.push("text-shadow:"+w+"px "+A+"px "+b+"px "+S),o(["decoration","align"],function(T){var C=g.get(T);C&&m.push("text-"+T+":"+C)}),m.join(";")}function f(g){var m=[],y=g.get("transitionDuration"),_=g.get("backgroundColor"),x=g.getModel("textStyle"),S=g.get("padding");return y&&m.push(v(y)),_&&(i.canvasSupported?m.push("background-Color:"+_):(m.push("background-Color:#"+t.toHex(_)),m.push("filter:alpha(opacity=70)"))),o(["width","color","radius"],function(b){var w="border-"+b,A=s(w),T=g.get(A);T!=null&&m.push(w+":"+T+(b==="color"?"":"px"))}),m.push(h(x)),S!=null&&m.push("padding:"+n.normalizeCssArray(S).join("px ")+"px"),m.join(";")+";"}function c(g,m,y,_,x){var S=m&&m.painter;if(y){var b=S&&S.getViewportRoot();b&&a.transformLocalCoord(g,b,document.body,_,x)}else{g[0]=_,g[1]=x;var w=S&&S.getViewportRootOffset();w&&(g[0]+=w.offsetLeft,g[1]+=w.offsetTop)}g[2]=g[0]/m.getWidth(),g[3]=g[1]/m.getHeight()}function d(g,m,y){if(i.wxa)return null;var _=document.createElement("div");_.domBelongToZr=!0,this.el=_;var x=this._zr=m.getZr(),S=this._appendToBody=y&&y.appendToBody;this._styleCoord=[0,0,0,0],c(this._styleCoord,x,S,m.getWidth()/2,m.getHeight()/2),S?document.body.appendChild(_):g.appendChild(_),this._container=g,this._show=!1,this._hideTimeout;var b=this;_.onmouseenter=function(){b._enterable&&(clearTimeout(b._hideTimeout),b._show=!0),b._inContent=!0},_.onmousemove=function(w){if(w=w||window.event,!b._enterable){var A=x.handler,T=x.painter.getViewportRoot();e.normalizeEvent(T,w,!0),A.dispatch("mousemove",w)}},_.onmouseleave=function(){b._enterable&&b._show&&b.hideLater(b._hideDelay),b._inContent=!1}}d.prototype={constructor:d,_enterable:!0,update:function(g){var m=this._container,y=m.currentStyle||document.defaultView.getComputedStyle(m),_=m.style;_.position!=="absolute"&&y.position!=="absolute"&&(_.position="relative");var x=g.get("alwaysShowContent");x&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var g=this._styleCoord[2],m=this._styleCoord[3],y=g*this._zr.getWidth(),_=m*this._zr.getHeight();this.moveTo(y,_)},show:function(g){clearTimeout(this._hideTimeout);var m=this.el,y=this._styleCoord;m.style.cssText=u+f(g)+";left:"+y[0]+"px;top:"+y[1]+"px;"+(g.get("extraCssText")||""),m.style.display=m.innerHTML?"block":"none",m.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(g){this.el.innerHTML=g==null?"":g},setEnterable:function(g){this._enterable=g},getSize:function(){var g=this.el;return[g.clientWidth,g.clientHeight]},moveTo:function(g,m){var y=this._styleCoord;c(y,this._zr,this._appendToBody,g,m);var _=this.el.style;_.left=y[0]+"px",_.top=y[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(g){this._show&&!(this._inContent&&this._enterable)&&(g?(this._hideDelay=g,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),g)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var g=this.el.clientWidth,m=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var y=document.defaultView.getComputedStyle(this.el);y&&(g+=parseInt(y.borderLeftWidth,10)+parseInt(y.borderRightWidth,10),m+=parseInt(y.borderTopWidth,10)+parseInt(y.borderBottomWidth,10))}return{width:g,height:m}}};var p=d;return Ob=p,Ob}var Nb,SF;function $0e(){if(SF)return Nb;SF=1;var r=ie(),t=$s(),e=qe();function a(o,s,l,u){o[0]=l,o[1]=u,o[2]=o[0]/s.getWidth(),o[3]=o[1]/s.getHeight()}function i(o){var s=this._zr=o.getZr();this._styleCoord=[0,0,0,0],a(this._styleCoord,s,o.getWidth()/2,o.getHeight()/2),this._show=!1,this._hideTimeout}i.prototype={constructor:i,_enterable:!0,update:function(o){var s=o.get("alwaysShowContent");s&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var o=this._styleCoord[2],s=this._styleCoord[3],l=o*this._zr.getWidth(),u=s*this._zr.getHeight();this.moveTo(l,u)},show:function(o){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(o,s,l){this.el&&this._zr.remove(this.el);for(var u={},v=o,h="{marker",f="|}",c=v.indexOf(h);c>=0;){var d=v.indexOf(f),p=v.substr(c+h.length,d-c-h.length);p.indexOf("sub")>-1?u["marker"+p]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:s[p],textOffset:[3,0]}:u["marker"+p]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:s[p]},v=v.substr(d+1),c=v.indexOf("{marker")}var g=l.getModel("textStyle"),m=g.get("fontSize"),y=l.get("textLineHeight");y==null&&(y=Math.round(m*3/2)),this.el=new t({style:e.setTextStyle({},g,{rich:u,text:o,textBackgroundColor:l.get("backgroundColor"),textBorderRadius:l.get("borderRadius"),textFill:l.get("textStyle.color"),textPadding:l.get("padding"),textLineHeight:y}),z:l.get("z")}),this._zr.add(this.el);var _=this;this.el.on("mouseover",function(){_._enterable&&(clearTimeout(_._hideTimeout),_._show=!0),_._inContent=!0}),this.el.on("mouseout",function(){_._enterable&&_._show&&_.hideLater(_._hideDelay),_._inContent=!1})},setEnterable:function(o){this._enterable=o},getSize:function(){var o=this.el.getBoundingRect();return[o.width,o.height]},moveTo:function(o,s){if(this.el){var l=this._styleCoord;a(l,this._zr,o,s),this.el.attr("position",[l[0],l[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(o){this._show&&!(this._inContent&&this._enterable)&&(o?(this._hideDelay=o,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),o)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var o=this.getSize();return{width:o[0],height:o[1]}}};var n=i;return Nb=n,Nb}var zb,bF;function Y0e(){if(bF)return zb;bF=1;var r=Pe(),t=ie(),e=pr(),a=U0e(),i=$0e(),n=Yt(),o=st(),s=qe(),l=D$(),u=Ut(),v=gr(),h=L$(),f=wi(),c=wg(),d=_t(),p=d.getTooltipRenderMode,g=t.bind,m=t.each,y=o.parsePercent,_=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=r.extendComponentView({type:"tooltip",init:function(M,L){if(!e.node){var D=M.getComponent("tooltip"),P=D.get("renderMode");this._renderMode=p(P);var I;this._renderMode==="html"?(I=new a(L.getDom(),L,{appendToBody:D.get("appendToBody",!0)}),this._newLine="<br/>"):(I=new i(L),this._newLine="\n"),this._tooltipContent=I}},render:function(M,L,D){if(!e.node){this.group.removeAll(),this._tooltipModel=M,this._ecModel=L,this._api=D,this._lastDataByCoordSys=null,this._alwaysShowContent=M.get("alwaysShowContent");var P=this._tooltipContent;P.update(M),P.setEnterable(M.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var M=this._tooltipModel,L=M.get("triggerOn");h.register("itemTooltip",this._api,g(function(D,P,I){L!=="none"&&(L.indexOf(D)>=0?this._tryShow(P,I):D==="leave"&&this._hide(I))},this))},_keepShow:function(){var M=this._tooltipModel,L=this._ecModel,D=this._api;if(this._lastX!=null&&this._lastY!=null&&M.get("triggerOn")!=="none"){var P=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!D.isDisposed()&&P.manuallyShowTip(M,L,D,{x:P._lastX,y:P._lastY})})}},manuallyShowTip:function(M,L,D,P){if(!(P.from===this.uid||e.node)){var I=b(P,D);this._ticket="";var R=P.dataByCoordSys;if(P.tooltip&&P.x!=null&&P.y!=null){var E=_;E.position=[P.x,P.y],E.update(),E.tooltip=P.tooltip,this._tryShow({offsetX:P.x,offsetY:P.y,target:E},I)}else if(R)this._tryShow({offsetX:P.x,offsetY:P.y,position:P.position,dataByCoordSys:P.dataByCoordSys,tooltipOption:P.tooltipOption},I);else if(P.seriesIndex!=null){if(this._manuallyAxisShowTip(M,L,D,P))return;var k=l(P,L),B=k.point[0],F=k.point[1];B!=null&&F!=null&&this._tryShow({offsetX:B,offsetY:F,position:P.position,target:k.el},I)}else P.x!=null&&P.y!=null&&(D.dispatchAction({type:"updateAxisPointer",x:P.x,y:P.y}),this._tryShow({offsetX:P.x,offsetY:P.y,position:P.position,target:D.getZr().findHover(P.x,P.y).target},I))}},manuallyHideTip:function(M,L,D,P){var I=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&I.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,P.from!==this.uid&&this._hide(b(P,D))},_manuallyAxisShowTip:function(F,L,D,P){var I=P.seriesIndex,R=P.dataIndex,E=L.getComponent("axisPointer").coordSysAxesInfo;if(!(I==null||R==null||E==null)){var k=L.getSeriesByIndex(I);if(k){var B=k.getData(),F=S([B.getItemModel(R),k,(k.coordinateSystem||{}).model,F]);if(F.get("trigger")==="axis")return D.dispatchAction({type:"updateAxisPointer",seriesIndex:I,dataIndex:R,position:P.position}),!0}}},_tryShow:function(M,L){var D=M.target,P=this._tooltipModel;if(P){this._lastX=M.offsetX,this._lastY=M.offsetY;var I=M.dataByCoordSys;I&&I.length?this._showAxisTooltip(I,M):D&&D.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(M,D,L)):D&&D.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(M,D,L)):(this._lastDataByCoordSys=null,this._hide(L))}},_showOrMove:function(M,L){var D=M.get("showDelay");L=t.bind(L,this),clearTimeout(this._showTimout),D>0?this._showTimout=setTimeout(L,D):L()},_showAxisTooltip:function(M,L){var D=this._ecModel,P=this._tooltipModel,I=[L.offsetX,L.offsetY],R=[],E=[],k=S([L.tooltipOption,P]),B=this._renderMode,F=this._newLine,V={};m(M,function(O){m(O.dataByAxis,function(z){var G=D.getComponent(z.axisDim+"Axis",z.axisIndex),q=z.value,H=[];if(!(!G||q==null)){var U=c.getValueLabel(q,G.axis,D,z.seriesDataIndices,z.valueLabelOpt);t.each(z.seriesDataIndices,function(Y){var X=D.getSeriesByIndex(Y.seriesIndex),K=Y.dataIndexInside,Q=X&&X.getDataParams(K);if(Q.axisDim=z.axisDim,Q.axisIndex=z.axisIndex,Q.axisType=z.axisType,Q.axisId=z.axisId,Q.axisValue=f.getAxisRawValue(G.axis,q),Q.axisValueLabel=U,Q){E.push(Q);var j=X.formatTooltip(K,!0,null,B),te;if(t.isObject(j)){te=j.html;var Z=j.markers;t.merge(V,Z)}else te=j;H.push(te)}});var W=U;B!=="html"?R.push(H.join(F)):R.push((W?n.encodeHTML(W)+F:"")+H.join(F))}})},this),R.reverse(),R=R.join(this._newLine+this._newLine);var N=L.position;this._showOrMove(k,function(){this._updateContentNotChangedOnAxis(M)?this._updatePosition(k,N,I[0],I[1],this._tooltipContent,E):this._showTooltipContent(k,R,E,Math.random(),I[0],I[1],N,void 0,V)})},_showSeriesItemTooltip:function(M,L,D){var P=this._ecModel,I=L.seriesIndex,R=P.getSeriesByIndex(I),E=L.dataModel||R,k=L.dataIndex,B=L.dataType,F=E.getData(B),V=S([F.getItemModel(k),E,R&&(R.coordinateSystem||{}).model,this._tooltipModel]),N=V.get("trigger");if(!(N!=null&&N!=="item")){var O=E.getDataParams(k,B),z=E.formatTooltip(k,!1,B,this._renderMode),G,q;t.isObject(z)?(G=z.html,q=z.markers):(G=z,q=null);var H="item_"+E.name+"_"+k;this._showOrMove(V,function(){this._showTooltipContent(V,G,O,H,M.offsetX,M.offsetY,M.position,M.target,q)}),D({type:"showTip",dataIndexInside:k,dataIndex:F.getRawIndex(k),seriesIndex:I,from:this.uid})}},_showComponentItemTooltip:function(M,L,D){var P=L.tooltip;if(typeof P=="string"){var I=P;P={content:I,formatter:I}}var R=new v(P,this._tooltipModel,this._ecModel),E=R.get("content"),k=Math.random();this._showOrMove(R,function(){this._showTooltipContent(R,E,R.get("formatterParams")||{},k,M.offsetX,M.offsetY,M.position,L)}),D({type:"showTip",from:this.uid})},_showTooltipContent:function(M,L,D,P,I,R,E,k,B){if(this._ticket="",!(!M.get("showContent")||!M.get("show"))){var F=this._tooltipContent,V=M.get("formatter");E=E||M.get("position");var N=L;if(V&&typeof V=="string")N=n.formatTpl(V,D,!0);else if(typeof V=="function"){var O=g(function(z,G){z===this._ticket&&(F.setContent(G,B,M),this._updatePosition(M,E,I,R,F,D,k))},this);this._ticket=P,N=V(D,P,O)}F.setContent(N,B,M),F.show(M),this._updatePosition(M,E,I,R,F,D,k)}},_updatePosition:function(M,L,D,P,I,R,E){var k=this._api.getWidth(),B=this._api.getHeight();L=L||M.get("position");var F=I.getSize(),V=M.get("align"),N=M.get("verticalAlign"),O=E&&E.getBoundingRect().clone();if(E&&O.applyTransform(E.transform),typeof L=="function"&&(L=L([D,P],R,I.el,O,{viewSize:[k,B],contentSize:F.slice()})),t.isArray(L))D=y(L[0],k),P=y(L[1],B);else if(t.isObject(L)){L.width=F[0],L.height=F[1];var z=u.getLayoutRect(L,{width:k,height:B});D=z.x,P=z.y,V=null,N=null}else if(typeof L=="string"&&E){var G=T(L,O,F);D=G[0],P=G[1]}else{var G=w(D,P,I,k,B,V?null:20,N?null:20);D=G[0],P=G[1]}if(V&&(D-=C(V)?F[0]/2:V==="right"?F[0]:0),N&&(P-=C(N)?F[1]/2:N==="bottom"?F[1]:0),M.get("confine")){var G=A(D,P,I,k,B);D=G[0],P=G[1]}I.moveTo(D,P)},_updateContentNotChangedOnAxis:function(M){var L=this._lastDataByCoordSys,D=!!L&&L.length===M.length;return D&&m(L,function(P,I){var R=P.dataByAxis||{},E=M[I]||{},k=E.dataByAxis||[];D&=R.length===k.length,D&&m(R,function(B,F){var V=k[F]||{},N=B.seriesDataIndices||[],O=V.seriesDataIndices||[];D&=B.value===V.value&&B.axisType===V.axisType&&B.axisId===V.axisId&&N.length===O.length,D&&m(N,function(z,G){var q=O[G];D&=z.seriesIndex===q.seriesIndex&&z.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=M,!!D},_hide:function(M){this._lastDataByCoordSys=null,M({type:"hideTip",from:this.uid})},dispose:function(M,L){e.node||(this._tooltipContent.dispose(),h.unregister("itemTooltip",L))}});function S(M){for(var L=M.pop();M.length;){var D=M.pop();D&&(v.isInstance(D)&&(D=D.get("tooltip",!0)),typeof D=="string"&&(D={formatter:D}),L=new v(D,L,L.ecModel))}return L}function b(M,L){return M.dispatchAction||t.bind(L.dispatchAction,L)}function w(M,L,D,P,I,R,E){var k=D.getOuterSize(),B=k.width,F=k.height;return R!=null&&(M+B+R>P?M-=B+R:M+=R),E!=null&&(L+F+E>I?L-=F+E:L+=E),[M,L]}function A(M,L,D,P,I){var R=D.getOuterSize(),E=R.width,k=R.height;return M=Math.min(M+E,P)-E,L=Math.min(L+k,I)-k,M=Math.max(M,0),L=Math.max(L,0),[M,L]}function T(M,L,D){var P=D[0],I=D[1],R=5,E=0,k=0,B=L.width,F=L.height;switch(M){case"inside":E=L.x+B/2-P/2,k=L.y+F/2-I/2;break;case"top":E=L.x+B/2-P/2,k=L.y-I-R;break;case"bottom":E=L.x+B/2-P/2,k=L.y+F+R;break;case"left":E=L.x-P-R,k=L.y+F/2-I/2;break;case"right":E=L.x+B+R,k=L.y+F/2-I/2}return[E,k]}function C(M){return M==="center"||M==="middle"}return zb=x,zb}var wF;function Z0e(){if(wF)return yF;wF=1;var r=Pe();return Sf(),W0e(),Y0e(),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){}),yF}var TF={},Bb,AF;function X0e(){if(AF)return Bb;AF=1;var r=ie(),t=["rect","polygon","keep","clear"];function e(i,n){var o=i&&i.brush;if(r.isArray(o)||(o=o?[o]:[]),!!o.length){var s=[];r.each(o,function(f){var c=f.hasOwnProperty("toolbox")?f.toolbox:[];c instanceof Array&&(s=s.concat(c))});var l=i&&i.toolbox;r.isArray(l)&&(l=l[0]),l||(l={feature:{}},i.toolbox=[l]);var u=l.feature||(l.feature={}),v=u.brush||(u.brush={}),h=v.type||(v.type=[]);h.push.apply(h,s),a(h),n&&!h.length&&h.push.apply(h,t)}}function a(i){var n={};r.each(i,function(o){n[o]=1}),i.length=0,r.each(n,function(o,s){i.push(s)})}return Bb=e,Bb}var Vb={},Cl={},CF;function Tg(){if(CF)return Cl;CF=1;var r=ie(),t=js(),e=r.each;function a(l){if(l){for(var u in l)if(l.hasOwnProperty(u))return!0}}function i(l,u,v){var h={};return e(u,function(c){var d=h[c]=f();e(l[c],function(p,g){if(t.isValidType(g)){var m={type:g,visual:p};v&&v(m,c),d[g]=new t(m),g==="opacity"&&(m=r.clone(m),m.type="colorAlpha",d.__hidden.__alphaForOpacity=new t(m))}})}),h;function f(){var c=function(){};c.prototype.__hidden=c.prototype;var d=new c;return d}}function n(l,u,v){var h;r.each(v,function(f){u.hasOwnProperty(f)&&a(u[f])&&(h=!0)}),h&&r.each(v,function(f){u.hasOwnProperty(f)&&a(u[f])?l[f]=r.clone(u[f]):delete l[f]})}function o(l,u,v,h,f,c){var d={};r.each(l,function(_){var x=t.prepareVisualTypes(u[_]);d[_]=x});var p;function g(_){return v.getItemVisual(p,_)}function m(_,x){v.setItemVisual(p,_,x)}c==null?v.each(y):v.each([c],y);function y(_,x){p=c==null?_:x;var S=v.getRawDataItem(p);if(!(S&&S.visualMap===!1))for(var b=h.call(f,_),w=u[b],A=d[b],T=0,C=A.length;T<C;T++){var M=A[T];w[M]&&w[M].applyVisual(_,g,m)}}}function s(l,u,v,h){var f={};r.each(l,function(d){var p=t.prepareVisualTypes(u[d]);f[d]=p});function c(d,p){h!=null&&(h=p.getDimension(h));function g(M){return p.getItemVisual(y,M)}function m(M,L){p.setItemVisual(y,M,L)}for(var y;(y=d.next())!=null;){var _=p.getRawDataItem(y);if(!(_&&_.visualMap===!1))for(var x=h!=null?p.get(h,y,!0):y,S=v(x),b=u[S],w=f[S],A=0,T=w.length;A<T;A++){var C=w[A];b[C]&&b[C].applyVisual(x,g,m)}}}return{progress:c}}return Cl.createVisualMappings=i,Cl.replaceVisualOption=n,Cl.applyVisual=o,Cl.incrementalApplyVisual=s,Cl}var Gb,MF;function K0e(){if(MF)return Gb;MF=1;var r=j9(),t=rr(),e=qe(),a=e.linePolygonIntersect,i={lineX:n(0),lineY:n(1),rect:{point:function(l,u,v){return l&&v.boundingRect.contain(l[0],l[1])},rect:function(l,u,v){return l&&v.boundingRect.intersect(l)}},polygon:{point:function(l,u,v){return l&&v.boundingRect.contain(l[0],l[1])&&r.contain(v.range,l[0],l[1])},rect:function(l,u,v){var h=v.range;if(!l||h.length<=1)return!1;var f=l.x,c=l.y,d=l.width,p=l.height,g=h[0];if(r.contain(h,f,c)||r.contain(h,f+d,c)||r.contain(h,f,c+p)||r.contain(h,f+d,c+p)||t.create(l).contain(g[0],g[1])||a(f,c,f+d,c,h)||a(f,c,f,c+p,h)||a(f+d,c,f+d,c+p,h)||a(f,c+p,f+d,c+p,h))return!0}}};function n(l){var u=["x","y"],v=["width","height"];return{point:function(h,f,c){if(h){var d=c.range,p=h[l];return o(p,d)}},rect:function(h,f,c){if(h){var d=c.range,p=[h[u[l]],h[u[l]]+h[v[l]]];return p[1]<p[0]&&p.reverse(),o(p[0],d)||o(p[1],d)||o(d[0],p)||o(d[1],p)}}}}function o(l,u){return u[0]<=l&&l<=u[1]}var s=i;return Gb=s,Gb}var DF;function O$(){if(DF)return Vb;DF=1;var r=Pe(),t=ie(),e=rr(),a=Tg(),i=K0e(),n=_o(),o=E$(),s=["inBrush","outOfBrush"],l="__ecBrushSelect",u="__ecInBrushSelectEvent",v=r.PRIORITY.VISUAL.BRUSH;r.registerLayout(v,function(x,S,b){x.eachComponent({mainType:"brush"},function(w){b&&b.type==="takeGlobalCursor"&&w.setBrushOption(b.key==="brush"?b.brushOption:{brushType:!1})}),h(x)});function h(x){x.eachComponent({mainType:"brush"},function(S){var b=S.brushTargetManager=new o(S.option,x);b.setInputRanges(S.areas,x)})}r.registerVisual(v,function(x,S,b){var w=[],A,T;x.eachComponent({mainType:"brush"},function(C,M){var L={brushId:C.id,brushIndex:M,brushName:C.name,areas:t.clone(C.areas),selected:[]};w.push(L);var D=C.option,P=D.brushLink,I=[],R=[],E=[],k=0;M||(A=D.throttleType,T=D.throttleDelay);var B=t.map(C.areas,function(G){return m(t.defaults({boundingRect:y[G.brushType](G)},G))}),F=a.createVisualMappings(C.option,s,function(G){G.mappingMethod="fixed"});t.isArray(P)&&t.each(P,function(G){I[G]=1});function V(G){return P==="all"||I[G]}function N(G){return!!G.length}x.eachSeries(function(G,q){var H=E[q]=[];G.subType==="parallel"?O(G,q):z(G,q,H)});function O(G,q){var H=G.coordinateSystem;k|=H.hasAxisBrushed(),V(q)&&H.eachActiveState(G.getData(),function(U,W){U==="active"&&(R[W]=1)})}function z(G,q,H){var U=p(G);if(!(!U||g(C,q))&&(t.each(B,function(Y){U[Y.brushType]&&C.brushTargetManager.controlSeries(Y,G,x)&&H.push(Y),k|=N(H)}),V(q)&&N(H))){var W=G.getData();W.each(function(Y){d(U,H,W,Y)&&(R[Y]=1)})}}x.eachSeries(function(G,q){var H={seriesId:G.id,seriesIndex:q,seriesName:G.name,dataIndex:[]};L.selected.push(H);var U=p(G),W=E[q],Y=G.getData(),X=V(q)?function(K){return R[K]?(H.dataIndex.push(Y.getRawIndex(K)),"inBrush"):"outOfBrush"}:function(K){return d(U,W,Y,K)?(H.dataIndex.push(Y.getRawIndex(K)),"inBrush"):"outOfBrush"};(V(q)?k:N(W))&&a.applyVisual(s,F,Y,X)})}),f(S,A,T,w,b)});function f(x,S,b,w,A){if(A){var T=x.getZr();if(!T[u]){T[l]||(T[l]=c);var C=n.createOrUpdate(T,l,b,S);C(x,w)}}}function c(x,S){if(!x.isDisposed()){var b=x.getZr();b[u]=!0,x.dispatchAction({type:"brushSelect",batch:S}),b[u]=!1}}function d(x,S,b,w){for(var A=0,T=S.length;A<T;A++){var C=S[A];if(x[C.brushType](w,b,C.selectors,C))return!0}}function p(x){var S=x.brushSelector;if(t.isString(S)){var b=[];return t.each(i,function(A,T){b[T]=function(C,M,L,D){var P=M.getItemLayout(C);return A[S](P,L,D)}}),b}else if(t.isFunction(S)){var w={};return t.each(i,function(A,T){w[T]=S}),w}return S}function g(x,S){var b=x.option.seriesIndex;return b!=null&&b!=="all"&&(t.isArray(b)?t.indexOf(b,S)<0:S!==b)}function m(x){var S=x.selectors={};return t.each(i[x.brushType],function(b,w){S[w]=function(A){return b(A,S,x)}}),x}var y={lineX:t.noop,lineY:t.noop,rect:function(x){return _(x.range)},polygon:function(x){for(var S,b=x.range,w=0,A=b.length;w<A;w++){S=S||[[1/0,-1/0],[1/0,-1/0]];var T=b[w];T[0]<S[0][0]&&(S[0][0]=T[0]),T[0]>S[0][1]&&(S[0][1]=T[0]),T[1]<S[1][0]&&(S[1][0]=T[1]),T[1]>S[1][1]&&(S[1][1]=T[1])}return S&&_(S)}};function _(x){return new e(x[0][0],x[1][0],x[0][1]-x[0][0],x[1][1]-x[1][0])}return Vb.layoutCovers=h,Vb}var Fb,LF;function Q0e(){if(LF)return Fb;LF=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=Tg(),i=gr(),n=["#ddd"],o=t.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(u,v){var h=this.option;!v&&a.replaceVisualOption(h,u,["inBrush","outOfBrush"]);var f=h.inBrush=h.inBrush||{};h.outOfBrush=h.outOfBrush||{color:n},f.hasOwnProperty("liftZ")||(f.liftZ=5)},setAreas:function(u){u&&(this.areas=e.map(u,function(v){return s(this.option,v)},this))},setBrushOption:function(u){this.brushOption=s(this.option,u),this.brushType=this.brushOption.brushType}});function s(u,v){return e.merge({brushType:u.brushType,brushMode:u.brushMode,transformable:u.transformable,brushStyle:new i(u.brushStyle).getItemStyle(),removeOnClick:u.removeOnClick,z:u.z},v,!0)}var l=o;return Fb=l,Fb}var Hb,IF;function j0e(){if(IF)return Hb;IF=1;var r=Pe(),t=ie(),e=mD(),a=O$(),i=a.layoutCovers,n=r.extendComponentView({type:"brush",init:function(s,l){this.ecModel=s,this.api=l,this.model,(this._brushController=new e(l.getZr())).on("brush",t.bind(this._onBrush,this)).mount()},render:function(s){return this.model=s,o.apply(this,arguments)},updateTransform:function(s,l){return i(l),o.apply(this,arguments)},updateView:o,dispose:function(){this._brushController.dispose()},_onBrush:function(s,l){var u=this.model.id;this.model.brushTargetManager.setOutputRanges(s,this.ecModel),(!l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:u,areas:t.clone(s),$from:u}),l.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:u,areas:t.clone(s),$from:u})}});function o(s,l,u,v){(!v||v.$from!==s.id)&&this._brushController.setPanels(s.brushTargetManager.makePanelOpts(u)).enableBrush(s.brushOption).updateCovers(s.areas.slice())}return Hb=n,Hb}var PF={},RF;function J0e(){if(RF)return PF;RF=1;var r=Pe();return r.registerAction({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),PF}var qb,EF;function e_e(){if(EF)return qb;EF=1;var r=ie(),t=wo(),e=xo(),a=e.toolbox.brush;function i(s,l,u){this.model=s,this.ecModel=l,this.api=u,this._brushType,this._brushMode}i.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:r.clone(a.title)};var n=i.prototype;n.render=n.updateView=function(s,l,u){var v,h,f;l.eachComponent({mainType:"brush"},function(c){v=c.brushType,h=c.brushOption.brushMode||"single",f|=c.areas.length}),this._brushType=v,this._brushMode=h,r.each(s.get("type",!0),function(c){s.setIconStatus(c,(c==="keep"?h==="multiple":c==="clear"?f:c===v)?"emphasis":"normal")})},n.getIcons=function(){var s=this.model,l=s.get("icon",!0),u={};return r.each(s.get("type",!0),function(v){l[v]&&(u[v]=l[v])}),u},n.onclick=function(s,l,u){var v=this._brushType,h=this._brushMode;u==="clear"?(l.dispatchAction({type:"axisAreaSelect",intervals:[]}),l.dispatchAction({type:"brush",command:"clear",areas:[]})):l.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:u==="keep"?v:v===u?!1:u,brushMode:u==="keep"?h==="multiple"?"single":"multiple":h}})},t.register("brush",i);var o=i;return qb=o,qb}var kF;function t_e(){if(kF)return TF;kF=1;var r=Pe(),t=X0e();return O$(),Q0e(),j0e(),J0e(),e_e(),r.registerPreprocessor(t),TF}var OF={},NF;function r_e(){if(NF)return OF;NF=1;var r=ie(),t=Pe(),e=qe(),a=Ut(),i=a.getLayoutRect,n=Yt(),o=n.windowOpen;return t.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),t.extendComponentView({type:"title",render:function(s,l,u){if(this.group.removeAll(),!!s.get("show")){var v=this.group,h=s.getModel("textStyle"),f=s.getModel("subtextStyle"),c=s.get("textAlign"),d=r.retrieve2(s.get("textBaseline"),s.get("textVerticalAlign")),p=new e.Text({style:e.setTextStyle({},h,{text:s.get("text"),textFill:h.getTextColor()},{disableBox:!0}),z2:10}),g=p.getBoundingRect(),m=s.get("subtext"),y=new e.Text({style:e.setTextStyle({},f,{text:m,textFill:f.getTextColor(),y:g.height+s.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),_=s.get("link"),x=s.get("sublink"),S=s.get("triggerEvent",!0);p.silent=!_&&!S,y.silent=!x&&!S,_&&p.on("click",function(){o(_,"_"+s.get("target"))}),x&&y.on("click",function(){o(x,"_"+s.get("subtarget"))}),p.eventData=y.eventData=S?{componentType:"title",componentIndex:s.componentIndex}:null,v.add(p),m&&v.add(y);var b=v.getBoundingRect(),w=s.getBoxLayoutParams();w.width=b.width,w.height=b.height;var A=i(w,{width:u.getWidth(),height:u.getHeight()},s.get("padding"));c||(c=s.get("left")||s.get("right"),c==="middle"&&(c="center"),c==="right"?A.x+=A.width:c==="center"&&(A.x+=A.width/2)),d||(d=s.get("top")||s.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?A.y+=A.height:d==="middle"&&(A.y+=A.height/2),d=d||"top"),v.attr("position",[A.x,A.y]);var T={textAlign:c,textVerticalAlign:d};p.setStyle(T),y.setStyle(T),b=v.getBoundingRect();var C=A.margin,M=s.getItemStyle(["color","opacity"]);M.fill=s.get("backgroundColor");var L=new e.Rect({shape:{x:b.x-C[3],y:b.y-C[0],width:b.width+C[1]+C[3],height:b.height+C[0]+C[2],r:s.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});v.add(L)}}}),OF}var zF={},Wb,BF;function a_e(){if(BF)return Wb;BF=1;var r=ie();function t(n){var o=n&&n.timeline;r.isArray(o)||(o=o?[o]:[]),r.each(o,function(s){s&&e(s)})}function e(n){var o=n.type,s={number:"value",time:"time"};if(s[o]&&(n.axisType=s[o],delete n.type),a(n),i(n,"controlPosition")){var l=n.controlStyle||(n.controlStyle={});i(l,"position")||(l.position=n.controlPosition),l.position==="none"&&!i(l,"show")&&(l.show=!1,delete l.position),delete n.controlPosition}r.each(n.data||[],function(u){r.isObject(u)&&!r.isArray(u)&&(!i(u,"value")&&i(u,"name")&&(u.value=u.name),a(u))})}function a(n){var o=n.itemStyle||(n.itemStyle={}),s=o.emphasis||(o.emphasis={}),l=n.label||n.label||{},u=l.normal||(l.normal={}),v={normal:1,emphasis:1};r.each(l,function(h,f){!v[f]&&!i(u,f)&&(u[f]=h)}),s.label&&!i(l,"emphasis")&&(l.emphasis=s.label,delete s.label)}function i(n,o){return n.hasOwnProperty(o)}return Wb=t,Wb}var VF={},GF;function i_e(){if(GF)return VF;GF=1;var r=Lr();return r.registerSubTypeDefaulter("timeline",function(){return"slider"}),VF}var FF={},HF;function n_e(){if(HF)return FF;HF=1;var r=Pe(),t=ie();return r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,a){var i=a.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),a.resetOption("timeline"),t.defaults({currentIndex:i.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,a){var i=a.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)}),FF}var Ub,qF;function o_e(){if(qF)return Ub;qF=1;var r=ie(),t=Lr(),e=ei(),a=_t(),i=t.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(o,s,l){this._data,this._names,this.mergeDefaultAndTheme(o,l),this._initData()},mergeOption:function(o){i.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(o){o==null&&(o=this.option.currentIndex);var s=this._data.count();this.option.loop?o=(o%s+s)%s:(o>=s&&(o=s-1),o<0&&(o=0)),this.option.currentIndex=o},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(o){this.option.autoPlay=!!o},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var o=this.option,s=o.data||[],l=o.axisType,u=this._names=[];if(l==="category"){var v=[];r.each(s,function(c,d){var p=a.getDataItemValue(c),g;r.isObject(c)?(g=r.clone(c),g.value=d):g=d,v.push(g),!r.isString(p)&&(p==null||isNaN(p))&&(p=""),u.push(p+"")}),s=v}var h={category:"ordinal",time:"time"}[l]||"number",f=this._data=new e([{name:"value",type:h}],this);f.initData(s,u)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),n=i;return Ub=n,Ub}var $b,WF;function s_e(){if(WF)return $b;WF=1;var r=ie(),t=o_e(),e=aD(),a=t.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(a,e);var i=a;return $b=i,$b}var Yb,UF;function l_e(){if(UF)return Yb;UF=1;var r=fg(),t=r.extend({type:"timeline"});return Yb=t,Yb}var Zb,$F;function u_e(){if($F)return Zb;$F=1;var r=ie(),t=So(),e=function(i,n,o,s){t.call(this,i,n,o),this.type=s||"value",this.model=null};e.prototype={constructor:e,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},r.inherits(e,t);var a=e;return Zb=a,Zb}var Xb,YF;function v_e(){if(YF)return Xb;YF=1;var r=ie(),t=rr(),e=ha(),a=qe(),i=Ut(),n=l_e(),o=u_e(),s=ti(),l=s.createSymbol,u=wi(),v=st(),h=Yt(),f=h.encodeHTML,c=r.bind,d=r.each,p=Math.PI,g=n.extend({type:"timeline.slider",init:function(S,b){this.api=b,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,b,w,A){if(this.model=S,this.api=w,this.ecModel=b,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,w),C=this._createGroup("mainGroup"),M=this._createGroup("labelGroup"),L=this._axis=this._createAxis(T,S);S.formatTooltip=function(D){return f(L.scale.getLabel(D))},d(["AxisLine","AxisTick","Control","CurrentPointer"],function(D){this["_render"+D](T,C,L,S)},this),this._renderAxisLabel(T,M,L,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,b){var w=S.get("label.position"),A=S.get("orient"),T=m(S,b);w==null||w==="auto"?w=A==="horizontal"?T.y+T.height/2<b.getHeight()/2?"-":"+":T.x+T.width/2<b.getWidth()/2?"+":"-":isNaN(w)&&(w={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[A][w]);var C={horizontal:"center",vertical:w>=0||w==="+"?"left":"right"},M={horizontal:w>=0||w==="+"?"top":"bottom",vertical:"middle"},L={horizontal:0,vertical:p/2},D=A==="vertical"?T.height:T.width,P=S.getModel("controlStyle"),I=P.get("show",!0),R=I?P.get("itemSize"):0,E=I?P.get("itemGap"):0,k=R+E,B=S.get("label.rotate")||0;B=B*p/180;var F,V,N,O,z=P.get("position",!0),G=I&&P.get("showPlayBtn",!0),q=I&&P.get("showPrevBtn",!0),H=I&&P.get("showNextBtn",!0),U=0,W=D;return z==="left"||z==="bottom"?(G&&(F=[0,0],U+=k),q&&(V=[U,0],U+=k),H&&(N=[W-R,0],W-=k)):(G&&(F=[W-R,0],W-=k),q&&(V=[0,0],U+=k),H&&(N=[W-R,0],W-=k)),O=[U,W],S.get("inverse")&&O.reverse(),{viewRect:T,mainLength:D,orient:A,rotation:L[A],labelRotation:B,labelPosOpt:w,labelAlign:S.get("label.align")||C[A],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||M[A],playPosition:F,prevBtnPosition:V,nextBtnPosition:N,axisExtent:O,controlSize:R,controlGap:E}},_position:function(S,b){var w=this._mainGroup,A=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var C=e.create(),M=T.x,L=T.y+T.height;e.translate(C,C,[-M,-L]),e.rotate(C,C,-p/2),e.translate(C,C,[M,L]),T=T.clone(),T.applyTransform(C)}var D=V(T),P=V(w.getBoundingRect()),I=V(A.getBoundingRect()),R=w.position,E=A.position;E[0]=R[0]=D[0][0];var k=S.labelPosOpt;if(isNaN(k)){var B=k==="+"?0:1;N(R,P,D,1,B),N(E,I,D,1,1-B)}else{var B=k>=0?0:1;N(R,P,D,1,B),E[1]=R[1]+k}w.attr("position",R),A.attr("position",E),w.rotation=A.rotation=S.rotation,F(w),F(A);function F(O){var z=O.position;O.origin=[D[0][0]-z[0],D[1][0]-z[1]]}function V(O){return[[O.x,O.x+O.width],[O.y,O.y+O.height]]}function N(O,z,G,q,H){O[q]+=G[q][H]-z[q][H]}},_createAxis:function(S,b){var w=b.getData(),A=b.get("axisType"),T=u.createScaleByModel(b,A);T.getTicks=function(){return w.mapArray(["value"],function(L){return L})};var C=w.getDataExtent("value");T.setExtent(C[0],C[1]),T.niceTicks();var M=new o("value",T,S.axisExtent,A);return M.model=b,M},_createGroup:function(S){var b=this["_"+S]=new a.Group;return this.group.add(b),b},_renderAxisLine:function(S,b,w,A){var T=w.getExtent();A.get("lineStyle.show")&&b.add(new a.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:r.extend({lineCap:"round"},A.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(S,b,w,A){var T=A.getData(),C=w.scale.getTicks();d(C,function(M){var L=w.dataToCoord(M),D=T.getItemModel(M),P=D.getModel("itemStyle"),I=D.getModel("emphasis.itemStyle"),R={position:[L,0],onclick:c(this._changeTimeline,this,M)},E=_(D,P,b,R);a.setHoverStyle(E,I.getItemStyle()),D.get("tooltip")?(E.dataIndex=M,E.dataModel=A):E.dataIndex=E.dataModel=null},this)},_renderAxisLabel:function(S,b,w,A){var T=w.getLabelModel();if(T.get("show")){var C=A.getData(),M=w.getViewLabels();d(M,function(L){var D=L.tickValue,P=C.getItemModel(D),I=P.getModel("label"),R=P.getModel("emphasis.label"),E=w.dataToCoord(L.tickValue),k=new a.Text({position:[E,0],rotation:S.labelRotation-S.rotation,onclick:c(this._changeTimeline,this,D),silent:!1});a.setTextStyle(k.style,I,{text:L.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),b.add(k),a.setHoverStyle(k,a.setTextStyle({},R))},this)}},_renderControl:function(S,b,w,A){var T=S.controlSize,C=S.rotation,M=A.getModel("controlStyle").getItemStyle(),L=A.getModel("emphasis.controlStyle").getItemStyle(),D=[0,-T/2,T,T],P=A.getPlayState(),I=A.get("inverse",!0);R(S.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,I?"-":"+")),R(S.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,I?"+":"-")),R(S.playPosition,"controlStyle."+(P?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!P),!0);function R(E,k,B,F){if(E){var V={position:E,origin:[T/2,0],rotation:F?-C:0,rectHover:!0,style:M,onclick:B},N=y(A,k,D,V);b.add(N),a.setHoverStyle(N,L)}}},_renderCurrentPointer:function(S,b,w,A){var T=A.getData(),C=A.getCurrentIndex(),M=T.getItemModel(C).getModel("checkpointStyle"),L=this,D={onCreate:function(P){P.draggable=!0,P.drift=c(L._handlePointerDrag,L),P.ondragend=c(L._handlePointerDragend,L),x(P,C,w,A,!0)},onUpdate:function(P){x(P,C,w,A)}};this._currentPointer=_(M,M,this._mainGroup,{},this._currentPointer,D)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,b,w){this._clearTimer(),this._pointerChangeTimeline([w.offsetX,w.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,b){var w=this._toAxisCoord(S)[0],A=this._axis,T=v.asc(A.getExtent().slice());w>T[1]&&(w=T[1]),w<T[0]&&(w=T[0]),this._currentPointer.position[0]=w,this._currentPointer.dirty();var C=this._findNearestTick(w),M=this.model;(b||C!==M.getCurrentIndex()&&M.get("realtime"))&&this._changeTimeline(C)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(c(S,this),this.model.get("playInterval")));function S(){var b=this.model;this._changeTimeline(b.getCurrentIndex()+(b.get("rewind",!0)?-1:1))}},_toAxisCoord:function(S){var b=this._mainGroup.getLocalTransform();return a.applyTransform(S,b,!0)},_findNearestTick:function(S){var b=this.model.getData(),w=1/0,A,T=this._axis;return b.each(["value"],function(C,M){var L=T.dataToCoord(C),D=Math.abs(L-S);D<w&&(w=D,A=M)}),A},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(S){var b=this.model.getCurrentIndex();S==="+"?S=b+1:S==="-"&&(S=b-1),this.api.dispatchAction({type:"timelineChange",currentIndex:S,from:this.uid})}});function m(S,b){return i.getLayoutRect(S.getBoxLayoutParams(),{width:b.getWidth(),height:b.getHeight()},S.get("padding"))}function y(S,b,w,A){var T=A.style,C=a.createIcon(S.get(b),A||{},new t(w[0],w[1],w[2],w[3]));return T&&C.setStyle(T),C}function _(S,b,w,A,T,C){var M=b.get("color");if(T)T.setColor(M),w.add(T),C&&C.onUpdate(T);else{var L=S.get("symbol");T=l(L,-1,-1,2,2,M),T.setStyle("strokeNoScale",!0),w.add(T),C&&C.onCreate(T)}var D=b.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(D),A=r.merge({rectHover:!0,z2:100},A,!0);var P=S.get("symbolSize");P=P instanceof Array?P.slice():[+P,+P],P[0]/=2,P[1]/=2,A.scale=P;var I=S.get("symbolOffset");if(I){var R=A.position=A.position||[0,0];R[0]+=v.parsePercent(I[0],P[0]),R[1]+=v.parsePercent(I[1],P[1])}var E=S.get("symbolRotate");return A.rotation=(E||0)*Math.PI/180||0,T.attr(A),T.updateTransform(),T}function x(S,b,w,A,T){if(!S.dragging){var C=A.getModel("checkpointStyle"),M=w.dataToCoord(A.getData().get(["value"],b));T||!C.get("animation",!0)?S.attr({position:[M,0]}):(S.stopAnimation(!0),S.animateTo({position:[M,0]},C.get("animationDuration",!0),C.get("animationEasing",!0)))}}return Xb=g,Xb}var ZF;function h_e(){if(ZF)return zF;ZF=1;var r=Pe(),t=a_e();return i_e(),n_e(),s_e(),v_e(),r.registerPreprocessor(t),zF}var XF={},Kb,KF;function TD(){if(KF)return Kb;KF=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=pr(),i=_t(),n=Yt(),o=aD(),s=n.addCommas,l=n.encodeHTML;function u(f){i.defaultEmphasis(f,"label",["show"])}var v=t.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(f,c,d){this.mergeDefaultAndTheme(f,d),this._mergeOption(f,d,!1,!0)},isAnimationEnabled:function(){if(a.node)return!1;var f=this.__hostSeries;return this.getShallow("animation")&&f&&f.isAnimationEnabled()},mergeOption:function(f,c){this._mergeOption(f,c,!1,!1)},_mergeOption:function(f,c,d,p){var g=this.constructor,m=this.mainType+"Model";d||c.eachSeries(function(y){var _=y.get(this.mainType,!0),x=y[m];if(!_||!_.data){y[m]=null;return}x?x._mergeOption(_,c,!0):(p&&u(_),e.each(_.data,function(S){S instanceof Array?(u(S[0]),u(S[1])):u(S)}),x=new g(_,this,c),e.extend(x,{mainType:this.mainType,seriesIndex:y.seriesIndex,name:y.name,createdBySelf:!0}),x.__hostSeries=y),y[m]=x},this)},formatTooltip:function(f,c,d,p){var g=this.getData(),m=this.getRawValue(f),y=e.isArray(m)?e.map(m,s).join(", "):s(m),_=g.getName(f),x=l(this.name),S=p==="html"?"<br/>":"\n";return(m!=null||_)&&(x+=S),_&&(x+=l(_),m!=null&&(x+=" : ")),m!=null&&(x+=l(y)),x},getData:function(){return this._data},setData:function(f){this._data=f}});e.mixin(v,o);var h=v;return Kb=h,Kb}var Qb,QF;function f_e(){if(QF)return Qb;QF=1;var r=TD(),t=r.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});return Qb=t,Qb}var es={},jF;function AD(){if(jF)return es;jF=1;var r=ie(),t=st(),e=rn(),a=e.isDimensionStacked,i=r.indexOf;function n(g){return!(isNaN(parseFloat(g.x))&&isNaN(parseFloat(g.y)))}function o(g){return!isNaN(parseFloat(g.x))&&!isNaN(parseFloat(g.y))}function s(g,m,y,_,x,S){var b=[],w=a(m,_),A=w?m.getCalculationInfo("stackResultDimension"):_,T=p(m,A,g),C=m.indicesOfNearest(A,T)[0];b[x]=m.get(y,C),b[S]=m.get(A,C);var M=m.get(_,C),L=t.getPrecision(m.get(_,C));return L=Math.min(L,20),L>=0&&(b[S]=+b[S].toFixed(L)),[b,M]}var l=r.curry,u={min:l(s,"min"),max:l(s,"max"),average:l(s,"average")};function v(g,m){var y=g.getData(),_=g.coordinateSystem;if(m&&!o(m)&&!r.isArray(m.coord)&&_){var x=_.dimensions,S=h(m,y,_,g);if(m=r.clone(m),m.type&&u[m.type]&&S.baseAxis&&S.valueAxis){var b=i(x,S.baseAxis.dim),w=i(x,S.valueAxis.dim),A=u[m.type](y,S.baseDataDim,S.valueDataDim,b,w);m.coord=A[0],m.value=A[1]}else{for(var T=[m.xAxis!=null?m.xAxis:m.radiusAxis,m.yAxis!=null?m.yAxis:m.angleAxis],C=0;C<2;C++)u[T[C]]&&(T[C]=p(y,y.mapDimension(x[C]),T[C]));m.coord=T}}return m}function h(g,m,y,_){var x={};return g.valueIndex!=null||g.valueDim!=null?(x.valueDataDim=g.valueIndex!=null?m.getDimension(g.valueIndex):g.valueDim,x.valueAxis=y.getAxis(f(_,x.valueDataDim)),x.baseAxis=y.getOtherAxis(x.valueAxis),x.baseDataDim=m.mapDimension(x.baseAxis.dim)):(x.baseAxis=_.getBaseAxis(),x.valueAxis=y.getOtherAxis(x.baseAxis),x.baseDataDim=m.mapDimension(x.baseAxis.dim),x.valueDataDim=m.mapDimension(x.valueAxis.dim)),x}function f(g,m){var y=g.getData(),_=y.dimensions;m=y.getDimension(m);for(var x=0;x<_.length;x++){var S=y.getDimensionInfo(_[x]);if(S.name===m)return S.coordDim}}function c(g,m){return g&&g.containData&&m.coord&&!n(m)?g.containData(m.coord):!0}function d(g,m,y,_){return _<2?g.coord&&g.coord[_]:g.value}function p(g,m,y){if(y==="average"){var _=0,x=0;return g.each(m,function(S,b){isNaN(S)||(_+=S,x++)}),_/x}else return y==="median"?g.getMedian(m):g.getDataExtent(m,!0)[y==="max"?1:0]}return es.dataTransform=v,es.getAxisInfo=h,es.dataFilter=c,es.dimValueGetter=d,es.numCalculate=p,es}var jb,JF;function CD(){if(JF)return jb;JF=1;var r=Pe(),t=ie(),e=r.extendComponentView({type:"marker",init:function(){this.markerGroupMap=t.createHashMap()},render:function(a,i,n){var o=this.markerGroupMap;o.each(function(l){l.__keep=!1});var s=this.type+"Model";i.eachSeries(function(l){var u=l[s];u&&this.renderSeries(l,u,i,n)},this),o.each(function(l){!l.__keep&&this.group.remove(l.group)},this)},renderSeries:function(){}});return jb=e,jb}var Jb,eH;function c_e(){if(eH)return Jb;eH=1;var r=ie(),t=df(),e=st(),a=ei(),i=AD(),n=CD();function o(u,v,h){var f=v.coordinateSystem;u.each(function(c){var d=u.getItemModel(c),p,g=e.parsePercent(d.get("x"),h.getWidth()),m=e.parsePercent(d.get("y"),h.getHeight());if(!isNaN(g)&&!isNaN(m))p=[g,m];else if(v.getMarkerPosition)p=v.getMarkerPosition(u.getValues(u.dimensions,c));else if(f){var y=u.get(f.dimensions[0],c),_=u.get(f.dimensions[1],c);p=f.dataToPoint([y,_])}isNaN(g)||(p[0]=g),isNaN(m)||(p[1]=m),u.setItemLayout(c,p)})}var s=n.extend({type:"markPoint",updateTransform:function(u,v,h){v.eachSeries(function(f){var c=f.markPointModel;c&&(o(c.getData(),f,h),this.markerGroupMap.get(f.id).updateLayout(c))},this)},renderSeries:function(u,v,h,f){var c=u.coordinateSystem,d=u.id,p=u.getData(),g=this.markerGroupMap,m=g.get(d)||g.set(d,new t),y=l(c,u,v);v.setData(y),o(v.getData(),u,f),y.each(function(_){var x=y.getItemModel(_),S=x.getShallow("symbol"),b=x.getShallow("symbolSize"),w=x.getShallow("symbolRotate"),A=r.isFunction(S),T=r.isFunction(b),C=r.isFunction(w);if(A||T||C){var M=v.getRawValue(_),L=v.getDataParams(_);A&&(S=S(M,L)),T&&(b=b(M,L)),C&&(w=w(M,L))}y.setItemVisual(_,{symbol:S,symbolSize:b,symbolRotate:w,color:x.get("itemStyle.color")||p.getVisual("color")})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(_){_.traverse(function(x){x.dataModel=v})}),m.__keep=!0,m.group.silent=v.get("silent")||u.get("silent")}});function l(u,v,h){var f;u?f=r.map(u&&u.dimensions,function(p){var g=v.getData().getDimensionInfo(v.getData().mapDimension(p))||{};return r.defaults({name:p},g)}):f=[{name:"value",type:"float"}];var c=new a(f,h),d=r.map(h.get("data"),r.curry(i.dataTransform,v));return u&&(d=r.filter(d,r.curry(i.dataFilter,u))),c.initData(d,null,u?i.dimValueGetter:function(p){return p.value}),c}return Jb=s,Jb}var tH;function d_e(){if(tH)return XF;tH=1;var r=Pe();return f_e(),c_e(),r.registerPreprocessor(function(t){t.markPoint=t.markPoint||{}}),XF}var rH={},ew,aH;function p_e(){if(aH)return ew;aH=1;var r=TD(),t=r.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});return ew=t,ew}var tw,iH;function g_e(){if(iH)return tw;iH=1;var r=ie(),t=ei(),e=st(),a=AD(),i=pD(),n=CD(),o=rn(),s=o.getStackedDimension,l=function(p,g,m,y){var _=p.getData(),x=y.type;if(!r.isArray(y)&&(x==="min"||x==="max"||x==="average"||x==="median"||y.xAxis!=null||y.yAxis!=null)){var S,b;if(y.yAxis!=null||y.xAxis!=null)S=g.getAxis(y.yAxis!=null?"y":"x"),b=r.retrieve(y.yAxis,y.xAxis);else{var w=a.getAxisInfo(y,_,g,p);S=w.valueAxis;var A=s(_,w.valueDataDim);b=a.numCalculate(_,A,x)}var T=S.dim==="x"?0:1,C=1-T,M=r.clone(y),L={};M.type=null,M.coord=[],L.coord=[],M.coord[C]=-1/0,L.coord[C]=1/0;var D=m.get("precision");D>=0&&typeof b=="number"&&(b=+b.toFixed(Math.min(D,20))),M.coord[T]=L.coord[T]=b,y=[M,L,{type:x,valueIndex:y.valueIndex,value:b}]}return y=[a.dataTransform(p,y[0]),a.dataTransform(p,y[1]),r.extend({},y[2])],y[2].type=y[2].type||"",r.merge(y[2],y[0]),r.merge(y[2],y[1]),y};function u(p){return!isNaN(p)&&!isFinite(p)}function v(p,g,m,y){var _=1-p,x=y.dimensions[p];return u(g[_])&&u(m[_])&&g[p]===m[p]&&y.getAxis(x).containData(g[p])}function h(p,g){if(p.type==="cartesian2d"){var m=g[0].coord,y=g[1].coord;if(m&&y&&(v(1,m,y,p)||v(0,m,y,p)))return!0}return a.dataFilter(p,g[0])&&a.dataFilter(p,g[1])}function f(p,g,m,y,_){var x=y.coordinateSystem,S=p.getItemModel(g),b,w=e.parsePercent(S.get("x"),_.getWidth()),A=e.parsePercent(S.get("y"),_.getHeight());if(!isNaN(w)&&!isNaN(A))b=[w,A];else{if(y.getMarkerPosition)b=y.getMarkerPosition(p.getValues(p.dimensions,g));else{var T=x.dimensions,C=p.get(T[0],g),M=p.get(T[1],g);b=x.dataToPoint([C,M])}if(x.type==="cartesian2d"){var L=x.getAxis("x"),D=x.getAxis("y"),T=x.dimensions;u(p.get(T[0],g))?b[0]=L.toGlobalCoord(L.getExtent()[m?0:1]):u(p.get(T[1],g))&&(b[1]=D.toGlobalCoord(D.getExtent()[m?0:1]))}isNaN(w)||(b[0]=w),isNaN(A)||(b[1]=A)}p.setItemLayout(g,b)}var c=n.extend({type:"markLine",updateTransform:function(p,g,m){g.eachSeries(function(y){var _=y.markLineModel;if(_){var x=_.getData(),S=_.__from,b=_.__to;S.each(function(w){f(S,w,!0,y,m),f(b,w,!1,y,m)}),x.each(function(w){x.setItemLayout(w,[S.getItemLayout(w),b.getItemLayout(w)])}),this.markerGroupMap.get(y.id).updateLayout()}},this)},renderSeries:function(p,g,m,y){var _=p.coordinateSystem,x=p.id,S=p.getData(),b=this.markerGroupMap,w=b.get(x)||b.set(x,new i);this.group.add(w.group);var A=d(_,p,g),T=A.from,C=A.to,M=A.line;g.__from=T,g.__to=C,g.setData(M);var L=g.get("symbol"),D=g.get("symbolSize");r.isArray(L)||(L=[L,L]),typeof D=="number"&&(D=[D,D]),A.from.each(function(I){P(T,I,!0),P(C,I,!1)}),M.each(function(I){var R=M.getItemModel(I).get("lineStyle.color");M.setItemVisual(I,{color:R||T.getItemVisual(I,"color")}),M.setItemLayout(I,[T.getItemLayout(I),C.getItemLayout(I)]),M.setItemVisual(I,{fromSymbolRotate:T.getItemVisual(I,"symbolRotate"),fromSymbolSize:T.getItemVisual(I,"symbolSize"),fromSymbol:T.getItemVisual(I,"symbol"),toSymbolRotate:C.getItemVisual(I,"symbolRotate"),toSymbolSize:C.getItemVisual(I,"symbolSize"),toSymbol:C.getItemVisual(I,"symbol")})}),w.updateData(M),A.line.eachItemGraphicEl(function(I,R){I.traverse(function(E){E.dataModel=g})});function P(I,R,E){var k=I.getItemModel(R);f(I,R,E,p,y),I.setItemVisual(R,{symbolRotate:k.get("symbolRotate"),symbolSize:k.get("symbolSize")||D[E?0:1],symbol:k.get("symbol",!0)||L[E?0:1],color:k.get("itemStyle.color")||S.getVisual("color")})}w.__keep=!0,w.group.silent=g.get("silent")||p.get("silent")}});function d(p,g,m){var y;p?y=r.map(p&&p.dimensions,function(A){var T=g.getData().getDimensionInfo(g.getData().mapDimension(A))||{};return r.defaults({name:A},T)}):y=[{name:"value",type:"float"}];var _=new t(y,m),x=new t(y,m),S=new t([],m),b=r.map(m.get("data"),r.curry(l,g,p,m));p&&(b=r.filter(b,r.curry(h,p)));var w=p?a.dimValueGetter:function(A){return A.value};return _.initData(r.map(b,function(A){return A[0]}),null,w),x.initData(r.map(b,function(A){return A[1]}),null,w),S.initData(r.map(b,function(A){return A[2]})),S.hasItemOption=!0,{from:_,to:x,line:S}}return tw=c,tw}var nH;function m_e(){if(nH)return rH;nH=1;var r=Pe();return p_e(),g_e(),r.registerPreprocessor(function(t){t.markLine=t.markLine||{}}),rH}var oH={},rw,sH;function y_e(){if(sH)return rw;sH=1;var r=TD(),t=r.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});return rw=t,rw}var lH={},uH;function __e(){if(uH)return lH;uH=1;var r=ie(),t=en(),e=ei(),a=st(),i=qe(),n=AD(),o=CD(),s=function(d,p,g,m){var y=n.dataTransform(d,m[0]),_=n.dataTransform(d,m[1]),x=r.retrieve,S=y.coord,b=_.coord;S[0]=x(S[0],-1/0),S[1]=x(S[1],-1/0),b[0]=x(b[0],1/0),b[1]=x(b[1],1/0);var w=r.mergeAll([{},y,_]);return w.coord=[y.coord,_.coord],w.x0=y.x,w.y0=y.y,w.x1=_.x,w.y1=_.y,w};function l(d){return!isNaN(d)&&!isFinite(d)}function u(d,p,g,m){var y=1-d;return l(p[y])&&l(g[y])}function v(d,p){var g=p.coord[0],m=p.coord[1];return d.type==="cartesian2d"&&g&&m&&(u(1,g,m)||u(0,g,m))?!0:n.dataFilter(d,{coord:g,x:p.x0,y:p.y0})||n.dataFilter(d,{coord:m,x:p.x1,y:p.y1})}function h(d,p,g,m,y){var _=m.coordinateSystem,x=d.getItemModel(p),S,b=a.parsePercent(x.get(g[0]),y.getWidth()),w=a.parsePercent(x.get(g[1]),y.getHeight());if(!isNaN(b)&&!isNaN(w))S=[b,w];else{if(m.getMarkerPosition)S=m.getMarkerPosition(d.getValues(g,p));else{var A=d.get(g[0],p),T=d.get(g[1],p),C=[A,T];_.clampData&&_.clampData(C,C),S=_.dataToPoint(C,!0)}if(_.type==="cartesian2d"){var M=_.getAxis("x"),L=_.getAxis("y"),A=d.get(g[0],p),T=d.get(g[1],p);l(A)?S[0]=M.toGlobalCoord(M.getExtent()[g[0]==="x0"?0:1]):l(T)&&(S[1]=L.toGlobalCoord(L.getExtent()[g[1]==="y0"?0:1]))}isNaN(b)||(S[0]=b),isNaN(w)||(S[1]=w)}return S}var f=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];o.extend({type:"markArea",updateTransform:function(d,p,g){p.eachSeries(function(m){var y=m.markAreaModel;if(y){var _=y.getData();_.each(function(x){var S=r.map(f,function(w){return h(_,x,w,m,g)});_.setItemLayout(x,S);var b=_.getItemGraphicEl(x);b.setShape("points",S)})}},this)},renderSeries:function(d,p,g,m){var y=d.coordinateSystem,_=d.id,x=d.getData(),S=this.markerGroupMap,b=S.get(_)||S.set(_,{group:new i.Group});this.group.add(b.group),b.__keep=!0;var w=c(y,d,p);p.setData(w),w.each(function(A){var T=r.map(f,function(M){return h(w,A,M,d,m)}),C=!0;r.each(f,function(M){if(C){var L=w.get(M[0],A),D=w.get(M[1],A);(l(L)||y.getAxis("x").containData(L))&&(l(D)||y.getAxis("y").containData(D))&&(C=!1)}}),w.setItemLayout(A,{points:T,allClipped:C}),w.setItemVisual(A,{color:x.getVisual("color")})}),w.diff(b.__data).add(function(A){var T=w.getItemLayout(A);if(!T.allClipped){var C=new i.Polygon({shape:{points:T.points}});w.setItemGraphicEl(A,C),b.group.add(C)}}).update(function(A,T){var C=b.__data.getItemGraphicEl(T),M=w.getItemLayout(A);M.allClipped?C&&b.group.remove(C):(C?i.updateProps(C,{shape:{points:M.points}},p,A):C=new i.Polygon({shape:{points:M.points}}),w.setItemGraphicEl(A,C),b.group.add(C))}).remove(function(A){var T=b.__data.getItemGraphicEl(A);b.group.remove(T)}).execute(),w.eachItemGraphicEl(function(A,T){var C=w.getItemModel(T),M=C.getModel("label"),L=C.getModel("emphasis.label"),D=w.getItemVisual(T,"color");A.useStyle(r.defaults(C.getModel("itemStyle").getItemStyle(),{fill:t.modifyAlpha(D,.4),stroke:D})),A.hoverStyle=C.getModel("emphasis.itemStyle").getItemStyle(),i.setLabelStyle(A.style,A.hoverStyle,M,L,{labelFetcher:p,labelDataIndex:T,defaultText:w.getName(T)||"",isRectText:!0,autoColor:D}),i.setHoverStyle(A,{}),A.dataModel=p}),b.__data=w,b.group.silent=p.get("silent")||d.get("silent")}});function c(d,p,g){var m,y,_=["x0","y0","x1","y1"];d?(m=r.map(d&&d.dimensions,function(b){var w=p.getData(),A=w.getDimensionInfo(w.mapDimension(b))||{};return r.defaults({name:b},A)}),y=new e(r.map(_,function(b,w){return{name:b,type:m[w%2].type}}),g)):(m=[{name:"value",type:"float"}],y=new e(m,g));var x=r.map(g.get("data"),r.curry(s,p,d,g));d&&(x=r.filter(x,r.curry(v,d)));var S=d?function(b,w,A,T){return b.coord[Math.floor(T/2)][T%2]}:function(b){return b.value};return y.initData(x,null,S),y.hasItemOption=!0,y}return lH}var vH;function x_e(){if(vH)return oH;vH=1;var r=Pe();return y_e(),__e(),r.registerPreprocessor(function(t){t.markArea=t.markArea||{}}),oH}var hH={},fH={},aw,cH;function N$(){if(cH)return aw;cH=1;var r=Pe(),t=ie(),e=gr(),a=_t(),i=a.isNameSpecified,n=xo(),o=n.legend.selector,s={all:{type:"all",title:t.clone(o.all)},inverse:{type:"inverse",title:t.clone(o.inverse)}},l=r.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(v,h,f){this.mergeDefaultAndTheme(v,f),v.selected=v.selected||{},this._updateSelector(v)},mergeOption:function(v){l.superCall(this,"mergeOption",v),this._updateSelector(v)},_updateSelector:function(v){var h=v.selector;h===!0&&(h=v.selector=["all","inverse"]),t.isArray(h)&&t.each(h,function(f,c){t.isString(f)&&(f={type:f}),h[c]=t.merge(f,s[f.type])})},optionUpdated:function(){this._updateData(this.ecModel);var v=this._data;if(v[0]&&this.get("selectedMode")==="single"){for(var h=!1,f=0;f<v.length;f++){var c=v[f].get("name");if(this.isSelected(c)){this.select(c),h=!0;break}}!h&&this.select(v[0].get("name"))}},_updateData:function(v){var h=[],f=[];v.eachRawSeries(function(p){var g=p.name;f.push(g);var m;if(p.legendVisualProvider){var y=p.legendVisualProvider,_=y.getAllNames();v.isSeriesFiltered(p)||(f=f.concat(_)),_.length?h=h.concat(_):m=!0}else m=!0;m&&i(p)&&h.push(p.name)}),this._availableNames=f;var c=this.get("data")||h,d=t.map(c,function(p){return(typeof p=="string"||typeof p=="number")&&(p={name:p}),new e(p,this,this.ecModel)},this);this._data=d},getData:function(){return this._data},select:function(v){var h=this.option.selected,f=this.get("selectedMode");if(f==="single"){var c=this._data;t.each(c,function(d){h[d.get("name")]=!1})}h[v]=!0},unSelect:function(v){this.get("selectedMode")!=="single"&&(this.option.selected[v]=!1)},toggleSelected:function(v){var h=this.option.selected;h.hasOwnProperty(v)||(h[v]=!0),this[h[v]?"unSelect":"select"](v)},allSelect:function(){var v=this._data,h=this.option.selected;t.each(v,function(f){h[f.get("name",!0)]=!0})},inverseSelect:function(){var v=this._data,h=this.option.selected;t.each(v,function(f){var c=f.get("name",!0);h.hasOwnProperty(c)||(h[c]=!0),h[c]=!h[c]})},isSelected:function(v){var h=this.option.selected;return!(h.hasOwnProperty(v)&&!h[v])&&t.indexOf(this._availableNames,v)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),u=l;return aw=u,aw}var dH={},pH;function S_e(){if(pH)return dH;pH=1;var r=Pe(),t=ie();function e(a,i,n){var o={},s=a==="toggleSelected",l;return n.eachComponent("legend",function(u){s&&l!=null?u[l?"select":"unSelect"](i.name):a==="allSelect"||a==="inverseSelect"?u[a]():(u[a](i.name),l=u.isSelected(i.name));var v=u.getData();t.each(v,function(h){var f=h.get("name");if(!(f==="\n"||f==="")){var c=u.isSelected(f);o.hasOwnProperty(f)?o[f]=o[f]&&c:o[f]=c}})}),a==="allSelect"||a==="inverseSelect"?{selected:o}:{name:i.name,selected:o}}return r.registerAction("legendToggleSelect","legendselectchanged",t.curry(e,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",t.curry(e,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",t.curry(e,"inverseSelect")),r.registerAction("legendSelect","legendselected",t.curry(e,"select")),r.registerAction("legendUnSelect","legendunselected",t.curry(e,"unSelect")),dH}var iw,gH;function z$(){if(gH)return iw;gH=1;var r=It();r.__DEV__;var t=Pe(),e=ie(),a=ti(),i=a.createSymbol,n=qe(),o=R$(),s=o.makeBackground,l=Ut(),u=e.curry,v=e.each,h=n.Group,f=t.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new h),this._backgroundEl,this.group.add(this._selectorGroup=new h),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(m,y,_){var x=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!m.get("show",!0)){var S=m.get("align"),b=m.get("orient");(!S||S==="auto")&&(S=m.get("left")==="right"&&b==="vertical"?"right":"left");var w=m.get("selector",!0),A=m.get("selectorPosition",!0);w&&(!A||A==="auto")&&(A=b==="horizontal"?"end":"start"),this.renderInner(S,m,y,_,w,b,A);var T=m.getBoxLayoutParams(),C={width:_.getWidth(),height:_.getHeight()},M=m.get("padding"),L=l.getLayoutRect(T,C,M),D=this.layoutInner(m,S,L,x,w,A),P=l.getLayoutRect(e.defaults({width:D.width,height:D.height},T),C,M);this.group.attr("position",[P.x-D.x,P.y-D.y]),this.group.add(this._backgroundEl=s(D,m))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(m,y,_,x,S,b,w){var A=this.getContentGroup(),T=e.createHashMap(),C=y.get("selectedMode"),M=[];_.eachRawSeries(function(L){!L.get("legendHoverLink")&&M.push(L.id)}),v(y.getData(),function(L,D){var P=L.get("name");if(!this.newlineDisabled&&(P===""||P==="\n")){A.add(new h({newline:!0}));return}var I=_.getSeriesByName(P)[0];if(!T.get(P))if(I){var R=I.getData(),E=R.getVisual("color"),k=R.getVisual("borderColor");typeof E=="function"&&(E=E(I.getDataParams(0))),typeof k=="function"&&(k=k(I.getDataParams(0)));var B=R.getVisual("legendSymbol")||"roundRect",F=R.getVisual("symbol"),V=this._createItem(P,D,L,y,B,F,m,E,k,C);V.on("click",u(d,P,null,x,M)).on("mouseover",u(p,I.name,null,x,M)).on("mouseout",u(g,I.name,null,x,M)),T.set(P,!0)}else _.eachRawSeries(function(N){if(!T.get(P)&&N.legendVisualProvider){var O=N.legendVisualProvider;if(!O.containName(P))return;var z=O.indexOfName(P),G=O.getItemVisual(z,"color"),q=O.getItemVisual(z,"borderColor"),H="roundRect",U=this._createItem(P,D,L,y,H,null,m,G,q,C);U.on("click",u(d,null,P,x,M)).on("mouseover",u(p,null,P,x,M)).on("mouseout",u(g,null,P,x,M)),T.set(P,!0)}},this)},this),S&&this._createSelector(S,y,x,b,w)},_createSelector:function(m,y,_,x,S){var b=this.getSelectorGroup();v(m,function(A){w(A)});function w(A){var T=A.type,C=new n.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){_.dispatchAction({type:T==="all"?"legendAllSelect":"legendInverseSelect"})}});b.add(C);var M=y.getModel("selectorLabel"),L=y.getModel("emphasis.selectorLabel");n.setLabelStyle(C.style,C.hoverStyle={},M,L,{defaultText:A.title,isRectText:!1}),n.setHoverStyle(C)}},_createItem:function(m,y,_,x,S,b,w,A,T,C){var M=x.get("itemWidth"),L=x.get("itemHeight"),D=x.get("inactiveColor"),P=x.get("inactiveBorderColor"),I=x.get("symbolKeepAspect"),R=x.getModel("itemStyle"),E=x.isSelected(m),k=new h,B=_.getModel("textStyle"),F=_.get("icon"),V=_.getModel("tooltip"),N=V.parentModel;S=F||S;var O=i(S,0,0,M,L,E?A:D,I==null?!0:I);if(k.add(c(O,S,R,T,P,E)),!F&&b&&(b!==S||b==="none")){var z=L*.8;b==="none"&&(b="circle");var G=i(b,(M-z)/2,(L-z)/2,z,z,E?A:D,I==null?!0:I);k.add(c(G,b,R,T,P,E))}var q=w==="left"?M+5:-5,H=w,U=x.get("formatter"),W=m;typeof U=="string"&&U?W=U.replace("{name}",m!=null?m:""):typeof U=="function"&&(W=U(m)),k.add(new n.Text({style:n.setTextStyle({},B,{text:W,x:q,y:L/2,textFill:E?B.getTextColor():D,textAlign:H,textVerticalAlign:"middle"})}));var Y=new n.Rect({shape:k.getBoundingRect(),invisible:!0,tooltip:V.get("show")?e.extend({content:m,formatter:N.get("formatter",!0)||function(){return m},formatterParams:{componentType:"legend",legendIndex:x.componentIndex,name:m,$vars:["name"]}},V.option):null});return k.add(Y),k.eachChild(function(X){X.silent=!0}),Y.silent=!C,this.getContentGroup().add(k),n.setHoverStyle(k),k.__legendDataIndex=y,k},layoutInner:function(m,y,_,x,S,b){var w=this.getContentGroup(),A=this.getSelectorGroup();l.box(m.get("orient"),w,m.get("itemGap"),_.width,_.height);var T=w.getBoundingRect(),C=[-T.x,-T.y];if(S){l.box("horizontal",A,m.get("selectorItemGap",!0));var M=A.getBoundingRect(),L=[-M.x,-M.y],D=m.get("selectorButtonGap",!0),P=m.getOrient().index,I=P===0?"width":"height",R=P===0?"height":"width",E=P===0?"y":"x";b==="end"?L[P]+=T[I]+D:C[P]+=M[I]+D,L[1-P]+=T[R]/2-M[R]/2,A.attr("position",L),w.attr("position",C);var k={x:0,y:0};return k[I]=T[I]+D+M[I],k[R]=Math.max(T[R],M[R]),k[E]=Math.min(0,M[E]+L[1-P]),k}else return w.attr("position",C),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function c(m,y,_,x,S,b){var w;return y!=="line"&&y.indexOf("empty")<0?(w=_.getItemStyle(),m.style.stroke=x,b||(w.stroke=S)):w=_.getItemStyle(["borderWidth","borderColor"]),m.setStyle(w)}function d(m,y,_,x){g(m,y,_,x),_.dispatchAction({type:"legendToggleSelect",name:m!=null?m:y}),p(m,y,_,x)}function p(m,y,_,x){var S=_.getZr().storage.getDisplayList()[0];S&&S.useHoverLayer||_.dispatchAction({type:"highlight",seriesName:m,name:y,excludeSeriesId:x})}function g(m,y,_,x){var S=_.getZr().storage.getDisplayList()[0];S&&S.useHoverLayer||_.dispatchAction({type:"downplay",seriesName:m,name:y,excludeSeriesId:x})}return iw=f,iw}var nw,mH;function b_e(){if(mH)return nw;mH=1;function r(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(a){for(var i=0;i<e.length;i++)if(!e[i].isSelected(a.name))return!1;return!0})}return nw=r,nw}var yH;function B$(){if(yH)return fH;yH=1;var r=Pe();N$(),S_e(),z$();var t=b_e(),e=Lr();return r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,t),e.registerSubTypeDefaulter("legend",function(){return"plain"}),fH}var ow,_H;function w_e(){if(_H)return ow;_H=1;var r=N$(),t=Ut(),e=t.mergeLayoutParam,a=t.getLayoutParams,i=r.extend({type:"legend.scroll",setScrollDataIndex:function(s){this.option.scrollDataIndex=s},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},init:function(s,l,u,v){var h=a(s);i.superCall(this,"init",s,l,u,v),n(this,s,h)},mergeOption:function(s,l){i.superCall(this,"mergeOption",s,l),n(this,this.option,s)}});function n(s,l,u){var v=s.getOrient(),h=[1,1];h[v.index]=0,e(l,u,{type:"box",ignoreSize:h})}var o=i;return ow=o,ow}var sw,xH;function T_e(){if(xH)return sw;xH=1;var r=ie(),t=qe(),e=Ut(),a=z$(),i=t.Group,n=["width","height"],o=["x","y"],s=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){s.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new i),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new i),this._showController},resetInner:function(){s.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(u,v,h,f,c,d,p){var g=this;s.superCall(this,"renderInner",u,v,h,f,c,d,p);var m=this._controllerGroup,y=v.get("pageIconSize",!0);r.isArray(y)||(y=[y,y]),x("pagePrev",0);var _=v.getModel("pageTextStyle");m.add(new t.Text({name:"pageText",style:{textFill:_.getTextColor(),font:_.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),x("pageNext",1);function x(S,b){var w=S+"DataIndex",A=t.createIcon(v.get("pageIcons",!0)[v.getOrient().name][b],{onclick:r.bind(g._pageGo,g,w,v,f)},{x:-y[0]/2,y:-y[1]/2,width:y[0],height:y[1]});A.name=S,m.add(A)}},layoutInner:function(u,v,h,f,c,d){var p=this.getSelectorGroup(),g=u.getOrient().index,m=n[g],y=o[g],_=n[1-g],x=o[1-g];c&&e.box("horizontal",p,u.get("selectorItemGap",!0));var S=u.get("selectorButtonGap",!0),b=p.getBoundingRect(),w=[-b.x,-b.y],A=r.clone(h);c&&(A[m]=h[m]-b[m]-S);var T=this._layoutContentAndController(u,f,A,g,m,_,x);if(c){if(d==="end")w[g]+=T[m]+S;else{var C=b[m]+S;w[g]-=C,T[y]-=C}T[m]+=b[m]+S,w[1-g]+=T[x]+T[_]/2-b[_]/2,T[_]=Math.max(T[_],b[_]),T[x]=Math.min(T[x],b[x]+w[1-g]),p.attr("position",w)}return T},_layoutContentAndController:function(u,v,h,f,c,d,p){var g=this.getContentGroup(),m=this._containerGroup,y=this._controllerGroup;e.box(u.get("orient"),g,u.get("itemGap"),f?h.width:null,f?null:h.height),e.box("horizontal",y,u.get("pageButtonItemGap",!0));var _=g.getBoundingRect(),x=y.getBoundingRect(),S=this._showController=_[c]>h[c],b=[-_.x,-_.y];v||(b[f]=g.position[f]);var w=[0,0],A=[-x.x,-x.y],T=r.retrieve2(u.get("pageButtonGap",!0),u.get("itemGap",!0));if(S){var C=u.get("pageButtonPosition",!0);C==="end"?A[f]+=h[c]-x[c]:w[f]+=x[c]+T}A[1-f]+=_[d]/2-x[d]/2,g.attr("position",b),m.attr("position",w),y.attr("position",A);var M={x:0,y:0};if(M[c]=S?h[c]:_[c],M[d]=Math.max(_[d],x[d]),M[p]=Math.min(0,x[p]+A[1-f]),m.__rectSize=h[c],S){var L={x:0,y:0};L[c]=Math.max(h[c]-x[c]-T,0),L[d]=M[d],m.setClipPath(new t.Rect({shape:L})),m.__rectSize=L[c]}else y.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var D=this._getPageInfo(u);return D.pageIndex!=null&&t.updateProps(g,{position:D.contentPosition},S?u:!1),this._updatePageInfoView(u,D),M},_pageGo:function(u,v,h){var f=this._getPageInfo(v)[u];f!=null&&h.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:v.id})},_updatePageInfoView:function(u,v){var h=this._controllerGroup;r.each(["pagePrev","pageNext"],function(m){var y=v[m+"DataIndex"]!=null,_=h.childOfName(m);_&&(_.setStyle("fill",y?u.get("pageIconColor",!0):u.get("pageIconInactiveColor",!0)),_.cursor=y?"pointer":"default")});var f=h.childOfName("pageText"),c=u.get("pageFormatter"),d=v.pageIndex,p=d!=null?d+1:0,g=v.pageCount;f&&c&&f.setStyle("text",r.isString(c)?c.replace("{current}",p).replace("{total}",g):c({current:p,total:g}))},_getPageInfo:function(u){var v=u.get("scrollDataIndex",!0),h=this.getContentGroup(),f=this._containerGroup.__rectSize,c=u.getOrient().index,d=n[c],p=o[c],g=this._findTargetItemIndex(v),m=h.children(),y=m[g],_=m.length,x=_?1:0,S={contentPosition:h.position.slice(),pageCount:x,pageIndex:x-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var b=M(y);S.contentPosition[c]=-b.s;for(var w=g+1,A=b,T=b,C=null;w<=_;++w)C=M(m[w]),(!C&&T.e>A.s+f||C&&!L(C,A.s))&&(T.i>A.i?A=T:A=C,A&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=A.i),++S.pageCount)),T=C;for(var w=g-1,A=b,T=b,C=null;w>=-1;--w)C=M(m[w]),(!C||!L(T,C.s))&&A.i<T.i&&(T=A,S.pagePrevDataIndex==null&&(S.pagePrevDataIndex=A.i),++S.pageCount,++S.pageIndex),A=C;return S;function M(D){if(D){var P=D.getBoundingRect(),I=P[p]+D.position[c];return{s:I,e:I+P[d],i:D.__legendDataIndex}}}function L(D,P){return D.e>=P&&D.s<=P+f}},_findTargetItemIndex:function(u){if(!this._showController)return 0;var v,h=this.getContentGroup(),f;return h.eachChild(function(c,d){var p=c.__legendDataIndex;f==null&&p!=null&&(f=d),p===u&&(v=d)}),v!=null?v:f}}),l=s;return sw=l,sw}var SH={},bH;function A_e(){if(bH)return SH;bH=1;var r=Pe();return r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(a)})}),SH}var wH;function C_e(){return wH||(wH=1,B$(),w_e(),T_e(),A_e()),hH}var TH={},AH={},lw,CH;function M_e(){if(CH)return lw;CH=1;var r=Pu(),t=r.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),e=t;return lw=e,lw}var uw,MH;function D_e(){if(MH)return uw;MH=1;var r=ie(),t=Ji(),e=qe(),a=_o(),i=Ru(),n=st(),o=Ut(),s=Iu(),l=e.Rect,u=n.linearMap,v=n.asc,h=r.bind,f=r.each,c=7,d=1,p=30,g="horizontal",m="vertical",y=5,_=["line","bar","candlestick","scatter"],x=i.extend({type:"dataZoom.slider",init:function(A,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(A,T,C,M){if(x.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=A.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!M||M.type!=="dataZoom"||M.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){x.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var A=this.group;A.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new e.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),A.add(T),this._positionGroup()},_resetLocation:function(){var A=this.dataZoomModel,T=this.api,C=this._findCoordRect(),M={width:T.getWidth(),height:T.getHeight()},L=this._orient===g?{right:M.width-C.x-C.width,top:M.height-p-c,width:C.width,height:p}:{right:c,top:C.y,width:p,height:C.height},D=o.getLayoutParams(A.option);r.each(["right","top","width","height"],function(I){D[I]==="ph"&&(D[I]=L[I])});var P=o.getLayoutRect(D,M,A.padding);this._location={x:P.x,y:P.y},this._size=[P.width,P.height],this._orient===m&&this._size.reverse()},_positionGroup:function(){var A=this.group,T=this._location,C=this._orient,M=this.dataZoomModel.getFirstTargetAxisModel(),L=M&&M.get("inverse"),D=this._displayables.barGroup,P=(this._dataShadowInfo||{}).otherAxisInverse;D.attr(C===g&&!L?{scale:P?[1,1]:[1,-1]}:C===g&&L?{scale:P?[-1,1]:[-1,-1]}:C===m&&!L?{scale:P?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:P?[-1,-1]:[-1,1],rotation:Math.PI/2});var I=A.getBoundingRect([D]);A.attr("position",[T.x-I.x,T.y-I.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var A=this.dataZoomModel,T=this._size,C=this._displayables.barGroup;C.add(new l({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:A.get("backgroundColor")},z2:-40})),C.add(new l({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var A=this._dataShadowInfo=this._prepareDataShadowInfo();if(A){var T=this._size,C=A.series,M=C.getRawData(),L=C.getShadowDim?C.getShadowDim():A.otherDim;if(L!=null){var D=M.getDataExtent(L),P=(D[1]-D[0])*.3;D=[D[0]-P,D[1]+P];var I=[0,T[1]],R=[0,T[0]],E=[[T[0],0],[0,0]],k=[],B=R[1]/(M.count()-1),F=0,V=Math.round(M.count()/T[0]),N;M.each([L],function(z,G){if(V>0&&G%V){F+=B;return}var q=z==null||isNaN(z)||z==="",H=q?0:u(z,D,I,!0);q&&!N&&G?(E.push([E[E.length-1][0],0]),k.push([k[k.length-1][0],0])):!q&&N&&(E.push([F,0]),k.push([F,0])),E.push([F,H]),k.push([F,H]),F+=B,N=q});var O=this.dataZoomModel;this._displayables.barGroup.add(new e.Polygon({shape:{points:E},style:r.defaults({fill:O.get("dataBackgroundColor")},O.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new e.Polyline({shape:{points:k},style:O.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var A=this.dataZoomModel,T=A.get("showDataShadow");if(T!==!1){var C,M=this.ecModel;return A.eachTargetAxis(function(L,D){var P=A.getAxisProxy(L.name,D).getTargetSeriesModels();r.each(P,function(I){if(!C&&!(T!==!0&&r.indexOf(_,I.get("type"))<0)){var R=M.getComponent(L.axis,D).axis,E=S(L.name),k,B=I.coordinateSystem;E!=null&&B.getOtherAxis&&(k=B.getOtherAxis(R).inverse),E=I.getData().mapDimension(E),C={thisAxis:R,series:I,thisDim:L.name,otherDim:E,otherAxisInverse:k}}},this)},this),C}},_renderHandle:function(){var A=this._displayables,T=A.handles=[],C=A.handleLabels=[],M=this._displayables.barGroup,L=this._size,D=this.dataZoomModel;M.add(A.filler=new l({draggable:!0,cursor:b(this._orient),drift:h(this._onDragMove,this,"all"),ondragstart:h(this._showDataInfo,this,!0),ondragend:h(this._onDragEnd,this),onmouseover:h(this._showDataInfo,this,!0),onmouseout:h(this._showDataInfo,this,!1),style:{fill:D.get("fillerColor"),textPosition:"inside"}})),M.add(new l({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:L[0],height:L[1]},style:{stroke:D.get("dataBackgroundColor")||D.get("borderColor"),lineWidth:d,fill:"rgba(0,0,0,0)"}})),f([0,1],function(P){var I=e.createIcon(D.get("handleIcon"),{cursor:b(this._orient),draggable:!0,drift:h(this._onDragMove,this,P),ondragend:h(this._onDragEnd,this),onmouseover:h(this._showDataInfo,this,!0),onmouseout:h(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),R=I.getBoundingRect();this._handleHeight=n.parsePercent(D.get("handleSize"),this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,I.setStyle(D.getModel("handleStyle").getItemStyle());var E=D.get("handleColor");E!=null&&(I.style.fill=E),M.add(T[P]=I);var k=D.textStyleModel;this.group.add(C[P]=new e.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:k.getTextColor(),textFont:k.getFont()},z2:10}))},this)},_resetInterval:function(){var A=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[u(A[0],[0,100],T,!0),u(A[1],[0,100],T,!0)]},_updateInterval:function(A,T){var C=this.dataZoomModel,M=this._handleEnds,L=this._getViewExtent(),D=C.findRepresentativeAxisProxy().getMinMaxSpan(),P=[0,100];s(T,M,L,C.get("zoomLock")?"all":A,D.minSpan!=null?u(D.minSpan,P,L,!0):null,D.maxSpan!=null?u(D.maxSpan,P,L,!0):null);var I=this._range,R=this._range=v([u(M[0],L,P,!0),u(M[1],L,P,!0)]);return!I||I[0]!==R[0]||I[1]!==R[1]},_updateView:function(A){var T=this._displayables,C=this._handleEnds,M=v(C.slice()),L=this._size;f([0,1],function(D){var P=T.handles[D],I=this._handleHeight;P.attr({scale:[I/2,I/2],position:[C[D],L[1]/2-I/2]})},this),T.filler.setShape({x:M[0],y:0,width:M[1]-M[0],height:L[1]}),this._updateDataInfo(A)},_updateDataInfo:function(A){var T=this.dataZoomModel,C=this._displayables,M=C.handleLabels,L=this._orient,D=["",""];if(T.get("showDetail")){var P=T.findRepresentativeAxisProxy();if(P){var I=P.getAxisModel().axis,R=this._range,E=A?P.calculateDataWindow({start:R[0],end:R[1]}).valueWindow:P.getDataValueWindow();D=[this._formatLabel(E[0],I),this._formatLabel(E[1],I)]}}var k=v(this._handleEnds.slice());B.call(this,0),B.call(this,1);function B(F){var V=e.getTransform(C.handles[F].parent,this.group),N=e.transformDirection(F===0?"right":"left",V),O=this._handleWidth/2+y,z=e.applyTransform([k[F]+(F===0?-O:O),this._size[1]/2],V);M[F].setStyle({x:z[0],y:z[1],textVerticalAlign:L===g?"middle":N,textAlign:L===g?N:"center",text:D[F]})}},_formatLabel:function(A,T){var C=this.dataZoomModel,M=C.get("labelFormatter"),L=C.get("labelPrecision");(L==null||L==="auto")&&(L=T.getPixelPrecision());var D=A==null||isNaN(A)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(A)):A.toFixed(Math.min(L,20));return r.isFunction(M)?M(A,D):r.isString(M)?M.replace("{value}",D):D},_showDataInfo:function(A){A=this._dragging||A;var T=this._displayables.handleLabels;T[0].attr("invisible",!A),T[1].attr("invisible",!A)},_onDragMove:function(A,T,C,M){this._dragging=!0,t.stop(M.event);var L=this._displayables.barGroup.getLocalTransform(),D=e.applyTransform([T,C],L,!0),P=this._updateInterval(A,D[0]),I=this.dataZoomModel.get("realtime");this._updateView(!I),P&&I&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var A=this.dataZoomModel.get("realtime");!A&&this._dispatchZoomAction()},_onClickPanelClick:function(A){var T=this._size,C=this._displayables.barGroup.transformCoordToLocal(A.offsetX,A.offsetY);if(!(C[0]<0||C[0]>T[0]||C[1]<0||C[1]>T[1])){var M=this._handleEnds,L=(M[0]+M[1])/2,D=this._updateInterval("all",C[0]-L);this._updateView(),D&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var A=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:A[0],end:A[1]})},_findCoordRect:function(){var A;if(f(this.getTargetCoordInfo(),function(M){if(!A&&M.length){var L=M[0].model.coordinateSystem;A=L.getRect&&L.getRect()}}),!A){var T=this.api.getWidth(),C=this.api.getHeight();A={x:T*.2,y:C*.2,width:T*.6,height:C*.6}}return A}});function S(A){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[A]}function b(A){return A==="vertical"?"ns-resize":"ew-resize"}var w=x;return uw=w,uw}var DH;function V$(){return DH||(DH=1,xD(),Pu(),Ru(),M_e(),D_e(),bD(),wD()),AH}var LH={},vw,IH;function L_e(){if(IH)return vw;IH=1;var r=Pu(),t=r.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});return vw=t,vw}var Tv={},PH;function I_e(){if(PH)return Tv;PH=1;var r=ie(),t=xf(),e=_o(),a="\0_ec_dataZoom_roams";function i(f,c){var d=s(f),p=c.dataZoomId,g=c.coordId;r.each(d,function(_,x){var S=_.dataZoomInfos;S[p]&&r.indexOf(c.allCoordIds,g)<0&&(delete S[p],_.count--)}),u(d);var m=d[g];m||(m=d[g]={coordId:g,dataZoomInfos:{},count:0},m.controller=l(f,m),m.dispatchAction=r.curry(v,f)),!m.dataZoomInfos[p]&&m.count++,m.dataZoomInfos[p]=c;var y=h(m.dataZoomInfos);m.controller.enable(y.controlType,y.opt),m.controller.setPointerChecker(c.containsPoint),e.createOrUpdate(m,"dispatchAction",c.dataZoomModel.get("throttle",!0),"fixRate")}function n(f,c){var d=s(f);r.each(d,function(p){p.controller.dispose();var g=p.dataZoomInfos;g[c]&&(delete g[c],p.count--)}),u(d)}function o(f){return f.type+"\0_"+f.id}function s(f){var c=f.getZr();return c[a]||(c[a]={})}function l(f,c){var d=new t(f.getZr());return r.each(["pan","zoom","scrollMove"],function(p){d.on(p,function(g){var m=[];r.each(c.dataZoomInfos,function(y){if(g.isAvailableBehavior(y.dataZoomModel.option)){var _=(y.getRange||{})[p],x=_&&_(c.controller,g);!y.dataZoomModel.get("disabled",!0)&&x&&m.push({dataZoomId:y.dataZoomId,start:x[0],end:x[1]})}}),m.length&&c.dispatchAction(m)})}),d}function u(f){r.each(f,function(c,d){c.count||(c.controller.dispose(),delete f[d])})}function v(f,c){f.dispatchAction({type:"dataZoom",batch:c})}function h(f){var c,d="type_",p={type_true:2,type_move:1,type_false:0,type_undefined:-1},g=!0;return r.each(f,function(m){var y=m.dataZoomModel,_=y.get("disabled",!0)?!1:y.get("zoomLock",!0)?"move":!0;p[d+_]>p[d+c]&&(c=_),g&=y.get("preventDefaultMouseMove",!0)}),{controlType:c,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!g}}}return Tv.register=i,Tv.unregister=n,Tv.generateCoordId=o,Tv}var hw,RH;function P_e(){if(RH)return hw;RH=1;var r=ie(),t=Ru(),e=Iu(),a=I_e(),i=r.bind,n=t.extend({type:"dataZoom.inside",init:function(v,h){this._range},render:function(v,h,f,c){n.superApply(this,"render",arguments),this._range=v.getPercentRange(),r.each(this.getTargetCoordInfo(),function(d,p){var g=r.map(d,function(m){return a.generateCoordId(m.model)});r.each(d,function(m){var y=m.model,_={};r.each(["pan","zoom","scrollMove"],function(x){_[x]=i(o[x],this,m,p)},this),a.register(f,{coordId:a.generateCoordId(y),allCoordIds:g,containsPoint:function(x,S,b){return y.coordinateSystem.containPoint([S,b])},dataZoomId:v.id,dataZoomModel:v,getRange:_})},this)},this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),n.superApply(this,"dispose",arguments),this._range=null}}),o={zoom:function(v,h,f,c){var d=this._range,p=d.slice(),g=v.axisModels[0];if(g){var m=l[h](null,[c.originX,c.originY],g,f,v),y=(m.signal>0?m.pixelStart+m.pixelLength-m.pixel:m.pixel-m.pixelStart)/m.pixelLength*(p[1]-p[0])+p[0],_=Math.max(1/c.scale,0);p[0]=(p[0]-y)*_+y,p[1]=(p[1]-y)*_+y;var x=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(e(0,p,[0,100],0,x.minSpan,x.maxSpan),this._range=p,d[0]!==p[0]||d[1]!==p[1])return p}},pan:s(function(v,h,f,c,d,p){var g=l[c]([p.oldX,p.oldY],[p.newX,p.newY],h,d,f);return g.signal*(v[1]-v[0])*g.pixel/g.pixelLength}),scrollMove:s(function(v,h,f,c,d,p){var g=l[c]([0,0],[p.scrollDelta,p.scrollDelta],h,d,f);return g.signal*(v[1]-v[0])*p.scrollDelta})};function s(v){return function(h,f,c,d){var p=this._range,g=p.slice(),m=h.axisModels[0];if(m){var y=v(g,m,h,f,c,d);if(e(y,g,[0,100],"all"),this._range=g,p[0]!==g[0]||p[1]!==g[1])return g}}}var l={grid:function(v,h,f,c,d){var p=f.axis,g={},m=d.model.coordinateSystem.getRect();return v=v||[0,0],p.dim==="x"?(g.pixel=h[0]-v[0],g.pixelLength=m.width,g.pixelStart=m.x,g.signal=p.inverse?1:-1):(g.pixel=h[1]-v[1],g.pixelLength=m.height,g.pixelStart=m.y,g.signal=p.inverse?-1:1),g},polar:function(v,h,f,c,d){var p=f.axis,g={},m=d.model.coordinateSystem,y=m.getRadiusAxis().getExtent(),_=m.getAngleAxis().getExtent();return v=v?m.pointToCoord(v):[0,0],h=m.pointToCoord(h),f.mainType==="radiusAxis"?(g.pixel=h[0]-v[0],g.pixelLength=y[1]-y[0],g.pixelStart=y[0],g.signal=p.inverse?1:-1):(g.pixel=h[1]-v[1],g.pixelLength=_[1]-_[0],g.pixelStart=_[0],g.signal=p.inverse?-1:1),g},singleAxis:function(v,h,f,c,d){var p=f.axis,g=d.model.coordinateSystem.getRect(),m={};return v=v||[0,0],p.orient==="horizontal"?(m.pixel=h[0]-v[0],m.pixelLength=g.width,m.pixelStart=g.x,m.signal=p.inverse?1:-1):(m.pixel=h[1]-v[1],m.pixelLength=g.height,m.pixelStart=g.y,m.signal=p.inverse?-1:1),m}},u=n;return hw=u,hw}var EH;function G$(){return EH||(EH=1,xD(),Pu(),Ru(),L_e(),P_e(),bD(),wD()),LH}var kH;function R_e(){return kH||(kH=1,V$(),G$()),TH}var OH={},NH={},fw,zH;function F$(){if(zH)return fw;zH=1;var r=ie(),t=r.each;function e(i){var n=i&&i.visualMap;r.isArray(n)||(n=n?[n]:[]),t(n,function(o){if(o){a(o,"splitList")&&!a(o,"pieces")&&(o.pieces=o.splitList,delete o.splitList);var s=o.pieces;s&&r.isArray(s)&&t(s,function(l){r.isObject(l)&&(a(l,"start")&&!a(l,"min")&&(l.min=l.start),a(l,"end")&&!a(l,"max")&&(l.max=l.end))})}})}function a(i,n){return i&&i.hasOwnProperty&&i.hasOwnProperty(n)}return fw=e,fw}var BH={},VH;function H$(){if(VH)return BH;VH=1;var r=Lr();return r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),BH}var GH={},FH;function q$(){if(FH)return GH;FH=1;var r=Pe(),t=ie(),e=Tg(),a=js(),i=r.PRIORITY.VISUAL.COMPONENT;r.registerVisual(i,{createOnAllSeries:!0,reset:function(o,s){var l=[];return s.eachComponent("visualMap",function(u){var v=o.pipelineContext;!u.isTargetSeries(o)||v&&v.large||l.push(e.incrementalApplyVisual(u.stateList,u.targetVisuals,t.bind(u.getValueState,u),u.getDataDimension(o.getData())))}),l}}),r.registerVisual(i,{createOnAllSeries:!0,reset:function(o,s){var l=o.getData(),u=[];s.eachComponent("visualMap",function(v){if(v.isTargetSeries(o)){var h=v.getVisualMeta(t.bind(n,null,o,v))||{stops:[],outerColors:[]},f=v.getDataDimension(l),c=l.getDimensionInfo(f);c!=null&&(h.dimension=c.index,u.push(h))}}),o.getData().setVisual("visualMeta",u)}});function n(o,s,l,u){for(var v=s.targetVisuals[u],h=a.prepareVisualTypes(v),f={color:o.getData().getVisual("color")},c=0,d=h.length;c<d;c++){var p=h[c],g=v[p==="opacity"?"__alphaForOpacity":p];g&&g.applyVisual(l,m,y)}return f.color;function m(_){return f[_]}function y(_,x){f[_]=x}}return GH}var cw,HH;function W$(){if(HH)return cw;HH=1;var r=ie(),t={get:function(i,n,o){var s=r.clone((e[i]||{})[n]);return o&&r.isArray(s)?s[s.length-1]:s}},e={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a=t;return cw=a,cw}var dw,qH;function U$(){if(qH)return dw;qH=1;var r=Pe(),t=ie(),e=pr(),a=W$(),i=js(),n=Tg(),o=_t(),s=st(),l=i.mapVisual,u=i.eachVisual,v=t.isArray,h=t.each,f=s.asc,c=s.linearMap,d=t.noop,p=r.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(m,y,_){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(m,_)},optionUpdated:function(m,y){var _=this.option;e.canvasSupported||(_.realtime=!1),!y&&n.replaceVisualOption(_,m,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(m){var y=this.stateList;m=t.bind(m,this),this.controllerVisuals=n.createVisualMappings(this.option.controller,y,m),this.targetVisuals=n.createVisualMappings(this.option.target,y,m)},getTargetSeriesIndices:function(){var m=this.option.seriesIndex,y=[];return m==null||m==="all"?this.ecModel.eachSeries(function(_,x){y.push(x)}):y=o.normalizeToArray(m),y},eachTargetSeries:function(m,y){t.each(this.getTargetSeriesIndices(),function(_){m.call(y,this.ecModel.getSeriesByIndex(_))},this)},isTargetSeries:function(m){var y=!1;return this.eachTargetSeries(function(_){_===m&&(y=!0)}),y},formatValueText:function(m,y,_){var x=this.option,S=x.precision,b=this.dataBound,w=x.formatter,A,T;if(_=_||["<",">"],t.isArray(m)&&(m=m.slice(),A=!0),T=y?m:A?[C(m[0]),C(m[1])]:C(m),t.isString(w))return w.replace("{value}",A?T[0]:T).replace("{value2}",A?T[1]:T);if(t.isFunction(w))return A?w(m[0],m[1]):w(m);if(A)return m[0]===b[0]?_[0]+" "+T[1]:m[1]===b[1]?_[1]+" "+T[0]:T[0]+" - "+T[1];return T;function C(M){return M===b[0]?"min":M===b[1]?"max":(+M).toFixed(Math.min(S,20))}},resetExtent:function(){var m=this.option,y=f([m.min,m.max]);this._dataExtent=y},getDataDimension:function(m){var y=this.option.dimension,_=m.dimensions;if(!(y==null&&!_.length)){if(y!=null)return m.getDimension(y);for(var x=m.dimensions,S=x.length-1;S>=0;S--){var b=x[S],w=m.getDimensionInfo(b);if(!w.isCalculationCoord)return b}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var m=this.ecModel,y=this.option,_={inRange:y.inRange,outOfRange:y.outOfRange},x=y.target||(y.target={}),S=y.controller||(y.controller={});t.merge(x,_),t.merge(S,_);var b=this.isCategory();w.call(this,x),w.call(this,S),A.call(this,x,"inRange","outOfRange"),T.call(this,S);function w(C){v(y.color)&&!C.inRange&&(C.inRange={color:y.color.slice().reverse()}),C.inRange=C.inRange||{color:m.get("gradientColor")},h(this.stateList,function(M){var L=C[M];if(t.isString(L)){var D=a.get(L,"active",b);D?(C[M]={},C[M][L]=D):delete C[M]}},this)}function A(C,M,L){var D=C[M],P=C[L];D&&!P&&(P=C[L]={},h(D,function(I,R){if(i.isValidType(R)){var E=a.get(R,"inactive",b);E!=null&&(P[R]=E,R==="color"&&!P.hasOwnProperty("opacity")&&!P.hasOwnProperty("colorAlpha")&&(P.opacity=[0,0]))}}))}function T(C){var M=(C.inRange||{}).symbol||(C.outOfRange||{}).symbol,L=(C.inRange||{}).symbolSize||(C.outOfRange||{}).symbolSize,D=this.get("inactiveColor");h(this.stateList,function(P){var I=this.itemSize,R=C[P];R||(R=C[P]={color:b?D:[D]}),R.symbol==null&&(R.symbol=M&&t.clone(M)||(b?"roundRect":["roundRect"])),R.symbolSize==null&&(R.symbolSize=L&&t.clone(L)||(b?I[0]:[I[0],I[0]])),R.symbol=l(R.symbol,function(B){return B==="none"||B==="square"?"roundRect":B});var E=R.symbolSize;if(E!=null){var k=-1/0;u(E,function(B){B>k&&(k=B)}),R.symbolSize=l(E,function(B){return c(B,[0,k],[0,I[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:d,getValueState:d,getVisualMeta:d}),g=p;return dw=g,dw}var pw,WH;function E_e(){if(WH)return pw;WH=1;var r=ie(),t=U$(),e=st(),a=[20,140],i=t.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(s,l){i.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(u){u.mappingMethod="linear",u.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){i.superApply(this,"resetItemSize",arguments);var s=this.itemSize;this._orient==="horizontal"&&s.reverse(),(s[0]==null||isNaN(s[0]))&&(s[0]=a[0]),(s[1]==null||isNaN(s[1]))&&(s[1]=a[1])},_resetRange:function(){var s=this.getExtent(),l=this.option.range;!l||l.auto?(s.auto=1,this.option.range=s):r.isArray(l)&&(l[0]>l[1]&&l.reverse(),l[0]=Math.max(l[0],s[0]),l[1]=Math.min(l[1],s[1]))},completeVisualOption:function(){t.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,function(s){var l=this.option.controller[s].symbolSize;l&&l[0]!==l[1]&&(l[0]=0)},this)},setSelected:function(s){this.option.range=s.slice(),this._resetRange()},getSelected:function(){var s=this.getExtent(),l=e.asc((this.get("range")||[]).slice());return l[0]>s[1]&&(l[0]=s[1]),l[1]>s[1]&&(l[1]=s[1]),l[0]<s[0]&&(l[0]=s[0]),l[1]<s[0]&&(l[1]=s[0]),l},getValueState:function(s){var l=this.option.range,u=this.getExtent();return(l[0]<=u[0]||l[0]<=s)&&(l[1]>=u[1]||s<=l[1])?"inRange":"outOfRange"},findTargetDataIndices:function(s){var l=[];return this.eachTargetSeries(function(u){var v=[],h=u.getData();h.each(this.getDataDimension(h),function(f,c){s[0]<=f&&f<=s[1]&&v.push(c)},this),l.push({seriesId:u.id,dataIndex:v})},this),l},getVisualMeta:function(s){var l=n(this,"outOfRange",this.getExtent()),u=n(this,"inRange",this.option.range.slice()),v=[];function h(y,_){v.push({value:y,color:s(y,_)})}for(var f=0,c=0,d=u.length,p=l.length;c<p&&(!u.length||l[c]<=u[0]);c++)l[c]<u[f]&&h(l[c],"outOfRange");for(var g=1;f<d;f++,g=0)g&&v.length&&h(u[f],"outOfRange"),h(u[f],"inRange");for(var g=1;c<p;c++)(!u.length||u[u.length-1]<l[c])&&(g&&(v.length&&h(v[v.length-1].value,"outOfRange"),g=0),h(l[c],"outOfRange"));var m=v.length;return{stops:v,outerColors:[m?v[0].color:"transparent",m?v[m-1].color:"transparent"]}}});function n(s,l,u){if(u[0]===u[1])return u.slice();for(var v=200,h=(u[1]-u[0])/v,f=u[0],c=[],d=0;d<=v&&f<u[1];d++)c.push(f),f+=h;return c.push(u[1]),c}var o=i;return pw=o,pw}var gw,UH;function $$(){if(UH)return gw;UH=1;var r=Pe(),t=ie(),e=qe(),a=Yt(),i=Ut(),n=js(),o=r.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(s,l){this.ecModel=s,this.api=l,this.visualMapModel},render:function(s,l,u,v){if(this.visualMapModel=s,s.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(s){var l=this.visualMapModel,u=a.normalizeCssArray(l.get("padding")||0),v=s.getBoundingRect();s.add(new e.Rect({z2:-1,silent:!0,shape:{x:v.x-u[3],y:v.y-u[0],width:v.width+u[3]+u[1],height:v.height+u[0]+u[2]},style:{fill:l.get("backgroundColor"),stroke:l.get("borderColor"),lineWidth:l.get("borderWidth")}}))},getControllerVisual:function(s,l,u){u=u||{};var v=u.forceState,h=this.visualMapModel,f={};if(l==="symbol"&&(f.symbol=h.get("itemSymbol")),l==="color"){var c=h.get("contentColor");f.color=c}function d(y){return f[y]}function p(y,_){f[y]=_}var g=h.controllerVisuals[v||h.getValueState(s)],m=n.prepareVisualTypes(g);return t.each(m,function(y){var _=g[y];u.convertOpacityToAlpha&&y==="opacity"&&(y="colorAlpha",_=g.__alphaForOpacity),n.dependsOn(y,l)&&_&&_.applyVisual(s,d,p)}),f[l]},positionGroup:function(s){var l=this.visualMapModel,u=this.api;i.positionElement(s,l.getBoxLayoutParams(),{width:u.getWidth(),height:u.getHeight()})},doRender:t.noop});return gw=o,gw}var Vc={},$H;function Y$(){if($H)return Vc;$H=1;var r=ie(),t=Ut(),e=t.getLayoutRect;function a(n,o,s){var l=n.option,u=l.align;if(u!=null&&u!=="auto")return u;for(var v={width:o.getWidth(),height:o.getHeight()},h=l.orient==="horizontal"?1:0,f=[["left","right","width"],["top","bottom","height"]],c=f[h],d=[0,null,10],p={},g=0;g<3;g++)p[f[1-h][g]]=d[g],p[c[g]]=g===2?s[0]:l[c[g]];var m=[["x","width",3],["y","height",0]][h],y=e(p,v,l.padding);return c[(y.margin[m[2]]||0)+y[m[0]]+y[m[1]]*.5<v[m[1]]*.5?0:1]}function i(n,o){return r.each(n||[],function(s){s.dataIndex!=null&&(s.dataIndexInside=s.dataIndex,s.dataIndex=null),s.highlightKey="visualMap"+(o?o.componentIndex:"")}),n}return Vc.getItemAlign=a,Vc.makeHighDownBatch=i,Vc}var mw,YH;function k_e(){if(YH)return mw;YH=1;var r=ie(),t=tD(),e=Ji(),a=$$(),i=qe(),n=st(),o=Iu(),s=Y$(),l=_t(),u=n.linearMap,v=r.each,h=Math.min,f=Math.max,c=12,d=6,p=a.extend({type:"visualMap.continuous",init:function(){p.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(w,A,T,C){(!C||C.type!=="selectDataRange"||C.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var w=this.visualMapModel,A=this.group;this._orient=w.get("orient"),this._useHandle=w.get("calculable"),this._resetInterval(),this._renderBar(A);var T=w.get("text");this._renderEndsText(A,T,0),this._renderEndsText(A,T,1),this._updateView(!0),this.renderBackground(A),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(A)},_renderEndsText:function(w,A,T){if(A){var C=A[1-T];C=C!=null?C+"":"";var M=this.visualMapModel,L=M.get("textGap"),D=M.itemSize,P=this._shapes.barGroup,I=this._applyTransform([D[0]/2,T===0?-L:D[1]+L],P),R=this._applyTransform(T===0?"bottom":"top",P),E=this._orient,k=this.visualMapModel.textStyleModel;this.group.add(new i.Text({style:{x:I[0],y:I[1],textVerticalAlign:E==="horizontal"?"middle":R,textAlign:E==="horizontal"?R:"center",text:C,textFont:k.getFont(),textFill:k.getTextColor()}}))}},_renderBar:function(w){var A=this.visualMapModel,T=this._shapes,C=A.itemSize,M=this._orient,L=this._useHandle,D=s.getItemAlign(A,this.api,C),P=T.barGroup=this._createBarGroup(D);P.add(T.outOfRange=g()),P.add(T.inRange=g(null,L?S(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0)));var I=A.textStyleModel.getTextRect("国"),R=f(I.width,I.height);L&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(P,0,C,R,M,D),this._createHandle(P,1,C,R,M,D)),this._createIndicator(P,C,R,M),w.add(P)},_createHandle:function(w,A,T,C,M){var L=r.bind(this._dragHandle,this,A,!1),D=r.bind(this._dragHandle,this,A,!0),P=g(m(A,C),S(this._orient),L,D);P.position[0]=T[0],w.add(P);var I=this.visualMapModel.textStyleModel,R=new i.Text({draggable:!0,drift:L,onmousemove:function(B){e.stop(B.event)},ondragend:D,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(R);var E=[M==="horizontal"?C/2:C*1.5,M==="horizontal"?A===0?-(C*1.5):C*1.5:A===0?-C/2:C/2],k=this._shapes;k.handleThumbs[A]=P,k.handleLabelPoints[A]=E,k.handleLabels[A]=R},_createIndicator:function(w,A,T,C){var M=g([[0,0]],"move");M.position[0]=A[0],M.attr({invisible:!0,silent:!0}),w.add(M);var L=this.visualMapModel.textStyleModel,D=new i.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:L.getFont(),textFill:L.getTextColor()}});this.group.add(D);var P=[C==="horizontal"?T/2:d+3,0],I=this._shapes;I.indicator=M,I.indicatorLabel=D,I.indicatorLabelPoint=P},_dragHandle:function(w,A,T,C){if(this._useHandle){if(this._dragging=!A,!A){var M=this._applyTransform([T,C],this._shapes.barGroup,!0);this._updateInterval(w,M[1]),this._updateView()}A===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),A?!this._hovering&&this._clearHoverLinkToSeries():x(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[w],!1)}},_resetInterval:function(){var w=this.visualMapModel,A=this._dataInterval=w.getSelected(),T=w.getExtent(),C=[0,w.itemSize[1]];this._handleEnds=[u(A[0],T,C,!0),u(A[1],T,C,!0)]},_updateInterval:function(w,A){A=A||0;var T=this.visualMapModel,C=this._handleEnds,M=[0,T.itemSize[1]];o(A,C,M,w,0);var L=T.getExtent();this._dataInterval=[u(C[0],M,L,!0),u(C[1],M,L,!0)]},_updateView:function(w){var A=this.visualMapModel,T=A.getExtent(),C=this._shapes,M=[0,A.itemSize[1]],L=w?M:this._handleEnds,D=this._createBarVisual(this._dataInterval,T,L,"inRange"),P=this._createBarVisual(T,T,M,"outOfRange");C.inRange.setStyle({fill:D.barColor,opacity:D.opacity}).setShape("points",D.barPoints),C.outOfRange.setStyle({fill:P.barColor,opacity:P.opacity}).setShape("points",P.barPoints),this._updateHandle(L,D)},_createBarVisual:function(w,A,T,C){var M={forceState:C,convertOpacityToAlpha:!0},L=this._makeColorGradient(w,M),D=[this.getControllerVisual(w[0],"symbolSize",M),this.getControllerVisual(w[1],"symbolSize",M)],P=this._createBarPoints(T,D);return{barColor:new t(0,0,0,1,L),barPoints:P,handlesColor:[L[0].color,L[L.length-1].color]}},_makeColorGradient:function(w,A){var T=100,C=[],M=(w[1]-w[0])/T;C.push({color:this.getControllerVisual(w[0],"color",A),offset:0});for(var L=1;L<T;L++){var D=w[0]+M*L;if(D>w[1])break;C.push({color:this.getControllerVisual(D,"color",A),offset:L/T})}return C.push({color:this.getControllerVisual(w[1],"color",A),offset:1}),C},_createBarPoints:function(w,A){var T=this.visualMapModel.itemSize;return[[T[0]-A[0],w[0]],[T[0],w[0]],[T[0],w[1]],[T[0]-A[1],w[1]]]},_createBarGroup:function(w){var A=this._orient,T=this.visualMapModel.get("inverse");return new i.Group(A==="horizontal"&&!T?{scale:w==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:A==="horizontal"&&T?{scale:w==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:A==="vertical"&&!T?{scale:w==="left"?[1,-1]:[-1,-1]}:{scale:w==="left"?[1,1]:[-1,1]})},_updateHandle:function(w,A){if(this._useHandle){var T=this._shapes,C=this.visualMapModel,M=T.handleThumbs,L=T.handleLabels;v([0,1],function(D){var P=M[D];P.setStyle("fill",A.handlesColor[D]),P.position[1]=w[D];var I=i.applyTransform(T.handleLabelPoints[D],i.getTransform(P,this.group));L[D].setStyle({x:I[0],y:I[1],text:C.formatValueText(this._dataInterval[D]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?D===0?"bottom":"top":"left",T.barGroup)})},this)}},_showIndicator:function(w,A,T,C){var M=this.visualMapModel,L=M.getExtent(),D=M.itemSize,P=[0,D[1]],I=u(w,L,P,!0),R=this._shapes,E=R.indicator;if(E){E.position[1]=I,E.attr("invisible",!1),E.setShape("points",y(!!T,C,I,D[1]));var k={convertOpacityToAlpha:!0},B=this.getControllerVisual(w,"color",k);E.setStyle("fill",B);var F=i.applyTransform(R.indicatorLabelPoint,i.getTransform(E,this.group)),V=R.indicatorLabel;V.attr("invisible",!1);var N=this._applyTransform("left",R.barGroup),O=this._orient;V.setStyle({text:(T||"")+M.formatValueText(A),textVerticalAlign:O==="horizontal"?N:"middle",textAlign:O==="horizontal"?"center":N,x:F[0],y:F[1]})}},_enableHoverLinkToSeries:function(){var w=this;this._shapes.barGroup.on("mousemove",function(A){if(w._hovering=!0,!w._dragging){var T=w.visualMapModel.itemSize,C=w._applyTransform([A.offsetX,A.offsetY],w._shapes.barGroup,!0,!0);C[1]=h(f(0,C[1]),T[1]),w._doHoverLinkToSeries(C[1],0<=C[0]&&C[0]<=T[0])}}).on("mouseout",function(){w._hovering=!1,!w._dragging&&w._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var w=this.api.getZr();this.visualMapModel.option.hoverLink?(w.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),w.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(w,A){var T=this.visualMapModel,C=T.itemSize;if(T.option.hoverLink){var M=[0,C[1]],L=T.getExtent();w=h(f(M[0],w),M[1]);var D=_(T,L,M),P=[w-D,w+D],I=u(w,M,L,!0),R=[u(P[0],M,L,!0),u(P[1],M,L,!0)];P[0]<M[0]&&(R[0]=-1/0),P[1]>M[1]&&(R[1]=1/0),A&&(R[0]===-1/0?this._showIndicator(I,R[1],"< ",D):R[1]===1/0?this._showIndicator(I,R[0],"> ",D):this._showIndicator(I,I,"≈ ",D));var E=this._hoverLinkDataIndices,k=[];(A||x(T))&&(k=this._hoverLinkDataIndices=T.findTargetDataIndices(R));var B=l.compressBatches(E,k);this._dispatchHighDown("downplay",s.makeHighDownBatch(B[0],T)),this._dispatchHighDown("highlight",s.makeHighDownBatch(B[1],T))}},_hoverLinkFromSeriesMouseOver:function(w){var A=w.target,T=this.visualMapModel;if(!(!A||A.dataIndex==null)){var C=this.ecModel.getSeriesByIndex(A.seriesIndex);if(T.isTargetSeries(C)){var M=C.getData(A.dataType),L=M.get(T.getDataDimension(M),A.dataIndex,!0);isNaN(L)||this._showIndicator(L,L)}}},_hideIndicator:function(){var w=this._shapes;w.indicator&&w.indicator.attr("invisible",!0),w.indicatorLabel&&w.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var w=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",s.makeHighDownBatch(w,this.visualMapModel)),w.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var w=this.api.getZr();w.off("mouseover",this._hoverLinkFromSeriesMouseOver),w.off("mouseout",this._hideIndicator)},_applyTransform:function(w,A,T,C){var M=i.getTransform(A,C?null:this.group);return i[r.isArray(w)?"applyTransform":"transformDirection"](w,M,T)},_dispatchHighDown:function(w,A){A&&A.length&&this.api.dispatchAction({type:w,batch:A})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function g(w,A,T,C){return new i.Polygon({shape:{points:w},draggable:!!T,cursor:A,drift:T,onmousemove:function(M){e.stop(M.event)},ondragend:C})}function m(w,A){return w===0?[[0,0],[A,0],[A,-A]]:[[0,0],[A,0],[A,A]]}function y(w,A,T,C){return w?[[0,-h(A,f(T,0))],[d,0],[0,h(A,f(C-T,0))]]:[[0,0],[5,-5],[5,5]]}function _(w,A,T){var C=c/2,M=w.get("hoverLinkDataSize");return M&&(C=u(M,A,T,!0)/2),C}function x(w){var A=w.get("hoverLinkOnHandle");return!!(A==null?w.get("realtime"):A)}function S(w){return w==="vertical"?"ns-resize":"ew-resize"}var b=p;return mw=b,mw}var ZH={},XH;function Z$(){if(XH)return ZH;XH=1;var r=Pe(),t={type:"selectDataRange",event:"dataRangeSelected",update:"update"};return r.registerAction(t,function(e,a){a.eachComponent({mainType:"visualMap",query:e},function(i){i.setSelected(e.selected)})}),ZH}var KH;function X$(){if(KH)return NH;KH=1;var r=Pe(),t=F$();return H$(),q$(),E_e(),k_e(),Z$(),r.registerPreprocessor(t),NH}var QH={},yw,jH;function O_e(){if(jH)return yw;jH=1;var r=It();r.__DEV__;var t=ie(),e=U$(),a=js(),i=W$(),n=st(),o=n.reformIntervals,s=e.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(h,f){s.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var c=this._mode=this._determineMode();l[this._mode].call(this),this._resetSelected(h,f);var d=this.option.categories;this.resetVisual(function(p,g){c==="categories"?(p.mappingMethod="category",p.categories=t.clone(d)):(p.dataExtent=this.getExtent(),p.mappingMethod="piecewise",p.pieceList=t.map(this._pieceList,function(y){var y=t.clone(y);return g!=="inRange"&&(y.visual=null),y}))})},completeVisualOption:function(){var h=this.option,f={},c=a.listVisualTypes(),d=this.isCategory();t.each(h.pieces,function(g){t.each(c,function(m){g.hasOwnProperty(m)&&(f[m]=1)})}),t.each(f,function(g,m){var y=0;t.each(this.stateList,function(_){y|=p(h,_,m)||p(h.target,_,m)},this),!y&&t.each(this.stateList,function(_){(h[_]||(h[_]={}))[m]=i.get(m,_==="inRange"?"active":"inactive",d)})},this);function p(g,m,y){return g&&g[m]&&(t.isObject(g[m])?g[m].hasOwnProperty(y):g[m]===y)}e.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(h,f){var c=this.option,d=this._pieceList,p=(f?c:h).selected||{};if(c.selected=p,t.each(d,function(m,y){var _=this.getSelectedMapKey(m);p.hasOwnProperty(_)||(p[_]=!0)},this),c.selectedMode==="single"){var g=!1;t.each(d,function(m,y){var _=this.getSelectedMapKey(m);p[_]&&(g?p[_]=!1:g=!0)},this)}},getSelectedMapKey:function(h){return this._mode==="categories"?h.value+"":h.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var h=this.option;return h.pieces&&h.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(h){this.option.selected=t.clone(h)},getValueState:function(h){var f=a.findPieceIndex(h,this._pieceList);return f!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[f])]?"inRange":"outOfRange"},findTargetDataIndices:function(h){var f=[];return this.eachTargetSeries(function(c){var d=[],p=c.getData();p.each(this.getDataDimension(p),function(g,m){var y=a.findPieceIndex(g,this._pieceList);y===h&&d.push(m)},this),f.push({seriesId:c.id,dataIndex:d})},this),f},getRepresentValue:function(h){var f;if(this.isCategory())f=h.value;else if(h.value!=null)f=h.value;else{var c=h.interval||[];f=c[0]===-1/0&&c[1]===1/0?0:(c[0]+c[1])/2}return f},getVisualMeta:function(h){if(this.isCategory())return;var f=[],c=[],d=this;function p(_,x){var S=d.getRepresentValue({interval:_});x||(x=d.getValueState(S));var b=h(S,x);_[0]===-1/0?c[0]=b:_[1]===1/0?c[1]=b:f.push({value:_[0],color:b},{value:_[1],color:b})}var g=this._pieceList.slice();if(!g.length)g.push({interval:[-1/0,1/0]});else{var m=g[0].interval[0];m!==-1/0&&g.unshift({interval:[-1/0,m]}),m=g[g.length-1].interval[1],m!==1/0&&g.push({interval:[m,1/0]})}var y=-1/0;return t.each(g,function(_){var x=_.interval;x&&(x[0]>y&&p([y,x[0]],"outOfRange"),p(x.slice()),y=x[1])},this),{stops:f,outerColors:c}}}),l={splitNumber:function(){var h=this.option,f=this._pieceList,c=Math.min(h.precision,20),d=this.getExtent(),p=h.splitNumber;p=Math.max(parseInt(p,10),1),h.splitNumber=p;for(var g=(d[1]-d[0])/p;+g.toFixed(c)!==g&&c<5;)c++;h.precision=c,g=+g.toFixed(c),h.minOpen&&f.push({interval:[-1/0,d[0]],close:[0,0]});for(var m=0,y=d[0];m<p;y+=g,m++){var _=m===p-1?d[1]:y+g;f.push({interval:[y,_],close:[1,1]})}h.maxOpen&&f.push({interval:[d[1],1/0],close:[0,0]}),o(f),t.each(f,function(x,S){x.index=S,x.text=this.formatValueText(x.interval)},this)},categories:function(){var h=this.option;t.each(h.categories,function(f){this._pieceList.push({text:this.formatValueText(f,!0),value:f})},this),u(h,this._pieceList)},pieces:function(){var h=this.option,f=this._pieceList;t.each(h.pieces,function(c,d){t.isObject(c)||(c={value:c});var p={text:"",index:d};if(c.label!=null&&(p.text=c.label),c.hasOwnProperty("value")){var g=p.value=c.value;p.interval=[g,g],p.close=[1,1]}else{for(var m=p.interval=[],y=p.close=[0,0],_=[1,0,1],x=[-1/0,1/0],S=[],b=0;b<2;b++){for(var w=[["gte","gt","min"],["lte","lt","max"]][b],A=0;A<3&&m[b]==null;A++)m[b]=c[w[A]],y[b]=_[A],S[b]=A===2;m[b]==null&&(m[b]=x[b])}S[0]&&m[1]===1/0&&(y[0]=0),S[1]&&m[0]===-1/0&&(y[1]=0),m[0]===m[1]&&y[0]&&y[1]&&(p.value=m[0])}p.visual=a.retrieveVisuals(c),f.push(p)},this),u(h,f),o(f),t.each(f,function(c){var d=c.close,p=[["<","≤"][d[1]],[">","≥"][d[0]]];c.text=c.text||this.formatValueText(c.value!=null?c.value:c.interval,!1,p)},this)}};function u(h,f){var c=h.inverse;(h.orient==="vertical"?!c:c)&&f.reverse()}var v=s;return yw=v,yw}var _w,JH;function N_e(){if(JH)return _w;JH=1;var r=ie(),t=$$(),e=qe(),a=ti(),i=a.createSymbol,n=Ut(),o=Y$(),s=t.extend({type:"visualMap.piecewise",doRender:function(){var u=this.group;u.removeAll();var v=this.visualMapModel,h=v.get("textGap"),f=v.textStyleModel,c=f.getFont(),d=f.getTextColor(),p=this._getItemAlign(),g=v.itemSize,m=this._getViewData(),y=m.endsText,_=r.retrieve(v.get("showLabel",!0),!y);y&&this._renderEndsText(u,y[0],g,_,p),r.each(m.viewPieceList,x,this),y&&this._renderEndsText(u,y[1],g,_,p),n.box(v.get("orient"),u,v.get("itemGap")),this.renderBackground(u),this.positionGroup(u);function x(S){var b=S.piece,w=new e.Group;w.onclick=r.bind(this._onItemClick,this,b),this._enableHoverLink(w,S.indexInModelPieceList);var A=v.getRepresentValue(b);if(this._createItemSymbol(w,A,[0,0,g[0],g[1]]),_){var T=this.visualMapModel.getValueState(A);w.add(new e.Text({style:{x:p==="right"?-h:g[0]+h,y:g[1]/2,text:b.text,textVerticalAlign:"middle",textAlign:p,textFont:c,textFill:d,opacity:T==="outOfRange"?.5:1}}))}u.add(w)}},_enableHoverLink:function(u,v){u.on("mouseover",r.bind(h,this,"highlight")).on("mouseout",r.bind(h,this,"downplay"));function h(f){var c=this.visualMapModel;c.option.hoverLink&&this.api.dispatchAction({type:f,batch:o.makeHighDownBatch(c.findTargetDataIndices(v),c)})}},_getItemAlign:function(){var u=this.visualMapModel,v=u.option;if(v.orient==="vertical")return o.getItemAlign(u,this.api,u.itemSize);var h=v.align;return(!h||h==="auto")&&(h="left"),h},_renderEndsText:function(u,v,h,f,c){if(v){var d=new e.Group,p=this.visualMapModel.textStyleModel;d.add(new e.Text({style:{x:f?c==="right"?h[0]:0:h[0]/2,y:h[1]/2,textVerticalAlign:"middle",textAlign:f?c:"center",text:v,textFont:p.getFont(),textFill:p.getTextColor()}})),u.add(d)}},_getViewData:function(){var u=this.visualMapModel,v=r.map(u.getPieceList(),function(d,p){return{piece:d,indexInModelPieceList:p}}),h=u.get("text"),f=u.get("orient"),c=u.get("inverse");return(f==="horizontal"?c:!c)?v.reverse():h&&(h=h.slice().reverse()),{viewPieceList:v,endsText:h}},_createItemSymbol:function(u,v,h){u.add(i(this.getControllerVisual(v,"symbol"),h[0],h[1],h[2],h[3],this.getControllerVisual(v,"color")))},_onItemClick:function(u){var v=this.visualMapModel,h=v.option,f=r.clone(h.selected),c=v.getSelectedMapKey(u);h.selectedMode==="single"?(f[c]=!0,r.each(f,function(d,p){f[p]=p===c})):f[c]=!f[c],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})}}),l=s;return _w=l,_w}var e4;function K$(){if(e4)return QH;e4=1;var r=Pe(),t=F$();return H$(),q$(),O_e(),N_e(),Z$(),r.registerPreprocessor(t),QH}var t4;function z_e(){return t4||(t4=1,X$(),K$()),OH}var r4={},a4={},Av={},i4;function Q$(){if(i4)return Av;i4=1;var r=pr(),t="urn:schemas-microsoft-com:vml",e=typeof window>"u"?null:window,a=!1,i=e&&e.document;function n(l){return o(l)}var o;if(i&&!r.canvasSupported)try{!i.namespaces.zrvml&&i.namespaces.add("zrvml",t),o=function(l){return i.createElement("<zrvml:"+l+' class="zrvml">')}}catch(l){o=function(u){return i.createElement("<"+u+' xmlns="'+t+'" class="zrvml">')}}function s(){if(!(a||!i)){a=!0;var l=i.styleSheets;l.length<31?i.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):l[0].addRule(".zrvml","behavior:url(#default#VML)")}}return Av.doc=i,Av.createNode=n,Av.initVML=s,Av}var n4;function B_e(){if(n4)return a4;n4=1;var r=pr(),t=Jt(),e=t.applyTransform,a=rr(),i=en(),n=Da(),o=ug(),s=I9(),l=lf(),u=wu(),v=$s(),h=ur(),f=Au(),c=hg(),d=Q$(),p=f.CMD,g=Math.round,m=Math.sqrt,y=Math.abs,_=Math.cos,x=Math.sin,S=Math.max;if(!r.canvasSupported){var b=",",w="progid:DXImageTransform.Microsoft",A=21600,T=A/2,C=1e5,M=1e3,L=function(se){se.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",se.coordsize=A+","+A,se.coordorigin="0,0"},D=function(se){return String(se).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},P=function(se,ve,ye){return"rgb("+[se,ve,ye].join(",")+")"},I=function(se,ve){ve&&se&&ve.parentNode!==se&&se.appendChild(ve)},R=function(se,ve){ve&&se&&ve.parentNode===se&&se.removeChild(ve)},E=function(se,ve,ye){return(parseFloat(se)||0)*C+(parseFloat(ve)||0)*M+ye},k=o.parsePercent,B=function(se,ve,ye){var Me=i.parse(ve);ye=+ye,isNaN(ye)&&(ye=1),Me&&(se.color=P(Me[0],Me[1],Me[2]),se.opacity=ye*Me[3])},F=function(se){var ve=i.parse(se);return[P(ve[0],ve[1],ve[2]),ve[3]]},V=function(se,ve,ye){var Me=ve.fill;if(Me!=null)if(Me instanceof c){var J,ne=0,ue=[0,0],me=0,xe=1,ge=ye.getBoundingRect(),pe=ge.width,Ce=ge.height;if(Me.type==="linear"){J="gradient";var ze=ye.transform,Ve=[Me.x*pe,Me.y*Ce],ke=[Me.x2*pe,Me.y2*Ce];ze&&(e(Ve,Ve,ze),e(ke,ke,ze));var lt=ke[0]-Ve[0],dt=ke[1]-Ve[1];ne=Math.atan2(lt,dt)*180/Math.PI,ne<0&&(ne+=360),ne<1e-6&&(ne=0)}else{J="gradientradial";var Ve=[Me.x*pe,Me.y*Ce],ze=ye.transform,Dt=ye.scale,Tt=pe,Bt=Ce;ue=[(Ve[0]-ge.x)/Tt,(Ve[1]-ge.y)/Bt],ze&&e(Ve,Ve,ze),Tt/=Dt[0]*A,Bt/=Dt[1]*A;var Vt=S(Tt,Bt);me=0/Vt,xe=2*Me.r/Vt-me}var Ke=Me.colorStops.slice();Ke.sort(function(jt,mr){return jt.offset-mr.offset});for(var Et=Ke.length,Lt=[],Zt=[],Xt=0;Xt<Et;Xt++){var Kt=Ke[Xt],Pr=F(Kt.color);Zt.push(Kt.offset*xe+me+" "+Pr[0]),(Xt===0||Xt===Et-1)&&Lt.push(Pr)}if(Et>=2){var fa=Lt[0][0],Rr=Lt[1][0],ta=Lt[0][1]*ve.opacity,vr=Lt[1][1]*ve.opacity;se.type=J,se.method="none",se.focus="100%",se.angle=ne,se.color=fa,se.color2=Rr,se.colors=Zt.join(","),se.opacity=vr,se.opacity2=ta}J==="radial"&&(se.focusposition=ue.join(","))}else B(se,Me,ve.opacity)},N=function(se,ve){ve.lineDash&&(se.dashstyle=ve.lineDash.join(" ")),ve.stroke!=null&&!(ve.stroke instanceof c)&&B(se,ve.stroke,ve.opacity)},O=function(se,ve,ye,Me){var J=ve==="fill",ne=se.getElementsByTagName(ve)[0];ye[ve]!=null&&ye[ve]!=="none"&&(J||!J&&ye.lineWidth)?(se[J?"filled":"stroked"]="true",ye[ve]instanceof c&&R(se,ne),ne||(ne=d.createNode(ve)),J?V(ne,ye,Me):N(ne,ye),I(se,ne)):(se[J?"filled":"stroked"]="false",R(se,ne))},z=[[],[],[]],G=function(se,ve){var ye=p.M,Me=p.C,J=p.L,ne=p.A,ue=p.Q,me=[],xe,ge,pe,Ce,ze,Ve,ke=se.data,lt=se.len();for(Ce=0;Ce<lt;){switch(pe=ke[Ce++],ge="",xe=0,pe){case ye:ge=" m ",xe=1,ze=ke[Ce++],Ve=ke[Ce++],z[0][0]=ze,z[0][1]=Ve;break;case J:ge=" l ",xe=1,ze=ke[Ce++],Ve=ke[Ce++],z[0][0]=ze,z[0][1]=Ve;break;case ue:case Me:ge=" c ",xe=3;var re=ke[Ce++],ce=ke[Ce++],dt=ke[Ce++],Dt=ke[Ce++],Tt,Bt;pe===ue?(Tt=dt,Bt=Dt,dt=(dt+2*re)/3,Dt=(Dt+2*ce)/3,re=(ze+2*re)/3,ce=(Ve+2*ce)/3):(Tt=ke[Ce++],Bt=ke[Ce++]),z[0][0]=re,z[0][1]=ce,z[1][0]=dt,z[1][1]=Dt,z[2][0]=Tt,z[2][1]=Bt,ze=Tt,Ve=Bt;break;case ne:var Vt=0,Ke=0,Et=1,Lt=1,Zt=0;ve&&(Vt=ve[4],Ke=ve[5],Et=m(ve[0]*ve[0]+ve[1]*ve[1]),Lt=m(ve[2]*ve[2]+ve[3]*ve[3]),Zt=Math.atan2(-ve[1]/Lt,ve[0]/Et));var Xt=ke[Ce++],Kt=ke[Ce++],Pr=ke[Ce++],fa=ke[Ce++],Rr=ke[Ce++]+Zt,ta=ke[Ce++]+Rr+Zt;Ce++;var vr=ke[Ce++],jt=Xt+_(Rr)*Pr,mr=Kt+x(Rr)*fa,re=Xt+_(ta)*Pr,ce=Kt+x(ta)*fa,be=vr?" wa ":" at ";Math.abs(jt-re)<1e-4&&(Math.abs(ta-Rr)>.01?vr&&(jt+=270/A):Math.abs(mr-Kt)<1e-4?vr&&jt<Xt||!vr&&jt>Xt?ce-=270/A:ce+=270/A:vr&&mr<Kt||!vr&&mr>Kt?re+=270/A:re-=270/A),me.push(be,g(((Xt-Pr)*Et+Vt)*A-T),b,g(((Kt-fa)*Lt+Ke)*A-T),b,g(((Xt+Pr)*Et+Vt)*A-T),b,g(((Kt+fa)*Lt+Ke)*A-T),b,g((jt*Et+Vt)*A-T),b,g((mr*Lt+Ke)*A-T),b,g((re*Et+Vt)*A-T),b,g((ce*Lt+Ke)*A-T)),ze=re,Ve=ce;break;case p.R:var Ae=z[0],De=z[1];Ae[0]=ke[Ce++],Ae[1]=ke[Ce++],De[0]=Ae[0]+ke[Ce++],De[1]=Ae[1]+ke[Ce++],ve&&(e(Ae,Ae,ve),e(De,De,ve)),Ae[0]=g(Ae[0]*A-T),De[0]=g(De[0]*A-T),Ae[1]=g(Ae[1]*A-T),De[1]=g(De[1]*A-T),me.push(" m ",Ae[0],b,Ae[1]," l ",De[0],b,Ae[1]," l ",De[0],b,De[1]," l ",Ae[0],b,De[1]);break;case p.Z:me.push(" x ")}if(xe>0){me.push(ge);for(var je=0;je<xe;je++){var Gt=z[je];ve&&e(Gt,Gt,ve),me.push(g(Gt[0]*A-T),b,g(Gt[1]*A-T),je<xe-1?b:"")}}}return me.join("")};h.prototype.brushVML=function(se){var ve=this.style,ye=this._vmlEl;ye||(ye=d.createNode("shape"),L(ye),this._vmlEl=ye),O(ye,"fill",ve,this),O(ye,"stroke",ve,this);var Me=this.transform,J=Me!=null,ne=ye.getElementsByTagName("stroke")[0];if(ne){var ue=ve.lineWidth;if(J&&!ve.strokeNoScale){var me=Me[0]*Me[3]-Me[1]*Me[2];ue*=m(y(me))}ne.weight=ue+"px"}var xe=this.path||(this.path=new f);this.__dirtyPath&&(xe.beginPath(),xe.subPixelOptimize=!1,this.buildPath(xe,this.shape),xe.toStatic(),this.__dirtyPath=!1),ye.path=G(xe,this.transform),ye.style.zIndex=E(this.zlevel,this.z,this.z2),I(se,ye),ve.text!=null?this.drawRectText(se,this.getBoundingRect()):this.removeRectText(se)},h.prototype.onRemove=function(se){R(se,this._vmlEl),this.removeRectText(se)},h.prototype.onAdd=function(se){I(se,this._vmlEl),this.appendRectText(se)};var q=function(se){return typeof se=="object"&&se.tagName&&se.tagName.toUpperCase()==="IMG"};u.prototype.brushVML=function(se){var ve=this.style,ye=ve.image,Me,J;if(q(ye)){var ne=ye.src;if(ne===this._imageSrc)Me=this._imageWidth,J=this._imageHeight;else{var ue=ye.runtimeStyle,me=ue.width,xe=ue.height;ue.width="auto",ue.height="auto",Me=ye.width,J=ye.height,ue.width=me,ue.height=xe,this._imageSrc=ne,this._imageWidth=Me,this._imageHeight=J}ye=ne}else ye===this._imageSrc&&(Me=this._imageWidth,J=this._imageHeight);if(ye){var ge=ve.x||0,pe=ve.y||0,Ce=ve.width,ze=ve.height,Ve=ve.sWidth,ke=ve.sHeight,lt=ve.sx||0,dt=ve.sy||0,Dt=Ve&&ke,Tt=this._vmlEl;Tt||(Tt=d.doc.createElement("div"),L(Tt),this._vmlEl=Tt);var Bt=Tt.style,Vt=!1,Ke,Et=1,Lt=1;if(this.transform&&(Ke=this.transform,Et=m(Ke[0]*Ke[0]+Ke[1]*Ke[1]),Lt=m(Ke[2]*Ke[2]+Ke[3]*Ke[3]),Vt=Ke[1]||Ke[2]),Vt){var Zt=[ge,pe],Xt=[ge+Ce,pe],Kt=[ge,pe+ze],Pr=[ge+Ce,pe+ze];e(Zt,Zt,Ke),e(Xt,Xt,Ke),e(Kt,Kt,Ke),e(Pr,Pr,Ke);var fa=S(Zt[0],Xt[0],Kt[0],Pr[0]),Rr=S(Zt[1],Xt[1],Kt[1],Pr[1]),ta=[];ta.push("M11=",Ke[0]/Et,b,"M12=",Ke[2]/Lt,b,"M21=",Ke[1]/Et,b,"M22=",Ke[3]/Lt,b,"Dx=",g(ge*Et+Ke[4]),b,"Dy=",g(pe*Lt+Ke[5])),Bt.padding="0 "+g(fa)+"px "+g(Rr)+"px 0",Bt.filter=w+".Matrix("+ta.join("")+", SizingMethod=clip)"}else Ke&&(ge=ge*Et+Ke[4],pe=pe*Lt+Ke[5]),Bt.filter="",Bt.left=g(ge)+"px",Bt.top=g(pe)+"px";var vr=this._imageEl,jt=this._cropEl;vr||(vr=d.doc.createElement("div"),this._imageEl=vr);var mr=vr.style;if(Dt){if(Me&&J)mr.width=g(Et*Me*Ce/Ve)+"px",mr.height=g(Lt*J*ze/ke)+"px";else{var re=new Image,ce=this;re.onload=function(){re.onload=null,Me=re.width,J=re.height,mr.width=g(Et*Me*Ce/Ve)+"px",mr.height=g(Lt*J*ze/ke)+"px",ce._imageWidth=Me,ce._imageHeight=J,ce._imageSrc=ye},re.src=ye}jt||(jt=d.doc.createElement("div"),jt.style.overflow="hidden",this._cropEl=jt);var be=jt.style;be.width=g((Ce+lt*Ce/Ve)*Et),be.height=g((ze+dt*ze/ke)*Lt),be.filter=w+".Matrix(Dx="+-lt*Ce/Ve*Et+",Dy="+-dt*ze/ke*Lt+")",jt.parentNode||Tt.appendChild(jt),vr.parentNode!==jt&&jt.appendChild(vr)}else mr.width=g(Et*Ce)+"px",mr.height=g(Lt*ze)+"px",Tt.appendChild(vr),jt&&jt.parentNode&&(Tt.removeChild(jt),this._cropEl=null);var Ae="",De=ve.opacity;De<1&&(Ae+=".Alpha(opacity="+g(De*100)+") "),Ae+=w+".AlphaImageLoader(src="+ye+", SizingMethod=scale)",mr.filter=Ae,Tt.style.zIndex=E(this.zlevel,this.z,this.z2),I(se,Tt),ve.text!=null&&this.drawRectText(se,this.getBoundingRect())}},u.prototype.onRemove=function(se){R(se,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(se)},u.prototype.onAdd=function(se){I(se,this._vmlEl),this.appendRectText(se)};var H="normal",U={},W=0,Y=100,X=document.createElement("div"),K=function(se){var ve=U[se];if(!ve){W>Y&&(W=0,U={});var ye=X.style,Me;try{ye.font=se,Me=ye.fontFamily.split(",")[0]}catch(J){}ve={style:ye.fontStyle||H,variant:ye.fontVariant||H,weight:ye.fontWeight||H,size:parseFloat(ye.fontSize||12)|0,family:Me||"Microsoft YaHei"},U[se]=ve,W++}return ve},Q;n.$override("measureText",function(se,ve){var ye=d.doc;Q||(Q=ye.createElement("div"),Q.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",d.doc.body.appendChild(Q));try{Q.style.font=ve}catch(Me){}return Q.innerHTML="",Q.appendChild(ye.createTextNode(se)),{width:Q.offsetWidth}});for(var j=new a,te=function(se,ve,ye,Me){var J=this.style;this.__dirty&&o.normalizeTextStyle(J,!0);var ne=J.text;if(ne!=null&&(ne+=""),!!ne){if(J.rich){var ue=n.parseRichText(ne,J);ne=[];for(var me=0;me<ue.lines.length;me++){for(var xe=ue.lines[me].tokens,ge=[],pe=0;pe<xe.length;pe++)ge.push(xe[pe].text);ne.push(ge.join(""))}ne=ne.join("\n")}var Ce,ze,Ve=J.textAlign,ke=J.textVerticalAlign,lt=K(J.font),dt=lt.style+" "+lt.variant+" "+lt.weight+" "+lt.size+'px "'+lt.family+'"';ye=ye||n.getBoundingRect(ne,dt,Ve,ke,J.textPadding,J.textLineHeight);var Dt=this.transform;if(Dt&&!Me&&(j.copy(ve),j.applyTransform(Dt),ve=j),Me)Ce=ve.x,ze=ve.y;else{var Tt=J.textPosition;if(Tt instanceof Array)Ce=ve.x+k(Tt[0],ve.width),ze=ve.y+k(Tt[1],ve.height),Ve=Ve||"left";else{var Bt=this.calculateTextPosition?this.calculateTextPosition({},J,ve):n.calculateTextPosition({},J,ve);Ce=Bt.x,ze=Bt.y,Ve=Ve||Bt.textAlign,ke=ke||Bt.textVerticalAlign}}Ce=n.adjustTextX(Ce,ye.width,Ve),ze=n.adjustTextY(ze,ye.height,ke),ze+=ye.height/2;var Vt=d.createNode,Ke=this._textVmlEl,Et,Lt,Zt;Ke?(Zt=Ke.firstChild,Et=Zt.nextSibling,Lt=Et.nextSibling):(Ke=Vt("line"),Et=Vt("path"),Lt=Vt("textpath"),Zt=Vt("skew"),Lt.style["v-text-align"]="left",L(Ke),Et.textpathok=!0,Lt.on=!0,Ke.from="0 0",Ke.to="1000 0.05",I(Ke,Zt),I(Ke,Et),I(Ke,Lt),this._textVmlEl=Ke);var Xt=[Ce,ze],Kt=Ke.style;Dt&&Me?(e(Xt,Xt,Dt),Zt.on=!0,Zt.matrix=Dt[0].toFixed(3)+b+Dt[2].toFixed(3)+b+Dt[1].toFixed(3)+b+Dt[3].toFixed(3)+",0,0",Zt.offset=(g(Xt[0])||0)+","+(g(Xt[1])||0),Zt.origin="0 0",Kt.left="0px",Kt.top="0px"):(Zt.on=!1,Kt.left=g(Ce)+"px",Kt.top=g(ze)+"px"),Lt.string=D(ne);try{Lt.style.font=dt}catch(Pr){}O(Ke,"fill",{fill:J.textFill,opacity:J.opacity},this),O(Ke,"stroke",{stroke:J.textStroke,opacity:J.opacity,lineDash:J.lineDash||null},this),Ke.style.zIndex=E(this.zlevel,this.z,this.z2),I(se,Ke)}},Z=function(se){R(se,this._textVmlEl),this._textVmlEl=null},ee=function(se){I(se,this._textVmlEl)},le=[s,l,u,h,v],oe=0;oe<le.length;oe++){var fe=le[oe].prototype;fe.drawRectText=te,fe.removeRectText=Z,fe.appendRectText=ee}v.prototype.brushVML=function(se){var ve=this.style;ve.text!=null?this.drawRectText(se,{x:ve.x||0,y:ve.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(se)},v.prototype.onRemove=function(se){this.removeRectText(se)},v.prototype.onAdd=function(se){this.appendRectText(se)}}return a4}var xw,o4;function V_e(){if(o4)return xw;o4=1;var r=sf(),t=Q$(),e=ie(),a=e.each;function i(l){return parseInt(l,10)}function n(l,u){t.initVML(),this.root=l,this.storage=u;var v=document.createElement("div"),h=document.createElement("div");v.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",h.style.cssText="position:absolute;left:0;top:0;",l.appendChild(v),this._vmlRoot=h,this._vmlViewport=v,this.resize();var f=u.delFromStorage,c=u.addToStorage;u.delFromStorage=function(d){f.call(u,d),d&&d.onRemove&&d.onRemove(h)},u.addToStorage=function(d){d.onAdd&&d.onAdd(h),c.call(u,d)},this._firstPaint=!0}n.prototype={constructor:n,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var l=this.getViewportRoot();if(l)return{offsetLeft:l.offsetLeft||0,offsetTop:l.offsetTop||0}},refresh:function(){var l=this.storage.getDisplayList(!0,!0);this._paintList(l)},_paintList:function(l){for(var u=this._vmlRoot,v=0;v<l.length;v++){var h=l[v];h.invisible||h.ignore?(h.__alreadyNotVisible||h.onRemove(u),h.__alreadyNotVisible=!0):(h.__alreadyNotVisible&&h.onAdd(u),h.__alreadyNotVisible=!1,h.__dirty&&(h.beforeBrush&&h.beforeBrush(),(h.brushVML||h.brush).call(h,u),h.afterBrush&&h.afterBrush())),h.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(u),this._firstPaint=!1)},resize:function(v,h){var v=v==null?this._getWidth():v,h=h==null?this._getHeight():h;if(this._width!==v||this._height!==h){this._width=v,this._height=h;var f=this._vmlViewport.style;f.width=v+"px",f.height=h+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var l=this.root,u=l.currentStyle;return(l.clientWidth||i(u.width))-i(u.paddingLeft)-i(u.paddingRight)|0},_getHeight:function(){var l=this.root,u=l.currentStyle;return(l.clientHeight||i(u.height))-i(u.paddingTop)-i(u.paddingBottom)|0}};function o(l){return function(){r('In IE8.0 VML mode painter not support method "'+l+'"')}}a(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(l){n.prototype[l]=o(l)});var s=n;return xw=s,xw}var s4;function G_e(){if(s4)return r4;s4=1,B_e();var r=vg(),t=r.registerPainter,e=V_e();return t("vml",e),r4}var l4={},Cv={},Sw={},u4;function MD(){if(u4)return Sw;u4=1;var r="http://www.w3.org/2000/svg";function t(e){return document.createElementNS(r,e)}return Sw.createElement=t,Sw}var v4;function DD(){if(v4)return Cv;v4=1;var r=MD(),t=r.createElement,e=Au(),a=rr(),i=ha(),n=Da(),o=ug(),s=$s(),l=e.CMD,u=Array.prototype.join,v="none",h=Math.round,f=Math.sin,c=Math.cos,d=Math.PI,p=Math.PI*2,g=180/d,m=1e-4;function y(O){return h(O*1e4)/1e4}function _(O){return O<m&&O>-m}function x(O,z){var G=z?O.textFill:O.fill;return G!=null&&G!==v}function S(O,z){var G=z?O.textStroke:O.stroke;return G!=null&&G!==v}function b(O,z){z&&w(O,"transform","matrix("+u.call(z,",")+")")}function w(O,z,G){(!G||G.type!=="linear"&&G.type!=="radial")&&O.setAttribute(z,G)}function A(O,z,G){O.setAttributeNS("http://www.w3.org/1999/xlink",z,G)}function T(O,z,G,q){if(x(z,G)){var H=G?z.textFill:z.fill;H=H==="transparent"?v:H,w(O,"fill",H),w(O,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else w(O,"fill",v);if(S(z,G)){var U=G?z.textStroke:z.stroke;U=U==="transparent"?v:U,w(O,"stroke",U);var W=G?z.textStrokeWidth:z.lineWidth,Y=!G&&z.strokeNoScale?q.getLineScale():1;w(O,"stroke-width",W/Y),w(O,"paint-order",G?"stroke":"fill"),w(O,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var X=z.lineDash;X?(w(O,"stroke-dasharray",z.lineDash.join(",")),w(O,"stroke-dashoffset",h(z.lineDashOffset||0))):w(O,"stroke-dasharray",""),z.lineCap&&w(O,"stroke-linecap",z.lineCap),z.lineJoin&&w(O,"stroke-linejoin",z.lineJoin),z.miterLimit&&w(O,"stroke-miterlimit",z.miterLimit)}else w(O,"stroke",v)}function C(O){for(var z=[],G=O.data,q=O.len(),H=0;H<q;){var U=G[H++],W="",Y=0;switch(U){case l.M:W="M",Y=2;break;case l.L:W="L",Y=2;break;case l.Q:W="Q",Y=4;break;case l.C:W="C",Y=6;break;case l.A:var X=G[H++],K=G[H++],Q=G[H++],j=G[H++],te=G[H++],Z=G[H++],ee=G[H++],le=G[H++],oe=Math.abs(Z),fe=_(oe-p)||(le?Z>=p:-Z>=p),se=Z>0?Z%p:Z%p+p,ve=!1;fe?ve=!0:_(oe)?ve=!1:ve=se>=d==!!le;var ye=y(X+Q*c(te)),Me=y(K+j*f(te));fe&&(le?Z=p-1e-4:Z=-p+1e-4,ve=!0,H===9&&z.push("M",ye,Me));var J=y(X+Q*c(te+Z)),ne=y(K+j*f(te+Z));z.push("A",y(Q),y(j),h(ee*g),+ve,+le,J,ne);break;case l.Z:W="Z";break;case l.R:var J=y(G[H++]),ne=y(G[H++]),ue=y(G[H++]),me=y(G[H++]);z.push("M",J,ne,"L",J+ue,ne,"L",J+ue,ne+me,"L",J,ne+me,"L",J,ne);break}W&&z.push(W);for(var xe=0;xe<Y;xe++)z.push(y(G[H++]))}return z.join(" ")}var M={};M.brush=function(O){var z=O.style,G=O.__svgEl;G||(G=t("path"),O.__svgEl=G),O.path||O.createPathProxy();var q=O.path;if(O.__dirtyPath){q.beginPath(),q.subPixelOptimize=!1,O.buildPath(q,O.shape),O.__dirtyPath=!1;var H=C(q);H.indexOf("NaN")<0&&w(G,"d",H)}T(G,z,!1,O),b(G,O.transform),z.text!=null?k(O,O.getBoundingRect()):N(O)};var L={};L.brush=function(O){var z=O.style,G=z.image;if(G instanceof HTMLImageElement){var q=G.src;G=q}if(G){var H=z.x||0,U=z.y||0,W=z.width,Y=z.height,X=O.__svgEl;X||(X=t("image"),O.__svgEl=X),G!==O.__imageSrc&&(A(X,"href",G),O.__imageSrc=G),w(X,"width",W),w(X,"height",Y),w(X,"x",H),w(X,"y",U),b(X,O.transform),z.text!=null?k(O,O.getBoundingRect()):N(O)}};var D={},P=new a,I={},R=[],E={left:"start",right:"end",center:"middle",middle:"middle"},k=function(O,z){var G=O.style,q=O.transform,H=O instanceof s||G.transformText;O.__dirty&&o.normalizeTextStyle(G,!0);var U=G.text;if(U!=null&&(U+=""),!!o.needDrawText(U,G)){U==null&&(U=""),!H&&q&&(P.copy(z),P.applyTransform(q),z=P);var W=O.__textSvgEl;W||(W=t("text"),O.__textSvgEl=W);var Y=W.style,X=G.font||n.DEFAULT_FONT,K=W.__computedFont;X!==W.__styleFont&&(Y.font=W.__styleFont=X,K=W.__computedFont=Y.font);var Q=G.textPadding,j=G.textLineHeight,te=O.__textCotentBlock;(!te||O.__dirtyText)&&(te=O.__textCotentBlock=n.parsePlainText(U,K,Q,j,G.truncate));var Z=te.outerHeight,ee=te.lineHeight;o.getBoxPosition(I,O,G,z);var le=I.baseX,oe=I.baseY,fe=I.textAlign||"left",se=I.textVerticalAlign;B(W,H,q,G,z,le,oe);var ve=n.adjustTextY(oe,Z,se),ye=le,Me=ve;Q&&(ye=F(le,fe,Q),Me+=Q[0]),Me+=ee/2,T(W,G,!0,O);var J=te.canCacheByTextString,ne=O.__tspanList||(O.__tspanList=[]),ue=ne.length;if(J&&O.__canCacheByTextString&&O.__text===U){if(O.__dirtyText&&ue)for(var me=0;me<ue;++me)V(ne[me],fe,ye,Me+me*ee)}else{O.__text=U,O.__canCacheByTextString=J;for(var xe=te.lines,ge=xe.length,me=0;me<ge;me++){var pe=ne[me],Ce=xe[me];pe?pe.__zrText!==Ce&&(pe.innerHTML="",pe.appendChild(document.createTextNode(Ce))):(pe=ne[me]=t("tspan"),W.appendChild(pe),pe.appendChild(document.createTextNode(Ce))),V(pe,fe,ye,Me+me*ee)}if(ue>ge){for(;me<ue;me++)W.removeChild(ne[me]);ne.length=ge}}}};function B(O,z,G,q,H,U,W){i.identity(R),z&&G&&i.copy(R,G);var Y=q.textRotation;if(H&&Y){var X=q.textOrigin;X==="center"?(U=H.width/2+H.x,W=H.height/2+H.y):X&&(U=X[0]+H.x,W=X[1]+H.y),R[4]-=U,R[5]-=W,i.rotate(R,R,Y),R[4]+=U,R[5]+=W}b(O,R)}function F(O,z,G){return z==="right"?O-G[1]:z==="center"?O+G[3]/2-G[1]/2:O+G[3]}function V(O,z,G,q){w(O,"dominant-baseline","middle"),w(O,"text-anchor",E[z]),w(O,"x",G),w(O,"y",q)}function N(O){O&&O.__textSvgEl&&(O.__textSvgEl.parentNode&&O.__textSvgEl.parentNode.removeChild(O.__textSvgEl),O.__textSvgEl=null,O.__tspanList=[],O.__text=null)}return D.drawRectText=k,D.brush=function(O){var z=O.style;z.text!=null?k(O,!1):N(O)},Cv.path=M,Cv.image=L,Cv.text=D,Cv}var bw,h4;function F_e(){if(h4)return bw;h4=1;function r(){}r.prototype={diff:function(n,o,s){s||(s=function(_,x){return _===x}),this.equals=s;var l=this;n=n.slice(),o=o.slice();var u=o.length,v=n.length,h=1,f=u+v,c=[{newPos:-1,components:[]}],d=this.extractCommon(c[0],o,n,0);if(c[0].newPos+1>=u&&d+1>=v){for(var p=[],g=0;g<o.length;g++)p.push(g);return[{indices:p,count:o.length}]}function m(){for(var _=-1*h;_<=h;_+=2){var x,S=c[_-1],b=c[_+1],w=(b?b.newPos:0)-_;S&&(c[_-1]=void 0);var A=S&&S.newPos+1<u,T=b&&0<=w&&w<v;if(!A&&!T){c[_]=void 0;continue}if(!A||T&&S.newPos<b.newPos?(x=e(b),l.pushComponent(x.components,void 0,!0)):(x=S,x.newPos++,l.pushComponent(x.components,!0,void 0)),w=l.extractCommon(x,o,n,_),x.newPos+1>=u&&w+1>=v)return t(l,x.components);c[_]=x}h++}for(;h<=f;){var y=m();if(y)return y}},pushComponent:function(n,o,s){var l=n[n.length-1];l&&l.added===o&&l.removed===s?n[n.length-1]={count:l.count+1,added:o,removed:s}:n.push({count:1,added:o,removed:s})},extractCommon:function(n,o,s,l){for(var u=o.length,v=s.length,h=n.newPos,f=h-l,c=0;h+1<u&&f+1<v&&this.equals(o[h+1],s[f+1]);)h++,f++,c++;return c&&n.components.push({count:c}),n.newPos=h,f},tokenize:function(n){return n.slice()},join:function(n){return n.slice()}};function t(n,o,s,l){for(var u=0,v=o.length,h=0,f=0;u<v;u++){var c=o[u];if(c.removed){for(var d=[],p=f;p<f+c.count;p++)d.push(p);c.indices=d,f+=c.count}else{for(var d=[],p=h;p<h+c.count;p++)d.push(p);c.indices=d,h+=c.count,c.added||(f+=c.count)}}return o}function e(n){return{newPos:n.newPos,components:n.components.slice(0)}}var a=new r;function i(n,o,s){return a.diff(n,o,s)}return bw=i,bw}var ww,f4;function LD(){if(f4)return ww;f4=1;var r=MD(),t=r.createElement,e=ie(),a=ur(),i=wu(),n=$s(),o=DD(),s=o.path,l=o.image,u=o.text,v="0",h="1";function f(d,p,g,m,y){this._zrId=d,this._svgRoot=p,this._tagNames=typeof g=="string"?[g]:g,this._markLabel=m,this._domName=y||"_dom",this.nextId=0}f.prototype.createElement=t,f.prototype.getDefs=function(d){var p=this._svgRoot,g=this._svgRoot.getElementsByTagName("defs");return g.length===0?d?(g=p.insertBefore(this.createElement("defs"),p.firstChild),g.contains||(g.contains=function(m){var y=g.children;if(!y)return!1;for(var _=y.length-1;_>=0;--_)if(y[_]===m)return!0;return!1}),g):null:g[0]},f.prototype.update=function(d,p){if(d){var g=this.getDefs(!1);if(d[this._domName]&&g.contains(d[this._domName]))typeof p=="function"&&p(d);else{var m=this.add(d);m&&(d[this._domName]=m)}}},f.prototype.addDom=function(d){var p=this.getDefs(!0);p.appendChild(d)},f.prototype.removeDom=function(d){var p=this.getDefs(!1);p&&d[this._domName]&&(p.removeChild(d[this._domName]),d[this._domName]=null)},f.prototype.getDoms=function(){var d=this.getDefs(!1);if(!d)return[];var p=[];return e.each(this._tagNames,function(g){var m=d.getElementsByTagName(g);p=p.concat([].slice.call(m))}),p},f.prototype.markAllUnused=function(){var d=this.getDoms(),p=this;e.each(d,function(g){g[p._markLabel]=v})},f.prototype.markUsed=function(d){d&&(d[this._markLabel]=h)},f.prototype.removeUnused=function(){var d=this.getDefs(!1);if(d){var p=this.getDoms(),g=this;e.each(p,function(m){m[g._markLabel]!==h&&d.removeChild(m)})}},f.prototype.getSvgProxy=function(d){return d instanceof a?s:d instanceof i?l:d instanceof n?u:s},f.prototype.getTextSvgElement=function(d){return d.__textSvgEl},f.prototype.getSvgElement=function(d){return d.__svgEl};var c=f;return ww=c,ww}var Tw,c4;function H_e(){if(c4)return Tw;c4=1;var r=LD(),t=ie(),e=sf(),a=en();function i(o,s){r.call(this,o,s,["linearGradient","radialGradient"],"__gradient_in_use__")}t.inherits(i,r),i.prototype.addWithoutUpdate=function(o,s){if(s&&s.style){var l=this;t.each(["fill","stroke"],function(u){if(s.style[u]&&(s.style[u].type==="linear"||s.style[u].type==="radial")){var v=s.style[u],h=l.getDefs(!0),f;v._dom?(f=v._dom,h.contains(v._dom)||l.addDom(f)):f=l.add(v),l.markUsed(s);var c=f.getAttribute("id");o.setAttribute(u,"url(#"+c+")")}})}},i.prototype.add=function(o){var s;if(o.type==="linear")s=this.createElement("linearGradient");else if(o.type==="radial")s=this.createElement("radialGradient");else return e("Illegal gradient type."),null;return o.id=o.id||this.nextId++,s.setAttribute("id","zr"+this._zrId+"-gradient-"+o.id),this.updateDom(o,s),this.addDom(s),s},i.prototype.update=function(o){var s=this;r.prototype.update.call(this,o,function(){var l=o.type,u=o._dom.tagName;l==="linear"&&u==="linearGradient"||l==="radial"&&u==="radialGradient"?s.updateDom(o,o._dom):(s.removeDom(o),s.add(o))})},i.prototype.updateDom=function(o,s){if(o.type==="linear")s.setAttribute("x1",o.x),s.setAttribute("y1",o.y),s.setAttribute("x2",o.x2),s.setAttribute("y2",o.y2);else if(o.type==="radial")s.setAttribute("cx",o.x),s.setAttribute("cy",o.y),s.setAttribute("r",o.r);else{e("Illegal gradient type.");return}o.global?s.setAttribute("gradientUnits","userSpaceOnUse"):s.setAttribute("gradientUnits","objectBoundingBox"),s.innerHTML="";for(var l=o.colorStops,u=0,v=l.length;u<v;++u){var h=this.createElement("stop");h.setAttribute("offset",l[u].offset*100+"%");var f=l[u].color;if(f.indexOf("rgba")>-1){var c=a.parse(f)[3],d=a.toHex(f);h.setAttribute("stop-color","#"+d),h.setAttribute("stop-opacity",c)}else h.setAttribute("stop-color",l[u].color);s.appendChild(h)}o._dom=s},i.prototype.markUsed=function(o){if(o.style){var s=o.style.fill;s&&s._dom&&r.prototype.markUsed.call(this,s._dom),s=o.style.stroke,s&&s._dom&&r.prototype.markUsed.call(this,s._dom)}};var n=i;return Tw=n,Tw}var Aw,d4;function q_e(){if(d4)return Aw;d4=1;var r=LD(),t=ie(),e=ha();function a(n,o){r.call(this,n,o,"clipPath","__clippath_in_use__")}t.inherits(a,r),a.prototype.update=function(n){var o=this.getSvgElement(n);o&&this.updateDom(o,n.__clipPaths,!1);var s=this.getTextSvgElement(n);s&&this.updateDom(s,n.__clipPaths,!0),this.markUsed(n)},a.prototype.updateDom=function(n,o,s){if(o&&o.length>0){var l=this.getDefs(!0),u=o[0],v,h,f=s?"_textDom":"_dom";u[f]?(h=u[f].getAttribute("id"),v=u[f],l.contains(v)||l.appendChild(v)):(h="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,v=this.createElement("clipPath"),v.setAttribute("id",h),l.appendChild(v),u[f]=v);var c=this.getSvgProxy(u);if(u.transform&&u.parent.invTransform&&!s){var d=Array.prototype.slice.call(u.transform);e.mul(u.transform,u.parent.invTransform,u.transform),c.brush(u),u.transform=d}else c.brush(u);var p=this.getSvgElement(u);v.innerHTML="",v.appendChild(p.cloneNode()),n.setAttribute("clip-path","url(#"+h+")"),o.length>1&&this.updateDom(v,o.slice(1),s)}else n&&n.setAttribute("clip-path","none")},a.prototype.markUsed=function(n){var o=this;n.__clipPaths&&t.each(n.__clipPaths,function(s){s._dom&&r.prototype.markUsed.call(o,s._dom),s._textDom&&r.prototype.markUsed.call(o,s._textDom)})};var i=a;return Aw=i,Aw}var Cw,p4;function W_e(){if(p4)return Cw;p4=1;var r=LD(),t=ie();function e(n,o){r.call(this,n,o,["filter"],"__filter_in_use__","_shadowDom")}t.inherits(e,r),e.prototype.addWithoutUpdate=function(n,o){if(o&&a(o.style)){var s;if(o._shadowDom){s=o._shadowDom;var l=this.getDefs(!0);l.contains(o._shadowDom)||this.addDom(s)}else s=this.add(o);this.markUsed(o);var u=s.getAttribute("id");n.style.filter="url(#"+u+")"}},e.prototype.add=function(n){var o=this.createElement("filter");return n._shadowDomId=n._shadowDomId||this.nextId++,o.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(n,o),this.addDom(o),o},e.prototype.update=function(n,o){var s=o.style;if(a(s)){var l=this;r.prototype.update.call(this,o,function(){l.updateDom(o,o._shadowDom)})}else this.remove(n,o)},e.prototype.remove=function(n,o){o._shadowDomId!=null&&(this.removeDom(n),n.style.filter="")},e.prototype.updateDom=function(n,o){var s=o.getElementsByTagName("feDropShadow");s.length===0?s=this.createElement("feDropShadow"):s=s[0];var l=n.style,u=n.scale&&n.scale[0]||1,v=n.scale&&n.scale[1]||1,h,f,c,d;if(l.shadowBlur||l.shadowOffsetX||l.shadowOffsetY)h=l.shadowOffsetX||0,f=l.shadowOffsetY||0,c=l.shadowBlur,d=l.shadowColor;else if(l.textShadowBlur)h=l.textShadowOffsetX||0,f=l.textShadowOffsetY||0,c=l.textShadowBlur,d=l.textShadowColor;else{this.removeDom(o,l);return}s.setAttribute("dx",h/u),s.setAttribute("dy",f/v),s.setAttribute("flood-color",d);var p=c/2/u,g=c/2/v,m=p+" "+g;s.setAttribute("stdDeviation",m),o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width",Math.ceil(c/2*200)+"%"),o.setAttribute("height",Math.ceil(c/2*200)+"%"),o.appendChild(s),n._shadowDom=o},e.prototype.markUsed=function(n){n._shadowDom&&r.prototype.markUsed.call(this,n._shadowDom)};function a(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY||n.textShadowBlur||n.textShadowOffsetX||n.textShadowOffsetY)}var i=e;return Cw=i,Cw}var Mw,g4;function U_e(){if(g4)return Mw;g4=1;var r=MD(),t=r.createElement,e=ie(),a=sf(),i=ur(),n=wu(),o=$s(),s=F_e(),l=H_e(),u=q_e(),v=W_e(),h=DD(),f=h.path,c=h.image,d=h.text;function p(C){return parseInt(C,10)}function g(C){return C instanceof i?f:C instanceof n?c:C instanceof o?d:f}function m(C,M){return M&&C&&M.parentNode!==C}function y(C,M,L){if(m(C,M)&&L){var D=L.nextSibling;D?C.insertBefore(M,D):C.appendChild(M)}}function _(C,M){if(m(C,M)){var L=C.firstChild;L?C.insertBefore(M,L):C.appendChild(M)}}function x(C,M){M&&C&&M.parentNode===C&&C.removeChild(M)}function S(C){return C.__textSvgEl}function b(C){return C.__svgEl}var w=function(C,M,L,D){this.root=C,this.storage=M,this._opts=L=e.extend({},L||{});var P=t("svg");P.setAttribute("xmlns","http://www.w3.org/2000/svg"),P.setAttribute("version","1.1"),P.setAttribute("baseProfile","full"),P.style.cssText="user-select:none;position:absolute;left:0;top:0;";var I=t("g");P.appendChild(I);var R=t("g");P.appendChild(R),this.gradientManager=new l(D,R),this.clipPathManager=new u(D,R),this.shadowManager=new v(D,R);var E=document.createElement("div");E.style.cssText="overflow:hidden;position:relative",this._svgDom=P,this._svgRoot=R,this._backgroundRoot=I,this._viewport=E,C.appendChild(E),E.appendChild(P),this.resize(L.width,L.height),this._visibleList=[]};w.prototype={constructor:w,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var C=this.getViewportRoot();if(C)return{offsetLeft:C.offsetLeft||0,offsetTop:C.offsetTop||0}},refresh:function(){var C=this.storage.getDisplayList(!0);this._paintList(C)},setBackgroundColor:function(C){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var M=t("rect");M.setAttribute("width",this.getWidth()),M.setAttribute("height",this.getHeight()),M.setAttribute("x",0),M.setAttribute("y",0),M.setAttribute("id",0),M.style.fill=C,this._backgroundRoot.appendChild(M),this._backgroundNode=M},_paintList:function(C){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var M=this._svgRoot,L=this._visibleList,D=C.length,P=[],I;for(I=0;I<D;I++){var R=C[I],E=g(R),k=b(R)||S(R);R.invisible||(R.__dirty&&(E&&E.brush(R),this.clipPathManager.update(R),R.style&&(this.gradientManager.update(R.style.fill),this.gradientManager.update(R.style.stroke),this.shadowManager.update(k,R)),R.__dirty=!1),P.push(R))}var B=s(L,P),F;for(I=0;I<B.length;I++){var V=B[I];if(V.removed)for(var N=0;N<V.count;N++){var R=L[V.indices[N]],k=b(R),O=S(R);x(M,k),x(M,O)}}for(I=0;I<B.length;I++){var V=B[I];if(V.added)for(var N=0;N<V.count;N++){var R=P[V.indices[N]],k=b(R),O=S(R);F?y(M,k,F):_(M,k),k?y(M,O,k):F?y(M,O,F):_(M,O),y(M,O,k),F=O||k||F,this.gradientManager.addWithoutUpdate(k||O,R),this.shadowManager.addWithoutUpdate(k||O,R),this.clipPathManager.markUsed(R)}else if(!V.removed)for(var N=0;N<V.count;N++){var R=P[V.indices[N]],k=b(R),O=S(R),k=b(R),O=S(R);this.gradientManager.markUsed(R),this.gradientManager.addWithoutUpdate(k||O,R),this.shadowManager.markUsed(R),this.shadowManager.addWithoutUpdate(k||O,R),this.clipPathManager.markUsed(R),O&&y(M,O,k),F=k||O||F}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=P},_getDefs:function(C){var M=this._svgDom,L=M.getElementsByTagName("defs");if(L.length===0)if(C){var L=M.insertBefore(t("defs"),M.firstChild);return L.contains||(L.contains=function(P){var I=L.children;if(!I)return!1;for(var R=I.length-1;R>=0;--R)if(I[R]===P)return!0;return!1}),L}else return null;else return L[0]},resize:function(C,M){var L=this._viewport;L.style.display="none";var D=this._opts;if(C!=null&&(D.width=C),M!=null&&(D.height=M),C=this._getSize(0),M=this._getSize(1),L.style.display="",this._width!==C||this._height!==M){this._width=C,this._height=M;var P=L.style;P.width=C+"px",P.height=M+"px";var I=this._svgDom;I.setAttribute("width",C),I.setAttribute("height",M)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",C),this._backgroundNode.setAttribute("height",M))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(C){var M=this._opts,L=["width","height"][C],D=["clientWidth","clientHeight"][C],P=["paddingLeft","paddingTop"][C],I=["paddingRight","paddingBottom"][C];if(M[L]!=null&&M[L]!=="auto")return parseFloat(M[L]);var R=this.root,E=document.defaultView.getComputedStyle(R);return(R[D]||p(E[L])||p(R.style[L]))-(p(E[P])||0)-(p(E[I])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var C=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+C}};function A(C){return function(){a('In SVG mode painter not support method "'+C+'"')}}e.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(C){w.prototype[C]=A(C)});var T=w;return Mw=T,Mw}var m4;function $_e(){if(m4)return l4;m4=1,DD();var r=vg(),t=r.registerPainter,e=U_e();return t("svg",e),l4}var y4;function b1e(){return y4||(y4=1,(function(r){var t=Pe();(function(){for(var a in t){if(t==null||!t.hasOwnProperty(a)||a==="default"||a==="__esModule")return;r[a]=t[a]}})();var e=t$();(function(){for(var a in e){if(e==null||!e.hasOwnProperty(a)||a==="default"||a==="__esModule")return;r[a]=e[a]}})(),U9(),Age(),Ige(),Oge(),Vge(),Xge(),ume(),pme(),wme(),Bme(),Hme(),$me(),iye(),vye(),pye(),Sye(),Aye(),Pye(),Oye(),Bye(),jye(),i0e(),v0e(),h0e(),w0e(),C0e(),P$(),b$(),I0e(),P0e(),q0e(),Z0e(),Sf(),t_e(),r_e(),h_e(),d_e(),m_e(),x_e(),C_e(),B$(),R_e(),G$(),V$(),z_e(),X$(),K$(),G_e(),$_e()})(Ky)),Ky}ot([x9]);ot([ype]);ot([pre,Ire,Gre,_ae,Iae,gie,Wie,Mne,Xne,toe,voe,ise,Lse,Gse,rle,ole,gle,wle,kle,Gle,Kle,Eue]);ot(jue);ot(Tve);ot(t8);ot(zve);ot(G8);ot(Fve);ot(Kve);ot(zhe);ot(rfe);ot(of);ot(_fe);ot(bfe);ot(Rfe);ot(Vfe);ot(Ufe);ot(Qfe);ot(sce);ot(Ace);ot(q7);ot(W7);ot(Uce);ot(X7);ot(K7);ot(Kce);ot(ude);ot(j7);ot(Bde);ot(S6);ot([x9,j7]);ot(S6);var j$=(function(){function r(t){this.value=t}return r})(),Y_e=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new j$(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Z_e=(function(){function r(t){this._list=new Y_e,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,i=this._map,n=null;if(i[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new j$(e),s.key=t,a.insertEntry(s),i[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),ih={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ih.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ih.bounceIn(r*2)*.5:ih.bounceOut(r*2-1)*.5+.5}};tY(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{});tY(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{});var J$=Array.prototype,eY=J$.slice,X_e=J$.map,_4=(function(){}).constructor,Gc=_4?_4.prototype:null,K_e="__proto__";function Q_e(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function j_e(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==K_e&&(r[e]=t[e]);return r}function pp(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function TA(r,t,e){if(!r)return[];if(!t)return a1e(r);if(r.map&&r.map===X_e)return r.map(t,e);for(var a=[],i=0,n=r.length;i<n;i++)a.push(t.call(e,r[i],i,r));return a}function tY(r,t,e,a){if(r&&t){for(var i=0,n=r.length;i<n;i++)e=t.call(a,e,r[i],i,r);return e}}function x4(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function J_e(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(eY.call(arguments)))}}Gc&&Ag(Gc.bind)&&Gc.call.bind(Gc.bind);function Ag(r){return typeof r=="function"}function e1e(r){return typeof r=="string"}function Dw(r){return typeof r=="number"}function t1e(r){return r.colorStops!=null}function r1e(r){return r!==r}function a1e(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return eY.apply(r,t)}function Fc(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function w1e(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var i=r.length,a=0;a<t.length;a++)e[a+i]=t[a];return e}function Lw(){}function T1e(r,t,e){var a=t[0],i=t[1];return r[0]=e[0]*a+e[2]*i+e[4],r[1]=e[1]*a+e[3]*i+e[5],r}var Hc=Math.pow,dd=Math.sqrt,S4=1e-8,b4=dd(3),qc=1/3;function Wc(r){return r>-S4&&r<S4}function i1e(r,t,e,a,i){var n=1-i;return n*n*(n*r+3*i*t)+i*i*(i*a+3*n*e)}function n1e(r,t,e,a,i,n){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,v=s*s-3*o*l,h=s*l-9*o*u,f=l*l-3*s*u,c=0;if(Wc(v)&&Wc(h))if(Wc(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[c++]=d)}else{var p=h*h-4*v*f;if(Wc(p)){var g=h/v,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m)}else if(p>0){var y=dd(p),_=v*s+1.5*o*(-h+y),x=v*s+1.5*o*(-h-y);_<0?_=-Hc(-_,qc):_=Hc(_,qc),x<0?x=-Hc(-x,qc):x=Hc(x,qc);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(n[c++]=d)}else{var S=(2*v*s-3*o*h)/(2*dd(v*v*v)),b=Math.acos(S)/3,w=dd(v),A=Math.cos(b),d=(-s-2*w*A)/(3*o),m=(-s+w*(A+b4*Math.sin(b)))/(3*o),T=(-s+w*(A-b4*Math.sin(b)))/(3*o);d>=0&&d<=1&&(n[c++]=d),m>=0&&m<=1&&(n[c++]=m),T>=0&&T<=1&&(n[c++]=T)}}return c}var o1e=/cubic-bezier\(([0-9,\.e ]+)\)/;function rY(r){var t=r&&o1e.exec(r);if(t){var e=t[1].split(","),a=+Fc(e[0]),i=+Fc(e[1]),n=+Fc(e[2]),o=+Fc(e[3]);if(isNaN(a+i+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:n1e(0,a,n,1,l,s)&&i1e(0,i,o,1,s[0])}}}var s1e=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Lw,this.ondestroy=t.ondestroy||Lw,this.onrestart=t.onrestart||Lw,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,i=t-this._startTime-this._pausedTime,n=i/a;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ag(t)?t:ih[t]||rY(t)},r})(),w4={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function nh(r){return r=Math.round(r),r<0?0:r>255?255:r}function T4(r){return r<0?0:r>1?1:r}function Iw(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?nh(parseFloat(t)/100*255):nh(parseInt(t,10))}function oh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?T4(parseFloat(t)/100):T4(parseFloat(t))}function Pw(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function za(r,t,e,a,i){return r[0]=t,r[1]=e,r[2]=a,r[3]=i,r}function AA(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var aY=new Z_e(20),Uc=null;function Ml(r,t){Uc&&AA(Uc,t),Uc=aY.put(r,Uc||t.slice())}function Rw(r,t){if(r){t=t||[];var e=aY.get(r);if(e)return AA(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in w4)return AA(t,w4[a]),Ml(r,t),t;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){za(t,0,0,0,1);return}return za(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),Ml(r,t),t}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){za(t,0,0,0,1);return}return za(t,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),Ml(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),v=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?za(t,+u[0],+u[1],+u[2],1):za(t,0,0,0,1);v=oh(u.pop());case"rgb":if(u.length>=3)return za(t,Iw(u[0]),Iw(u[1]),Iw(u[2]),u.length===3?v:oh(u[3])),Ml(r,t),t;za(t,0,0,0,1);return;case"hsla":if(u.length!==4){za(t,0,0,0,1);return}return u[3]=oh(u[3]),A4(u,t),Ml(r,t),t;case"hsl":if(u.length!==3){za(t,0,0,0,1);return}return A4(u,t),Ml(r,t),t;default:return}}za(t,0,0,0,1)}}function A4(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=oh(r[1]),i=oh(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return t=t||[],za(t,nh(Pw(o,n,e+1/3)*255),nh(Pw(o,n,e)*255),nh(Pw(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}var l1e=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),u1e=(function(){function r(){this.browser=new l1e,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Un=new u1e;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Un.wxa=!0,Un.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Un.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js?v=1773287522785")===0?(Un.node=!0,Un.svgSupported=!0):v1e(navigator.userAgent,Un);function v1e(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),i&&(e.ie=!0,e.version=i[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}function h1e(r){return r.type==="linear"}function f1e(r){return r.type==="radial"}(function(){return Un.hasGlobalWindow&&Ag(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var CA=Array.prototype.slice;function hn(r,t,e){return(t-r)*e+r}function Ew(r,t,e,a){for(var i=t.length,n=0;n<i;n++)r[n]=hn(t[n],e[n],a);return r}function c1e(r,t,e,a){for(var i=t.length,n=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=hn(t[o][s],e[o][s],a)}return r}function $c(r,t,e,a){for(var i=t.length,n=0;n<i;n++)r[n]=t[n]+e[n]*a;return r}function C4(r,t,e,a){for(var i=t.length,n=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function d1e(r,t){for(var e=r.length,a=t.length,i=e>a?t:r,n=Math.min(e,a),o=i[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(e,a);s++)i.push({offset:o.offset,color:o.color.slice()})}function p1e(r,t,e){var a=r,i=t;if(!(!a.push||!i.push)){var n=a.length,o=i.length;if(n!==o){var s=n>o;if(s)a.length=o;else for(var l=n;l<o;l++)a.push(e===1?i[l]:CA.call(i[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)isNaN(a[l])&&(a[l]=i[l]);else for(var v=0;v<u;v++)isNaN(a[l][v])&&(a[l][v]=i[l][v])}}function kw(r){if(pp(r)){var t=r.length;if(pp(r[0])){for(var e=[],a=0;a<t;a++)e.push(CA.call(r[a]));return e}return CA.call(r)}return r}function pd(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function g1e(r){return pp(r&&r[0])?2:1}var Yc=0,gd=1,iY=2,Gv=3,MA=4,DA=5,M4=6;function D4(r){return r===MA||r===DA}function Zc(r){return r===gd||r===iY}var Mv=[0,0,0,0],m1e=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,s=M4,l=e;if(pp(e)){var u=g1e(e);s=u,(u===1&&!Dw(e[0])||u===2&&!Dw(e[0][0]))&&(o=!0)}else if(Dw(e)&&!r1e(e))s=Yc;else if(e1e(e))if(!isNaN(+e))s=Yc;else{var v=Rw(e);v&&(l=v,s=Gv)}else if(t1e(e)){var h=j_e({},l);h.colorStops=TA(e.colorStops,function(c){return{offset:c.offset,color:Rw(c.color)}}),h1e(e)?s=MA:f1e(e)&&(s=DA),l=h}n===0?this.valType=s:(s!==this.valType||s===M4)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:e,percent:0};return a&&(f.easing=a,f.easingFunc=Ag(a)?a:ih[a]||rY(a)),i.push(f),f},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var i=this.valType,n=a.length,o=a[n-1],s=this.discrete,l=Zc(i),u=D4(i),v=0;v<n;v++){var h=a[v],f=h.value,c=o.value;h.percent=h.time/t,s||(l&&v!==n-1?p1e(f,c,i):u&&d1e(f.colorStops,c.colorStops))}if(!s&&i!==DA&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=a[0].value,v=0;v<n;v++)i===Yc?a[v].additiveValue=a[v].value-d:i===Gv?a[v].additiveValue=$c([],a[v].value,d,-1):Zc(i)&&(a[v].additiveValue=i===gd?$c([],a[v].value,d,-1):C4([],a[v].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,i=a?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Gv,v,h=this._lastFr,f=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)v=0;else if(e<this._lastFrP){var p=f(h+1,s-1);for(v=p;v>=0&&!(o[v].percent<=e);v--);v=f(v,s-2)}else{for(v=h;v<s&&!(o[v].percent>e);v++);v=f(v-1,s-2)}d=o[v+1],c=o[v]}if(c&&d){this._lastFr=v,this._lastFrP=e;var g=d.percent-c.percent,m=g===0?1:f((e-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=a?this._additiveValue:u?Mv:t[l];if((Zc(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(Zc(n))n===gd?Ew(y,c[i],d[i],m):c1e(y,c[i],d[i],m);else if(D4(n)){var _=c[i],x=d[i],S=n===MA;t[l]={type:S?"linear":"radial",x:hn(_.x,x.x,m),y:hn(_.y,x.y,m),colorStops:TA(_.colorStops,function(w,A){var T=x.colorStops[A];return{offset:hn(w.offset,T.offset,m),color:pd(Ew([],w.color,T.color,m))}}),global:x.global},S?(t[l].x2=hn(_.x2,x.x2,m),t[l].y2=hn(_.y2,x.y2,m)):t[l].r=hn(_.r,x.r,m)}else if(u)Ew(y,c[i],d[i],m),a||(t[l]=pd(y));else{var b=hn(c[i],d[i],m);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,i=this._additiveValue;e===Yc?t[a]=t[a]+i:e===Gv?(Rw(t[a],Mv),$c(Mv,Mv,i,1),t[a]=pd(Mv)):e===gd?$c(t[a],t[a],i,1):e===iY&&C4(t[a],t[a],i,1)},r})(),A1e=(function(){function r(t,e,a,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Q_e("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,x4(e),a)},r.prototype.whenWithKeys=function(t,e,a,i){for(var n=this._tracks,o=0;o<a.length;o++){var s=a[o],l=n[s];if(!l){l=n[s]=new m1e(s);var u=void 0,v=this._getAdditiveTrack(s);if(v){var h=v.keyframes,f=h[h.length-1];u=f&&f.value,v.valType===Gv&&u&&(u=pd(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,kw(u),i),this._trackKeys.push(s)}l.addKeyframe(t,kw(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a<e;a++)t[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var i=0;i<a.length;i++){var n=a[i].getTrack(t);n&&(e=n)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,a=[],i=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,v=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[v-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var f=new s1e({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(e._target,c);var m=e._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return TA(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,i=this._trackKeys,n=0;n<t.length;n++){var o=a[t[n]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<i.length;n++)if(!a[i[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var n=e[i],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[n]=kw(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||x4(t);for(var a=0;a<e.length;a++){var i=e[a],n=this._tracks[i];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,t[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})(),y1e;y1e=Un.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var _1e={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function C1e(r,t){if(r==="world"){var e=_1e[t.name];if(e){var a=[e[0],e[1]];t.setCenter(a)}}}function M1e(r,t,e,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||n>r+s&&n>e+s||n<r-s&&n<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(n-r)<=s/2;var v=l*n-o+u,h=v*v/(l*l+1);return h<=s/2*s/2}function D1e(){return[1,0,0,1,0,0]}function L1e(r,t){var e=t[0],a=t[2],i=t[4],n=t[1],o=t[3],s=t[5],l=e*o-n*a;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*i)*l,r[5]=(n*i-e*s)*l,r):null}export{PT as $,A1e as A,y1e as B,$ as C,nt as D,EU as E,kU as F,kC as G,ut as H,tt as I,Ue as J,eT as K,Z_e as L,DC as M,Mt as N,pt as O,Ht as P,Wt as Q,gt as R,gq as S,Qre as T,EA as U,Ja as V,dr as W,vte as X,hte as Y,Dr as Z,Ye as _,rfe as a,et as a0,hee as a1,bee as a2,Xr as a3,wd as a4,at as a5,kT as a6,Xae as a7,C1e as a8,Ya as a9,Ma as aa,ute as ab,gC as ac,Zr as ad,dC as ae,$e as af,wW as ag,AQ as ah,uee as ai,zt as aj,kt as ak,M1e as al,lr as am,ar as an,lte as ao,D1e as ap,L1e as aq,T1e as ar,$ne as as,a8 as at,Pt as au,_e as av,w1e as aw,jue as b,Ace as c,Kve as d,S1e as e,j7 as f,ude as g,sce as h,bfe as i,Gre as j,S6 as k,Bde as l,x9 as m,zhe as n,pre as o,Ire as p,Uce as q,b1e as r,gie as s,Vfe as t,ot as u,iee as v,Se as w,we as x,sa as y,Xe as z};