import{G as DB,E as dw}from"./pages/main-CcyKUC_q.js";var Dd={exports:{}};(function(LB,pw){(function(U,Ji){Ji(pw)})(dw,function(U){/*! *****************************************************************************
	    Copyright (c) Microsoft Corporation.

	    Permission to use, copy, modify, and/or distribute this software for any
	    purpose with or without fee is hereby granted.

	    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
	    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
	    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
	    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
	    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
	    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	    PERFORMANCE OF THIS SOFTWARE.
	    ***************************************************************************** */var Ji=function(r,t){return Ji=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ji(r,t)};function E(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ji(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var gw=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),mw=function(){function r(){this.browser=new gw,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}(),Q=new mw;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Q.wxa=!0,Q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Q.worker=!0:typeof navigator>"u"?(Q.node=!0,Q.svgSupported=!0):yw(navigator.userAgent,Q);function yw(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[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 wu=12,Id="sans-serif",Er=wu+"px "+Id,_w=20,Sw=100,bw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ww(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-_w)/Sw;t[n]=i}return t}var xw=ww(bw),_r={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=_r.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Er),r.measureText(e);e=e||"",n=n||Er;var a=/(\d+)px/.exec(n),o=a&&+a[1]||wu,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=xw[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function Ld(r){for(var t in _r)r[t]&&(_r[t]=r[t])}var Pd=We(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Rd=We(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),vi=Object.prototype.toString,Wo=Array.prototype,Tw=Wo.forEach,Cw=Wo.filter,xu=Wo.slice,Aw=Wo.map,Ed=(function(){}).constructor,Uo=Ed?Ed.prototype:null,Tu="__proto__",Mw=2311;function Cu(){return Mw++}function He(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function j(r){if(r==null||typeof r!="object")return r;var t=r,e=vi.call(r);if(e==="[object Array]"){if(!ci(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=j(r[n])}}else if(Rd[e]){if(!ci(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!Pd[e]&&!ci(r)&&!pn(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Tu&&(t[o]=j(r[o]))}return t}function tt(r,t,e){if(!Y(t)||!Y(r))return e?j(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Tu){var i=r[n],a=t[n];Y(a)&&Y(i)&&!F(a)&&!F(i)&&!pn(a)&&!pn(i)&&!Mu(a)&&!Mu(i)&&!ci(a)&&!ci(i)?tt(i,a,e):(e||!(n in r))&&(r[n]=j(t[n]))}return r}function kd(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=tt(e,r[n],t);return e}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Tu&&(r[e]=t[e]);return r}function st(r,t,e){for(var n=ot(t),i=0;i<n.length;i++){var a=n[i];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}var Dw=_r.createCanvas;function at(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Au(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function _e(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else st(r,t,e)}function Ut(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function C(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Tw)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function N(r,t,e){if(!r)return[];if(!t)return Yo(r);if(r.map&&r.map===Aw)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function We(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function xt(r,t,e){if(!r)return[];if(!t)return Yo(r);if(r.filter&&r.filter===Cw)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function Iw(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function ot(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 Lw(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(xu.call(arguments)))}}var X=Uo&&G(Uo.bind)?Uo.call.bind(Uo.bind):Lw;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(xu.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):vi.call(r)==="[object Array]"}function G(r){return typeof r=="function"}function V(r){return typeof r=="string"}function ta(r){return vi.call(r)==="[object String]"}function gt(r){return typeof r=="number"}function Y(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Mu(r){return!!Pd[vi.call(r)]}function Jt(r){return!!Rd[vi.call(r)]}function pn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ea(r){return r.colorStops!=null}function Od(r){return r.image!=null}function Bd(r){return vi.call(r)==="[object RegExp]"}function gn(r){return r!==r}function Se(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function J(r,t){return r??t}function kr(r,t,e){return r??t??e}function Yo(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return xu.apply(r,t)}function Du(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 W(r,t){if(!r)throw new Error(t)}function Ue(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Nd="__ec_primitive__";function ra(r){r[Nd]=!0}function ci(r){return r[Nd]}var Pw=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 ot(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),Fd=typeof Map=="function";function Rw(){return Fd?new Map:new Pw}var zd=function(){function r(t){var e=F(t);this.data=Rw();var n=this;t instanceof r?t.each(i):t&&C(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}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(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Fd?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function $(r){return new zd(r)}function Vd(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function na(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&O(e,t),e}function Iu(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function rt(r,t){return r.hasOwnProperty(t)}function Gt(){}var ia=180/Math.PI,Ew=Object.freeze({__proto__:null,guid:Cu,logError:He,clone:j,merge:tt,mergeAll:kd,extend:O,defaults:st,createCanvas:Dw,indexOf:at,inherits:Au,mixin:_e,isArrayLike:Ut,each:C,map:N,reduce:We,filter:xt,find:Iw,keys:ot,bind:X,curry:et,isArray:F,isFunction:G,isString:V,isStringSafe:ta,isNumber:gt,isObject:Y,isBuiltInObject:Mu,isTypedArray:Jt,isDom:pn,isGradientObject:ea,isImagePatternObject:Od,isRegExp:Bd,eqNaN:gn,retrieve:Se,retrieve2:J,retrieve3:kr,slice:Yo,normalizeCssArray:Du,assert:W,trim:Ue,setAsPrimitive:ra,isPrimitive:ci,HashMap:zd,createHashMap:$,concatArray:Vd,createObject:na,disableUserSelect:Iu,hasOwn:rt,noop:Gt,RADIAN_TO_DEGREE:ia});function mn(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function kw(r,t){return r[0]=t[0],r[1]=t[1],r}function Gd(r){return[r[0],r[1]]}function Ow(r,t,e){return r[0]=t,r[1]=e,r}function Lu(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Bw(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Pu(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Ru(r){return Math.sqrt(Eu(r))}var Nw=Ru;function Eu(r){return r[0]*r[0]+r[1]*r[1]}var Fw=Eu;function zw(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function Vw(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function Gw(r,t){return r[0]*t[0]+r[1]*t[1]}function Zo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Xo(r,t){var e=Ru(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function $o(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var qo=$o;function Hd(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var yn=Hd;function Hw(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Ko(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function te(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Or(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Br(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Ww=Object.freeze({__proto__:null,create:mn,copy:kw,clone:Gd,set:Ow,add:Lu,scaleAndAdd:Bw,sub:Pu,len:Ru,length:Nw,lenSquare:Eu,lengthSquare:Fw,mul:zw,div:Vw,dot:Gw,scale:Zo,normalize:Xo,distance:$o,dist:qo,distanceSquare:Hd,distSquare:yn,negate:Hw,lerp:Ko,applyTransform:te,min:Or,max:Br}),di=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),Uw=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 di(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new di(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new di(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new di(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new di(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new di(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Te=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[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 n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.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 a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),Yw=Math.log(2);function ku(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Yw);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*r[e][v]*ku(r,t-1,f,u,i|d,a),c++)}return a[o]=h,h}function Wd(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]]],n={},i=ku(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ku(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Ud="___zrEVENTSAVED",Ou=[];function Zw(r,t,e,n,i){return Bu(Ou,t,n,i,!0)&&Bu(r,e,Ou[0],Ou[1])}function Bu(r,t,e,n,i){if(t.getBoundingClientRect&&Q.domSupported&&!Yd(t)){var a=t[Ud]||(t[Ud]={}),o=Xw(t,a),s=$w(o,a,i);if(s)return s(r,e,n),!0}return!1}function Xw(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function $w(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?Wd(s,o):Wd(o,s))}function Yd(r){return r.nodeName.toUpperCase()==="CANVAS"}var qw=/([&<>"'])/g,Kw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function se(r){return r==null?"":(r+"").replace(qw,function(t,e){return Kw[e]})}var Qw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Nu=[],jw=Q.browser.firefox&&+Q.browser.version.split(".")[0]<39;function Fu(r,t,e,n){return e=e||{},n?Zd(r,t,e):jw&&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):Zd(r,t,e),e}function Zd(r,t,e){if(Q.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Yd(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Bu(Nu,r,n,i)){e.zrX=Nu[0],e.zrY=Nu[1];return}}e.zrX=e.zrY=0}function zu(r){return r||window.event}function Ce(r,t,e){if(t=zu(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Fu(r,o,t,e)}else{Fu(r,t,t,e);var a=Jw(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Qw.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Jw(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Vu(r,t,e,n){r.addEventListener(t,e,n)}function tx(r,t,e,n){r.removeEventListener(t,e,n)}var pi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Xd(r){return r.which===2||r.which===3}var ex=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Fu(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Gu)if(Gu.hasOwnProperty(e)){var n=Gu[e](this._track,t);if(n)return n}},r}();function $d(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function rx(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Gu={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=$d(n)/$d(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=rx(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function _n(){return[1,0,0,1,0,0]}function aa(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Hu(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 Nr(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=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]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Qo(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 jo(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function qd(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function oa(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function nx(r){var t=_n();return Hu(t,r),t}var ix=Object.freeze({__proto__:null,create:_n,identity:aa,copy:Hu,mul:Nr,translate:Qo,rotate:jo,scale:qd,invert:oa,clone:nx}),nt=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,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},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,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+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,n){t.x=e,t.y=n},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,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}(),Jo=Math.min,ts=Math.max,Sn=new nt,bn=new nt,wn=new nt,xn=new nt,sa=new nt,la=new nt,vt=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Jo(t.x,this.x),n=Jo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ts(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ts(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=_n();return Qo(a,a,[-e.x,-e.y]),qd(a,a,[n,i]),Qo(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(a<l||u<i||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(p,g),S=Math.min(m,y);a<l||u<i?_>d&&(d=_,p<g?nt.set(la,-p,0):nt.set(la,g,0)):_<c&&(c=_,p<g?nt.set(sa,p,0):nt.set(sa,-g,0)),s<f||h<o?S>d&&(d=S,m<y?nt.set(la,0,-m):nt.set(la,0,y)):_<c&&(c=_,m<y?nt.set(sa,0,m):nt.set(sa,0,-y))}return e&&nt.copy(e,v?sa:la),v},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sn.x=wn.x=e.x,Sn.y=xn.y=e.y,bn.x=xn.x=e.x+e.width,bn.y=wn.y=e.y+e.height,Sn.transform(n),xn.transform(n),bn.transform(n),wn.transform(n),t.x=Jo(Sn.x,bn.x,wn.x,xn.x),t.y=Jo(Sn.y,bn.y,wn.y,xn.y);var l=ts(Sn.x,bn.x,wn.x,xn.x),u=ts(Sn.y,bn.y,wn.y,xn.y);t.width=l-t.x,t.height=u-t.y},r}(),Kd="silent";function ax(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:ox}}function ox(){pi(this.event)}var sx=function(r){E(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}(Te),ua=function(){function r(t,e){this.x=t,this.y=e}return r}(),lx=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wu=new vt(0,0,0,0),Qd=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new ua(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new sx,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Uw(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(C(lx,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Jd(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ua(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.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 n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ua(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=ax(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new ua(e,n);if(jd(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Wu.copy(v.getBoundingRect()),v.transform&&Wu.applyTransform(v.transform),Wu.intersect(f)&&s.push(v))}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),_=n+g*Math.sin(m);if(jd(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new ex);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new ua;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Te);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Qd.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=Jd(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.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||qo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function ux(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?Kd:!0}return!1}function jd(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=ux(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==Kd)){t.target=o;break}}}function Jd(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var tp=32,fa=7;function fx(r){for(var t=0;r>=tp;)t|=r&1,r>>=1;return r+t}function ep(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;hx(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function hx(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function rp(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-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]=a}}function Uu(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(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&&a(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 f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Yu(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(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=n-i;l<s&&a(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 f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function vx(r,t){var e=fa,n,i,a=0;r.length;var o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-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;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=i[c],g=n[c+1],m=i[c+1];i[c]=p+m,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var y=Yu(r[g],r,d,p,0,t);d+=y,p-=y,p!==0&&(m=Uu(r[d+p-1],r,g,m,m-1,t),m!==0&&(p<=m?h(d,p,g,m):v(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,S=c;if(r[S++]=r[_++],--g===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y];return}for(var w=e,b,x,T;;){b=0,x=0,T=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],x++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[y++],b++,x=0,--d===1){T=!0;break}while((b|x)<w);if(T)break;do{if(b=Yu(r[_],o,y,d,0,t),b!==0){for(m=0;m<b;m++)r[S+m]=o[y+m];if(S+=b,y+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(x=Uu(o[y],r,_,g,0,t),x!==0){for(m=0;m<x;m++)r[S+m]=r[_+m];if(S+=x,_+=x,g-=x,g===0){T=!0;break}}if(r[S++]=o[y++],--d===1){T=!0;break}w--}while(b>=fa||x>=fa);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(m=0;m<g;m++)r[S+m]=r[_+m];r[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function v(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,S=p+g-1,w=0,b=0;if(r[S--]=r[y--],--d===0){for(w=S-(g-1),m=0;m<g;m++)r[w+m]=o[m];return}if(g===1){for(S-=d,y-=d,b=S+1,w=y+1,m=d-1;m>=0;m--)r[b+m]=r[w+m];r[S]=o[_];return}for(var x=e;;){var T=0,A=0,D=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],T++,A=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],A++,T=0,--g===1){D=!0;break}while((T|A)<x);if(D)break;do{if(T=d-Yu(o[_],r,c,d,d-1,t),T!==0){for(S-=T,y-=T,d-=T,b=S+1,w=y+1,m=T-1;m>=0;m--)r[b+m]=r[w+m];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-Uu(r[y],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,b=S+1,w=_+1,m=0;m<A;m++)r[b+m]=o[w+m];if(g<=1){D=!0;break}}if(r[S--]=r[y--],--d===0){D=!0;break}x--}while(T>=fa||A>=fa);if(D)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),g===1){for(S-=d,y-=d,b=S+1,w=y+1,m=d-1;m>=0;m--)r[b+m]=r[w+m];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),m=0;m<g;m++)r[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function es(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<tp){a=ep(r,e,n,t),rp(r,e,n,e+a,t);return}var o=vx(r,t),s=fx(i);do{if(a=ep(r,e,n,t),a<s){var l=i;l>s&&(l=s),rp(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var be=1,ha=2,gi=4,np=!1;function Zu(){np||(np=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ip(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var cx=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ip}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,es(n,ip)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){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 a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=be),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Zu(),f.z=0),isNaN(f.z2)&&(Zu(),f.z2=0),isNaN(f.zlevel)&&(Zu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},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,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=at(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}(),ap;ap=Q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Xu=ap,va={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,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*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)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.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-va.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?va.bounceIn(r*2)*.5:va.bounceOut(r*2-1)*.5+.5}},rs=Math.pow,Fr=Math.sqrt,ns=1e-8,op=1e-4,sp=Fr(3),is=1/3,nr=mn(),Ae=mn(),mi=mn();function zr(r){return r>-ns&&r<ns}function lp(r){return r>ns||r<-ns}function kt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function up(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function as(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(zr(f)&&zr(h))if(zr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var p=h*h-4*f*v;if(zr(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m)}else if(p>0){var y=Fr(p),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-rs(-_,is):_=rs(_,is),S<0?S=-rs(-S,is):S=rs(S,is);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Fr(f*f*f)),b=Math.acos(w)/3,x=Fr(f),T=Math.cos(b),d=(-s-2*x*T)/(3*o),m=(-s+x*(T+sp*Math.sin(b)))/(3*o),A=(-s+x*(T-sp*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m),A>=0&&A<=1&&(a[c++]=A)}}return c}function fp(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(zr(o)){if(lp(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(zr(f))i[0]=-a/(2*o);else if(f>0){var h=Fr(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function os(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function dx(r,t,e,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;nr[0]=l,nr[1]=u;for(var y=0;y<1;y+=.05)Ae[0]=kt(r,e,i,o,y),Ae[1]=kt(t,n,a,s,y),g=yn(nr,Ae),g<c&&(h=y,c=g);c=1/0;for(var _=0;_<32&&!(v<op);_++)d=h-v,p=h+v,Ae[0]=kt(r,e,i,o,d),Ae[1]=kt(t,n,a,s,d),g=yn(Ae,nr),d>=0&&g<c?(h=d,c=g):(mi[0]=kt(r,e,i,o,p),mi[1]=kt(t,n,a,s,p),m=yn(mi,nr),p<=1&&m<c?(h=p,c=m):v*=.5);return f&&(f[0]=kt(r,e,i,o,h),f[1]=kt(t,n,a,s,h)),Fr(c)}function px(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=kt(r,e,i,o,d),g=kt(t,n,a,s,d),m=p-u,y=g-f;h+=Math.sqrt(m*m+y*y),u=p,f=g}return h}function Yt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function hp(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function gx(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(zr(a)){if(lp(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(zr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Fr(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function vp(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function ss(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function mx(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;nr[0]=o,nr[1]=s;for(var v=0;v<1;v+=.05){Ae[0]=Yt(r,e,i,v),Ae[1]=Yt(t,n,a,v);var c=yn(nr,Ae);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<op);d++){var p=u-f,g=u+f;Ae[0]=Yt(r,e,i,p),Ae[1]=Yt(t,n,a,p);var c=yn(Ae,nr);if(p>=0&&c<h)u=p,h=c;else{mi[0]=Yt(r,e,i,g),mi[1]=Yt(t,n,a,g);var m=yn(mi,nr);g<=1&&m<h?(u=g,h=m):f*=.5}}return l&&(l[0]=Yt(r,e,i,u),l[1]=Yt(t,n,a,u)),Fr(h)}function yx(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Yt(r,e,i,v),d=Yt(t,n,a,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var _x=/cubic-bezier\(([0-9,\.e ]+)\)/;function $u(r){var t=r&&_x.exec(r);if(t){var e=t[1].split(","),n=+Ue(e[0]),i=+Ue(e[1]),a=+Ue(e[2]),o=+Ue(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:as(0,n,a,1,l,s)&&kt(0,i,o,1,s[0])}}}var Sx=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||Gt,this.ondestroy=t.ondestroy||Gt,this.onrestart=t.onrestart||Gt,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 n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;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=G(t)?t:va[t]||$u(t)},r}(),cp=function(){function r(t){this.value=t}return r}(),bx=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new cp(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,n=t.next;e?e.next=n:this.head=n,n?n.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}(),ca=function(){function r(t){this._list=new bx,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new cp(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),dp={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 Ye(r){return r=Math.round(r),r<0?0:r>255?255:r}function xx(r){return r=Math.round(r),r<0?0:r>360?360:r}function da(r){return r<0?0:r>1?1:r}function qu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ye(parseFloat(t)/100*255):Ye(parseInt(t,10))}function Tn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?da(parseFloat(t)/100):da(parseFloat(t))}function Ku(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 Vr(r,t,e){return r+(t-r)*e}function Me(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Qu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var pp=new ca(20),ls=null;function yi(r,t){ls&&Qu(ls,t),ls=pp.put(r,ls||t.slice())}function le(r,t){if(r){t=t||[];var e=pp.get(r);if(e)return Qu(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in dp)return Qu(t,dp[n]),yi(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Me(t,0,0,0,1);return}return Me(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),yi(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Me(t,0,0,0,1);return}return Me(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),yi(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Me(t,+u[0],+u[1],+u[2],1):Me(t,0,0,0,1);f=Tn(u.pop());case"rgb":if(u.length>=3)return Me(t,qu(u[0]),qu(u[1]),qu(u[2]),u.length===3?f:Tn(u[3])),yi(r,t),t;Me(t,0,0,0,1);return;case"hsla":if(u.length!==4){Me(t,0,0,0,1);return}return u[3]=Tn(u[3]),ju(u,t),yi(r,t),t;case"hsl":if(u.length!==3){Me(t,0,0,0,1);return}return ju(u,t),yi(r,t),t;default:return}}Me(t,0,0,0,1)}}function ju(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Tn(r[1]),i=Tn(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Me(t,Ye(Ku(o,a,e+1/3)*255),Ye(Ku(o,a,e)*255),Ye(Ku(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Tx(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-h:e===a?l=1/3+f-v:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Ju(r,t){var e=le(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Gr(e,e.length===4?"rgba":"rgb")}}function Cx(r){var t=le(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function gp(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=Ye(Vr(o[0],s[0],l)),e[1]=Ye(Vr(o[1],s[1],l)),e[2]=Ye(Vr(o[2],s[2],l)),e[3]=da(Vr(o[3],s[3],l)),e}}var Ax=gp;function tf(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=le(t[i]),s=le(t[a]),l=n-i,u=Gr([Ye(Vr(o[0],s[0],l)),Ye(Vr(o[1],s[1],l)),Ye(Vr(o[2],s[2],l)),da(Vr(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var Mx=tf;function Dx(r,t,e,n){var i=le(r);if(r)return i=Tx(i),t!=null&&(i[0]=xx(t)),e!=null&&(i[1]=Tn(e)),n!=null&&(i[2]=Tn(n)),Gr(ju(i),"rgba")}function ef(r,t){var e=le(r);if(e&&t!=null)return e[3]=da(t),Gr(e,"rgba")}function Gr(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 pa(r,t){var e=le(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Ix(){return Gr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Lx=Object.freeze({__proto__:null,parse:le,lift:Ju,toHex:Cx,fastLerp:gp,fastMapToColor:Ax,lerp:tf,mapToColor:Mx,modifyHSL:Dx,modifyAlpha:ef,stringify:Gr,lum:pa,random:Ix}),us=Math.round;function ga(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=le(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var mp=1e-4;function Hr(r){return r<mp&&r>-mp}function fs(r){return us(r*1e3)/1e3}function rf(r){return us(r*1e4)/1e4}function Px(r){return"matrix("+fs(r[0])+","+fs(r[1])+","+fs(r[2])+","+fs(r[3])+","+rf(r[4])+","+rf(r[5])+")"}var Rx={left:"start",right:"end",center:"middle",middle:"middle"};function Ex(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function kx(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Ox(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 yp(r){return r&&!!r.image}function Bx(r){return r&&!!r.svgElement}function nf(r){return yp(r)||Bx(r)}function _p(r){return r.type==="linear"}function Sp(r){return r.type==="radial"}function bp(r){return r&&(r.type==="linear"||r.type==="radial")}function hs(r){return"url(#"+r+")"}function wp(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 xp(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*ia,i=J(r.scaleX,1),a=J(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+us(o*ia)+"deg, "+us(s*ia)+"deg)"),l.join(" ")}var Nx=function(){return Q.hasGlobalWindow&&G(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return He("Base64 isn't natively supported in the current environment."),null}}(),af=Array.prototype.slice;function Sr(r,t,e){return(t-r)*e+r}function of(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=Sr(t[a],e[a],n);return r}function Fx(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Sr(t[o][s],e[o][s],n)}return r}function vs(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function Tp(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function zx(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Vx(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:af.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function ma(r){if(Ut(r)){var t=r.length;if(Ut(r[0])){for(var e=[],n=0;n<t;n++)e.push(af.call(r[n]));return e}return af.call(r)}return r}function cs(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 Gx(r){return Ut(r&&r[0])?2:1}var ds=0,ps=1,Cp=2,ya=3,sf=4,lf=5,Ap=6;function Mp(r){return r===sf||r===lf}function gs(r){return r===ps||r===Cp}var _a=[0,0,0,0],Hx=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,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ap,l=e;if(Ut(e)){var u=Gx(e);s=u,(u===1&&!gt(e[0])||u===2&&!gt(e[0][0]))&&(o=!0)}else if(gt(e)&&!gn(e))s=ds;else if(V(e))if(!isNaN(+e))s=ds;else{var f=le(e);f&&(l=f,s=ya)}else if(ea(e)){var h=O({},l);h.colorStops=N(e.colorStops,function(c){return{offset:c.offset,color:le(c.color)}}),_p(e)?s=sf:Sp(e)&&(s=lf),l=h}a===0?this.valType=s:(s!==this.valType||s===Ap)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=G(n)?n:va[n]||$u(n)),i.push(v),v},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=gs(i),u=Mp(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?Vx(v,c,i):u&&zx(v.colorStops,c.colorStops))}if(!s&&i!==lf&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===ds?n[f].additiveValue=n[f].value-d:i===ya?n[f].additiveValue=vs([],n[f].value,d,-1):gs(i)&&(n[f].additiveValue=i===ps?vs([],n[f].value,d,-1):Tp([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ya,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,m=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?_a:t[l];if((gs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(gs(a))a===ps?of(y,c[i],d[i],m):Fx(y,c[i],d[i],m);else if(Mp(a)){var _=c[i],S=d[i],w=a===sf;t[l]={type:w?"linear":"radial",x:Sr(_.x,S.x,m),y:Sr(_.y,S.y,m),colorStops:N(_.colorStops,function(x,T){var A=S.colorStops[T];return{offset:Sr(x.offset,A.offset,m),color:cs(of([],x.color,A.color,m))}}),global:S.global},w?(t[l].x2=Sr(_.x2,S.x2,m),t[l].y2=Sr(_.y2,S.y2,m)):t[l].r=Sr(_.r,S.r,m)}else if(u)of(y,c[i],d[i],m),n||(t[l]=cs(y));else{var b=Sr(c[i],d[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===ds?t[n]=t[n]+i:e===ya?(le(t[n],_a),vs(_a,_a,i,1),t[n]=cs(_a)):e===ps?vs(t[n],t[n],i,1):e===Cp&&Tp(t[n],t[n],i,1)},r}(),uf=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){He("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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,n){return this.whenWithKeys(t,e,ot(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Hx(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===ya&&u&&(u=cs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,ma(u),i),this._trackKeys.push(s)}l.addKeyframe(t,ma(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,n=0;n<e;n++)t[n].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 n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Sx({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<n.length;g++)n[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=v,this.animation&&this.animation.addClip(v),t&&v.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 N(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=ma(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||ot(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function _i(){return new Date().getTime()}var Wx=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}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 n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=_i()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Xu(n),!e._paused&&e.update())}Xu(n)},t.prototype.start=function(){this._running||(this._time=_i(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_i(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_i()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new uf(e,n.loop);return this.addAnimator(i),i},t}(Te),Ux=300,ff=Q.domSupported,hf=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},n=N(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Dp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ip=!1;function vf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Yx(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 cf(r){r&&(r.zrByTouch=!0)}function Zx(r,t){return Ce(r.dom,new Xx(r,t),!0)}function Lp(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Xx=function(){function r(t,e){this.stopPropagation=Gt,this.stopImmediatePropagation=Gt,this.preventDefault=Gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ze={mousedown:function(r){r=Ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ce(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=Ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ce(this.dom,r);var t=r.toElement||r.relatedTarget;Lp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ip=!0,r=Ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ip||(r=Ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ce(this.dom,r),cf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ze.mousemove.call(this,r),Ze.mousedown.call(this,r)},touchmove:function(r){r=Ce(this.dom,r),cf(r),this.handler.processGesture(r,"change"),Ze.mousemove.call(this,r)},touchend:function(r){r=Ce(this.dom,r),cf(r),this.handler.processGesture(r,"end"),Ze.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Ux&&Ze.click.call(this,r)},pointerdown:function(r){Ze.mousedown.call(this,r)},pointermove:function(r){vf(r)||Ze.mousemove.call(this,r)},pointerup:function(r){Ze.mouseup.call(this,r)},pointerout:function(r){vf(r)||Ze.mouseout.call(this,r)}};C(["click","dblclick","contextmenu"],function(r){Ze[r]=function(t){t=Ce(this.dom,t),this.trigger(r,t)}});var df={pointermove:function(r){vf(r)||df.mousemove.call(this,r)},pointerup:function(r){df.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 $x(r,t){var e=t.domHandlers;Q.pointerEventsSupported?C(hf.pointer,function(n){ms(t,n,function(i){e[n].call(r,i)})}):(Q.touchEventsSupported&&C(hf.touch,function(n){ms(t,n,function(i){e[n].call(r,i),Yx(t)})}),C(hf.mouse,function(n){ms(t,n,function(i){i=zu(i),t.touching||e[n].call(r,i)})}))}function qx(r,t){Q.pointerEventsSupported?C(Dp.pointer,e):Q.touchEventsSupported||C(Dp.mouse,e);function e(n){function i(a){a=zu(a),Lp(r,a.target)||(a=Zx(r,a),t.domHandlers[n].call(r,a))}ms(t,n,i,{capture:!0})}}function ms(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,Vu(r.domTarget,t,e,n)}function pf(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&tx(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Pp=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),Kx=function(r){E(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Pp(e,Ze),ff&&(i._globalHandlerScope=new Pp(document,df)),$x(i,i._localHandlerScope),i}return t.prototype.dispose=function(){pf(this._localHandlerScope),ff&&pf(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,ff&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?qx(this,n):pf(n)}},t}(Te),Rp=1;Q.hasGlobalWindow&&(Rp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ys=Rp,gf=.4,mf="#333",yf="#ccc",Qx="#eee",Ep=aa,kp=5e-5;function Cn(r){return r>kp||r<-kp}var An=[],Si=[],_f=_n(),Sf=Math.abs,bf=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 Cn(this.rotation)||Cn(this.x)||Cn(this.y)||Cn(this.scaleX-1)||Cn(this.scaleY-1)||Cn(this.skewX)||Cn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Ep(n),this.invTransform=null);return}n=n||_n(),e?this.getLocalTransform(n):Ep(n),t&&(e?Nr(n,t,n):Hu(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(An);var n=An[0]<0?-1:1,i=An[1]<0?-1:1,a=((An[0]-n)*e+n)/An[0]||0,o=((An[1]-i)*e+i)/An[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_n(),oa(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],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Nr(Si,t.invTransform,e),e=Si);var n=this.originX,i=this.originY;(n||i)&&(_f[4]=n,_f[5]=i,Nr(Si,e,_f),Si[4]-=n,Si[5]-=i,e=Si),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 n=[t,e],i=this.invTransform;return i&&te(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&te(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Sf(t[0]-1)>1e-10&&Sf(t[3]-1)>1e-10?Math.sqrt(Sf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Op(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-v*p*o,e[5]=-p*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&jo(e,e,u),e[4]+=n+f,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}(),ir=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Op(r,t){for(var e=0;e<ir.length;e++){var n=ir[e];r[n]=t[n]}}var Bp={};function we(r,t){t=t||Er;var e=Bp[t];e||(e=Bp[t]=new ca(500));var n=e.get(r);return n==null&&(n=_r.measureText(r,t).width,e.put(r,n)),n}function Np(r,t,e,n){var i=we(r,t),a=Ss(t),o=Sa(0,i,e),s=bi(0,a,n),l=new vt(o,s,i,a);return l}function _s(r,t,e,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return Np(i[0],t,e,n);for(var o=new vt(0,0,0,0),s=0;s<i.length;s++){var l=Np(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Sa(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function bi(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Ss(r){return we("国",r)}function Wr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function bs(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Wr(n[0],e.width),u+=Wr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var wf="__zr_normal__",xf=ir.concat(["ignore"]),jx=We(ir,function(r,t){return r[t]=!0,r},{ignore:!1}),wi={},Jx=new vt(0,0,0,0),ws=function(){function r(t){this.id=Cu(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){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 n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=Jx;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wi,n,f):bs(wi,n,f),a.x=wi.x,a.y=wi.y,o=wi.align,s=wi.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Wr(h[0],f.width),c=Wr(h[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.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|=be,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()?yf:mf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&le(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Gr(n,"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||{},O(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(Y(t))for(var n=t,i=ot(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==wf)){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,xf)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},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(wf,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===wf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(at(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){He("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,n,f),v&&v.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~be),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],v=!!(h&&h.hoverLayer||n);v&&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,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~be)}},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=at(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!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={},n,i=0;i<t.length;i++){var a=t[i];O(e,a),a.textConfig&&(n=n||{},O(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=O({},i?this.textConfig:n.textConfig),O(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<xf.length;f++){var h=xf[f],v=a&&jx[h];e&&e[h]!=null?v?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},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;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new bf,this._attachComponent(t),this._textContent=t,this.markRedraw()}},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(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|=be;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,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);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 n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this;if(!i){He('Property "'+t+'" is not existed in element '+this.id);return}var a=new uf(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=at(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){Tf(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Tf(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=Tf(this,e,n,i),o=0;o<a.length;o++)a[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=be;var e={};function n(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(v){f[l]=v}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();_e(ws,Te),_e(ws,bf);function Tf(r,t,e,n,i){e=e||{};var a=[];Fp(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function Cf(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function tT(r){return Ut(r[0])}function eT(r,t,e){if(Ut(t[e]))if(Ut(r[e])||(r[e]=[]),Jt(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Cf(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(tT(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Cf(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Cf(a,i,o);a.length=i.length}else r[e]=t[e]}function rT(r,t){return r===t||Ut(r)&&Ut(t)&&nT(r,t)}function nT(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function Fp(r,t,e,n,i,a,o,s){for(var l=ot(n),u=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!Y(a),d=r.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&e[m]!=null&&(c||a[m]))if(Y(y)&&!Ut(y)&&!ea(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}Fp(r,m,e[m],y,i,a&&a[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 S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var b=w.stopTracks(p);if(b){var x=at(d,w);d.splice(x,1)}}}if(i.force||(p=xt(p,function(M){return!rT(n[M],e[M])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,A=void 0,D=void 0;if(s){A={},v&&(T={});for(var S=0;S<_;S++){var m=p[S];A[m]=e[m],v?T[m]=n[m]:e[m]=n[m]}}else if(v){D={};for(var S=0;S<_;S++){var m=p[S];D[m]=ma(e[m]),eT(e,n,m)}}var w=new uf(e,!1,!1,h?xt(d,function(I){return I.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(u??500,s?A:n,p).delay(f||0),r.addAnimator(w,t),o.push(w)}}var _t=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}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 n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=at(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=at(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new vt(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(vt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(ws);_t.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var ba={},Mn={};function iT(r){delete Mn[r]}function aT(r){if(!r)return!1;if(typeof r=="string")return pa(r,1)<gf;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=pa(t[i].color,1);return e/=n,e<gf}return!1}var oT=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new cx,o=n.renderer||"canvas";if(ba[o]||(o=ot(ba)[0]),!ba[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ba[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Q.node&&!Q.worker&&!l?new Kx(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?Q.touchEventsSupported:!!f,v=44,c;h&&(c=J(n.pointerSize,v)),this.handler=new Qd(a,s,u,s.root,c),this.animation=new Wx({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=aT(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){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var e,n=_i();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=_i();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):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.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _t&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,iT(this.id)},r}();function Af(r,t){var e=new oT(Cu(),r,t);return Mn[e.id]=e,e}function sT(r){r.dispose()}function lT(){for(var r in Mn)Mn.hasOwnProperty(r)&&Mn[r].dispose();Mn={}}function uT(r){return Mn[r]}function zp(r,t){ba[r]=t}var fT="5.4.4",hT=Object.freeze({__proto__:null,init:Af,dispose:sT,disposeAll:lT,getInstance:uT,registerPainter:zp,version:fT}),Vp=1e-4,Gp=20;function vT(r){return r.replace(/^\s+|\s+$/g,"")}function zt(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function ct(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 V(r)?vT(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function At(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Gp),r=(+r).toFixed(t),e?r:+r}function Ur(r){return r.sort(function(t,e){return t-e}),r}function Xe(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 xs(r)}function xs(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Mf(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function cT(r,t,e){if(!r[t])return 0;var n=Hp(r,e);return n[t]||0}function Hp(r,t){var e=We(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=N(r,function(c){return(isNaN(c)?0:c)/e*n*100}),a=n*100,o=N(i,function(c){return Math.floor(c)}),s=We(o,function(c,d){return c+d},0),l=N(i,function(c,d){return c-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return N(o,function(c){return c/n})}function dT(r,t){var e=Math.max(Xe(r),Xe(t)),n=r+t;return e>Gp?n:At(n,e)}var pT=9007199254740991;function Df(r){var t=Math.PI*2;return(r%t+t)%t}function wa(r){return r>-Vp&&r<Vp}var gT=/^(?:(\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 De(r){if(r instanceof Date)return r;if(V(r)){var t=gT.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 Wp(r){return Math.pow(10,xa(r))}function xa(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 If(r,t){var e=xa(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function mT(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function yT(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ta(r){var t=parseFloat(r);return t==r&&(t!==0||!V(r)||r.indexOf("x")<=0)?t:NaN}function Lf(r){return!isNaN(Ta(r))}function Up(){return Math.round(Math.random()*9)}function Yp(r,t){return t===0?r:Yp(t,r%t)}function Zp(r,t){return r==null?t:t==null?r:r*t/Yp(r,t)}var _T="[ECharts] ",Xp={},ST=typeof console<"u"&&console.warn&&console.log;function Ts(r,t,e){if(ST){if(e){if(Xp[t])return;Xp[t]=!0}console[r](_T+t)}}function bT(r,t){Ts("log",r,t)}function Rt(r,t){Ts("warn",r,t)}function Zt(r,t){Ts("error",r,t)}function Ie(r){Ts("warn","DEPRECATED: "+r,!0)}function Et(r,t,e){Ie((e?"["+e+"]":"")+(r+" is deprecated, use "+t+" instead."))}function Cs(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";{var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":gn(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":G(i)?"function () { ... }":Bd(i)?i+"":null};e=N(r,function(i){if(V(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return e}function ue(r){throw new Error(r)}function $p(r,t,e){return(t-r)*e+r}var qp="series\0",Kp="\0_ec_\0";function Ot(r){return r instanceof Array?r:r==null?[]:[r]}function As(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Qp=["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 Ca(r){return Y(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function wT(r){return Y(r)&&!(r instanceof Array)}function jp(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=$();C(t,function(l,u){if(!Y(l)){t[u]=null;return}l.id!=null&&!eg(l.id)&&tg(l.id),l.name!=null&&!eg(l.name)&&tg(l.name)});var s=xT(r,o,e);return(n||i)&&TT(s,r,o,t),n&&CT(s,t),n||i?AT(s,t,i):a&&MT(s,t),DT(s),s}function xT(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||xi(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function TT(r,t,e,n){C(n,function(i,a){if(!(!i||i.id==null)){var o=Aa(i.id),s=e.get(o);if(s!=null){var l=r[s];W(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function CT(r,t){C(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!xi(e)&&!xi(a)&&Jp("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function AT(r,t,e){C(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||xi(i.existing)||i.existing&&n.id!=null&&!Jp("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function MT(r,t){C(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function DT(r){var t=$();C(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),C(r,function(e){var n=e.newOption;W(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),C(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(Y(a)){if(o.name=a.name!=null?Aa(a.name):i?i.name:qp+n,i)o.id=Aa(i.id);else if(a.id!=null)o.id=Aa(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Jp(r,t,e){var n=fe(t[r],null),i=fe(e[r],null);return n!=null&&i!=null&&n===i}function Aa(r){if(r==null)throw new Error;return fe(r,"")}function fe(r,t){return r==null?t:V(r)?r:gt(r)||ta(r)?r+"":t}function tg(r){Rt("`"+r+"` is invalid id or name. Must be a string or number.")}function eg(r){return ta(r)||Lf(r)}function Pf(r){var t=r.name;return!!(t&&t.indexOf(qp))}function xi(r){return r&&r.id!=null&&Aa(r.id).indexOf(Kp)===0}function IT(r){return Kp+r}function LT(r,t,e){C(r,function(n){var i=n.newOption;Y(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=PT(t,i,n.existing,e))})}function PT(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function Dn(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?N(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?N(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function mt(){var r="__ec_inner_"+RT++;return function(t){return t[r]||(t[r]={})}}var RT=Up();function Ma(r,t,e){var n=Rf(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=Da(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Rf(r,t){var e;if(V(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=$(),a={},o=!1;return C(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&at(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ee={useDefault:!0,enableAll:!1,enableNone:!1},ET={useDefault:!1,enableAll:!0,enableNone:!0};function Da(r,t,e,n){n=n||ee;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(W(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(W(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function rg(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function kT(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function OT(r){return r==="auto"?Q.domSupported?"html":"richText":r||"html"}function BT(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(gt(n)){var o=$p(e||0,n,i);return At(o,a?Math.max(Xe(e||0),Xe(n)):t)}else{if(V(n))return i<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=$p(c,d,i);s[h]=At(o,a?Math.max(Xe(c),Xe(d)):t)}}return s}}var NT=".",In="___EC__COMPONENT__CONTAINER___",ng="___EC__EXTENDED_CLASS___";function ar(r){var t={main:"",sub:""};if(r){var e=r.split(NT);t.main=e[0]||"",t.sub=e[1]||""}return t}function FT(r){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function zT(r){return!!(r&&r[ng])}function Ef(r,t){r.$constructor=r,r.extend=function(e){C(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var n=this,i;return VT(n)?i=function(a){E(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Au(i,this)),O(i.prototype,e),i[ng]=!0,i.extend=this.extend,i.superCall=WT,i.superApply=UT,i.superClass=n,i}}function VT(r){return G(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ig(r,t){r.extend=t.extend}var GT=Math.round(Math.random()*10);function HT(r){var t=["__\0is_clz",GT++].join("_");r.prototype[t]=!0,W(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function WT(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function UT(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Ms(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){FT(i),n.prototype.type=i;var a=ar(i);if(!a.sub)t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==In){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[In]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=ar(n),a=[],o=t[i.main];return o&&o[In]?C(o,function(s,l){l!==In&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=ar(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return C(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=ar(n),a=t[i.main];return a&&a[In]};function e(n){var i=t[n.main];return(!i||!i[In])&&(i=t[n.main]={},i[In]=!0),i}}function Ia(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&at(i,l)>=0||a&&at(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var YT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ZT=Ia(YT),XT=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return ZT(this,t,e)},r}(),kf=new ca(50);function $T(r){if(typeof r=="string"){var t=kf.get(r);return t&&t.image}else return r}function Of(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=kf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Ds(t)&&a.pending.push(o)):(t=_r.loadImage(r,ag,ag),t.__zrImageSrc=r,kf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function ag(){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],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Ds(r){return r&&r.width&&r.height}var Bf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function og(r,t,e,n,i){if(!t)return"";var a=(r+"").split(`
`);i=sg(t,e,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=lg(a[o],i);return a.join(`
`)}function sg(r,t,e,n){n=n||{};var i=O({},n);i.font=t,e=J(e,"..."),i.maxIterations=J(n.maxIterations,2);var a=i.minChar=J(n.minChar,0);i.cnCharWidth=we("国",t);var o=i.ascCharWidth=we("a",t);i.placeholder=J(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=we(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 lg(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=we(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?qT(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=we(r,n)}return r===""&&(r=t.placeholder),r}function qT(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function KT(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=Ss(i),s=J(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?fg(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var v=h.length*s,c=J(t.height,v);if(v>c&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var p=sg(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=lg(h[g],p);for(var m=c,y=0,g=0;g<h.length;g++)y=Math.max(we(h[g],i),y);f==null&&(f=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:v,width:f}}var QT=function(){function r(){}return r}(),ug=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),jT=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function JT(r,t){var e=new jT;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Bf.lastIndex=0,l;(l=Bf.exec(r))!=null;){var u=l.index;u>s&&Nf(e,r.substring(s,u),t,o),Nf(e,l[2],t,o,l[1]),s=Bf.lastIndex}s<r.length&&Nf(e,r.substring(s,r.length),t,o);var f=[],h=0,v=0,c=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate";function g(B,z,Z){B.width=z,B.lineHeight=Z,h+=Z,v=Math.max(v,z)}t:for(var m=0;m<e.lines.length;m++){for(var y=e.lines[m],_=0,S=0,w=0;w<y.tokens.length;w++){var b=y.tokens[w],x=b.styleName&&t.rich[b.styleName]||{},T=b.textPadding=x.padding,A=T?T[1]+T[3]:0,D=b.font=x.font||t.font;b.contentHeight=Ss(D);var M=J(x.height,b.contentHeight);if(b.innerHeight=M,T&&(M+=T[0]+T[2]),b.height=M,b.lineHeight=kr(x.lineHeight,t.lineHeight,M),b.align=x&&x.align||t.align,b.verticalAlign=x&&x.verticalAlign||"middle",p&&i!=null&&h+b.lineHeight>i){w>0?(y.tokens=y.tokens.slice(0,w),g(y,S,_),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);break t}var I=x.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,f.push(b),b.contentWidth=we(b.text,D);else{if(L){var P=x.backgroundColor,R=P&&P.image;R&&(R=$T(R),Ds(R)&&(b.width=Math.max(b.width,R.width*M/R.height)))}var k=d&&n!=null?n-S:null;k!=null&&k<b.width?!L||k<A?(b.text="",b.width=b.contentWidth=0):(b.text=og(b.text,k-A,D,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=we(b.text,D)):b.contentWidth=we(b.text,D)}b.width+=A,S+=b.width,x&&(_=Math.max(_,b.lineHeight))}g(y,S,_)}e.outerWidth=e.width=J(n,v),e.outerHeight=e.height=J(i,h),e.contentHeight=h,e.contentWidth=v,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var b=f[m],H=b.percentWidth;b.width=parseInt(H,10)/100*e.width}return e}function Nf(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Wr(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var p=fg(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var m=f[g],y=new QT;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=h?h[g]:we(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new ug)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=y:(m||!S||a)&&_.push(y)}else s.push(new ug([y]))}}function tC(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var eC=We(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function rC(r){return tC(r)?!!eC[r]:!0}function fg(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=we(v,t),d=n?!1:!rC(v);if(a.length?f+c>e:i+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Ff="__zr_style_"+Math.round(Math.random()*10),Ln={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Is={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ln[Ff]=!0;var hg=["z","z2","invisible"],nC=["invisible"],Pn=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=ot(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}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,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&iC(this,e,n)||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(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new vt(0,0,0,0)),n?vt.applyTransform(e,i,n):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 vt(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,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=ha,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ha)},t.prototype.styleUpdated=function(){this.__dirty&=~ha},t.prototype.createStyle=function(e){return na(Ln,e)},t.prototype.useStyle=function(e){e[Ff]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ff]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,hg)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=ot(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=ot(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?nC:hg,v=0;v<p.length;v++){var c=p[v];n&&n[c]!=null?this[c]=n[c]:l&&i[c]!=null&&(this[c]=i[c])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return O(e,n),e},t.prototype.getAnimationStyleProps=function(){return Is},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=be|ha}(),t}(ws),zf=new vt(0,0,0,0),Vf=new vt(0,0,0,0);function iC(r,t,e){return zf.copy(r.getBoundingRect()),r.transform&&zf.applyTransform(r.transform),Vf.width=t,Vf.height=e,!zf.intersect(Vf)}var Le=Math.min,Pe=Math.max,Gf=Math.sin,Hf=Math.cos,Rn=Math.PI*2,Ls=mn(),Ps=mn(),Rs=mn();function vg(r,t,e,n,i,a){i[0]=Le(r,e),i[1]=Le(t,n),a[0]=Pe(r,e),a[1]=Pe(t,n)}var cg=[],dg=[];function aC(r,t,e,n,i,a,o,s,l,u){var f=fp,h=kt,v=f(r,e,i,o,cg);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(r,e,i,o,cg[c]);l[0]=Le(d,l[0]),u[0]=Pe(d,u[0])}v=f(t,n,a,s,dg);for(var c=0;c<v;c++){var p=h(t,n,a,s,dg[c]);l[1]=Le(p,l[1]),u[1]=Pe(p,u[1])}l[0]=Le(r,l[0]),u[0]=Pe(r,u[0]),l[0]=Le(o,l[0]),u[0]=Pe(o,u[0]),l[1]=Le(t,l[1]),u[1]=Pe(t,u[1]),l[1]=Le(s,l[1]),u[1]=Pe(s,u[1])}function oC(r,t,e,n,i,a,o,s){var l=vp,u=Yt,f=Pe(Le(l(r,e,i),1),0),h=Pe(Le(l(t,n,a),1),0),v=u(r,e,i,f),c=u(t,n,a,h);o[0]=Le(r,i,v),o[1]=Le(t,a,c),s[0]=Pe(r,i,v),s[1]=Pe(t,a,c)}function sC(r,t,e,n,i,a,o,s,l){var u=Or,f=Br,h=Math.abs(i-a);if(h%Rn<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Ls[0]=Hf(i)*e+r,Ls[1]=Gf(i)*n+t,Ps[0]=Hf(a)*e+r,Ps[1]=Gf(a)*n+t,u(s,Ls,Ps),f(l,Ls,Ps),i=i%Rn,i<0&&(i=i+Rn),a=a%Rn,a<0&&(a=a+Rn),i>a&&!o?a+=Rn:i<a&&o&&(i+=Rn),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(Rs[0]=Hf(c)*e+r,Rs[1]=Gf(c)*n+t,u(s,Rs,s),f(l,Rs,l))}var yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},En=[],kn=[],or=[],Yr=[],sr=[],lr=[],Wf=Math.min,Uf=Math.max,On=Math.cos,Bn=Math.sin,br=Math.abs,Yf=Math.PI,Zr=Yf*2,Zf=typeof Float32Array<"u",La=[];function Xf(r){var t=Math.round(r/Yf*1e8)/1e8;return t%2*Yf}function lC(r,t){var e=Xf(r[0]);e<0&&(e+=Zr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Zr?i=e+Zr:t&&e-i>=Zr?i=e-Zr:!t&&e>i?i=e+(Zr-Xf(e-i)):t&&e<i&&(i=e-(Zr-Xf(i-e))),r[0]=e,r[1]=i}var Xr=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,n){n=n||0,n>0&&(this._ux=br(n/ys/t)||0,this._uy=br(n/ys/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(yt.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 n=br(t-this._xi),i=br(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(yt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(yt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(yt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),La[0]=i,La[1]=a,lC(La,o),i=La[0],a=La[1];var s=a-i;return this.addData(yt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=On(a)*n+t,this._yi=Bn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(yt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(yt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,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)&&Zf&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();Zf&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[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,Zf&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){or[0]=or[1]=sr[0]=sr[1]=Number.MAX_VALUE,Yr[0]=Yr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case yt.M:e=i=t[o++],n=a=t[o++],sr[0]=i,sr[1]=a,lr[0]=i,lr[1]=a;break;case yt.L:vg(e,n,t[o],t[o+1],sr,lr),e=t[o++],n=t[o++];break;case yt.C:aC(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],sr,lr),e=t[o++],n=t[o++];break;case yt.Q:oC(e,n,t[o++],t[o++],t[o],t[o+1],sr,lr),e=t[o++],n=t[o++];break;case yt.A:var u=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];l&&(i=On(c)*h+u,a=Bn(c)*v+f),sC(u,f,h,v,c,d,p,sr,lr),e=On(d)*h+u,n=Bn(d)*v+f;break;case yt.R:i=e=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];vg(i,a,i+g,a+m,sr,lr);break;case yt.Z:e=i,n=a;break}Or(or,or,sr),Br(Yr,Yr,lr)}return o===0&&(or[0]=or[1]=Yr[0]=Yr[1]=0),new vt(or[0],or[1],Yr[0]-or[0],Yr[1]-or[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<e;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var p=-1;switch(c){case yt.M:a=s=t[v++],o=l=t[v++];break;case yt.L:{var g=t[v++],m=t[v++],y=g-a,_=m-o;(br(y)>n||br(_)>i||v===e-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case yt.C:{var S=t[v++],w=t[v++],g=t[v++],m=t[v++],b=t[v++],x=t[v++];p=px(a,o,S,w,g,m,b,x,10),a=b,o=x;break}case yt.Q:{var S=t[v++],w=t[v++],g=t[v++],m=t[v++];p=yx(a,o,S,w,g,m,10),a=g,o=m;break}case yt.A:var T=t[v++],A=t[v++],D=t[v++],M=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,t[v++],d&&(s=On(I)*D+T,l=Bn(I)*M+A),p=Uf(D,M)*Wf(Zr,Math.abs(L)),a=On(P)*D+T,o=Bn(P)*M+A;break;case yt.R:{s=a=t[v++],l=o=t[v++];var R=t[v++],k=t[v++];p=R*2+k*2;break}case yt.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=e<1,d,p,g=0,m=0,y,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=e*p,!y)))t:for(var b=0;b<o;){var x=n[b++],T=b===1;switch(T&&(u=n[b],f=n[b+1],s=u,l=f),x!==yt.L&&_>0&&(t.lineTo(S,w),_=0),x){case yt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case yt.L:{h=n[b++],v=n[b++];var A=br(h-u),D=br(v-f);if(A>i||D>a){if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}t.lineTo(h,v),u=h,f=v,_=0}else{var L=A*A+D*D;L>_&&(S=h,w=v,_=L)}break}case yt.C:{var P=n[b++],R=n[b++],k=n[b++],H=n[b++],B=n[b++],z=n[b++];if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;os(u,P,k,B,I,En),os(f,R,H,z,I,kn),t.bezierCurveTo(En[1],kn[1],En[2],kn[2],En[3],kn[3]);break t}g+=M}t.bezierCurveTo(P,R,k,H,B,z),u=B,f=z;break}case yt.Q:{var P=n[b++],R=n[b++],k=n[b++],H=n[b++];if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;ss(u,P,k,I,En),ss(f,R,H,I,kn),t.quadraticCurveTo(En[1],kn[1],En[2],kn[2]);break t}g+=M}t.quadraticCurveTo(P,R,k,H),u=k,f=H;break}case yt.A:var Z=n[b++],it=n[b++],K=n[b++],ut=n[b++],dt=n[b++],Pt=n[b++],St=n[b++],jt=!n[b++],Vt=K>ut?K:ut,Dt=br(K-ut)>.001,Ct=dt+Pt,q=!1;if(c){var M=d[m++];g+M>y&&(Ct=dt+Pt*(y-g)/M,q=!0),g+=M}if(Dt&&t.ellipse?t.ellipse(Z,it,K,ut,St,dt,Ct,jt):t.arc(Z,it,Vt,dt,Ct,jt),q)break t;T&&(s=On(dt)*K+Z,l=Bn(dt)*ut+it),u=On(Ct)*K+Z,f=Bn(Ct)*ut+it;break;case yt.R:s=u=n[b],l=f=n[b+1],h=n[b++],v=n[b++];var ft=n[b++],me=n[b++];if(c){var M=d[m++];if(g+M>y){var It=y-g;t.moveTo(h,v),t.lineTo(h+Wf(It,ft),v),It-=ft,It>0&&t.lineTo(h+ft,v+Wf(It,me)),It-=me,It>0&&t.lineTo(h+Uf(ft-It,0),v+me),It-=ft,It>0&&t.lineTo(h,v+Uf(me-It,0));break t}g+=M}t.rect(h,v,ft,me);break;case yt.Z:if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}t.closePath(),u=s,f=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=yt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Ti(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function uC(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<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 v=dx(r,t,e,n,i,a,o,s,u,f,null);return v<=h/2}function fC(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=mx(r,t,e,n,i,a,s,l,null);return f<=u/2}var pg=Math.PI*2;function Es(r){return r%=pg,r<0&&(r+=pg),r}var Pa=Math.PI*2;function hC(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%Pa<1e-4)return!0;if(a){var h=n;n=Es(i),i=Es(h)}else n=Es(n),i=Es(i);n>i&&(i+=Pa);var v=Math.atan2(l,s);return v<0&&(v+=Pa),v>=n&&v<=i||v+Pa>=n&&v+Pa<=i}function wr(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var $r=Xr.CMD,Nn=Math.PI*2,vC=1e-4;function cC(r,t){return Math.abs(r-t)<vC}var re=[-1,-1,-1],Re=[-1,-1];function dC(){var r=Re[0];Re[0]=Re[1],Re[1]=r}function pC(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=as(t,n,a,s,u,re);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=re[p],m=g===0||g===1?.5:1,y=kt(r,e,i,o,g);y<l||(v<0&&(v=fp(t,n,a,s,Re),Re[1]<Re[0]&&v>1&&dC(),c=kt(t,n,a,s,Re[0]),v>1&&(d=kt(t,n,a,s,Re[1]))),v===2?g<Re[0]?h+=c<t?m:-m:g<Re[1]?h+=d<c?m:-m:h+=s<d?m:-m:g<Re[0]?h+=c<t?m:-m:h+=s<c?m:-m)}return h}function gC(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=gx(t,n,a,s,re);if(l===0)return 0;var u=vp(t,n,a);if(u>=0&&u<=1){for(var f=0,h=Yt(t,n,a,u),v=0;v<l;v++){var c=re[v]===0||re[v]===1?.5:1,d=Yt(r,e,i,re[v]);d<o||(re[v]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=re[0]===0||re[0]===1?.5:1,d=Yt(r,e,i,re[0]);return d<o?0:a<t?c:-c}}function mC(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);re[0]=-l,re[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Nn-1e-4){n=0,i=Nn;var f=a?1:-1;return o>=re[0]+r&&o<=re[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Nn,i+=Nn);for(var v=0,c=0;c<2;c++){var d=re[c];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Nn+p),(p>=n&&p<=i||p+Nn>=n&&p+Nn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function gg(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=a[d++],g=d===1;switch(p===$r.M&&d>1&&(e||(s+=wr(l,u,f,h,n,i))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case $r.M:f=a[d++],h=a[d++],l=f,u=h;break;case $r.L:if(e){if(Ti(l,u,a[d],a[d+1],t,n,i))return!0}else s+=wr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case $r.C:if(e){if(uC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=pC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case $r.Q:if(e){if(fC(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=gC(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case $r.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],w=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(w)*_+m,c=Math.sin(w)*S+y,g?(f=v,h=c):s+=wr(l,u,v,c,n,i);var T=(n-m)*S/_+m;if(e){if(hC(m,y,S,w,w+b,x,t,T,i))return!0}else s+=mC(m,y,S,w,w+b,x,T,i);l=Math.cos(w+b)*_+m,u=Math.sin(w+b)*S+y;break;case $r.R:f=l=a[d++],h=u=a[d++];var A=a[d++],D=a[d++];if(v=f+A,c=h+D,e){if(Ti(f,h,v,h,t,n,i)||Ti(v,h,v,c,t,n,i)||Ti(v,c,f,c,t,n,i)||Ti(f,c,f,h,t,n,i))return!0}else s+=wr(v,h,v,c,n,i),s+=wr(f,c,f,h,n,i);break;case $r.Z:if(e){if(Ti(l,u,f,h,t,n,i))return!0}else s+=wr(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!cC(u,h)&&(s+=wr(l,u,f,h,n,i)||0),s!==0}function yC(r,t,e){return gg(r,0,!1,t,e)}function _C(r,t,e,n){return gg(r,t,!0,e,n)}var ks=st({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ln),SC={style:st({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Is.style)},$f=ir.concat(["invisible","culling","z","z2","zlevel","parent"]),pt=function(r){E(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 n=this.style;if(n.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 a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<$f.length;++s)i[$f[s]]=this[$f[s]];i.__dirty|=be}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=ot(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(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(V(e)){var n=pa(e,0);return n>.5?mf:n>.2?Qx:yf}else if(e)return yf}return mf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(V(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=pa(e,0)<gf;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~gi},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 Xr(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&gi)&&(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=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}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,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){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)),_C(s,l/u,e,n)))return!0}if(this.hasFill())return yC(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=gi,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,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:O(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&gi)},t.prototype.createStyle=function(e){return na(ks,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=O({},i.shape),O(u,n.shape)):(u=O({},a?this.shape:i.shape),O(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=ot(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return SC},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){E(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(e.style)},o.prototype.getDefaultShape=function(){return j(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=be|ha|gi}(),t}(Pn),bC=st({strokeFirst:!0,font:Er,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ks),Ra=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return na(bC,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=_s(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Pn);Ra.prototype.type="tspan";var wC=st({x:0,y:0},Ln),xC={style:st({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Is.style)};function TC(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ee=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return na(wC,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=TC(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return xC},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new vt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Pn);Ee.prototype.type="image";function CC(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var Ci=Math.round;function mg(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ci(n*2)===Ci(i*2)&&(r.x1=r.x2=Fn(n,s,!0)),Ci(a*2)===Ci(o*2)&&(r.y1=r.y2=Fn(a,s,!0))),r}}function yg(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Fn(n,s,!0),r.y=Fn(i,s,!0),r.width=Math.max(Fn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Fn(i+o,s,!1)-r.y,o===0?0:1)),r}}function Fn(r,t,e){if(!t)return r;var n=Ci(r*2);return(n+Ci(t))%2===0?n/2:(n+(e?1:-1))/2}var AC=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),MC={},bt=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new AC},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=yg(MC,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?CC(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pt);bt.prototype.type="rect";var _g={fill:"#000"},Sg=2,DC={style:st({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},Is.style)},Tt=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=_g,n.attr(e),n}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 n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.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,PC(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 n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new vt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||_g},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return O(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=ot(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},O(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return DC},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Er,i=e.padding,a=Ig(e),o=KT(a,e),s=qf(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle,p=e.x||0,g=e.y||0,m=e.align||d.align||"left",y=e.verticalAlign||d.verticalAlign||"top",_=p,S=bi(g,o.contentHeight,y);if(s||i){var w=Sa(p,f,m),b=bi(g,u,y);s&&this._renderBackground(e,e,w,b,f,u)}S+=c/2,i&&(_=Dg(p,m,i),y==="top"?S+=i[0]:y==="bottom"&&(S-=i[2]));for(var x=0,T=!1,A=Mg("fill"in e?e.fill:(T=!0,d.fill)),D=Ag("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(x=Sg,d.stroke):null),M=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<v.length;P++){var R=this._getOrCreateChild(Ra),k=R.createStyle();R.useStyle(k),k.text=v[P],k.x=_,k.y=S,m&&(k.textAlign=m),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,M&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=D,k.fill=A,D&&(k.lineWidth=e.lineWidth||x,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=n,xg(k,e),S+=c,I&&R.setBoundingRect(new vt(Sa(k.x,e.width,k.textAlign),bi(k.y,L,k.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=Ig(e),i=JT(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,v=e.align||h.align,c=e.verticalAlign||h.verticalAlign,d=Sa(u,o,v),p=bi(f,s,c),g=d,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;qf(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var w=i.lines[S],b=w.tokens,x=b.length,T=w.lineHeight,A=w.width,D=0,M=g,I=y,L=x-1,P=void 0;D<x&&(P=b[D],!P.align||P.align==="left");)this._placeToken(P,e,T,m,M,"left",_),A-=P.width,M+=P.width,D++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,m,I,"right",_),A-=P.width,I-=P.width,L--;for(M+=(a-(M-g)-(y-I)-A)/2;D<=L;)P=b[D],this._placeToken(P,e,T,m,M+P.width/2,"center",_),M+=P.width,D++;m+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var v=!e.isLineHolder&&qf(u);v&&this._renderBackground(u,n,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=Dg(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Ra),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=Mg("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=Ag("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!m.autoStroke||y)?(_=Sg,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Er,g.opacity=kr(u.opacity,n.opacity,1),xg(g,u),w&&(g.lineWidth=kr(u.lineWidth,n.lineWidth,_),g.lineDash=J(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var x=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new vt(Sa(g.x,x,g.textAlign),bi(g.y,T,g.textBaseline),x,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,v=l&&!h,c=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(bt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=J(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Ee),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=J(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 S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=kr(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return Tg(e)&&(n=[e.fontStyle,e.fontWeight,wg(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ue(n)||e.textFont||e.font},t}(Pn),IC={left:!0,right:1,center:1},LC={top:1,bottom:1,middle:1},bg=["fontStyle","fontWeight","fontSize","fontFamily"];function wg(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?wu+"px":r+"px"}function xg(r,t){for(var e=0;e<bg.length;e++){var n=bg[e],i=t[n];i!=null&&(r[n]=i)}}function Tg(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function PC(r){return Cg(r),C(r.rich,Cg),r}function Cg(r){if(r){r.font=Tt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||IC[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||LC[e]?e:"top";var n=r.padding;n&&(r.padding=Du(r.padding))}}function Ag(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Mg(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Dg(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Ig(r){var t=r.text;return t!=null&&(t+=""),t}function qf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ht=mt(),RC=function(r,t,e,n){if(n){var i=ht(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,n.type==="group"&&n.traverse(function(a){var o=ht(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Lg=1,Pg={},Rg=mt(),Kf=mt(),Qf=0,Os=1,Bs=2,he=["emphasis","blur","select"],Ns=["normal","emphasis","blur","select"],EC=10,kC=9,zn="highlight",Fs="downplay",Ea="select",zs="unselect",ka="toggleSelect";function Ai(r){return r!=null&&r!=="none"}var Eg=new ca(100);function kg(r){if(V(r)){var t=Eg.get(r);return t||(t=Ju(r,-.1),Eg.put(r,t)),t}else if(ea(r)){var e=O({},r);return e.colorStops=N(r.colorStops,function(n){return{offset:n.offset,color:Ju(n.color,-.1)}}),e}return r}function Vs(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Og(r){Vs(r,"emphasis",Bs)}function Bg(r){r.hoverState===Bs&&Vs(r,"normal",Qf)}function jf(r){Vs(r,"blur",Os)}function Ng(r){r.hoverState===Os&&Vs(r,"normal",Qf)}function OC(r){r.selected=!0}function BC(r){r.selected=!1}function Fg(r,t,e){t(r,e)}function xr(r,t,e){Fg(r,t,e),r.isGroup&&r.traverse(function(n){Fg(n,t,e)})}function zg(r,t){switch(t){case"emphasis":r.hoverState=Bs;break;case"normal":r.hoverState=Qf;break;case"blur":r.hoverState=Os;break;case"select":r.selected=!0}}function NC(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}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(a,t)}return a}function FC(r,t,e,n){var i=e&&at(e,"select")>=0,a=!1;if(r instanceof pt){var o=Rg(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ai(s)||Ai(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=O({},n),u=O({},u),u.fill=s):!Ai(u.fill)&&Ai(s)?(a=!0,n=O({},n),u=O({},u),u.fill=kg(s)):!Ai(u.stroke)&&Ai(l)&&(a||(n=O({},n),u=O({},u)),u.stroke=kg(l)),n.style=u}}if(n&&n.z2==null){a||(n=O({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??EC)}return n}function zC(r,t,e){if(e&&e.z2==null){e=O({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??kC)}return e}function VC(r,t,e){var n=at(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:NC(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Jf(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return FC(this,r,t,e);if(r==="blur")return VC(this,r,e);if(r==="select")return zC(this,r,e)}return e}function GC(r){r.stateProxy=Jf;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Jf),e&&(e.stateProxy=Jf)}function Vg(r,t){!Yg(r,t)&&!r.__highByOuter&&xr(r,Og)}function Gg(r,t){!Yg(r,t)&&!r.__highByOuter&&xr(r,Bg)}function Vn(r,t){r.__highByOuter|=1<<(t||0),xr(r,Og)}function Gn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&xr(r,Bg)}function Hg(r){xr(r,jf)}function th(r){xr(r,Ng)}function Wg(r){xr(r,OC)}function Ug(r){xr(r,BC)}function Yg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Zg(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=Kf(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Ng(u)}),s&&e.push(a)),o.isBlured=!1}),C(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function eh(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&th(v)}}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 f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||jf(g)}),Ut(t))a(u.getData(),t);else if(Y(t))for(var d=ot(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),Kf(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function rh(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){Kf(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){jf(a)})}}}function HC(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(!i){Zt("Unknown dataType "+t.dataType);return}var a=Dn(i,t);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ht(o);eh(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&eh(n,f,h,e)}}function nh(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Mi(s[u])||Zt("param should be highDownDispatcher"),ht(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function WC(r,t,e){Mi(r)||Zt("param should be highDownDispatcher");var n=ht(r),i=nh(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&rh(n.componentMainType,n.componentIndex,e),C(a,function(s){return Vg(s,t)})):(eh(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&rh(n.componentMainType,n.componentIndex,e),Vg(r,t))}function UC(r,t,e){Mi(r)||Zt("param should be highDownDispatcher"),Zg(e);var n=ht(r),i=nh(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?C(i,function(a){return Gg(a,t)}):Gg(r,t)}function YC(r,t,e){if(ih(t)){var n=t.dataType,i=r.getData(n),a=Dn(i,t);F(a)||(a=[a]),r[t.type===ka?"toggleSelect":t.type===Ea?"select":"unselect"](a,n)}}function Xg(r){var t=r.getAllData();C(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?Wg(a):Ug(a)})})}function ZC(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();C(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Oa(r,t,e){qg(r,!0),xr(r,GC),$C(r,t,e)}function XC(r){qg(r,!1)}function Hn(r,t,e,n){n?XC(r):Oa(r,t,e)}function $C(r,t,e){var n=ht(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var $g=["emphasis","blur","select"],qC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ba(r,t,e,n){e=e||"itemStyle";for(var i=0;i<$g.length;i++){var a=$g[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[qC[e]]()}}function qg(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Mi(r){return!!(r&&r.__highDownDispatcher)}function KC(r){var t=Pg[r];return t==null&&Lg<=32&&(t=Pg[r]=Lg++),t}function ih(r){var t=r.type;return t===Ea||t===zs||t===ka}function Kg(r){var t=r.type;return t===zn||t===Fs}function QC(r){var t=Rg(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 Di=Xr.CMD,jC=[[],[],[]],Qg=Math.sqrt,JC=Math.atan2;function tA(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=Di.M,h=Di.C,v=Di.L,c=Di.R,d=Di.A,p=Di.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],m=t[5],y=Qg(t[0]*t[0]+t[1]*t[1]),_=Qg(t[2]*t[2]+t[3]*t[3]),S=JC(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=g,e[o]*=_,e[o++]+=m,e[o++]*=y,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],te(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],te(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var w=jC[l];w[0]=e[o++],w[1]=e[o++],te(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var ah=Math.sqrt,Gs=Math.sin,Hs=Math.cos,Na=Math.PI;function jg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function oh(r,t){return(r[0]*t[0]+r[1]*t[1])/(jg(r)*jg(t))}function Jg(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(oh(r,t))}function tm(r,t,e,n,i,a,o,s,l,u,f){var h=l*(Na/180),v=Hs(h)*(r-e)/2+Gs(h)*(t-n)/2,c=-1*Gs(h)*(r-e)/2+Hs(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=ah(d),s*=ah(d));var p=(i===a?-1:1)*ah((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,m=p*-s*v/o,y=(r+e)/2+Hs(h)*g-Gs(h)*m,_=(t+n)/2+Gs(h)*g+Hs(h)*m,S=Jg([1,0],[(v-g)/o,(c-m)/s]),w=[(v-g)/o,(c-m)/s],b=[(-1*v-g)/o,(-1*c-m)/s],x=Jg(w,b);if(oh(w,b)<=-1&&(x=Na),oh(w,b)>=1&&(x=0),x<0){var T=Math.round(x/Na*1e6)/1e6;x=Na*2+T%2*Na}f.addData(u,y,_,o,s,S,x,h,a)}var eA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,rA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nA(r){var t=new Xr;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Xr.CMD,l=r.match(eA);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(rA)||[],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,S=void 0,w=void 0,b=void 0,x=void 0,T=e,A=n,D=void 0,M=void 0;switch(h){case"l":e+=c[g++],n+=c[g++],v=s.L,t.addData(v,e,n);break;case"L":e=c[g++],n=c[g++],v=s.L,t.addData(v,e,n);break;case"m":e+=c[g++],n+=c[g++],v=s.M,t.addData(v,e,n),i=e,a=n,h="l";break;case"M":e=c[g++],n=c[g++],v=s.M,t.addData(v,e,n),i=e,a=n,h="L";break;case"h":e+=c[g++],v=s.L,t.addData(v,e,n);break;case"H":e=c[g++],v=s.L,t.addData(v,e,n);break;case"v":n+=c[g++],v=s.L,t.addData(v,e,n);break;case"V":n=c[g++],v=s.L,t.addData(v,e,n);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],n=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+e,c[g++]+n,c[g++]+e,c[g++]+n,c[g++]+e,c[g++]+n),e+=c[g-2],n+=c[g-1];break;case"S":m=e,y=n,D=t.len(),M=t.data,o===s.C&&(m+=e-M[D-4],y+=n-M[D-3]),v=s.C,T=c[g++],A=c[g++],e=c[g++],n=c[g++],t.addData(v,m,y,T,A,e,n);break;case"s":m=e,y=n,D=t.len(),M=t.data,o===s.C&&(m+=e-M[D-4],y+=n-M[D-3]),v=s.C,T=e+c[g++],A=n+c[g++],e+=c[g++],n+=c[g++],t.addData(v,m,y,T,A,e,n);break;case"Q":T=c[g++],A=c[g++],e=c[g++],n=c[g++],v=s.Q,t.addData(v,T,A,e,n);break;case"q":T=c[g++]+e,A=c[g++]+n,e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,T,A,e,n);break;case"T":m=e,y=n,D=t.len(),M=t.data,o===s.Q&&(m+=e-M[D-4],y+=n-M[D-3]),e=c[g++],n=c[g++],v=s.Q,t.addData(v,m,y,e,n);break;case"t":m=e,y=n,D=t.len(),M=t.data,o===s.Q&&(m+=e-M[D-4],y+=n-M[D-3]),e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,m,y,e,n);break;case"A":_=c[g++],S=c[g++],w=c[g++],b=c[g++],x=c[g++],T=e,A=n,e=c[g++],n=c[g++],v=s.A,tm(T,A,e,n,b,x,_,S,w,v,t);break;case"a":_=c[g++],S=c[g++],w=c[g++],b=c[g++],x=c[g++],T=e,A=n,e+=c[g++],n+=c[g++],v=s.A,tm(T,A,e,n,b,x,_,S,w,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=i,n=a),o=v}return t.toStatic(),t}var em=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(pt);function rm(r){return r.setData!=null}function nm(r,t){var e=nA(r),n=O({},t);return n.buildPath=function(i){if(rm(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){tA(e,i),this.dirtyShape()},n}function iA(r,t){return new em(nm(r,t))}function aA(r,t){var e=nm(r,t),n=function(i){E(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(em);return n}function oA(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new pt(t);return o.createPathProxy(),o.buildPath=function(s){if(rm(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var sA=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Fa=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sA},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(pt);Fa.prototype.type="circle";var lA=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Ws=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new lA},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(pt);Ws.prototype.type="ellipse";var im=Math.PI,sh=im*2,Wn=Math.sin,Ii=Math.cos,uA=Math.acos,Xt=Math.atan2,am=Math.abs,za=Math.sqrt,Va=Math.max,ur=Math.min,$e=1e-4;function fA(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,v=h*l-f*u;if(!(v*v<$e))return v=(f*(t-a)-h*(r-i))/v,[r+v*l,t+v*u]}function Us(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/za(s*s+l*l),f=u*l,h=-u*s,v=r+f,c=t+h,d=e+f,p=n+h,g=(v+d)/2,m=(c+p)/2,y=d-v,_=p-c,S=y*y+_*_,w=i-a,b=v*p-d*c,x=(_<0?-1:1)*za(Va(0,w*w*S-b*b)),T=(b*_-y*x)/S,A=(-b*y-_*x)/S,D=(b*_+y*x)/S,M=(-b*y+_*x)/S,I=T-g,L=A-m,P=D-g,R=M-m;return I*I+L*L>P*P+R*R&&(T=D,A=M),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(i/w-1),y1:A*(i/w-1)}}function hA(r){var t;if(F(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 vA(r,t){var e,n=Va(t.r,0),i=Va(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=am(u-l),d=c>sh&&c%sh;if(d>$e&&(c=d),!(n>$e))r.moveTo(f,h);else if(c>sh-$e)r.moveTo(f+n*Ii(l),h+n*Wn(l)),r.arc(f,h,n,l,u,!v),i>$e&&(r.moveTo(f+i*Ii(u),h+i*Wn(u)),r.arc(f,h,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,T=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=n*Ii(l),k=n*Wn(l),H=i*Ii(u),B=i*Wn(u),z=c>$e;if(z){var Z=t.cornerRadius;Z&&(e=hA(Z),p=e[0],g=e[1],m=e[2],y=e[3]);var it=am(n-i)/2;if(_=ur(it,m),S=ur(it,y),w=ur(it,p),b=ur(it,g),A=x=Va(_,S),D=T=Va(w,b),(x>$e||T>$e)&&(M=n*Ii(u),I=n*Wn(u),L=i*Ii(l),P=i*Wn(l),c<im)){var K=fA(R,k,L,P,M,I,H,B);if(K){var ut=R-K[0],dt=k-K[1],Pt=M-K[0],St=I-K[1],jt=1/Wn(uA((ut*Pt+dt*St)/(za(ut*ut+dt*dt)*za(Pt*Pt+St*St)))/2),Vt=za(K[0]*K[0]+K[1]*K[1]);A=ur(x,(n-Vt)/(jt+1)),D=ur(T,(i-Vt)/(jt-1))}}}if(!z)r.moveTo(f+R,h+k);else if(A>$e){var Dt=ur(m,A),Ct=ur(y,A),q=Us(L,P,R,k,n,Dt,v),ft=Us(M,I,H,B,n,Ct,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),A<x&&Dt===Ct?r.arc(f+q.cx,h+q.cy,A,Xt(q.y0,q.x0),Xt(ft.y0,ft.x0),!v):(Dt>0&&r.arc(f+q.cx,h+q.cy,Dt,Xt(q.y0,q.x0),Xt(q.y1,q.x1),!v),r.arc(f,h,n,Xt(q.cy+q.y1,q.cx+q.x1),Xt(ft.cy+ft.y1,ft.cx+ft.x1),!v),Ct>0&&r.arc(f+ft.cx,h+ft.cy,Ct,Xt(ft.y1,ft.x1),Xt(ft.y0,ft.x0),!v))}else r.moveTo(f+R,h+k),r.arc(f,h,n,l,u,!v);if(!(i>$e)||!z)r.lineTo(f+H,h+B);else if(D>$e){var Dt=ur(p,D),Ct=ur(g,D),q=Us(H,B,M,I,i,-Ct,v),ft=Us(R,k,L,P,i,-Dt,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D<T&&Dt===Ct?r.arc(f+q.cx,h+q.cy,D,Xt(q.y0,q.x0),Xt(ft.y0,ft.x0),!v):(Ct>0&&r.arc(f+q.cx,h+q.cy,Ct,Xt(q.y0,q.x0),Xt(q.y1,q.x1),!v),r.arc(f,h,i,Xt(q.cy+q.y1,q.cx+q.x1),Xt(ft.cy+ft.y1,ft.cx+ft.x1),v),Dt>0&&r.arc(f+ft.cx,h+ft.cy,Dt,Xt(ft.y1,ft.x1),Xt(ft.y0,ft.x0),!v))}else r.lineTo(f+H,h+B),r.arc(f,h,i,u,l,v)}r.closePath()}}}var cA=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}(),Tr=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cA},t.prototype.buildPath=function(e,n){vA(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pt);Tr.prototype.type="sector";var dA=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ys=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new dA},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(pt);Ys.prototype.type="ring";function pA(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Or(f,f,r[v]),Br(h,h,r[v]);Or(f,f,n[0]),Br(h,h,n[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(e)l=r[v?v-1:c-1],u=r[(v+1)%c];else if(v===0||v===c-1){i.push(Gd(r[v]));continue}else l=r[v-1],u=r[v+1];Pu(a,u,l),Zo(a,a,t);var p=$o(d,l),g=$o(d,u),m=p+g;m!==0&&(p/=m,g/=m),Zo(o,a,-p),Zo(s,a,g);var y=Lu([],d,o),_=Lu([],d,s);n&&(Br(y,y,f),Or(y,y,h),Br(_,_,f),Or(_,_,h)),i.push(y),i.push(_)}return e&&i.push(i.shift()),i}function om(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=pA(i,n,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=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[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 gA=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),qr=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new gA},t.prototype.buildPath=function(e,n){om(e,n,!0)},t}(pt);qr.prototype.type="polygon";var mA=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Kr=function(r){E(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 mA},t.prototype.buildPath=function(e,n){om(e,n,!1)},t}(pt);Kr.prototype.type="polyline";var yA={},_A=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),fr=function(r){E(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 _A},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=mg(yA,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(pt);fr.prototype.type="line";var ve=[],SA=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 sm(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?up:kt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?up:kt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?hp:Yt)(r.x1,r.cpx1,r.x2,t),(e?hp:Yt)(r.y1,r.cpy1,r.y2,t)]}var Ga=function(r){E(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 SA},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(e.moveTo(i,a),f==null||h==null?(v<1&&(ss(i,l,o,v,ve),l=ve[1],o=ve[2],ss(a,u,s,v,ve),u=ve[1],s=ve[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(os(i,l,f,o,v,ve),l=ve[1],f=ve[2],o=ve[3],os(a,u,h,s,v,ve),u=ve[1],h=ve[2],s=ve[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return sm(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=sm(this.shape,e,!0);return Xo(n,n)},t}(pt);Ga.prototype.type="bezier-curve";var bA=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}(),Ha=function(r){E(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 bA},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,l,!u)},t}(pt);Ha.prototype.type="arc";var lh=function(r){E(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,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pt.prototype.getBoundingRect.call(this)},t}(pt),lm=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),uh=function(r){E(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(lm),um=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(lm),Un=[0,0],Yn=[0,0],Zs=new nt,Xs=new nt,$s=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new nt;for(var n=0;n<2;n++)this._axes[n]=new nt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);nt.sub(i[0],n[1],n[0]),nt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return Zs.set(1/0,1/0),Xs.set(0,0),!this._intersectCheckOneSide(this,t,Zs,Xs,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Zs,Xs,i,-1)&&(n=!1,i)||i||nt.copy(e,n?Zs:Xs),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Un),this._getProjMinMaxOnAxis(l,e._corners,Yn),Un[1]<Yn[0]||Un[0]>Yn[1]){if(s=!1,a)return s;var f=Math.abs(Yn[0]-Un[1]),h=Math.abs(Un[0]-Yn[1]);Math.min(f,h)>i.len()&&(f<h?nt.scale(i,u,-f*o):nt.scale(i,u,h*o))}else if(n){var f=Math.abs(Yn[0]-Un[1]),h=Math.abs(Un[0]-Yn[1]);Math.min(f,h)<n.len()&&(f<h?nt.scale(n,u,f*o):nt.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}(),wA=[],fm=function(r){E(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,n){e.call(n,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,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new vt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(wA)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Pn),xA=mt();function fh(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=J(n.duration,200),f=J(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),G(h)&&(h=h(e,i)),G(u)&&(u=u(e));var v={duration:u||0,delay:h,easing:f};return v}else return null}function hh(r,t,e,n,i,a,o){var s=!1,l;G(i)?(o=a,a=i,i=null):Y(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=fh(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!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),a&&a()}function Bt(r,t,e,n,i,a){hh("update",r,t,e,n,i,a)}function ce(r,t,e,n,i,a){hh("enter",r,t,e,n,i,a)}function Wa(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 qs(r,t,e,n,i,a){Wa(r)||hh("leave",r,t,e,n,i,a)}function hm(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),qs(r,{style:{opacity:0}},t,e,n)}function Ks(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||hm(i,t,e,n)}):hm(r,t,e,n)}function vh(r){xA(r).oldStyle=r.style}var Qs=Math.max,js=Math.min,ch={};function vm(r){return pt.extend(r)}var TA=aA;function cm(r,t){return TA(r,t)}function ke(r,t){ch[r]=t}function dh(r){if(ch.hasOwnProperty(r))return ch[r]}function Js(r,t,e,n){var i=iA(r,t);return e&&(n==="center"&&(e=dm(e,i.getBoundingRect())),gh(i,e)),i}function ph(r,t,e){var n=new Ee({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(dm(t,a))}}});return n}function dm(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var pm=oA;function gh(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Ua(r,t){return mg(r,r,{lineWidth:t}),r}function CA(r){return yg(r.shape,r.shape,r.style),r}var AA=Fn;function Ya(r,t){for(var e=aa([]);r&&r!==t;)Nr(e,r.getLocalTransform(),e),r=r.parent;return e}function Za(r,t,e){return t&&!Ut(t)&&(t=bf.getLocalTransform(t)),e&&(t=oa([],t)),te([],r,t)}function mh(r,t,e){var n=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]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=Za(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function gm(r){return!r.isGroup}function MA(r){return r.shape!=null}function mm(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){gm(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return MA(o)&&(s.shape=O({},o.shape)),s}var a=n(r);t.traverse(function(o){if(gm(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Bt(o,l,e,ht(o).dataIndex)}}})}function yh(r,t){return N(r,function(e){var n=e[0];n=Qs(n,t.x),n=js(n,t.x+t.width);var i=e[1];return i=Qs(i,t.y),i=js(i,t.y+t.height),[n,i]})}function ym(r,t){var e=Qs(r.x,t.x),n=js(r.x+r.width,t.x+t.width),i=Qs(r.y,t.y),a=js(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Xa(r,t,e){var n=O({rectHover:!0},t),i=n.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),st(i,e),new Ee(n)):Js(r.replace("path://",""),n,e,"center")}function DA(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(_m(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function _m(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,v=_h(f,h,l,u);if(IA(v))return!1;var c=r-i,d=t-a,p=_h(c,d,l,u)/v;if(p<0||p>1)return!1;var g=_h(c,d,f,h)/v;return!(g<0||g>1)}function _h(r,t,e,n){return r*n-e*t}function IA(r){return r<=1e-6&&r>=-1e-6}function $a(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=V(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&C(ot(l),function(f){rt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ht(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:st({content:n,formatterParams:s},i)}}function Sm(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function qa(r,t){if(r)if(F(r))for(var e=0;e<r.length;e++)Sm(r[e],t);else Sm(r,t)}ke("circle",Fa),ke("ellipse",Ws),ke("sector",Tr),ke("ring",Ys),ke("polygon",qr),ke("polyline",Kr),ke("rect",bt),ke("line",fr),ke("bezierCurve",Ga),ke("arc",Ha);var LA=Object.freeze({__proto__:null,updateProps:Bt,initProps:ce,removeElement:qs,removeElementWithFadeOut:Ks,isElementRemoved:Wa,extendShape:vm,extendPath:cm,registerShape:ke,getShapeClass:dh,makePath:Js,makeImage:ph,mergePath:pm,resizePath:gh,subPixelOptimizeLine:Ua,subPixelOptimizeRect:CA,subPixelOptimize:AA,getTransform:Ya,applyTransform:Za,transformDirection:mh,groupTransition:mm,clipPointsByRect:yh,clipRectByRect:ym,createIcon:Xa,linePolygonIntersect:DA,lineLineIntersect:_m,setTooltipConfig:$a,traverseElements:qa,Group:_t,Image:Ee,Text:Tt,Circle:Fa,Ellipse:Ws,Sector:Tr,Ring:Ys,Polygon:qr,Polyline:Kr,Rect:bt,Line:fr,BezierCurve:Ga,Arc:Ha,IncrementalDisplayable:fm,CompoundPath:lh,LinearGradient:uh,RadialGradient:um,BoundingRect:vt,OrientedBoundingRect:$s,Point:nt,Path:pt}),tl={};function PA(r,t){for(var e=0;e<he.length;e++){var n=he[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function bm(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=G(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<he.length;u++){var f=he[u],h=t[f];l[f]=J(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Zn(r,t,e,n){e=e||tl;for(var i=r instanceof Tt,a=!1,o=0;o<Ns.length;o++){var s=t[Ns[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new Tt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=bm(e,t),f=t.normal,h=!!f.getShallow("show"),v=hr(f,n&&n.normal,e,!1,!i);v.text=u.normal,i||r.setTextConfig(wm(f,e,!1));for(var o=0;o<he.length;o++){var c=he[o],s=t[c];if(s){var d=l.ensureState(c),p=!!J(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=hr(s,n&&n[c],e,!0,!i),d.style.text=u[c],!i){var g=r.ensureState(c);g.textConfig=wm(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),e.enableTextSetter&&(el(l).setLabelText=function(m){var y=bm(e,t,m);PA(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Qr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<he.length;n++){var i=he[n];e[i]=r.getModel([i,t])}return e}function hr(r,t,e,n,i){var a={};return RA(a,r,e,n,i),t&&O(a,t),a}function wm(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=J(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&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function RA(r,t,e,n,i){e=e||tl;var a=t.ecModel,o=a&&a.option.textStyle,s=EA(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Am(l[u]={},f,o,e,n,i,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var v=t.get("minMargin");v!=null&&(r.margin=v),Am(r,t,o,e,n,i,!0,!1)}function EA(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||tl).rich;if(e){t=t||{};for(var n=ot(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var xm=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Tm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Cm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Am(r,t,e,n,i,a,o,s){e=!i&&e||tl;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=J(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(u==="auto"&&Et("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(f==="auto"&&Et("color: 'auto'","color: 'inherit'"),l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var v=J(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var c=J(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=J(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<xm.length;p++){var g=xm[p],m=J(t.getShallow(g),e[g]);m!=null&&(r[g]=m)}for(var p=0;p<Tm.length;p++){var g=Tm[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||!n.disableBox){for(var p=0;p<Cm.length;p++){var g=Cm[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==="auto"&&Et("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor==="auto"&&Et("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function kA(r,t){var e=t&&t.getModel("textStyle");return Ue([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 el=mt();function OA(r,t,e,n){if(r){var i=el(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var BA=["textStyle","color"],Sh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],bh=new Tt,NA=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(BA):null)},r.prototype.getFont=function(){return kA({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")},n=0;n<Sh.length;n++)e[Sh[n]]=this.getShallow(Sh[n]);return bh.useStyle(e),bh.update(),bh.getBoundingRect()},r}(),Mm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],FA=Ia(Mm),zA=function(){function r(){}return r.prototype.getLineStyle=function(t){return FA(this,t)},r}(),Dm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],VA=Ia(Dm),GA=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return VA(this,t,e)},r}(),wt=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},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 n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,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(j(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(!Q.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 n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();Ef(wt),HT(wt),_e(wt,zA),_e(wt,GA),_e(wt,XT),_e(wt,NA);var HA=Math.round(Math.random()*10);function Ka(r){return[r||"",HA++].join("_")}function WA(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=ar(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=ar(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function UA(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,v={};for(C(a,function(y){v[y]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),C(d.successor,p?m:g)}C(v,function(){var y="";throw y=Cs("Circular dependency may exists: ",v,a,o),new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){v[y]=!0,g(y)}};function e(a){var o={},s=[];return C(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),C(h,function(v){at(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);at(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return C(a,function(l){at(o,l)>=0&&s.push(l)}),s}}function rl(r,t){return tt(tt({},r,!0),t,!0)}var YA={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},ZA={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}},nl="ZH",wh="EN",Qa=wh,il={},xh={},Im=Q.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(nl)>-1?nl:Qa}():Qa;function Th(r,t){r=r.toUpperCase(),xh[r]=new wt(t),il[r]=t}function XA(r){if(V(r)){var t=il[r.toUpperCase()]||{};return r===nl||r===wh?j(t):tt(j(t),j(il[Qa]),!1)}else return tt(j(r),j(il[Qa]),!1)}function $A(r){return xh[r]}function qA(){return xh[Qa]}Th(wh,YA),Th(nl,ZA);var Ch=1e3,Ah=Ch*60,ja=Ah*60,Oe=ja*24,Lm=Oe*365,Ja={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}"},al="{yyyy}-{MM}-{dd}",Pm={year:"{yyyy}",month:"{yyyy}-{MM}",day:al,hour:al+" "+Ja.hour,minute:al+" "+Ja.minute,second:al+" "+Ja.second,millisecond:Ja.none},Mh=["year","month","day","hour","minute","second","millisecond"],Rm=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ne(r,t){return r+="","0000".substr(0,t-r.length)+r}function Li(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 KA(r){return r===Li(r)}function QA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function to(r,t,e,n){var i=De(r),a=i[Dh(e)](),o=i[Pi(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ol(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[eo(e)](),h=(f-1)%12+1,v=i[sl(e)](),c=i[ll(e)](),d=i[ul(e)](),p=n instanceof wt?n:$A(n||Im)||qA(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ne(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,ne(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ne(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ne(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ne(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ne(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ne(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ne(d,3)).replace(/{S}/g,d+"")}function jA(r,t,e,n,i){var a=null;if(V(e))a=e;else if(G(e))a=e(r.value,t,{level:r.level});else{var o=O({},Ja);if(r.level>0)for(var s=0;s<Mh.length;++s)o[Mh[s]]="{primary|"+o[Mh[s]]+"}";var l=e?e.inherit===!1?e:st(e,o):o,u=Em(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=Rm.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return to(new Date(r.value),a,i,n)}function Em(r,t){var e=De(r),n=e[Pi(t)]()+1,i=e[ol(t)](),a=e[eo(t)](),o=e[sl(t)](),s=e[ll(t)](),l=e[ul(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function km(r,t,e){var n=gt(r)?De(r):r;switch(t=t||Em(r,e),t){case"year":return n[Dh(e)]();case"half-year":return n[Pi(e)]()>=6?1:0;case"quarter":return Math.floor((n[Pi(e)]()+1)/4);case"month":return n[Pi(e)]();case"day":return n[ol(e)]();case"half-day":return n[eo(e)]()/24;case"hour":return n[eo(e)]();case"minute":return n[sl(e)]();case"second":return n[ll(e)]();case"millisecond":return n[ul(e)]()}}function Dh(r){return r?"getUTCFullYear":"getFullYear"}function Pi(r){return r?"getUTCMonth":"getMonth"}function ol(r){return r?"getUTCDate":"getDate"}function eo(r){return r?"getUTCHours":"getHours"}function sl(r){return r?"getUTCMinutes":"getMinutes"}function ll(r){return r?"getUTCSeconds":"getSeconds"}function ul(r){return r?"getUTCMilliseconds":"getMilliseconds"}function JA(r){return r?"setUTCFullYear":"setFullYear"}function Om(r){return r?"setUTCMonth":"setMonth"}function Bm(r){return r?"setUTCDate":"setDate"}function Nm(r){return r?"setUTCHours":"setHours"}function Fm(r){return r?"setUTCMinutes":"setMinutes"}function zm(r){return r?"setUTCSeconds":"setSeconds"}function Vm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function tM(r,t,e,n,i,a,o,s){var l=new Tt({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Ih(r){if(!Lf(r))return V(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Lh(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ro=Du;function Ph(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ue(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?De(r):r;if(isNaN(+l)){if(s)return"-"}else return to(l,n,e)}if(t==="ordinal")return ta(r)?i(r):gt(r)&&a(r)?r+"":"-";var u=Ta(r);return a(u)?Ih(u):ta(r)?i(r):typeof r=="boolean"?r+"":"-"}var Gm=["a","b","c","d","e","f","g"],Rh=function(r,t){return"{"+r+(t??"")+"}"};function Eh(r,t,e){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Gm[a];r=r.replace(Rh(o),Rh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Rh(Gm[l],s),e?se(u):u)}return r}function Hm(r,t){var e=V(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="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:'+se(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+se(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function eM(r,t,e){Et("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var n=De(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",ne(o,2)).replace("M",o).replace("yyyy",a).replace("yy",ne(a%100+"",2)).replace("dd",ne(s,2)).replace("d",s).replace("hh",ne(l,2)).replace("h",l).replace("mm",ne(u,2)).replace("m",u).replace("ss",ne(f,2)).replace("s",f).replace("SSS",ne(h,3)),r}function rM(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Xn(r,t){return t=t||"transparent",V(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Wm(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var fl=C,Um=["left","right","top","bottom","width","height"],hl=[["width","left","right"],["height","top","bottom"]];function kh(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=a+p,c>n||l.newline?(a=0,c=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var Ri=kh;et(kh,"vertical"),et(kh,"horizontal");function vr(r,t,e){e=ro(e||0);var n=t.width,i=t.height,a=ct(r.left,n),o=ct(r.top,i),s=ct(r.right,n),l=ct(r.bottom,i),u=ct(r.width,n),f=ct(r.height,i),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new vt(a+e[3],o+e[0],u,f);return d.margin=e,d}function Ym(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new vt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=vr(st({width:u.width,height:u.height},t),e,n),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(a.x=v,a.y=c):(a.x+=v,a.y+=c),a===r&&r.markRedraw(),!0}function no(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function $n(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(hl[0],0),a=o(hl[1],1);u(hl[0],r,i),u(hl[1],r,a);function o(f,h){var v={},c=0,d={},p=0,g=2;if(fl(f,function(_){d[_]=r[_]}),fl(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&p++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var m=0;m<f.length;m++){var y=f[m];if(!s(v,y)&&s(r,y)){v[y]=r[y];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,v){fl(f,function(c){h[c]=v[c]})}}function io(r){return Zm({},r)}function Zm(r,t){return t&&r&&fl(Um,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var nM=mt(),lt=function(r){E(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Ka("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=no(this),a=i?io(e):{},o=n.getTheme();tt(e,o.get(this.mainType)),tt(e,this.getDefaultOption()),i&&$n(e,a,i)},t.prototype.mergeOption=function(e,n){tt(this.option,e,!0);var i=no(this);i&&$n(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!zT(e))return e.defaultOption;var n=nM(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Da(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},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}(wt);ig(lt,wt),Ms(lt),WA(lt),UA(lt,iM);function iM(r){var t=[];return C(lt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return ar(e).main}),r!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}var Xm="";typeof navigator<"u"&&(Xm=navigator.platform||"");var Ei="rgba(0, 0, 0, 0.2)",aM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ei,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ei,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ei,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ei,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ei,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ei,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xm.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},Oh=$(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Be="original",de="arrayRows",qe="objectRows",cr="keyedColumns",Cr="typedArray",$m="unknown",dr="column",ki="row",Ht={Must:1,Might:2,Not:3},qm=mt();function oM(r){qm(r).datasetMap=$()}function sM(r,t,e){var n={},i=Bh(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=qm(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),C(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,h=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;c(n[m],_,y),c(o,_,y),v.valueWayDim+=y}else if(f===g)c(n[m],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(n[m],_,y),c(o,_,y),v.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 a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function lM(r,t,e){var n={},i=Bh(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===qe||a===cr)&&C(o,function(f,h){(Y(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,d=Math.min(5,e);c<d;c++){var p=Qm(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);v.push(p);var g=p===Ht.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Ht.Not)&&(f.n=c),m(f)&&v[f.n]!==Ht.Not)return f;g||(p===Ht.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(f)?f:m(h)?h:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Bh(r){var t=r.get("data",!0);if(!t)return Da(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ee).models[0]}function uM(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Da(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ee).models}function Km(r,t){return Qm(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Qm(r,t,e,n,i,a){var o,s=5;if(Jt(r))return Ht.Not;var l,u;if(n){var f=n[a];Y(f)?(l=f.name,u=f.type):V(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ht.Must:Ht.Not;if(t===de){var h=r;if(e===ki){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=S(d[a]))!=null)return o}}else if(t===qe){var p=r;if(!l)return Ht.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=S(g[l]))!=null)return o}}else if(t===cr){var m=r;if(!l)return Ht.Not;var v=m[l];if(!v||Jt(v))return Ht.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===Be)for(var y=r,c=0;c<y.length&&c<s;c++){var g=y[c],_=Ca(g);if(!F(_))return Ht.Not;if((o=S(_[a]))!=null)return o}function S(w){var b=V(w);if(w!=null&&isFinite(w)&&w!=="")return b?Ht.Might:Ht.Not;if(b&&w!=="-")return Ht.Must}return Ht.Not}var Nh=$();function fM(r,t){W(Nh.get(r)==null&&t),Nh.set(r,t)}function hM(r,t,e){var n=Nh.get(t);if(!n)return e;var i=n(r);if(!i)return e;for(var a=0;a<i.length;a++)W(xi(i[a]));return e.concat(i)}var jm=mt(),vM=mt(),Fh=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Ot(this.get("color",!0)),a=this.get("colorLayer",!0);return ty(this,jm,i,a,t,e,n)},r.prototype.clearColorPalette=function(){dM(this,jm)},r}();function Jm(r,t,e,n){var i=Ot(r.get(["aria","decal","decals"]));return ty(r,vM,i,null,t,e,n)}function cM(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function ty(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:cM(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function dM(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var vl,ao,ey,zh="\0_ec_inner",ry=1,pM={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},gM={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},cl={};function mM(r){C(r,function(t,e){if(!lt.hasClass(e)){var n=pM[e];n&&!cl[n]&&(Zt("Component "+e+` is used but not imported.
import { `+n+` } from 'echarts/components';
echarts.use([`+n+"]);"),cl[n]=!0)}})}var Vh=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){W(e!=null,"option is null/undefined"),W(e[zh]!==ry,"please use chart.getOption()");var a=ay(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,ay(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");mM(o),!this.option||e==="recreate"?ey(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&C(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=$(),u=n&&n.replaceMergeMainTypeMap;oM(this),C(e,function(h,v){h!=null&&(lt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?j(h):tt(i[v],h,!0))}),u&&u.each(function(h,v){lt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),lt.topologicalTravel(s,lt.getAllClassMainTypes(),f,this);function f(h){var v=hM(this,h,Ot(e[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=jp(c,v,d);LT(p,h,lt),i[h]=null,a.set(h,null),o.set(h,0);var g=[],m=[],y=0,_,S;C(p,function(w,b){var x=w.existing,T=w.newOption;if(!T)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var A=h==="series",D=lt.getClass(h,w.keyInfo.subType,!A);if(!D){{var M=w.keyInfo.subType,I=gM[M];cl[M]||(cl[M]=!0,Zt(I?"Series "+M+` is used but not imported.
import { `+I+` } from 'echarts/charts';
echarts.use([`+I+"]);":"Unknown series "+M))}return}if(h==="tooltip"){if(_){S||(Rt("Currently only one tooltip component is allowed."),S=!0);return}_=!0}if(x&&x.constructor===D)x.name=w.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var L=O({componentIndex:b},w.keyInfo);x=new D(T,this,this,L),O(x,L),w.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),i[h]=g,a.set(h,m),o.set(h,y),h==="series"&&vl(this)}this._seriesIndices||vl(this)},t.prototype.getOption=function(){var e=j(this.option);return C(e,function(n,i){if(lt.hasClass(i)){for(var a=Ot(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!xi(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[zh],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,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],C(Ot(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=ny("id",a,s):o!=null?l=ny("name",o,s):l=xt(s,function(u){return!!u}),iy(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):xt(this._componentsMap.get(i),function(u){return!!u});return l(iy(o,e));function s(u){var f=i+"Index",h=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[h],name:u[v]}:null}function l(u){return e.filter?xt(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(G(e)){var o=n,s=e;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=V(e)?a.get(e):Y(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=fe(e,null);return xt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return xt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return xt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){ao(this),C(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){C(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){ao(this),C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return C(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return ao(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){ao(this);var i=[];C(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=$(i)},t.prototype.restoreData=function(e){vl(this);var n=this._componentsMap,i=[];n.each(function(a,o){lt.hasClass(o)&&i.push(o)}),lt.topologicalTravel(i,lt.getAllClassMainTypes(),function(a){C(n.get(a),function(o){o&&(a!=="series"||!yM(o,e))&&o.restoreData()})})},t.internalField=function(){vl=function(e){var n=e._seriesIndices=[];C(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=$(n)},ao=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},ey=function(e,n){e.option={},e.option[zh]=ry,e._componentsMap=$({series:[]}),e._componentsCount=$();var i=n.aria;Y(i)&&i.enabled==null&&(i.enabled=!0),_M(n,e._theme.option),tt(n,aM,!1),e._mergeOption(n,null)}}(),t}(wt);function yM(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function _M(r,t){var e=r.color&&!r.colorLayer;C(t,function(n,i){i==="colorLayer"&&e||lt.hasClass(i)||(typeof n=="object"?r[i]=r[i]?tt(r[i],n,!1):j(n):r[i]==null&&(r[i]=n))})}function ny(r,t,e){if(F(t)){var n=$();return C(t,function(a){if(a!=null){var o=fe(a,null);o!=null&&n.set(a,!0)}}),xt(e,function(a){return a&&n.get(a[r])})}else{var i=fe(t,null);return xt(e,function(a){return a&&i!=null&&a[r]===i})}}function iy(r,t){return t.hasOwnProperty("subType")?xt(r,function(e){return e&&e.subType===t.subType}):r}function ay(r){var t=$();return r&&C(Ot(r.replaceMerge),function(e){W(lt.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}_e(Vh,Fh);var SM=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],oy=function(){function r(t){C(SM,function(e){this[e]=X(t[e],t)},this)}return r}(),Gh={},dl=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];C(Gh,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){C(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Gh[t]=e},r.get=function(t){return Gh[t]},r}(),bM=/^(min|max)?(.+)$/,wM=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(C(Ot(t.series),function(o){o&&o.data&&Jt(o.data)&&ra(o.data)}),C(Ot(t.dataset),function(o){o&&o.source&&Jt(o.source)&&ra(o.source)})),t=j(t);var i=this._optionBackup,a=xM(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],j(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=j(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)TM(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!AM(o,this._currentMediaIndices)&&(s=N(o,function(f){return j(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function xM(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&(F(u)?C(u,function(c){c&&!c.option&&Y(c.query)&&Y(c.query.option)&&Zt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),c&&c.option&&(c.query?n.push(c):i||(i=c))}):Zt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),v(a),C(l,function(c){return v(c)}),C(n,function(c){return v(c.option)});function v(c){C(t,function(d){d(c,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function TM(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return C(r,function(a,o){var s=o.match(bM);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();CM(n[u],a,l)||(i=!1)}}),i}function CM(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function AM(r,t){return r.join(",")===t.join(",")}var Ne=C,oo=Y,sy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hh(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=sy.length;e<n;e++){var i=sy[e],a=t.normal,o=t.emphasis;a&&a[i]&&(Et("itemStyle.normal."+i,i),r[i]=r[i]||{},r[i].normal?tt(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(Et("itemStyle.emphasis."+i,"emphasis."+i),r[i]=r[i]||{},r[i].emphasis?tt(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function $t(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(Ie("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(r[t].normal=r[t].emphasis=null,st(r[t],n)):r[t]=n),i&&(Ie(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function so(r){$t(r,"itemStyle"),$t(r,"lineStyle"),$t(r,"areaStyle"),$t(r,"label"),$t(r,"labelLine"),$t(r,"upperLabel"),$t(r,"edgeLabel")}function Lt(r,t){var e=oo(r)&&r[t],n=oo(e)&&e.textStyle;if(n){Ie("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=Qp.length;i<a;i++){var o=Qp[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}}function Fe(r){r&&(so(r),Lt(r,"label"),r.emphasis&&Lt(r.emphasis,"label"))}function MM(r){if(oo(r)){Hh(r),so(r),Lt(r,"label"),Lt(r,"upperLabel"),Lt(r,"edgeLabel"),r.emphasis&&(Lt(r.emphasis,"label"),Lt(r.emphasis,"upperLabel"),Lt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Hh(t),Fe(t));var e=r.markLine;e&&(Hh(e),Fe(e));var n=r.markArea;n&&Fe(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!Jt(a))for(var o=0;o<a.length;o++)Fe(a[o]);C(r.categories,function(u){so(u)})}if(i&&!Jt(i))for(var o=0;o<i.length;o++)Fe(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Fe(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)F(l[o])?(Fe(l[o][0]),Fe(l[o][1])):Fe(l[o]);r.type==="gauge"?(Lt(r,"axisLabel"),Lt(r,"title"),Lt(r,"detail")):r.type==="treemap"?($t(r.breadcrumb,"itemStyle"),C(r.levels,function(u){so(u)})):r.type==="tree"&&so(r.leaves)}}function Ar(r){return F(r)?r:r?[r]:[]}function ly(r){return(F(r)?r[0]:r)||{}}function DM(r,t){Ne(Ar(r.series),function(n){oo(n)&&MM(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ne(e,function(n){Ne(Ar(r[n]),function(i){i&&(Lt(i,"axisLabel"),Lt(i.axisPointer,"label"))})}),Ne(Ar(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Lt(i,"axisLabel"),Lt(i&&i.axisPointer,"label")}),Ne(Ar(r.calendar),function(n){$t(n,"itemStyle"),Lt(n,"dayLabel"),Lt(n,"monthLabel"),Lt(n,"yearLabel")}),Ne(Ar(r.radar),function(n){Lt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,Ie("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,Ie("nameGap property in radar component has been changed to axisNameGap")),Ne(n.indicator,function(i){i.text&&Et("text","name","radar.indicator")})}),Ne(Ar(r.geo),function(n){oo(n)&&(Fe(n),Ne(Ar(n.regions),function(i){Fe(i)}))}),Ne(Ar(r.timeline),function(n){Fe(n),$t(n,"label"),$t(n,"itemStyle"),$t(n,"controlStyle",!0);var i=n.data;F(i)&&C(i,function(a){Y(a)&&($t(a,"label"),$t(a,"itemStyle"))})}),Ne(Ar(r.toolbox),function(n){$t(n,"iconStyle"),Ne(n.feature,function(i){$t(i,"iconStyle")})}),Lt(ly(r.axisPointer),"label"),Lt(ly(r.tooltip).axisPointer,"label")}function IM(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function LM(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=e)}function uy(r){r&&C(PM,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var PM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],RM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Wh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function lo(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Wh.length;e++){var n=Wh[e][1],i=Wh[e][0];t[n]!=null&&(t[i]=t[n],Et(n,i))}}function fy(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(Et("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function hy(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,Et("downplay","blur","sunburst"))}function EM(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(Et("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function vy(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&vy(r[e].children,t)}function cy(r,t){DM(r,t),r.series=Ot(r.series),C(r.series,function(e){if(Y(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,Et("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,Et("clockWise","clockwise")),fy(e.label);var i=e.data;if(i&&!Jt(i))for(var a=0;a<i.length;a++)fy(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(Et("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=IM(e,"pointer.color");o!=null&&LM(e,"itemStyle.color",o)}else if(n==="bar"){lo(e),lo(e.backgroundStyle),lo(e.emphasis);var i=e.data;if(i&&!Jt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(lo(i[a]),lo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,Et("highlightPolicy","emphasis.focus","sunburst"))),hy(e),vy(e.data,hy)}else n==="graph"||n==="sankey"?EM(e):n==="map"&&(e.mapType&&!e.map&&(Et("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(Ie("`mapLocation` is not used anymore."),st(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(Et("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),uy(e)}}),r.dataRange&&(r.visualMap=r.dataRange),C(RM,function(e){var n=r[e];n&&(F(n)||(n=[n]),C(n,function(i){uy(i)}))})}function kM(r){var t=$();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(OM)}function OM(r){C(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))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"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=dT(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var pl=function(){function r(t){this.data=t.data||(t.sourceFormat===cr?{}:[]),this.sourceFormat=t.sourceFormat||$m,this.seriesLayoutBy=t.seriesLayoutBy||dr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&Km(this,n)===Ht.Must&&(i.type="ordinal")}}return r}();function Uh(r){return r instanceof pl}function Yh(r,t,e){e=e||dy(r);var n=t.seriesLayoutBy,i=NM(r,e,n,t.sourceHeader,t.dimensions),a=new pl({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:j(t)});return a}function Zh(r){return new pl({data:r,sourceFormat:Jt(r)?Cr:Be})}function BM(r){return new pl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:j(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function dy(r){var t=$m;if(Jt(r))t=Cr;else if(F(r)){r.length===0&&(t=de);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(F(i)){t=de;break}else if(Y(i)){t=qe;break}}}}else if(Y(r)){for(var a in r)if(rt(r,a)&&Ut(r[a])){t=cr;break}}return t}function NM(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:py(i),startIndex:o,dimensionsDetectedCount:a};if(t===de){var s=r;n==="auto"||n==null?gy(function(u){u!=null&&u!=="-"&&(V(u)?o==null&&(o=1):o=0)},e,s,10):o=gt(n)?n:n?1:0,!i&&o===1&&(i=[],gy(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===ki?s.length:s[0]?s[0].length:null}else if(t===qe)i||(i=FM(r));else if(t===cr)i||(i=[],C(r,function(u,f){i.push(f)}));else if(t===Be){var l=Ca(r[0]);a=F(l)&&l.length||1}else t===Cr&&W(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:py(i),dimensionsDetectedCount:a}}function FM(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return ot(e)}function py(r){if(r){var t=$();return N(r,function(e,n){e=Y(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 a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function gy(r,t,e,n){if(t===ki)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function my(r){var t=r.sourceFormat;return t===qe||t===cr}var qn,Kn,Qn,yy,_y,Sy=function(){function r(t,e){var n=Uh(t)?t:Zh(t);this._source=n;var i=this._data=n.data;if(n.sourceFormat===Cr){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=i}_y(this,i,n)}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;_y=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=yy[$h(u,f)];if(W(c,"Invalide sourceFormat: "+u),O(o,c),u===Cr)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=wy(u,f);o.getItem=X(d,null,s,h,v);var p=Ty(u,f);o.count=X(p,null,s,h,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,m=l[v],y=0;y<g;y++){var _=f[y*h+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};yy=(t={},t[de+"_"+dr]={pure:!0,appendData:a},t[de+"_"+ki]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[qe]={pure:!0,appendData:a},t[cr]={pure:!0,appendData:function(o){var s=this._data;C(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Be]={appendData:a},t[Cr]={persistent:!1,pure:!0,appendData:function(o){W(Jt(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),by=function(r,t,e,n){return r[n]},zM=(qn={},qn[de+"_"+dr]=function(r,t,e,n){return r[n+t]},qn[de+"_"+ki]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},qn[qe]=by,qn[cr]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name;if(s==null)throw new Error;var l=r[s];a[o]=l?l[n]:null}return a},qn[Be]=by,qn);function wy(r,t){var e=zM[$h(r,t)];return W(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var xy=function(r,t,e){return r.length},VM=(Kn={},Kn[de+"_"+dr]=function(r,t,e){return Math.max(0,r.length-t)},Kn[de+"_"+ki]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Kn[qe]=xy,Kn[cr]=function(r,t,e){var n=e[0].name;if(n==null)throw new Error;var i=r[n];return i?i.length:0},Kn[Be]=xy,Kn);function Ty(r,t){var e=VM[$h(r,t)];return W(e,'Do not support count on "'+r+'", "'+t+'".'),e}var Xh=function(r,t,e){return r[t]},GM=(Qn={},Qn[de]=Xh,Qn[qe]=function(r,t,e){return r[e]},Qn[cr]=Xh,Qn[Be]=function(r,t,e){var n=Ca(r);return n instanceof Array?n[t]:n},Qn[Cr]=Xh,Qn);function Cy(r){var t=GM[r];return W(t,'Do not support get value on "'+r+'".'),t}function $h(r,t){return r===de?r+"_"+t:r}function Oi(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return Cy(a)(n,o,s)}else{var l=n;return a===Be&&(l=Ca(n)),l}}}}var HM=/\{@(.+?)\}/g,Ay=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&F(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(G(a))return l.status=e,l.dimensionIndex=i,a(l);if(V(a)){var f=Eh(a,l);return f.replace(HM,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1),isNaN(d)&&Zt("Invalide label formatter: @"+v+", only support @[0], @[1], @[2], ..."));var p=Oi(s,t,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Oi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function My(r){var t,e;return Y(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+Cs(r)):t=r,{text:t,frag:e}}function uo(r){return new WM(r)}var WM=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,n=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 a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?(W(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(W(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var p=this._progress;if(F(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;W(m>=this._outputDueEnd),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,n,i,a){Dy.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Dy.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){W(t&&!t._disposed&&t!==this),(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}(),Dy=function(){var r,t,e,n,i,a={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function jr(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!gt(r)&&r!=null&&r!=="-"&&(r=+De(r)),r==null||r===""?NaN:+r)}$({number:function(r){return parseFloat(r)},time:function(r){return+De(r)},trim:function(r){return V(r)?Ue(r):r}});var UM=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=gt(t)?t:Ta(t),i=gt(e)?e:Ta(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=V(t),l=V(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),YM=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 jr(t,e)},r}();function ZM(r,t){var e=new YM,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==dr&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',ue(o));var s=[],l={},u=r.dimensionsDefine;if(u)C(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";rt(l,m)&&(_='dimension name "'+m+'" duplicated.',ue(_)),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=wy(i,dr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,a,s,p)},e.getRawData=X(XM,null,r)),e.cloneRawData=X($M,null,r);var v=Ty(i,dr);e.count=X(v,null,n,a,s);var c=Cy(i);e.retrieveValue=function(p,g){var m=h(n,a,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=X(qM,null,s,l),e.cloneAllDimensionInfo=X(KM,null,s),e}function XM(r){var t=r.sourceFormat;if(!qh(t)){var e="";e="`getRawData` is not supported in source format "+t,ue(e)}return r.data}function $M(r){var t=r.sourceFormat,e=r.data;if(!qh(t)){var n="";n="`cloneRawData` is not supported in source format "+t,ue(n)}if(t===de){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===qe){for(var i=[],a=0,o=e.length;a<o;a++)i.push(O({},e[a]));return i}}function qM(r,t,e){if(e!=null){if(gt(e)||!isNaN(e)&&!rt(t,e))return r[e];if(rt(t,e))return t[e]}}function KM(r){return j(r)}var Iy=$();function QM(r){r=j(r);var t=r.type,e="";t||(e="Must have a `type` when `registerTransform`.",ue(e));var n=t.split(":");n.length!==2&&(e='Name must include namespace like "ns:regression".',ue(e));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,Iy.set(t,r)}function jM(r,t,e){var n=Ot(r),i=n.length,a="";i||(a="If `transform` declared, it should at least contain one transform.",ue(a));for(var o=0,s=i;o<s;o++){var l=n[o];t=JM(l,t,e,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function JM(r,t,e,n){var i="";t.length||(i="Must have at least one upstream dataset.",ue(i)),Y(r)||(i="transform declaration must be an object rather than "+typeof r+".",ue(i));var a=r.type,o=Iy.get(a);o||(i='Can not find transform on type "'+a+'".',ue(i));var s=N(t,function(f){return ZM(f,o)}),l=Ot(o.transform({upstream:s[0],upstreamList:s,config:j(r.config)}));if(r.print){var u=N(l,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+e.datasetIndex+h+" ===","- transform result data:",Cs(f.data),"- transform result dimensions:",Cs(f.dimensions)].join(`
`)}).join(`
`);bT(u)}return N(l,function(f,h){var v="";Y(f)||(v="A transform should not return some empty results.",ue(v)),f.data||(v="Transform result data should be not be null or undefined",ue(v));var c=dy(f.data);qh(c)||(v="Transform result data should be array rows or object rows.",ue(v));var d,p=t[0];if(p&&h===0&&!f.dimensions){var g=p.startIndex;g&&(f.data=p.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:dr,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:dr,sourceHeader:0,dimensions:f.dimensions};return Yh(f.data,d,null)})}function qh(r){return r===de||r===qe}var gl="undefined",tD=typeof Uint32Array===gl?Array:Uint32Array,eD=typeof Uint16Array===gl?Array:Uint16Array,Ly=typeof Int32Array===gl?Array:Int32Array,Py=typeof Float64Array===gl?Array:Float64Array,Ry={float:Py,int:Ly,ordinal:Array,number:Array,time:Py},Kh;function fo(r){return r>65535?tD:eD}function Bi(){return[1/0,-1/0]}function rD(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Ey(r,t,e,n,i){var a=Ry[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var Qh=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return r.prototype.initData=function(t,e,n){W(G(t.getItem)&&G(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Kh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=my(i);this._dimensions=N(e,function(s){return o&&W(s.property!=null),{type:s.type,property:s.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 n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new Ry[e||"float"](this._rawCount),this._rawExtent[a]=Bi(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Bi());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){W(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];Ey(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<a;d++){var f=i[d],p=Kh.arrayRows.call(this,t[c]||h,f.property,c,d);n[d][v]=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,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=N(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Bi()),Ey(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var v=[],c=t;c<e;c++){v=i.getItem(c,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,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 n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[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,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=e-a[v],d=Math.abs(c);d<=n&&((d<s||d===s&&c>=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=fo(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=fo(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,v=0;v<i;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=e(v);else if(l===1){var p=h[f][d];c=e(p,v)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=v,c=e.apply(null,s)}c&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=ot(t),a=i.length;if(!a)return this;var o=e.count(),s=fo(e._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=c[i[0]],m=0;m<n;m++){var y=g[m];(y>=h&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=c[i[0]],_=c[i[1]],S=t[i[1]][0],w=t[i[1]][1],m=0;m<n;m++){var y=g[m],b=_[m];(y>=h&&y<=v||isNaN(y))&&(b>=S&&b<=w||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var x=e.getRawIndex(m),y=c[i[0]][x];(y>=h&&y<=v||isNaN(y))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var T=!0,x=e.getRawIndex(m),A=0;A<a;A++){var D=i[A],y=c[D][x];(y<t[D][0]||y>t[D][1])&&(T=!1)}T&&(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 n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Bi();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)l[c]=i[e[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],m=u[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(fo(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 S=this.getRawIndex(_),w=a[S];isNaN(w)||(y+=w)}y/=g-p;var b=d,x=Math.min(d+l,o),T=d-1,A=a[u];f=-1,v=b;for(var D=-1,M=0,_=b;_<x;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){M++,D<0&&(D=S);continue}h=Math.abs((T-m)*(w-A)-(T-_)*(y-A)),h>f&&(f=h,v=S)}M>0&&M<x-b&&(c[s++]=Math.min(D,v),v=Math.max(D,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=Bi(),v=new(fo(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Bi();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=e[f];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 n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&We(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?rD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=j(this._extent),t._rawExtent=j(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},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,n,i,a){return jr(e[a],this._dimensions[a])}Kh={arrayRows:t,objectRows:function(e,n,i,a){return jr(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return jr(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),ky=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(),n=!!e.length,i,a;if(ho(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Jt(s)?Cr:Be,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=J(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=J(h.sourceHeader,v.sourceHeader),p=J(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Yh(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Yh(_,this._getSourceMetaRawOption(),null)],a=[]}}W(i&&a),this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(W(i!=null||n!=null),i!=null){var a="";t.length!==1&&(a="When using `fromTransformResult`, there should be only one upstream dataset",By(a))}var o,s=[],l=[];return C(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&(h="Can not retrieve result by `fromTransformResult`: "+i,By(h)),s.push(f),l.push(u._getVersionSign())}),n?o=jM(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[BM(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 n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){W(ho(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];ho(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Qh,s.initData(new Sy(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ho(t)){var e=Bh(t);return e?[e.getSourceManager()]:[]}else return N(uM(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(ho(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function Oy(r){var t=r.option.transform;t&&ra(r.option.transform)}function ho(r){return r.mainType==="series"}function By(r){throw new Error(r)}var Ny="line-height:1";function Fy(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+se(n+"")+"px;color:"+se(e)+";font-weight:"+se(i+""),valueStyle:"font-size:"+se(o+"")+"px;color:"+se(a)+";font-weight:"+se(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var nD=[0,10,20,30],iD=["",`
`,`

`,`


`];function jn(r,t){return t.type=r,t}function jh(r){return r.type==="section"}function zy(r){return jh(r)?aD:oD}function Vy(r){if(jh(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return C(r.blocks,function(i){var a=Vy(i);a>=t&&(t=a+ +(n&&(!a||jh(i)&&!i.noHeader)))}),t}return 0}function aD(r,t,e,n){var i=t.noHeader,a=sD(Vy(t)),o=[],s=t.blocks||[];W(!s||F(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(rt(u,l)){var f=new UM(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(d,p){var g=t.valueFormatter,m=zy(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Jh(o.join(""),i?e:a.html);if(i)return h;var v=Ph(t.header,"ordinal",r.useUTC),c=Fy(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Hy(r,v,c)+a.richText+h:Jh('<div style="'+c+";"+Ny+';">'+se(v)+"</div>"+h,e)}function oD(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],N(S,function(w,b){return Ph(w,F(c)?c[b]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":Ph(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=Fy(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":Hy(r,v,y))+(o?"":fD(r,d,p,g,_)):Jh((s?"":h)+(a?"":lD(v,!s,y))+(o?"":uD(d,p,g,_)),e)}}function Gy(r,t,e,n,i,a){if(r){var o=zy(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function sD(r){return{html:nD[r],richText:iD[r]}}function Jh(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Ny+';">'+r+e+"</div>"}function lD(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+se(r)+"</span>"}function uD(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],'<span style="'+a+";"+n+'">'+N(r,function(o){return se(o)}).join("&nbsp;&nbsp;")+"</span>"}function Hy(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function fD(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join("  "):t,a)}function hD(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Xn(n)}function Wy(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var tv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Up()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=Hm({color:e,type:t,renderMode:n,markerId:i});return V(a)?a:(W(i),this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?C(e,function(a){return O(n,a)}):O(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function vD(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=F(s),u=hD(t,e),f,h,v,c;if(o>1||l&&!o){var d=cD(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);c=f=Oi(i,e,a[0]),h=p.type}else c=f=l?s[0]:s;var g=Pf(t),m=g&&t.name||"",y=i.getName(e),_=n?m:y;return jn("section",{header:m,noHeader:n||!g,sortParam:c,blocks:[jn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ue(_),value:f,valueType:h})].concat(v||[])})}function cD(r,t,e,n,i){var a=t.getData(),o=We(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?C(n,function(h){f(Oi(a,e,h),h)}):C(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(jn("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 Jr=mt();function ml(r,t){return r.getName(t)||r.getId(t)}var dD="__universalTransitionEnabled",ie=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=uo({count:gD,reset:mD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Jr(this).sourceManager=new ky(this);a.prepareSource();var o=this.getInitialData(e,i);Yy(o,this),this.dataTask.context.data=o,W(o,"getInitialData returned invalid data."),Jr(this).dataBeforeProcessed=o,Uy(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=no(this),a=i?io(e):{},o=this.subType;lt.hasClass(o)&&(o+="Series"),tt(e,n.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),As(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&$n(e,a,i)},t.prototype.mergeOption=function(e,n){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=no(this);i&&$n(this.option,e,i);var a=Jr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);Yy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Jr(this).dataBeforeProcessed=o,Uy(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Jt(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&As(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=ev(this);if(n){var i=n.context.data;return e==null?i:i.getLinkedData(e)}else return Jr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=ev(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Jr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return $(e)},t.prototype.getSourceManager=function(){return Jr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Jr(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,n,i){return vD({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Q.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=Fh.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,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,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=ml(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=ot(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[ml(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[dD])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=ml(e,h);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=ml(e,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return lt.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}(lt);_e(ie,Ay),_e(ie,Fh),ig(ie,lt);function Uy(r){var t=r.name;Pf(r)||(r.name=pD(r)||t)}function pD(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return C(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function gD(r){return r.model.getRawData().count()}function mD(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),yD}function yD(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Yy(r,t){C(Vd(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,et(_D,t))})}function _D(r,t){var e=ev(r);return e&&e.setOutputEnd((t||this).count()),t}function ev(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var Nt=function(){function r(){this.group=new _t,this.uid=Ka("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Ef(Nt),Ms(Nt);function rv(){var r=mt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Zy=mt(),SD=rv(),qt=function(){function r(){this.group=new _t,this.uid=Ka("viewChart"),this.renderTask=uo({plan:bD,reset:wD}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){Zt("Unknown dataType "+i.dataType);return}$y(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){Zt("Unknown dataType "+i.dataType);return}$y(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){qa(this.group,t)},r.markUpdateMethod=function(t,e){Zy(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Xy(r,t,e){r&&Mi(r)&&(t==="emphasis"?Vn:Gn)(r,e)}function $y(r,t,e){var n=Dn(r,t),i=t&&t.highlightKey!=null?KC(t.highlightKey):null;n!=null?C(Ot(n),function(a){Xy(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Xy(a,e,i)})}Ef(qt,["dispose"]),Ms(qt);function bD(r){return SD(r.model)}function wD(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&Zy(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),xD[l]}var xD={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)}}},yl="\0__throttleOriginMethod",qy="\0__throttleRate",Ky="\0__throttleType";function _l(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Sl(r,t,e,n){var i=r[t];if(i){var a=i[yl]||i,o=i[Ky],s=i[qy];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=_l(a,e,n==="debounce"),i[yl]=a,i[Ky]=n,i[qy]=e}return i}}function bl(r,t){var e=r[t];e&&e[yl]&&(e.clear&&e.clear(),r[t]=e[yl])}var Qy=mt(),jy={itemStyle:Ia(Dm,!0),lineStyle:Ia(Mm,!0)},TD={lineStyle:"stroke",itemStyle:"fill"};function Jy(r,t){var e=r.visualStyleMapper||jy[t];return e||(console.warn("Unknown style type '"+t+"'."),jy.itemStyle)}function t0(r,t){var e=r.visualDrawType||TD[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var CD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=Jy(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=t0(r,n),u=o[l],f=G(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||G(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||G(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=O({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},vo=new wt,AD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=Jy(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){vo.option=l[n];var u=i(vo),f=o.ensureUniqueItemVisual(s,"style");O(f,u),vo.option.decal&&(o.setItemVisual(s,"decal",vo.option.decal),vo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MD={performRawSeries:!0,overallReset:function(r){var t=$();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Qy(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Qy(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=t0(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},wl=Math.PI;function DD(r,t){t=t||{},st(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 _t,n=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Tt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new bt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Ha({shape:{startAngle:-wl/2,endAngle:-wl/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:wl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wl*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),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var e0=function(){function r(t,e,n,i){this._stageTaskMap=$(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.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 n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=$();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;C(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',W(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;C(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!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,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.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,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=$(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||uo({plan:ED,reset:kD,count:BD}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||uo({reset:ID});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=$(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";c='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',W(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,C(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,uo({reset:LD,onDirty:RD})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,a._pipe(p,m)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return G(t)&&(t={overallReset:t,seriesType:ND(t)}),t.uid=Ka("stageHandler"),e&&(t.visualType=e),t},r}();function ID(r){r.overallReset(r.ecModel,r.api,r.payload)}function LD(r){return r.overallProgress&&PD}function PD(){this.agent.dirty(),this.getDownstream().dirty()}function RD(){this.agent&&this.agent.dirty()}function ED(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function kD(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,n){return r0(n)}):OD}var OD=r0(0);function r0(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function BD(r){return r.data.count()}function ND(r){xl=null;try{r(co,n0)}catch{}return xl}var co={},n0={},xl;i0(co,Vh),i0(n0,oy),co.eachSeriesByType=co.eachRawSeriesByType=function(r){xl=r},co.eachComponent=function(r){r.mainType==="series"&&r.subType&&(xl=r.subType)};function i0(r,t){for(var e in t.prototype)r[e]=Gt}var a0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],FD={color:a0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],a0]},ae="#B9B8CE",o0="#100C2A",Tl=function(){return{axisLine:{lineStyle:{color:ae}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},s0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],l0={darkMode:!0,color:s0,backgroundColor:o0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ae}},textStyle:{color:ae},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ae}},dataZoom:{borderColor:"#71708A",textStyle:{color:ae},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:ae}},timeline:{lineStyle:{color:ae},label:{color:ae},controlStyle:{color:ae,borderColor:ae}},calendar:{itemStyle:{color:o0},dayLabel:{color:ae},monthLabel:{color:ae},yearLabel:{color:ae}},timeAxis:Tl(),logAxis:Tl(),valueAxis:Tl(),categoryAxis:Tl(),line:{symbol:"circle"},graph:{color:s0},gauge:{title:{color:ae},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ae},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};l0.categoryAxis.splitLine.show=!1;var zD=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(V(t)){var a=ar(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),nv=["symbol","symbolSize","symbolRotate","symbolOffset"],u0=nv.concat(["symbolKeepAspect"]),VD={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 n={},i={},a=!1,o=0;o<nv.length;o++){var s=nv[o],l=r.get(s);G(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=ot(i);function f(h,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,i[g](c,d))}}return{dataEach:a?f:null}}},GD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<u0.length;s++){var l=u0[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function HD(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:console.warn("Unknown visual type "+e)}}function Cl(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);default:console.warn("Unknown visual type "+t)}}function WD(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}C([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=O({},i),Et(i.type,n[1]),o.dispatchAction(O(i,{type:n[1],seriesIndex:e(a,i)}))})})}function Ni(r,t,e,n,i){var a=r+t;e.isSilent(a)||(Ie("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=Dn(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:F(v)?h.getName(v[0]):h.getName(v),selected:V(l)?l:O({},l)})}}))}function UD(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Ni("map","selectchanged",t,i,n),Ni("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Ni("map","selected",t,i,n),Ni("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Ni("map","unselected",t,i,n),Ni("pie","unselected",t,i,n))})}function po(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var YD=Math.round(Math.random()*9),ZD=typeof Object.defineProperty=="function",XD=function(){function r(){this._id="__ec_inner_"+YD++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return ZD?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[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}(),$D=pt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),qD=pt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),KD=pt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*c,l+s+v*c,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*c,l+s+v*c,e-f,l+s),r.closePath()}}),QD=pt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),jD={line:fr,rect:bt,roundRect:bt,square:bt,circle:Fa,diamond:qD,pin:KD,arrow:QD,triangle:$D},JD={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},Al={};C(jD,function(r,t){Al[t]=new r});var tI=pt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=bs(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=Al[n];i||(n="rect",i=Al[n]),JD[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function eI(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 Ke(r,t,e,n,i,a,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=ph(r.slice(8),new vt(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=Js(r.slice(7),{},new vt(t,e,n,i),o?"center":"cover"):l=new tI({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=eI,a&&l.setColor(a),l}function iv(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ml(r,t){if(r!=null)return F(r)||(r=[r,r]),[ct(r[0],t[0])||0,ct(J(r[1],r[0]),t[1])||0]}function Jn(r){return isFinite(r)}function rI(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=Jn(n)?n:0,i=Jn(i)?i:1,a=Jn(a)?a:0,o=Jn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function nI(r,t,e){var n=e.width,i=e.height,a=Math.min(n,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*n+e.x,s=s*i+e.y,l=l*a),o=Jn(o)?o:.5,s=Jn(s)?s:.5,l=l>=0&&Jn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function av(r,t,e){for(var n=t.type==="radial"?nI(r,t,e):rI(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function iI(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 Dl(r){return parseInt(r,10)}function Fi(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Dl(s[n])||Dl(r.style[n]))-(Dl(s[a])||0)-(Dl(s[o])||0)|0}function aI(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:gt(r)?[r]:F(r)?r:null}function ov(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&aI(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=N(e,function(a){return a/i}),n/=i)}return[e,n]}var oI=new Xr(!0);function Il(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function f0(r){return typeof r=="string"&&r!=="none"}function Ll(r){var t=r.fill;return t!=null&&t!=="none"}function h0(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 v0(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 sv(r,t,e){var n=Of(t.image,t.__image,e);if(Ds(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ia),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function sI(r,t,e,n){var i,a=Il(e),o=Ll(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||oI,h=t.__dirty;if(!n){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=a&&!!c.colorStops,g=o&&!!v.image,m=a&&!!c.image,y=void 0,_=void 0,S=void 0,w=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(y=h?av(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=h?av(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?sv(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(w=h||!t.__canvasStrokePattern?sv(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=y:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:m&&(w?r.strokeStyle=w:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,A;r.setLineDash&&e.lineDash&&(i=ov(t),T=i[0],A=i[1]);var D=!0;(u||h&gi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),n||(e.strokeFirst?(a&&v0(r,e),o&&h0(r,e)):(o&&h0(r,e),a&&v0(r,e))),T&&r.setLineDash([])}function lI(r,t,e){var n=t.__image=Of(e.image,t.__image,t,t.onload);if(!(!n||!Ds(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,v=s-f;r.drawImage(n,u,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function uI(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Er,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=ov(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Il(e)&&r.strokeText(i,e.x,e.y),Ll(e)&&r.fillText(i,e.x,e.y)):(Ll(e)&&r.fillText(i,e.x,e.y),Il(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var c0=["shadowBlur","shadowOffsetX","shadowOffsetY"],d0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function p0(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){pe(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Ln.opacity:o}(n||t.blend!==e.blend)&&(a||(pe(r,i),a=!0),r.globalCompositeOperation=t.blend||Ln.blend);for(var s=0;s<c0.length;s++){var l=c0[s];(n||t[l]!==e[l])&&(a||(pe(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(pe(r,i),a=!0),r.shadowColor=t.shadowColor||Ln.shadowColor),a}function g0(r,t,e,n,i){var a=go(t,i.inHover),o=n?null:e&&go(e,i.inHover)||{};if(a===o)return!1;var s=p0(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(pe(r,i),s=!0),f0(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(pe(r,i),s=!0),f0(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(pe(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(pe(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<d0.length;f++){var h=d0[f],v=h[0];(n||a[v]!==o[v])&&(s||(pe(r,i),s=!0),r[v]=a[v]||h[1])}return s}function fI(r,t,e,n,i){return p0(r,go(t,i.inHover),e&&go(e,i.inHover),n,i)}function m0(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function hI(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),m0(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function vI(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 y0=1,_0=2,S0=3,b0=4;function cI(r){var t=Ll(r),e=Il(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 pe(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function go(r,t){return t&&r.__hoverStyle||r.style}function lv(r,t){ti(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ti(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~be,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||iI(a,o))&&(o&&o.length&&(pe(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(pe(r,e),r.save(),hI(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof pt&&t.autoBatch&&cI(t.style);s||vI(i,u.transform)?(pe(r,e),m0(r,t)):f||pe(r,e);var h=go(t,e.inHover);t instanceof pt?(e.lastDrawType!==y0&&(l=!0,e.lastDrawType=y0),g0(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),sI(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Ra?(e.lastDrawType!==S0&&(l=!0,e.lastDrawType=S0),g0(r,t,u,l,e),uI(r,t,h)):t instanceof Ee?(e.lastDrawType!==_0&&(l=!0,e.lastDrawType=_0),fI(r,t,u,l,e),lI(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==b0&&(l=!0,e.lastDrawType=b0),dI(r,t,e)),f&&n&&pe(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function dI(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ti(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ti(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var uv=new XD,w0=new ca(100),x0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fv(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&uv.delete(r);var a=uv.get(r);if(a)return a;var o=st(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,uv.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,v=0;v<x0.length;++v){var c=o[x0[v]];if(c!=null&&!F(c)&&!V(c)&&!gt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=w0.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=C0(o.dashArrayX),m=pI(o.dashArrayY),y=T0(o.symbol),_=gI(g),S=A0(m),w=!i&&_r.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=A(),T;w&&(w.width=x.width*e,w.height=x.height*e,T=w.getContext("2d")),D(),h&&w0.put(d,w||b),u.image=w,u.svgElement=b,u.svgWidth=x.width,u.svgHeight=x.height;function A(){for(var M=1,I=0,L=_.length;I<L;++I)M=Zp(M,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=Zp(P,y[I].length);M*=P;var R=S*_.length*y.length;{var k=function(H){console.warn("Calculated decal size is greater than "+H+" due to decal option settings so "+H+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+H+" to be larger to avoid incontinuity.")};M>o.maxTileWidth&&k("maxTileWidth"),R>o.maxTileHeight&&k("maxTileHeight")}return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var L=-S,P=0,R=0,k=0;L<x.height;){if(P%2===0){for(var H=R/2%y.length,B=0,z=0,Z=0;B<x.width*2;){for(var it=0,I=0;I<g[k].length;++I)it+=g[k][I];if(it<=0)break;if(z%2===0){var K=(1-o.symbolSize)*.5,ut=B+g[k][z]*K,dt=L+m[P]*K,Pt=g[k][z]*o.symbolSize,St=m[P]*o.symbolSize,jt=Z/2%y[H].length;Vt(ut,dt,Pt,St,y[H][jt])}B+=g[k][z],++Z,++z,z===g[k].length&&(z=0)}++k,k===g.length&&(k=0)}L+=m[P],++R,++P,P===m.length&&(P=0)}function Vt(Dt,Ct,q,ft,me){var It=i?1:e,er=Ke(me,Dt*It,Ct*It,q*It,ft*It,o.color,o.symbolKeepAspect);if(i){var ye=n.painter.renderOneToVNode(er);ye&&b.children.push(ye)}else lv(T,er)}}}}function T0(r){if(!r||r.length===0)return[["rect"]];if(V(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!V(r[e])){t=!1;break}if(t)return T0([r]);for(var n=[],e=0;e<r.length;++e)V(r[e])?n.push([r[e]]):n.push(r[e]);return n}function C0(r){if(!r||r.length===0)return[[0,0]];if(gt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!gt(r[n])){e=!1;break}if(e)return C0([r]);for(var i=[],n=0;n<r.length;++n)if(gt(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=N(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function pI(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(gt(r)){var t=Math.ceil(r);return[t,t]}var e=N(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function gI(r){return N(r,function(t){return A0(t)})}function A0(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function mI(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=fv(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=fv(i,t)}}})}var Qe=new Te,Pl={};function yI(r,t){Pl[r]&&Zt("Already has an implementation of "+r+"."),Pl[r]=t}function M0(r){return Pl[r]||Zt("Implementation of "+r+" doesn't exists."),Pl[r]}var _I="5.4.3",SI={zrender:"5.4.4"},bI=1,wI=800,xI=900,TI=1e3,CI=2e3,AI=5e3,D0=1e3,MI=1100,hv=2e3,I0=3e3,DI=4e3,Rl=4500,II=4600,LI=5e3,PI=6e3,L0=7e3,P0={PROCESSOR:{FILTER:TI,SERIES_FILTER:wI,STATISTIC:AI},VISUAL:{LAYOUT:D0,PROGRESSIVE_LAYOUT:MI,GLOBAL:hv,CHART:I0,POST_CHART_LAYOUT:II,COMPONENT:DI,BRUSH:LI,CHART_ITEM:Rl,ARIA:PI,DECAL:L0}},Kt="__flagInMainProcess",ge="__pendingUpdate",vv="__needsUpdateStatus",R0=/^[a-zA-Z0-9_]+$/,cv="__connectUpdateStatus",E0=0,RI=1,EI=2;function k0(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){xe(this.id);return}return B0(this,r,t)}}function O0(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return B0(this,r,t)}}function B0(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Te.prototype[t].apply(r,e)}var N0=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Te),F0=N0.prototype;F0.on=O0("on"),F0.off=O0("off");var zi,dv,El,tn,pv,gv,mv,mo,yo,z0,V0,yv,G0,kl,H0,W0,ze,U0,Ol=function(r){E(t,r);function t(e,n,i){var a=r.call(this,new zD)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},V(n)&&(n=Y0[n]),a._dom=e;var o="canvas",s="auto",l=!1;{var u=Q.hasGlobalWindow?window:dw;o=u.__ECHARTS__DEFAULT__RENDERER__||o,s=J(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var f=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=f??l}var h=a._zr=Af(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:J(i.useDirtyRect,l),useCoarsePointer:J(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=_l(X(h.flush,h),17),n=j(n),n&&cy(n,!0),a._theme=n,a._locale=XA(i.locale||Im),a._coordSysMgr=new dl;var v=a._api=H0(a);function c(d,p){return d.__prio-p.__prio}return es(Nl,c),es(Sv,c),a._scheduler=new e0(a,v,Sv,Nl),a._messageCenter=new N0,a._initEvents(),a.resize=X(a.resize,a),h.animation.on("frame",a._onframe,a),z0(h,a),V0(h,a),ra(a),a}return t.prototype._onframe=function(){if(!this._disposed){U0(this);var e=this._scheduler;if(this[ge]){var n=this[ge].silent;this[Kt]=!0;try{zi(this),tn.update.call(this,null,this[ge].updateParams)}catch(l){throw this[Kt]=!1,this[ge]=null,l}this._zr.flush(),this[Kt]=!1,this[ge]=null,mo.call(this,n),yo.call(this,n)}else if(e.unfinished){var i=bI,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),gv(this,a),e.performVisualTasks(a),kl(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,n,i){if(this[Kt]){Zt("`setOption` should not be called during main process.");return}if(this._disposed){xe(this.id);return}var a,o,s;if(Y(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Kt]=!0,!this._model||n){var l=new wM(this._api),u=this._theme,f=this._model=new Vh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},bv);var h={seriesTransition:s,optionChanged:!0};if(i)this[ge]={silent:a,updateParams:h},this[Kt]=!1,this.getZr().wakeUp();else{try{zi(this),tn.update.call(this,null,h)}catch(v){throw this[ge]=null,this[Kt]=!1,v}this._ssr||this._zr.flush(),this[ge]=null,this[Kt]=!1,mo.call(this,a),yo.call(this,a)}},t.prototype.setTheme=function(){Ie("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return Et("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;if(n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;if(n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Q.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return C(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){xe(this.id);return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;C(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return C(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){xe(this.id);return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Fl[i]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();C(ei,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(e)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),h=o(b.bottom,h),v.push({dom:w,left:b.left,top:b.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=_r.createCanvas(),m=Af(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return C(v,function(_){var S=_.left-l,w=_.top-u;y+='<g transform="translate('+S+","+w+')">'+_.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 bt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),C(v,function(_){var S=new Ee({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return pv(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return pv(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){xe(this.id);return}var i=this._model,a,o=Ma(i,e);return C(o,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?a=a||h.containPoint(n,u):Rt(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else Rt(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=Ma(i,e,{defaultMainType:"series"}),o=a.seriesModel;o||Rt("There is no specified series model");var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?HD(s,l,n):Cl(s,n)},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;C(kI,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&po(s,function(d){var p=ht(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=O({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];!u&&!(v&&c)&&Rt("model or view can not be found by params"),l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),C(_o,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),C(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),UD(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){xe(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){xe(this.id);return}this._disposed=!0;var e=this.getDom();e&&rg(this.getDom(),xv,"");var n=this,i=n._api,a=n._model;C(n._componentsViews,function(o){o.dispose(a,i)}),C(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ei[n.id]},t.prototype.resize=function(e){if(this[Kt]){Zt("`resize` should not be called during main process.");return}if(this._disposed){xe(this.id);return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[ge]&&(a==null&&(a=this[ge].silent),i=!0,this[ge]=null),this[Kt]=!0;try{i&&zi(this),tn.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Kt]=!1,o}this[Kt]=!1,mo.call(this,a),yo.call(this,a)}},t.prototype.showLoading=function(e,n){if(this._disposed){xe(this.id);return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!wv[e]){Rt("Loading effects "+e+" not exists.");return}var i=wv[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){xe(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=O({},e);return n.type=_o[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){xe(this.id);return}if(Y(n)||(n={silent:!!n}),!!Bl[e.type]&&this._model){if(this[Kt]){this._pendingActions.push(e);return}var i=n.silent;mv.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&Q.browser.weChat&&this._throttledZrFlush(),mo.call(this,i),yo.call(this,i)}},t.prototype.updateLabelLayout=function(){Qe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){xe(this.id);return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);W(e.data&&a),a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){zi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),dv(h,!0),dv(h,!1),v.plan()},dv=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(b,x){b!=="series"&&S(x)}):c.eachSeries(S);function S(b){var x=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,A=!x&&g[T];if(!A){var D=ar(b.type),M=v?Nt.getClass(D.main,D.sub):qt.getClass(D.sub);W(M,D.sub+" does not exist."),A=new M,A.init(c,y),g[T]=A,p.push(A),m.add(A.group)}b.__viewId=A.__id=T,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(A,b,c,y)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),m.remove(w.group),w.dispose(c,y),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},El=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){C([].concat(h._componentsViews).concat(h._chartsViews),w);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,S;_!=null&&(S=$(),C(Ot(_),function(b){var x=fe(b,null);x!=null&&S.set(x,!0)})),g&&g.eachComponent(y,function(b){var x=S&&S.get(b.id)!=null;if(!x)if(Kg(c))if(b instanceof ie)c.type===zn&&!c.notBlur&&!b.get(["emphasis","disabled"])&&HC(b,c,h._api);else{var T=nh(b.mainType,b.componentIndex,c.name,h._api),A=T.focusSelf,D=T.dispatchers;c.type===zn&&A&&!c.notBlur&&rh(b.mainType,b.componentIndex,h._api),D&&C(D,function(M){c.type===zn?Vn(M):Gn(M)})}else ih(c)&&b instanceof ie&&(YC(b,c,h._api),Xg(b),ze(h))},h),g&&g.eachComponent(y,function(b){var x=S&&S.get(b.id)!=null;x||w(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,h._api,c)}},tn={prepareAndUpdate:function(h){zi(this),tn.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){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),gv(this,c),g.update(c,d),e(c),m.performVisualTasks(c,h),yv(this,c,d,h,v);var y=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),Qe.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(m,y){if(m!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=$();c.eachSeries(function(m){var y=v._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}),kl(this,c,d,h,{},g),Qe.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),qt.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),yv(this,v,this._api,h,{}),Qe.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),qt.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),Qe.trigger("afterupdate",c,this._api))},updateLayout:function(h){tn.update.call(this,h)}},pv=function(h,v,c,d){if(h._disposed){xe(h.id);return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),m,y=Ma(p,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(m=S[v](p,y,d))!=null)return m}Rt("No coordinate system that supports "+v+" found by the given finder.")},gv=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},mv=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,m=Bl[p],y=m.actionInfo,_=(y.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&ar(_[0]);this[Kt]=!0;var b=[h],x=!1;h.batch&&(x=!0,b=N(h.batch,function(P){return P=st(O({},P),h),P.batch=null,P}));var T=[],A,D=ih(h),M=Kg(h);if(M&&Zg(this._api),C(b,function(P){if(A=m.action(P,c._model,c._api),A=A||O({},P),A.type=y.event||A.type,T.push(A),M){var R=Rf(h),k=R.queryOptionMap,H=R.mainTypeSpecified,B=H?k.keys()[0]:"series";El(c,S,P,B),ze(c)}else D?(El(c,S,P,"series"),ze(c)):w&&El(c,S,P,w.main,w.sub)}),S!=="none"&&!M&&!D&&!w)try{this[ge]?(zi(this),tn.update.call(this,h),this[ge]=null):tn[S].call(this,h)}catch(P){throw this[Kt]=!1,P}if(x?A={type:y.event||p,escapeConnect:g,batch:T}:A=T[0],this[Kt]=!1,!v){var I=this._messageCenter;if(I.trigger(A.type,A),D){var L={type:"selectchanged",escapeConnect:g,selected:ZC(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(L.type,L)}}},mo=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();mv.call(this,c,h)}},yo=function(h){!h&&this.trigger("updated")},z0=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[ge]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},V0=function(h,v){h.on("mouseover",function(c){var d=c.target,p=po(d,Mi);p&&(WC(p,c,v._api),ze(v))}).on("mouseout",function(c){var d=c.target,p=po(d,Mi);p&&(UC(p,c,v._api),ze(v))}).on("click",function(c){var d=c.target,p=po(d,function(y){return ht(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ht(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){var v=[],c=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?c:v).push({zlevel:S,z:w,idx:_.componentIndex,type:y,key:b})}),d){var p=v.concat(c),g,m;es(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),C(p,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,w=y.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==m&&S++,m=w):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}yv=function(h,v,c,d,p){n(v),G0(h,v,c,d,p),C(h._chartsViews,function(g){g.__alive=!1}),kl(h,v,c,d,p),C(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},G0=function(h,v,c,d,p,g){C(g||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,c,d),s(y,m),f(y,m)})},kl=function(h,v,c,d,p,g){var m=h._scheduler;p=O(p||{},{updatedSeries:v.getSeries()}),Qe.trigger("series:beforeupdate",v,c,p);var y=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;m.updatePayload(w,d),u(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(y=!0),S.group.silent=!!_.get("silent"),o(_,S),Xg(_)}),m.unfinished=y||m.unfinished,Qe.trigger("series:layoutlabels",v,c,p),Qe.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,v),Qe.trigger("series:afterupdate",v,c,p)},ze=function(h){h[vv]=!0,h.getZr().wakeUp()},U0=function(h){h[vv]&&(h.getZr().storage.traverse(function(v){Wa(v)||i(v)}),h[vv]=!1)};function i(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===Bs&&h.states.emphasis?v.push("emphasis"):h.hoverState===Os&&h.states.blur&&v.push("blur"),h.useStates(v)}function a(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!Q.node&&!Q.worker&&v.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,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,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[_],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,v){v.eachRendered(function(c){if(!Wa(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 f(h,v){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;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Wa(m))return;if(m instanceof pt&&QC(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}H0=function(h){return new(function(v){E(c,v);function c(){return v!==null&&v.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){Vn(d,p),ze(h)},c.prototype.leaveEmphasis=function(d,p){Gn(d,p),ze(h)},c.prototype.enterBlur=function(d){Hg(d),ze(h)},c.prototype.leaveBlur=function(d){th(d),ze(h)},c.prototype.enterSelect=function(d){Wg(d),ze(h)},c.prototype.leaveSelect=function(d){Ug(d),ze(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}(oy))(h)},W0=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[cv]=d}}C(_o,function(c,d){h._messageCenter.on(d,function(p){if(Fl[h.group]&&h[cv]!==E0){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),m=[];C(ei,function(y){y!==h&&y.group===h.group&&m.push(y)}),v(m,E0),C(m,function(y){y[cv]!==RI&&y.dispatchAction(g)}),v(m,EI)}})})}}(),t}(Te),_v=Ol.prototype;_v.on=k0("on"),_v.off=k0("off"),_v.one=function(r,t,e){var n=this;Ie("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var kI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xe(r){Rt("Instance "+r+" has been disposed")}var Bl={},_o={},Sv=[],bv=[],Nl=[],Y0={},wv={},ei={},Fl={},OI=+new Date-0,BI=+new Date-0,xv="_echarts_instance_";function NI(r,t,e){var n=!(e&&e.ssr);if(n){if(!r)throw new Error("Initialize failed: invalid dom.");var i=Tv(r);if(i)return Rt("There is a chart instance already initialized on the dom."),i;pn(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!e||e.width==null)||!r.clientHeight&&(!e||e.height==null))&&Rt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new Ol(r,t,e);return a.id="ec_"+OI++,ei[a.id]=a,n&&rg(r,xv,a.id),W0(a),Qe.trigger("afterinit",a),a}function FI(r){if(F(r)){var t=r;r=null,C(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+BI++,C(t,function(e){e.group=r})}return Fl[r]=!0,r}function Z0(r){Fl[r]=!1}var zI=Z0;function VI(r){V(r)?r=ei[r]:r instanceof Ol||(r=Tv(r)),r instanceof Ol&&!r.isDisposed()&&r.dispose()}function Tv(r){return ei[kT(r,xv)]}function GI(r){return ei[r]}function Cv(r,t){Y0[r]=t}function Av(r){at(bv,r)<0&&bv.push(r)}function Mv(r,t){Dv(Sv,r,t,CI)}function X0(r){zl("afterinit",r)}function $0(r){zl("afterupdate",r)}function zl(r,t){Qe.on(r,t)}function je(r,t,e){G(t)&&(e=t,t="");var n=Y(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!_o[t]&&(W(R0.test(n)&&R0.test(t)),Bl[n]||(Bl[n]={action:e,actionInfo:r}),_o[t]=n)}function q0(r,t){dl.register(r,t)}function HI(r){var t=dl.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function K0(r,t){Dv(Nl,r,t,D0,"layout")}function en(r,t){Dv(Nl,r,t,I0,"visual")}var Q0=[];function Dv(r,t,e,n,i){(G(t)||Y(t))&&(e=t,t=n);{if(isNaN(t)||t==null)throw new Error("Illegal priority");C(r,function(o){W(o.__raw!==e)})}if(!(at(Q0,e)>=0)){Q0.push(e);var a=e0.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Iv(r,t){wv[r]=t}function WI(r){Ie("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),Ld({createCanvas:r})}function j0(r,t,e){var n=M0("registerMap");n&&n(r,t,e)}function UI(r){var t=M0("getMap");return t&&t(r)}var J0=QM;en(hv,CD),en(Rl,AD),en(Rl,MD),en(hv,VD),en(Rl,GD),en(L0,mI),Av(cy),Mv(xI,kM),Iv("default",DD),je({type:zn,event:zn,update:zn},Gt),je({type:Fs,event:Fs,update:Fs},Gt),je({type:Ea,event:Ea,update:Ea},Gt),je({type:zs,event:zs,update:zs},Gt),je({type:ka,event:ka,update:ka},Gt),Cv("light",FD),Cv("dark",l0);var YI={},t_=[],ZI={registerPreprocessor:Av,registerProcessor:Mv,registerPostInit:X0,registerPostUpdate:$0,registerUpdateLifecycle:zl,registerAction:je,registerCoordinateSystem:q0,registerLayout:K0,registerVisual:en,registerTransform:J0,registerLoading:Iv,registerMap:j0,registerImpl:yI,PRIORITY:P0,ComponentModel:lt,ComponentView:Nt,SeriesModel:ie,ChartView:qt,registerComponentModel:function(r){lt.registerClass(r)},registerComponentView:function(r){Nt.registerClass(r)},registerSeriesModel:function(r){ie.registerClass(r)},registerChartView:function(r){qt.registerClass(r)},registerSubTypeDefaulter:function(r,t){lt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){zp(r,t)}};function Qt(r){if(F(r)){C(r,function(t){Qt(t)});return}at(t_,r)>=0||(t_.push(r),G(r)&&(r={install:r}),r.install(ZI))}function So(r){return r==null?0:r.length||1}function e_(r){return r}var Lv=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||e_,this._newKeyGetter=i||e_,this.context=a,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,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=So(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=So(u),v=So(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,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 n=0;n<t.length;n++){var i=t[n],a=e[i],o=So(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=So(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),XI=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 $I(r,t){var e={},n=e.encode={},i=$(),a=[],o=[],s={};C(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){W(Oh.get(d)==null);var p=c.coordDimIndex;Pv(n,d)[p]=v,c.isExtraCoord||(i.set(d,1),KI(c.type)&&(a[0]=v),Pv(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}Oh.each(function(g,m){var y=Pv(n,m),_=c.otherDims[m];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};i.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=N(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new XI(s,t),e}function Pv(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function qI(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function KI(r){return!(r==="ordinal"||r==="time")}var Vl=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}(),QI=mt(),jI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},r_=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=a_(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(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=my(this.source),n=!o_(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=jI[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;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 n_(r){return r instanceof r_}function i_(r){for(var t=$(),e=0;e<(r||[]).length;e++){var n=r[e],i=Y(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function a_(r){var t=QI(r);return t.dimNameMap||(t.dimNameMap=i_(r.dimensionsDefine))}function o_(r){return r>30}var bo=Y,rn=N,JI=typeof Int32Array>"u"?Array:Int32Array,tL="e\0\0",s_=-1,eL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rL=["_approximateExtent"],l_,Gl,wo,Vi,Rv,Hl,Ev,Mr=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;n_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=V(h)?new Vl({name:h}):h instanceof Vl?h:new Vl(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),W(i||v.storeDimIndex>=0),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=$();C(o,function(g){p.set(a[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 n=this._dimIdxToName.get(e);if(n!=null)return n;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 n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(gt(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);if(e==null)throw new Error("Unknown dimension "+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(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof Qh&&(a=t),!a){var o=this.dimensions,s=Uh(t)||Ut(t)?new Sy(t,o.length):t;a=new Qh;var l=rn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=$I(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 n=this._store.appendValues(t,e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&Ev(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Cr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Be;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&wT(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=fe(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=fe(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Ev(this,f);l_(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){bo(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=wo(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return Gl(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.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 n=this,i=this._store;return F(t)?i.getValues(rn(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;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 n=t&&this._invertedIndicesMap[t];if(!n)throw new Error("Do not supported yet");var i=n[e];return i==null||isNaN(i)?s_:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){G(t)&&(n=e,e=t,t=[]);var i=n||this,a=rn(Vi(t),this._getStoreDimIndex,this);this._store.each(a,i?X(e,i):e)},r.prototype.filterSelf=function(t,e,n){G(t)&&(n=e,e=t,t=[]);var i=n||this,a=rn(Vi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?X(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=ot(t);return C(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){G(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=rn(Vi(t),this._getStoreDimIndex,this),s=Hl(this);return s._store=this._store.map(o,a?X(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=this,o=n||i||this;C(Vi(t),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=rn(Vi(t),this._getStoreDimIndex,this);this._store.modify(s,o?X(e,o):e)},r.prototype.downSample=function(t,e,n,i){var a=Hl(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.lttbDownSample=function(t,e){var n=Hl(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new wt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Lv(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Gl(t,n)},function(n){return Gl(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},bo(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():bo(a)&&(a=O({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,bo(e)?O(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){bo(t)?O(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,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;RC(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){C(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:rn(this.dimensions,this._getDimInfo,this),this.hostModel)),Rv(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];G(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Yo(arguments)))})},r.internalField=function(){l_=function(t){var e=t._invertedIndicesMap;C(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new JI(o.categories.length);for(var l=0;l<n.length;l++)n[l]=s_;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},wo=function(t,e,n){return fe(t._getCategory(e,n),null)},Gl=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=wo(t,t._idDimIdx,e)),n==null&&(n=tL+e),n},Vi=function(t){return F(t)||(t=t!=null?[t]:[]),t},Hl=function(t){var e=new r(t._schema?t._schema:rn(t.dimensions,t._getDimInfo,t),t.hostModel);return Rv(e,t),e},Rv=function(t,e){C(eL.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,C(rL,function(n){t[n]=j(e[n])}),t._calculationInfo=O({},e._calculationInfo)},Ev=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=wo(t,a,e)),l==null&&o!=null&&(i[e]=l=wo(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}();function nL(r,t){return kv(r,t).dimensions}function kv(r,t){Uh(r)||(r=Zh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=$(),a=[],o=aL(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&o_(o),l=n===r.dimensionsDefine,u=l?a_(r):i_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=$(f),v=new Ly(o),c=0;c<v.length;c++)v[c]=-1;function d(A){var D=v[A];if(D<0){var M=n[A],I=Y(M)?M:{name:M},L=new Vl,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=a.length;return v[A]=R,L.storeDimIndex=A,a.push(L),L}return a[D]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(A,D){var M=Ot(A).slice();if(M.length===1&&!V(M[0])&&M[0]<0){h.set(D,!1);return}var I=h.set(D,[]);C(M,function(L,P){var R=V(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),D,P))})});var p=0;C(e,function(A){var D,M,I,L;if(V(A))D=A,L={};else{L=A,D=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=O({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(D);if(R!==!1){if(R=Ot(R),!R.length)for(var k=0;k<(M&&M.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}C(R,function(H,B){var z=d(H);if(l&&L.type!=null&&(z.type=L.type),g(st(z,L),D,B),z.name==null&&M){var Z=M[B];!Y(Z)&&(Z={name:Z}),z.name=z.displayName=Z.name,z.defaultTooltip=Z.defaultTooltip}I&&st(z.otherDims,I)})}});function g(A,D,M){Oh.get(D)!=null?A.otherDims[D]=M:(A.coordDim=D,A.coordDimIndex=M,i.set(D,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function w(A){A.name==null&&(A.name=A.coordDim)}if(s)C(a,function(A){w(A)}),a.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var x=d(b),T=x.coordDim;T==null&&(x.coordDim=oL(S,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),w(x),x.type==null&&(Km(r,b)===Ht.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return iL(a),new r_({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function iL(r){for(var t=$(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function aL(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return C(t,function(a){var o;Y(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function oL(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var sL=function(){function r(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return r}();function lL(r){var t=r.get("coordinateSystem"),e=new sL(t),n=uL[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var uL={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ee).models[0],a=r.getReferringComponents("yAxis",ee).models[0];{if(!i)throw new Error('xAxis "'+Se(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Se(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Gi(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Gi(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ee).models[0];if(!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",i),Gi(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ee).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Gi(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Gi(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Gi(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Gi(r){return r.get("type")==="category"}function u_(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;fL(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(C(a,function(y,_){V(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;C(a,function(y){y.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function fL(r){return!n_(r.schema)}function nn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Ov(r,t){return nn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function hL(r,t){var e=r.get("coordinateSystem"),n=dl.get(e),i;return t&&t.coordSysDims&&(i=N(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=qI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function vL(r,t,e){var n,i;return e&&C(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function xo(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Zh(r)):(i=n.getSource(),a=i.sourceFormat===Be);var o=lL(t),s=hL(t,o),l=e.useEncodeDefaulter,u=G(l)?l:l?et(sM,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=kv(i,f),v=vL(h.dimensions,e.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=u_(t,{schema:h,store:c}),p=new Mr(h,t);p.setCalculationInfo(d);var g=v!=null&&cL(i)?function(m,y,_,S){return S===v?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:c,null,g),p}function cL(r){if(r.sourceFormat===Be){var t=dL(r.data||[]);return!F(Ca(t))}}function dL(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var pr=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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[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}();Ms(pr);var pL=0,Bv=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++pL}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&N(n,gL);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,n=this._needCollect;if(!V(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},r}();function gL(r){return Y(r)&&r.value!=null?r.value:r+""}function mL(r){var t=Math.pow(10,xa(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function Nv(r){return r.type==="interval"||r.type==="log"}function yL(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=If(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=f_(o),l=i.niceTickExtent=[At(Math.ceil(r[0]/o)*o,s),At(Math.floor(r[1]/o)*o,s)];return _L(l,r),i}function Fv(r){var t=Math.pow(10,xa(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,At(e*t)}function f_(r){return Xe(r)+2}function h_(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function _L(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),h_(r,0,t),h_(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Wl(r,t){return r>=t[0]&&r<=t[1]}function Ul(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Yl(r,t){return r*(t[1]-t[0])+t[0]}var zv=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Bv({})),F(i)&&(i=new Bv({categories:N(i,function(a){return Y(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:V(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Wl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ul(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Yl(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[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 n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},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}(pr);pr.registerClass(zv);var ri=At,Hi=function(r){E(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 Wl(e,this._extent)},t.prototype.normalize=function(e){return Ul(e,this._extent)},t.prototype.scale=function(e){return Yl(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=f_(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:ri(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=ri(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:ri(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,v=h/e;u<e-1;){var c=ri(l.value+(u+1)*v);c>a[0]&&c<a[1]&&f.push(c),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=Xe(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=ri(e.value,i,!0);return Ih(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=yL(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=ri(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=ri(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(pr);pr.registerClass(Hi);var v_=typeof Float32Array<"u",SL=v_?Float32Array:Array;function Dr(r){return F(r)?v_?new Float32Array(r):r:new SL(r)}var bL="__ec_stack_";function Vv(r){return r.get("stack")||bL+r.seriesIndex}function Gv(r){return r.dim+r.index}function c_(r,t){var e=[];return t.eachSeriesByType(r,function(n){p_(n)&&e.push(n)}),e}function wL(r){var t={};C(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(c,p);t[v]?t[v].push(m):t[v]=[m]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function d_(r){var t=wL(r),e=[];return C(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=ct(n.get("barWidth"),s),p=ct(n.get("barMaxWidth"),s),g=ct(n.get("barMinWidth")||(g_(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Gv(a),stackId:Vv(n)})}),xL(e)}function xL(r){var t={};C(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return C(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=ot(a).length;s=Math.max(35-l*4,15)+"%"}var u=ct(s,o),f=ct(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),C(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,h-=S+f*S,v--}else{var S=c;y&&y<S&&(S=Math.min(y,h)),_&&_>S&&(S=_),S!==c&&(m.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;C(a,function(m,y){m.width||(m.width=c),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;C(a,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function TL(r,t,e){if(r&&t){var n=r[Gv(t)];return n!=null&&e!=null?n[Vv(e)]:n}}function CL(r,t){var e=c_(r,t),n=d_(e);C(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Vv(i),u=n[Gv(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function AL(r){return{seriesType:r,plan:rv(),reset:function(t){if(p_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=nn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=ML(i,a),d=g_(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,b=d&&Dr(w*3),x=d&&l&&Dr(w*3),T=d&&Dr(w),A=n.master.getRect(),D=v?A.width:A.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),R=I.get(s,M),k=c,H=void 0;h&&(H=+P-I.get(o,M));var B=void 0,z=void 0,Z=void 0,it=void 0;if(v){var K=n.dataToPoint([P,R]);if(h){var ut=n.dataToPoint([H,R]);k=ut[0]}B=k,z=K[1]+y,Z=K[0]-k,it=m,Math.abs(Z)<p&&(Z=(Z<0?-1:1)*p)}else{var K=n.dataToPoint([R,P]);if(h){var ut=n.dataToPoint([R,H]);k=ut[1]}B=K[0]+y,z=k,Z=m,it=K[1]-k,Math.abs(it)<p&&(it=(it<=0?-1:1)*p)}d?(b[L]=B,b[L+1]=z,b[L+2]=v?Z:it,x&&(x[L]=v?A.x:B,x[L+1]=v?z:A.y,x[L+2]=D),T[M]=M):S.setItemLayout(M,{x:B,y:z,width:Z,height:it}),L+=3}d&&S.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:v})}}}}}}function p_(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function g_(r){return r.pipelineContext&&r.pipelineContext.large}function ML(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var DL=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},m_=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return to(e.value,Pm[QA(Li(this._minLevelUnit))]||Pm.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return jA(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=OL(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Oe,n[1]+=Oe),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Oe}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Zl.length,l=Math.min(DL(Zl,this._approxInterval,0,s),s-1);this._interval=Zl[l][1],this._minLevelUnit=Zl[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return gt(e)?e:+De(e)},t.prototype.contain=function(e){return Wl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ul(this.parse(e),this._extent)},t.prototype.scale=function(e){return Yl(e,this._extent)},t.type="time",t}(Hi),Zl=[["second",Ch],["minute",Ah],["hour",ja],["quarter-day",ja*6],["half-day",ja*12],["day",Oe*1.2],["half-week",Oe*3.5],["week",Oe*7],["month",Oe*31],["quarter",Oe*95],["half-year",Lm/2],["year",Lm]];function IL(r,t,e,n){var i=De(t),a=De(e),o=function(d){return km(i,d,n)===km(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function LL(r,t){return r/=Oe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function PL(r){var t=30*Oe;return r/=t,r>6?6:r>3?3:r>2?2:1}function RL(r){return r/=ja,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function y_(r,t){return r/=t?Ah:Ch,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function EL(r){return If(r,!0)}function kL(r,t,e){var n=new Date(r);switch(Li(t)){case"year":case"month":n[Om(e)](0);case"day":n[Bm(e)](1);case"hour":n[Nm(e)](0);case"minute":n[Fm(e)](0);case"second":n[zm(e)](0),n[Vm(e)](0)}return n.getTime()}function OL(r,t,e,n){var i=1e4,a=Rm,o=0;function s(D,M,I,L,P,R,k){for(var H=new Date(M),B=M,z=H[L]();B<I&&B<=n[1];)k.push({value:B}),z+=D,H[P](z),B=H.getTime();k.push({value:B,notAdd:!0})}function l(D,M,I){var L=[],P=!M.length;if(!IL(Li(D),n[0],n[1],e)){P&&(M=[{value:kL(new Date(n[0]),D,e)},{value:n[1]}]);for(var R=0;R<M.length-1;R++){var k=M[R].value,H=M[R+1].value;if(k!==H){var B=void 0,z=void 0,Z=void 0,it=!1;switch(D){case"year":B=Math.max(1,Math.round(t/Oe/365)),z=Dh(e),Z=JA(e);break;case"half-year":case"quarter":case"month":B=PL(t),z=Pi(e),Z=Om(e);break;case"week":case"half-week":case"day":B=LL(t),z=ol(e),Z=Bm(e),it=!0;break;case"half-day":case"quarter-day":case"hour":B=RL(t),z=eo(e),Z=Nm(e);break;case"minute":B=y_(t,!0),z=sl(e),Z=Fm(e);break;case"second":B=y_(t,!1),z=ll(e),Z=zm(e);break;case"millisecond":B=EL(t),z=ul(e),Z=Vm(e);break}s(B,k,H,z,Z,it,L),D==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-B})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],f=[],h=0,v=0,c=0;c<a.length&&o++<i;++c){var d=Li(a[c]);if(KA(a[c])){l(a[c],u[u.length-1]||[],f);var p=a[c+1]?Li(a[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(D,M){return D.value-M.value});for(var g=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(g.push(f[m]),y>=n[0]&&y<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===a[c]))break}f=[]}}}o>=i&&Rt("Exceed safe limit.");for(var S=xt(N(u,function(D){return xt(D,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(D){return D.length>0}),w=[],b=S.length-1,c=0;c<S.length;++c)for(var x=S[c],T=0;T<x.length;++T)w.push({value:x[T].value,level:b-c});w.sort(function(D,M){return D.value-M.value});for(var A=[],c=0;c<w.length;++c)(c===0||w[c].value!==w[c-1].value)&&A.push(w[c]);return A}pr.registerClass(m_);var __=pr.prototype,To=Hi.prototype,BL=At,NL=Math.floor,FL=Math.ceil,Xl=Math.pow,Je=Math.log,Hv=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Hi,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=To.getTicks.call(this,e);return N(o,function(s){var l=s.value,u=At(Xl(this.base,l));return u=l===i[0]&&this._fixMin?$l(u,a[0]):u,u=l===i[1]&&this._fixMax?$l(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=Je(this.base);e=Je(Math.max(0,e))/i,n=Je(Math.max(0,n))/i,To.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=__.getExtent.call(this);n[0]=Xl(e,n[0]),n[1]=Xl(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=$l(n[0],a[0])),this._fixMax&&(n[1]=$l(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Je(e[0])/Je(n),e[1]=Je(e[1])/Je(n),__.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=Wp(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[At(FL(n[0]/a)*a),At(NL(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){To.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=Je(e)/Je(this.base),Wl(e,this._extent)},t.prototype.normalize=function(e){return e=Je(e)/Je(this.base),Ul(e,this._extent)},t.prototype.scale=function(e){return e=Yl(e,this._extent),Xl(this.base,e)},t.type="log",t}(pr),S_=Hv.prototype;S_.getMinorTicks=To.getMinorTicks,S_.getLabel=To.getLabel;function $l(r,t){return BL(r,Xe(t))}pr.registerClass(Hv);var zL=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);G(a)?this._modelMinNum=ql(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=ql(t,a));var o=this._modelMaxRaw=e.get("max",!0);if(G(o)?this._modelMaxNum=ql(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=ql(t,o)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=F(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Wr(l[0],1),Wr(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=gn(s)||gn(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){W(!this.frozen),this[GL[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=VL[t];W(!this.frozen&&this[n]==null),this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),VL={min:"_determinedMin",max:"_determinedMax"},GL={min:"_dataMin",max:"_dataMax"};function b_(r,t,e){var n=r.rawExtentInfo;return n||(n=new zL(r,t,e),r.rawExtentInfo=n,n)}function ql(r,t){return t==null?null:gn(t)?NaN:r.parse(t)}function w_(r,t){var e=r.type,n=b_(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=c_("bar",o),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=d_(s),f=HL(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function HL(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=TL(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;C(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;C(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function Wv(r,t){var e=t,n=w_(r,e),i=n.extent,a=e.get("splitNumber");r instanceof Hv&&(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:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function x_(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new zv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new m_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(pr.getClass(t)||Hi)}}function WL(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Co(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):V(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):G(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Uv(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Uv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function UL(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof zv?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=Co(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},v=s(h,f),c=o.getTextRect(v),d=YL(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function YL(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new vt(r.x,r.y,a,o);return s}function Yv(r){var t=r.get("interval");return t??"auto"}function T_(r){return r.type==="category"&&Yv(r.getLabelModel())===0}function C_(r,t){var e={};return C(r.mapDimensionsAll(t),function(n){e[Ov(r,n)]=!0}),ot(e)}function ZL(r,t,e){t&&C(C_(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var A_=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function XL(r){return xo(null,r)}var $L={isDimensionStacked:nn,enableDataStack:u_,getStackedDimension:Ov};function qL(r,t){var e=t;t instanceof wt||(e=new wt(t));var n=x_(e);return n.setExtent(r[0],r[1]),Wv(n,e),n}function KL(r){_e(r,A_)}function QL(r,t){return t=t||{},hr(r,null,null,t.state!=="normal")}var jL=Object.freeze({__proto__:null,createList:XL,getLayoutRect:vr,dataStack:$L,createScale:qL,mixinAxisModelCommonMethods:KL,getECData:ht,createTextStyle:QL,createDimensions:nL,createSymbol:Ke,enableHoverEmphasis:Oa}),JL=1e-8;function M_(r,t){return Math.abs(r-t)<JL}function D_(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=wr(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!M_(i[0],s[0])||!M_(i[1],s[1]))&&(n+=wr(i[0],i[1],s[0],s[1],t,e)),n!==0}var t2=[];function Zv(r,t){for(var e=0;e<r.length;e++)te(r[e],r[e],t)}function I_(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Or(t,t,a),Br(e,e,a))}}function e2(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var L_=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}(),P_=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),R_=function(){function r(t){this.type="linestring",this.points=t}return r}(),r2=function(r){E(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return e2(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return C(o,function(s){s.type==="polygon"?I_(s.exterior,i,a,e):C(s.points,function(l){I_(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new vt(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(D_(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(D_(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new vt(e,n,i,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(Zv(v.exterior,u),C(v.interiors,function(c){Zv(c,u)})):C(v.points,function(c){Zv(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 n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(L_);(function(r){E(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=aa(t2),o=e;o&&!o.isGeoSVGGraphicRoot;)Nr(a,o.getLocalTransform(),a),o=o.parent;return oa(a,a),te(i,i,a),i},t})(L_);function n2(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return C(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=E_(s,o,e);break;case"Polygon":Xv(s,o,e);break;case"MultiLineString":Xv(s,o,e);break;case"MultiPolygon":C(s,function(l,u){return Xv(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Xv(r,t,e){for(var n=0;n<r.length;n++)r[n]=E_(r[n],t[n],e)}function E_(r,t,e){for(var n=[],i=t[0],a=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+=a,i=s,a=l,n.push([s/e,l/e])}return n}function k_(r,t){return r=n2(r),N(xt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new P_(o[0],o.slice(1)));break;case"MultiPolygon":C(i.coordinates,function(l){l[0]&&a.push(new P_(l[0],l.slice(1)))});break;case"LineString":a.push(new R_([i.coordinates]));break;case"MultiLineString":a.push(new R_(i.coordinates))}var s=new r2(n[t||"name"],a,n.cp);return s.properties=n,s})}var i2=Object.freeze({__proto__:null,linearMap:zt,round:At,asc:Ur,getPrecision:Xe,getPrecisionSafe:xs,getPixelPrecision:Mf,getPercentWithPrecision:cT,MAX_SAFE_INTEGER:pT,remRadian:Df,isRadianAroundZero:wa,parseDate:De,quantity:Wp,quantityExponent:xa,nice:If,quantile:mT,reformIntervals:yT,isNumeric:Lf,numericToNumber:Ta}),a2=Object.freeze({__proto__:null,parse:De,format:to}),o2=Object.freeze({__proto__:null,extendShape:vm,extendPath:cm,makePath:Js,makeImage:ph,mergePath:pm,resizePath:gh,createIcon:Xa,updateProps:Bt,initProps:ce,getTransform:Ya,clipPointsByRect:yh,clipRectByRect:ym,registerShape:ke,getShapeClass:dh,Group:_t,Image:Ee,Text:Tt,Circle:Fa,Ellipse:Ws,Sector:Tr,Ring:Ys,Polygon:qr,Polyline:Kr,Rect:bt,Line:fr,BezierCurve:Ga,Arc:Ha,IncrementalDisplayable:fm,CompoundPath:lh,LinearGradient:uh,RadialGradient:um,BoundingRect:vt}),s2=Object.freeze({__proto__:null,addCommas:Ih,toCamelCase:Lh,normalizeCssArray:ro,encodeHTML:se,formatTpl:Eh,getTooltipMarker:Hm,formatTime:eM,capitalFirst:rM,truncateText:og,getTextRect:tM}),l2=Object.freeze({__proto__:null,map:N,each:C,indexOf:at,inherits:Au,reduce:We,filter:xt,bind:X,curry:et,isArray:F,isString:V,isObject:Y,isFunction:G,extend:O,defaults:st,clone:j,merge:tt}),Ao=mt();function u2(r){return r.type==="category"?h2(r):c2(r)}function f2(r,t){return r.type==="category"?v2(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function h2(r){var t=r.getLabelModel(),e=O_(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function O_(r,t){var e=B_(r,"labels"),n=Yv(t),i=N_(e,n);if(i)return i;var a,o;return G(n)?a=V_(r,n):(o=n==="auto"?d2(r):n,a=z_(r,o)),F_(e,n,{labels:a,labelCategoryInterval:o})}function v2(r,t){var e=B_(r,"ticks"),n=Yv(t),i=N_(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),G(n))a=V_(r,n,!0);else if(n==="auto"){var s=O_(r,r.getLabelModel());o=s.labelCategoryInterval,a=N(s.labels,function(l){return l.tickValue})}else o=n,a=z_(r,o,!0);return F_(e,n,{ticks:a,tickCategoryInterval:o})}function c2(r){var t=r.scale.getTicks(),e=Co(r);return{labels:N(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function B_(r,t){return Ao(r)[t]||(Ao(r)[t]=[])}function N_(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function F_(r,t,e){return r.push({key:t,value:e}),e}function d2(r){var t=Ao(r).autoInterval;return t??(Ao(r).autoInterval=r.calculateCategoryInterval())}function p2(r){var t=g2(r),e=Co(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=a[1];l+=s){var d=0,p=0,g=_s(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var m=v/f,y=c/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Ao(r.model),w=r.getExtent(),b=S.lastAutoInterval,x=S.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function g2(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 z_(r,t,e){var n=Co(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=T_(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);c&&d-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function V_(r,t,e){var n=r.scale,i=Co(r),a=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var G_=[0,1],H_=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Mf(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),W_(n,i.count())),zt(t,G_,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),W_(n,i.count()));var a=zt(t,n,G_,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=f2(this,e),i=n.ticks,a=N(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return m2(this,a,o,t.clamp),a},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 n=this.scale.getMinorTicks(e),i=N(n,function(a){return N(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return u2(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(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return p2(this)},r}();function W_(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function m2(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;C(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=At(c),d=At(d),h?c>d:c<d}}function y2(r){var t=lt.extend(r);return lt.registerClass(t),t}function _2(r){var t=Nt.extend(r);return Nt.registerClass(t),t}function S2(r){var t=ie.extend(r);return ie.registerClass(t),t}function b2(r){var t=qt.extend(r);return qt.registerClass(t),t}function U_(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var an=new nt,Mt=new nt,Wt=new nt,on=new nt,gr=new nt,Kl=[],oe=new nt;function w2(r,t){if(t<=180&&t>0){t=t/180*Math.PI,an.fromArray(r[0]),Mt.fromArray(r[1]),Wt.fromArray(r[2]),nt.sub(on,an,Mt),nt.sub(gr,Wt,Mt);var e=on.len(),n=gr.len();if(!(e<.001||n<.001)){on.scale(1/e),gr.scale(1/n);var i=on.dot(gr),a=Math.cos(t);if(a<i){var o=U_(Mt.x,Mt.y,Wt.x,Wt.y,an.x,an.y,Kl,!1);oe.fromArray(Kl),oe.scaleAndAdd(gr,o/Math.tan(Math.PI-t));var s=Wt.x!==Mt.x?(oe.x-Mt.x)/(Wt.x-Mt.x):(oe.y-Mt.y)/(Wt.y-Mt.y);if(isNaN(s))return;s<0?nt.copy(oe,Mt):s>1&&nt.copy(oe,Wt),oe.toArray(r[1])}}}}function x2(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,an.fromArray(r[0]),Mt.fromArray(r[1]),Wt.fromArray(r[2]),nt.sub(on,Mt,an),nt.sub(gr,Wt,Mt);var n=on.len(),i=gr.len();if(!(n<.001||i<.001)){on.scale(1/n),gr.scale(1/i);var a=on.dot(t),o=Math.cos(e);if(a<o){var s=U_(Mt.x,Mt.y,Wt.x,Wt.y,an.x,an.y,Kl,!1);oe.fromArray(Kl);var l=Math.PI/2,u=Math.acos(gr.dot(t)),f=l+u-e;if(f>=l)nt.copy(oe,Wt);else{oe.scaleAndAdd(gr,s/Math.tan(Math.PI/2-f));var h=Wt.x!==Mt.x?(oe.x-Mt.x)/(Wt.x-Mt.x):(oe.y-Mt.y)/(Wt.y-Mt.y);if(isNaN(h))return;h<0?nt.copy(oe,Mt):h>1&&nt.copy(oe,Wt)}oe.toArray(r[1])}}}}function Y_(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function T2(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=qo(n[0],n[1]),a=qo(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=Ko([],n[1],n[0],o/i),l=Ko([],n[1],n[2],o/a),u=Ko([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function C2(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Ns.length;l++){var u=Ns[l],f=t[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:J(i.states[u]&&i.states[u].ignore,s);if(c||!J(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new Kr,r.setTextGuideLine(n),!h&&(s||!o)&&Y_(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Y_(n,!1,u,f)}}if(n){st(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=T2}}function A2(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<he.length;n++){var i=he[n];e[i]=r.getModel([i,t])}return e}function M2(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new $s(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function D2(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(T,A){return T.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var v=r[h],c=v.rect;l=c[t]-s,l<0&&(c[t]-=l,v.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=c[t]+c[e]}f>0&&a&&w(-f/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&b(-m,.8),y<0&&b(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&x(-m),y<0&&x(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[e]}function S(T,A,D){if(T<0){var M=Math.min(A,-T);if(M>0){w(M*D,0,o);var I=M+T;I<0&&b(-I*D,1)}else b(-T*D,1)}}function w(T,A,D){T!==0&&(u=!0);for(var M=A;M<D;M++){var I=r[M],L=I.rect;L[t]+=T,I.label[t]+=T}}function b(T,A){for(var D=[],M=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(P),M+=P}if(M){var R=Math.min(Math.abs(T)/M,A);if(T>0)for(var I=0;I<o-1;I++){var k=D[I]*R;w(k,0,I+1)}else for(var I=o-1;I>0;I--){var k=D[I-1]*R;w(-k,I,o)}}}function x(T){var A=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(A>0?w(D,0,M+1):w(-D,o-M-1,o),T-=D,T<=0)return}return u}function I2(r,t,e,n){return D2(r,"y","height",t,e,n)}function L2(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new vt(0,0,0,0);function n(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 a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,v=!1,c=0;c<t.length;c++){var d=t[c];if(e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new $s(d.localRect,d.transform)),h||(h=new $s(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var $v=Math.sin,qv=Math.cos,Z_=Math.PI,ni=Math.PI*2,P2=180/Z_,X_=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,n,i,a,o){this._add("C",t,e,n,i,a,o)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,a,o){this.ellipse(t,e,n,n,0,i,a,o)},r.prototype.ellipse=function(t,e,n,i,a,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Hr(h-ni)||(f?u>=ni:-u>=ni),c=u>0?u%ni:u%ni+ni,d=!1;v?d=!0:Hr(h)?d=!1:d=c>=Z_==!!f;var p=t+n*qv(o),g=e+i*$v(o);this._start&&this._add("M",p,g);var m=Math.round(a*P2);if(v){var y=1/this._p,_=(f?1:-1)*(ni-y);this._add("A",n,i,m,1,+f,t+n*qv(o+_),e+i*$v(o+_)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var S=t+n*qv(s),w=e+i*$v(s);this._add("A",n,i,m,+d,+f,S,w)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,l,u){for(var f=[],h=this._p,v=1;v<arguments.length;v++){var c=arguments[v];if(isNaN(c)){this._invalid=!0;return}f.push(Math.round(c*h)/h)}this._d.push(t+f.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}(),Mo="none",R2=Math.round;function E2(r){var t=r.fill;return t!=null&&t!==Mo}function k2(r){var t=r.stroke;return t!=null&&t!==Mo}var Kv=["lineCap","miterLimit","lineJoin"],O2=N(Kv,function(r){return"stroke-"+r.toLowerCase()});function B2(r,t,e,n){var i=t.opacity==null?1:t.opacity;if(e instanceof Ee){r("opacity",i);return}if(E2(t)){var a=ga(t.fill);r("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",Mo);if(k2(t)){var s=ga(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,h=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||h)&&r("paint-order",h?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),t.lineDash){var v=ov(e),c=v[0],d=v[1];c&&(d=R2(d||0),r("stroke-dasharray",c.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Mo);for(var p=0;p<Kv.length;p++){var g=Kv[p];if(n||t[g]!==ks[g]){var m=t[g]||ks[g];m&&r(O2[p],m)}}}else n&&r("stroke",Mo)}var $_="http://www.w3.org/2000/svg",q_="http://www.w3.org/1999/xlink",N2="http://www.w3.org/2000/xmlns/",F2="http://www.w3.org/XML/1998/namespace";function K_(r){return document.createElementNS($_,r)}function Ft(r,t,e,n,i){return{tag:r,attrs:e||{},children:n,text:i,key:t}}function z2(r,t){var e=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),e.push(a))}return"<"+r+" "+e.join(" ")+">"}function V2(r){return"</"+r+">"}function Qv(r,t){t=t||{};var e=t.newline?`
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return z2(o,s)+(o!=="style"?se(l):l||"")+(a?""+e+N(a,function(u){return n(u)}).join(e)+e:"")+V2(o)}return n(r)}function G2(r,t,e){e=e||{};var n=e.newline?`
`:"",i=" {"+n,a=n+"}",o=N(ot(r),function(l){return l+i+N(ot(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=N(ot(t),function(l){return"@keyframes "+l+i+N(ot(t[l]),function(u){return u+i+N(ot(t[l][u]),function(f){var h=t[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function jv(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Q_(r,t,e,n){return Ft("svg","root",{width:r,height:t,xmlns:$_,"xmlns:xlink":q_,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var j_={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"},ii="transform-origin";function H2(r,t,e){var n=O({},r.shape);O(n,t),r.buildPath(e,n);var i=new X_;return i.reset(wp(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function W2(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[ii]=e+"px "+n+"px")}var U2={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function J_(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function Y2(r,t,e){var n=r.shape.paths,i={},a,o;if(C(n,function(l){var u=jv(e.zrId);u.animation=!0,Ql(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=ot(f),c=v.length;if(c){o=v[c-1];var d=f[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&&(a=y)}}}),!!a){t.d=!1;var s=J_(i,e);return a.replace(o,s)}}function t1(r){return V(r)?j_[r]?"cubic-bezier("+j_[r]+")":$u(r)?r:"":""}function Ql(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof lh){var s=Y2(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],h=[f.getMaxTime()/1e3+"s"],v=t1(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(y){var _=y[1],S=_.length,w={},b={},x={},T="animation-timing-function";function A(Vt,Dt,Ct){for(var q=Vt.getTracks(),ft=Vt.getMaxTime(),me=0;me<q.length;me++){var It=q[me];if(It.needsAnimate()){var er=It.keyframes,ye=It.propName;if(Ct&&(ye=Ct(ye)),ye)for(var Rr=0;Rr<er.length;Rr++){var ji=er[Rr],rr=Math.round(ji.time/ft*100)+"%",bu=t1(ji.easing),dn=ji.rawValue;(V(dn)||gt(dn))&&(Dt[rr]=Dt[rr]||{},Dt[rr][ye]=ji.rawValue,bu&&(Dt[rr][T]=bu))}}}}for(var D=0;D<S;D++){var M=_[D],I=M.targetName;I?I==="shape"&&A(M,b):!n&&A(M,w)}for(var L in w){var P={};Op(P,r),O(P,w[L]);var R=xp(P),k=w[L][T];x[L]=R?{transform:R}:{},W2(x[L],P),k&&(x[L][T]=k)}var H,B=!0;for(var L in b){x[L]=x[L]||{};var z=!H,k=b[L][T];z&&(H=new Xr);var Z=H.len();H.reset(),x[L].d=H2(r,b[L],H);var it=H.len();if(!z&&Z!==it){B=!1;break}k&&(x[L][T]=k)}if(!B)for(var L in x)delete x[L].d;if(!n)for(var D=0;D<S;D++){var M=_[D],I=M.targetName;I==="style"&&A(M,x,function(q){return U2[q]})}for(var K=ot(x),ut=!0,dt,D=1;D<K.length;D++){var Pt=K[D-1],St=K[D];if(x[Pt][ii]!==x[St][ii]){ut=!1;break}dt=x[Pt][ii]}if(ut&&dt){for(var L in x)x[L][ii]&&delete x[L][ii];t[ii]=dt}if(xt(K,function(Vt){return ot(x[Vt]).length>0}).length){var jt=J_(x,e);return jt+" "+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-"+e.cssClassIdx++;e.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Do=Math.round;function e1(r){return r&&V(r.src)}function r1(r){return r&&G(r.toDataURL)}function Jv(r,t,e,n){B2(function(i,a){var o=i==="fill"||i==="stroke";o&&bp(a)?l1(t,r,i,n):o&&nf(a)?u1(e,r,i,n):r[i]=a},t,e,!1),j2(e,r,n)}function n1(r){return Hr(r[0]-1)&&Hr(r[1])&&Hr(r[2])&&Hr(r[3]-1)}function Z2(r){return Hr(r[4])&&Hr(r[5])}function tc(r,t,e){if(t&&!(Z2(t)&&n1(t))){var n=e?10:1e4;r.transform=n1(t)?"translate("+Do(t[4]*n)/n+" "+Do(t[5]*n)/n+")":Px(t)}}function i1(r,t,e){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(Do(n[a][0]*e)/e),i.push(Do(n[a][1]*e)/e);t.points=i.join(" ")}function a1(r){return!r.smooth}function X2(r){var t=N(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(n[o[1]]=Do(s*i)/i)}}}var $2={circle:[X2(["cx","cy","r"])],polyline:[i1,a1],polygon:[i1,a1]};function q2(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function o1(r,t){var e=r.style,n=r.shape,i=$2[r.type],a={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&wp(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&q2(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;h&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var c=v.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==c||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new X_),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=c,d.__svgPathStrokePercent=l),a.d=p.getStr()}return tc(a,r.transform),Jv(a,e,r,t),t.animation&&Ql(r,a,t),Ft(s,r.id+"",a)}function K2(r,t){var e=r.style,n=e.image;if(n&&!V(n)&&(e1(n)?n=n.src:r1(n)&&(n=n.toDataURL())),!!n){var i=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),tc(l,r.transform),Jv(l,e,r,t),t.animation&&Ql(r,l,t),Ft("image",r.id+"",l)}}function Q2(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var i=e.font||Er,a=e.x||0,o=Ex(e.y||0,Ss(i),e.textBaseline),s=Rx[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Tg(e)){var u="",f=e.fontStyle,h=wg(e.fontSize);if(!parseFloat(h))return;var v=e.fontFamily||Id,c=e.fontWeight;u+="font-size:"+h+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),c&&c!=="normal"&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),tc(l,r.transform),Jv(l,e,r,t),t.animation&&Ql(r,l,t),Ft("text",r.id+"",l,void 0,n)}}function s1(r,t){if(r instanceof pt)return o1(r,t);if(r instanceof Ee)return K2(r,t);if(r instanceof Ra)return Q2(r,t)}function j2(r,t,e){var n=r.style;if(kx(n)){var i=Ox(r),a=e.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,h=n.shadowOffsetY||0,v=n.shadowBlur,c=ga(n.shadowColor),d=c.opacity,p=c.color,g=v/2/l,m=v/2/u,y=g+" "+m;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Ft("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ft("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),a[i]=o}t.filter=hs(o)}}function l1(r,t,e,n){var i=r[e],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(_p(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Sp(i))a="radialGradient",o.cx=J(i.x,.5),o.cy=J(i.y,.5),o.r=J(i.r,.5);else{He("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=rf(s[u].offset)*100+"%",v=s[u].color,c=ga(v),d=c.color,p=c.opacity,g={offset:h};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Ft("stop",u+"",g))}var m=Ft(a,"",o,l),y=Qv(m),_=n.gradientCache,S=_[y];S||(S=n.zrId+"-g"+n.gradientIdx++,_[y]=S,o.id=S,n.defs[S]=Ft(a,S,o,l)),t[e]=hs(S)}function u1(r,t,e,n){var i=r.style[e],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(yp(i)){var v=i.imageWidth,c=i.imageHeight,d=void 0,p=i.image;if(V(p)?d=p:e1(p)?d=p.src:r1(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";W(v,g),W(c,g)}else if(v==null||c==null){var m=function(D,M){if(D){var I=D.elm,L=v||M.width,P=c||M.height;D.tag==="pattern"&&(u?(P=1,L/=a.width):f&&(L=1,P/=a.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},y=Of(d,null,r,function(D){l||m(b,D),m(h,D)});y&&y.width&&y.height&&(v=v||y.width,c=c||y.height)}h=Ft("image","img",{href:d,width:v,height:c}),o.width=v,o.height=c}else i.svgElement&&(h=j(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=xp(i);w&&(o.patternTransform=w);var b=Ft("pattern","",o,[h]),x=Qv(b),T=n.patternCache,A=T[x];A||(A=n.zrId+"-p"+n.patternIdx++,T[x]=A,o.id=A,b=n.defs[A]=Ft("pattern",A,o,[h])),t[e]=hs(A)}}function J2(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Ft("clipPath",a,o,[o1(r,e)])}t["clip-path"]=hs(a)}function f1(r){return document.createTextNode(r)}function ai(r,t,e){r.insertBefore(t,e)}function h1(r,t){r.removeChild(t)}function v1(r,t){r.appendChild(t)}function c1(r){return r.parentNode}function d1(r){return r.nextSibling}function ec(r,t){r.textContent=t}var p1=58,tP=120,eP=Ft("","");function rc(r){return r===void 0}function mr(r){return r!==void 0}function rP(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]!=null&&console.error("Duplicate key "+a),n[a]=i)}return n}function Io(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function Lo(r){var t,e=r.children,n=r.tag;if(mr(n)){var i=r.elm=K_(n);if(nc(eP,r),F(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&v1(i,Lo(a))}else mr(r.text)&&!Y(r.text)&&v1(i,f1(r.text))}else r.elm=f1(r.text);return r.elm}function g1(r,t,e,n,i){for(;n<=i;++n){var a=e[n];a!=null&&ai(r,Lo(a),t)}}function jl(r,t,e,n){for(;e<=n;++e){var i=t[e];if(i!=null)if(mr(i.tag)){var a=c1(i.elm);h1(a,i.elm)}else h1(r,i.elm)}}function nc(r,t){var e,n=t.elm,i=r&&r.attrs||{},a=t.attrs||{};if(i!==a){for(e in a){var o=a[e],s=i[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e.charCodeAt(0)!==tP?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(N2,e,o):e.charCodeAt(3)===p1?n.setAttributeNS(F2,e,o):e.charCodeAt(5)===p1?n.setAttributeNS(q_,e,o):n.setAttribute(e,o))}for(e in i)e in a||n.removeAttribute(e)}}function nP(r,t,e){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],f=e[l],h,v,c,d;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=e[++i]:f==null?f=e[--l]:Io(o,u)?(Wi(o,u),o=t[++n],u=e[++i]):Io(s,f)?(Wi(s,f),s=t[--a],f=e[--l]):Io(o,f)?(Wi(o,f),ai(r,o.elm,d1(s.elm)),o=t[++n],f=e[--l]):Io(s,u)?(Wi(s,u),ai(r,s.elm,o.elm),s=t[--a],u=e[++i]):(rc(h)&&(h=rP(t,n,a)),v=h[u.key],rc(v)?ai(r,Lo(u),o.elm):(c=t[v],c.tag!==u.tag?ai(r,Lo(u),o.elm):(Wi(c,u),t[v]=void 0,ai(r,c.elm,o.elm))),u=e[++i]);(n<=a||i<=l)&&(n>a?(d=e[l+1]==null?null:e[l+1].elm,g1(r,d,e,i,l)):jl(r,t,n,a))}function Wi(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(nc(r,t),rc(t.text)?mr(n)&&mr(i)?n!==i&&nP(e,n,i):mr(i)?(mr(r.text)&&ec(e,""),g1(e,null,i,0,i.length-1)):mr(n)?jl(e,n,0,n.length-1):mr(r.text)&&ec(e,""):r.text!==t.text&&(mr(n)&&jl(e,n,0,n.length-1),ec(e,t.text)))}function iP(r,t){if(Io(r,t))Wi(r,t);else{var e=r.elm,n=c1(e);Lo(t),n!==null&&(ai(n,t.elm,d1(e)),jl(n,[r],0,0))}return t}var aP=0,oP=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=m1("refreshHover"),this.configLayer=m1("configLayer"),this.storage=e,this._opts=n=O({},n),this.root=t,this._id="zr"+aP++,this._oldVNode=Q_(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=K_("svg");nc(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.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",iP(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return s1(t,jv(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=jv(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=sP(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ft("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=N(ot(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(Ft("defs","defs",{},u)),t.animation){var f=G2(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Ft("style","stl",{},[],f);o.push(h)}}return Q_(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},Qv(this.renderToVNode({animation:J(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:J(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,n){for(var i=t.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var h=t[f];if(!h.invisible){var v=h.__clipPaths,c=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(c-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<c;m++){var y={};J2(v[m],y,e);var _=Ft("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=v;var S=s1(h,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),i&&a&&(a.style.display="none",t=Fi(i,0,n),e=Fi(i,1,n),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if(nf(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(),n="data:image/svg+xml;";return t?(e=Nx(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function m1(r){return function(){He('In SVG mode painter not support method "'+r+'"')}}function sP(r,t,e,n){var i;if(e&&e!=="none")if(i=Ft("rect","bg",{width:r,height:t,x:"0",y:"0",id:"0"}),bp(e))l1({fill:e},i.attrs,"fill",n);else if(nf(e))u1({style:{fill:e},dirty:Gt,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",n);else{var a=ga(e),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function lP(r){r.registerPainter("svg",oP)}function y1(r,t,e){var n=_r.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var ic=function(r){E(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||ys,typeof e=="string"?o=y1(e,n,i):Y(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Iu(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}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=y1("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new vt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new vt(0,0,0,0);_.copy(y),o.push(_)}else{for(var S=!1,w=1/0,b=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(y)){var A=new vt(0,0,0,0);A.copy(T),A.union(y),o[x]=A,S=!0;break}else if(l){u.copy(y),u.union(T);var D=y.width*y.height,M=T.width*T.height,I=u.width*u.height,L=I-D-M;L<w&&(w=L,b=x)}}if(l&&(o[b].union(y),S=!0),!S){var _=new vt(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=e[h];if(v){var c=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&be||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&be||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v.shouldBePainted(i,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(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,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(ea(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||av(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else Od(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=sv(o,n,{dirty:function(){v.setUnpainted(),v.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&C(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(Te),_1=1e5,oi=314159,Jl=.01,uP=.001;function fP(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function hP(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 vP=function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=O({},n||{}),this.dpr=n.devicePixelRatio||ys,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Iu(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,v=f.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new ic(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[oi]=c,c.zlevel=oi,s.push(oi),this._domRoot=t}else{this._width=Fi(t,0,n),this._height=Fi(t,1,n);var u=this._domRoot=hP(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),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===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,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(_1)),a||(a=n.ctx,a.save()),ti(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(_1)},r.prototype.paintOne=function(t,e){lv(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Xu(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(oi).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],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||n)&&a.push(u)}for(var f=!0,h=!1,v=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,e,c._width,c._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,w=S&&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 x=t[_];(!x.incremental||!x.notClear||n)&&g.clear(!1,b,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,A=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=!0),i._doPaintEl(R,g,o,L,P,T===g.__endIndex-1),S){var k=Date.now()-w;if(k>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=g.__endIndex;else for(var D=c.dpr,M=0;M<y.length;++M){var I=y[M];m.save(),m.beginPath(),m.rect(I.x*D,I.y*D,I.width*D,I.height*D),m.clip(),A(I),m.restore()}else m.save(),A(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return Q.wxa&&C(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ti(s,t,a,o),t.setPrevPaintRect(l))}else ti(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=oi);var n=this._layers[t];return n||(n=new ic("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?tt(n,this._layerConfig[t],!0):this._layerConfig[t-Jl]&&tt(n,this._layerConfig[t-Jl],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[t]){He("ZLevel "+t+" has been used already");return}if(!fP(e)){He("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[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=this},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+uP,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Jl:0),this._needsManuallyCompositing),f.__builtin__||He("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&be&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,v){!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,C(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Jl){var o=this._layers[a];tt(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(at(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=Fi(a,0,i),e=Fi(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.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(oi).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[oi].dom;var e=new ic("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.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 f=s[l];ti(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function cP(r){r.registerPainter("canvas",vP)}var dP=function(r){E(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){{var n=e.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return xo(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new _t,i=Ke("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=Ke(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*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),n},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}(ie);function ac(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Oi(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Oi(r,t,e[o]));return a.join(" ")}}function S1(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var oc=function(r){E(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=Ke(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=pP,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(){Vn(this.childAt(0))},t.prototype.downplay=function(){Gn(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Bt(v,c,s,n),vh(v)}if(this._updateCommon(e,n,l,i,a),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ce(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Qr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Ml(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var b=e.getItemVisual(n,"style"),x=b.fill;if(s instanceof Ee){var T=s.style;s.useStyle(O({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(O({},b)):s.useStyle(b),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Zn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:x,defaultOpacity:b.opacity});function I(R){return M?e.getName(R):ac(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Hn(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ht(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&qs(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();qs(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return iv(e.getItemVisual(n,"symbolSize"))},t}(_t);function pP(r,t){this.parent.drift(r,t)}function sc(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function b1(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function w1(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:Qr(t),cursorStyle:t.get("cursor")}}var lc=function(){function r(t){this.group=new _t,this._SymbolCtor=t||oc}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=b1(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=w1(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);if(sc(t,v,h,e)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!sc(t,d,h,e)){n.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)n.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):Bt(c,m,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=w1(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=b1(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(sc(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){qa(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}();function x1(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=gP(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=N(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return nn(t,h[0])&&(v=!0,h[0]=c),nn(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function gP(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:gt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function T1(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function mP(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function yP(r,t,e,n,i,a,o,s){for(var l=mP(r,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=x1(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,b=void 0,x=void 0;switch(S.cmd){case"=":b=S.idx*2,x=S.idx1*2;var T=m[b],A=m[b+1],D=y[x],M=y[x+1];(isNaN(T)||isNaN(A))&&(T=D,A=M),u.push(T,A),f.push(D,M),h.push(e[b],e[b+1]),v.push(n[x],n[x+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);x=I*2,u.push(P[0],P[1]),f.push(y[x],y[x+1]);var R=T1(g,i,t,I);h.push(R[0],R[1]),v.push(n[x],n[x+1]),p.push(t.getRawIndex(I));break;case"-":w=!1}w&&(c.push(S),d.push(d.length))}d.sort(function(Pt,St){return p[Pt]-p[St]});for(var k=u.length,H=Dr(k),B=Dr(k),z=Dr(k),Z=Dr(k),it=[],_=0;_<d.length;_++){var K=d[_],ut=_*2,dt=K*2;H[ut]=u[dt],H[ut+1]=u[dt+1],B[ut]=f[dt],B[ut+1]=f[dt+1],z[ut]=h[dt],z[ut+1]=h[dt+1],Z[ut]=v[dt],Z[ut+1]=v[dt+1],it[_]=c[K]}return{current:H,next:B,stackedOnCurrent:z,stackedOnNext:Z,status:it}}var sn=Math.min,ln=Math.max;function si(r,t){return isNaN(r)||isNaN(t)}function uc(r,t,e,n,i,a,o,s,l){for(var u,f,h,v,c,d,p=e,g=0;g<n;g++){var m=t[p*2],y=t[p*2+1];if(p>=i||p<0)break;if(si(m,y)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](m,y),h=m,v=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var w=p+a,b=t[w*2],x=t[w*2+1];b===m&&x===y&&g<n;)g++,w+=a,p+=a,b=t[w*2],x=t[w*2+1],m=t[p*2],y=t[p*2+1],_=m-u,S=y-f;var T=g+1;if(l)for(;si(b,x)&&T<n;)T++,w+=a,b=t[w*2],x=t[w*2+1];var A=.5,D=0,M=0,I=void 0,L=void 0;if(T>=n||si(b,x))c=m,d=y;else{D=b-u,M=x-f;var P=m-u,R=b-m,k=y-f,H=x-y,B=void 0,z=void 0;if(s==="x"){B=Math.abs(P),z=Math.abs(R);var Z=D>0?1:-1;c=m-Z*B*o,d=y,I=m+Z*z*o,L=y}else if(s==="y"){B=Math.abs(k),z=Math.abs(H);var it=M>0?1:-1;c=m,d=y-it*B*o,I=m,L=y+it*z*o}else B=Math.sqrt(P*P+k*k),z=Math.sqrt(R*R+H*H),A=z/(z+B),c=m-D*o*(1-A),d=y-M*o*(1-A),I=m+D*o*A,L=y+M*o*A,I=sn(I,ln(b,m)),L=sn(L,ln(x,y)),I=ln(I,sn(b,m)),L=ln(L,sn(x,y)),D=I-m,M=L-y,c=m-D*B/z,d=y-M*B/z,c=sn(c,ln(u,m)),d=sn(d,ln(f,y)),c=ln(c,sn(u,m)),d=ln(d,sn(f,y)),D=m-c,M=y-d,I=m+D*z/B,L=y+M*z/B}r.bezierCurveTo(h,v,c,d,m,y),h=I,v=L}else r.lineTo(m,y)}u=m,f=y,p+=a}return g}var C1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),_P=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new C1},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&si(i[o*2-2],i[o*2-1]);o--);for(;a<o&&si(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=uc(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Xr.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=u?(e-s)/(c-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[e,S]:[S,e]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],p=a[h++],g=a[h++],m=a[h++],y=a[h++];var w=u?as(s,c,p,m,e,f):as(l,d,g,y,e,f);if(w>0)for(var b=0;b<w;b++){var x=f[b];if(x<=1&&x>=0){var S=u?kt(l,d,g,y,x):kt(s,c,p,m,x);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(pt),SP=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(C1),bP=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new SP},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&si(i[s*2-2],i[s*2-1]);s--);for(;o<s&&si(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=uc(e,i,o,s,s,1,n.smooth,l,n.connectNulls);uc(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(pt);function A1(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new bt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=G(i)?function(g){i(g,h)}:null;ce(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return h}function M1(r,t,e){var n=r.getArea(),i=At(n.r0,1),a=At(n.r,1),o=new Tr({shape:{cx:At(r.cx,1),cy:At(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,ce(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function wP(r,t,e,n,i){if(r){if(r.type==="polar")return M1(r,t,e);if(r.type==="cartesian2d")return A1(r,t,e,n,i)}else return null;return null}function Ui(r,t){return r.type===t}function D1(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function I1(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function L1(r,t){var e=I1(r),n=e[0],i=e[1],a=I1(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function P1(r){return gt(r)?r:r?.5:0}function xP(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=Dr(n*2),a=0;a<n;a++){var o=T1(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function un(r,t,e,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var v=(u[a]+f[a])/2,c=[];l[a]=c[a]=v,l[1-a]=u[1-a],c[1-a]=f[1-a],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function TP(r,t){var e=[],n=r.length,i,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=tf(d,[f.color,h.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,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),a=l}return e}function CP(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(t.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=N(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=TP(u,i==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,m=g-p;if(m<.001)return"transparent";C(v,function(_){_.offset=(_.coord-p)/m}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var y=new uh(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}function AP(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&MP(a,t))){var o=t.mapDimension(a.dim),s={};return C(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function MP(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(oc.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function DP(r,t){return isNaN(r)||isNaN(t)}function IP(r){for(var t=r.length/2;t>0&&DP(r[t*2-2],r[t*2-1]);t--);return t-1}function R1(r,t){return[r[t*2],r[t*2+1]]}function LP(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function E1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<he.length;t++)if(r.get([he[t],"endLabel","show"]))return!0;return!1}function fc(r,t,e,n){if(Ui(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=E1(n)?function(c,d){r._endLabelOnDuring(c,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=A1(t,e,n,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),M1(t,e,n)}function PP(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var RP=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new lc;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],v=o.type==="polar",c=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&e.isAnimationEnabled(),_=!f.isEmpty(),S=f.get("origin"),w=x1(o,l,S),b=_&&xP(o,l,w),x=e.get("showSymbol"),T=e.get("connectNulls"),A=x&&!v&&AP(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(St,jt){St.__temp&&(s.remove(St),D.setItemGraphicEl(jt,null))}),x||d.remove(),s.add(m);var M=v?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=CP(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&c.type===o.type&&M===this._step))x&&d.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(St){return[h[St*2],h[St*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,I),M&&(h=un(h,o,M,T),b&&(b=un(b,o,M,T))),p=this._newPolyline(h),_?g=this._newPolygon(h,b):g&&(m.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Xn(L)),m.setClipPath(fc(this,o,!0,e));else{_&&!g?g=this._newPolygon(h,b):g&&!_&&(m.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Xn(L));var P=m.getClipPath();if(P){var R=fc(this,o,!1,e);ce(P,{shape:R.shape},e)}else m.setClipPath(fc(this,o,!0,e));x&&d.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(St){return[h[St*2],h[St*2+1]]}}),(!D1(this._stackedOnPoints,b)||!D1(this._points,h))&&(y?this._doUpdateAnimation(l,b,o,i,M,S,T):(M&&(h=un(h,o,M,T),b&&(b=un(b,o,M,T))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:b})))}var k=e.getModel("emphasis"),H=k.get("focus"),B=k.get("blurScope"),z=k.get("disabled");if(p.useStyle(st(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Ba(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Z=p.getState("emphasis").style;Z.lineWidth=+p.style.lineWidth+1}ht(p).seriesIndex=e.seriesIndex,Hn(p,H,B,z);var it=P1(e.get("smooth")),K=e.get("smoothMonotone");if(p.setShape({smooth:it,smoothMonotone:K,connectNulls:T}),g){var ut=l.getCalculationInfo("stackedOnSeries"),dt=0;g.useStyle(st(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ut&&(dt=P1(ut.get("smooth"))),g.setShape({smooth:it,stackedOnSmooth:dt,smoothMonotone:K,connectNulls:T}),Ba(g,e,"areaStyle"),ht(g).seriesIndex=e.seriesIndex,Hn(g,H,B,z)}var Pt=function(St){a._changePolyState(St)};l.eachItemGraphicEl(function(St){St&&(St.onHoverStateChange=Pt)}),this._polyline.onHoverStateChange=Pt,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=h,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){ht(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Dn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=e.get("zlevel")||0,c=e.get("z")||0;u=new oc(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,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 qt.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Dn(o,a);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 qt.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;zg(this._polyline,e),n&&zg(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _P({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new bP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");G(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=G(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 S=i,w=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-w[1]/180*Math.PI):(m=S.r0,y=S.r,_=w[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,_=c.x):(m=b.y+b.height,y=b.y,_=c.y)}var x=y===m?0:(_-m)/(y-m);l&&(x=1-x);var T=G(h)?h(d):f*x+v,A=p.getSymbolPath(),D=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(E1(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 Tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=IP(l);f>=0&&(Zn(s,Qr(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?S1(o,c):ac(o,h)},enableTextSetter:!0},PP(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,w=(m?p:0)*(y?-1:1),b=(m?0:-p)*(y?-1:1),x=m?"x":"y",T=LP(h,S,x),A=T.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!c){var I=R1(h,A[0]);u.attr({x:I[0]+w,y:I[1]+b}),o&&(M=v.getRawValue(A[0]))}else{var I=f.getPointOn(S,x);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=v.getRawValue(A[0]),P=v.getRawValue(A[1]);o&&(M=BT(i,d,L,P,T.t))}a.lastFrameIndex=A[0]}else{var R=e===1||a.lastFrameIndex>0?A[0]:0,I=R1(h,R);o&&(M=v.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+b})}if(o){var k=el(u);typeof k.setLabelText=="function"&&k.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=yP(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(c=un(v.current,i,o,l),d=un(v.stackedOnCurrent,i,o,l),p=un(v.next,i,o,l),g=un(v.stackedOnNext,i,o,l)),L1(c,p)>3e3||f&&L1(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var m={shape:{points:p}};v.current!==c&&(m.shape.__points=v.next),u.stopAnimation(),Bt(u,m,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Bt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&y.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;T<y.length;T++){var A=y[T].el,D=y[T].ptIdx*2;A.x=x[D],A.y=x[D+1],A.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(qt);function hc(r,t){return{seriesType:r,plan:rv(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var s=N(i.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");nn(n,s[0])&&(s[0]=u),nn(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(c,d){for(var p=c.end-c.start,g=o&&Dr(p*l),m=[],y=[],_=c.start,S=0;_<c.end;_++){var w=void 0;if(l===1){var b=f.get(h,_);w=i.dataToPoint(b,null,y)}else m[0]=f.get(h,_),m[1]=f.get(v,_),w=i.dataToPoint(m,null,y);o?(g[S++]=w[0],g[S++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",g)}}}}}}var EP={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],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]}},kP=function(r){return Math.round(r.length/2)};function k1(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var d=void 0;V(a)?d=EP[a]:G(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,kP))}}}}}function OP(r){r.registerChartView(RP),r.registerSeriesModel(dP),r.registerLayout(hc("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,k1("line"))}var vc=function(r){E(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,n){return xo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)C(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=o[c],g=n[c]==="x1"||n[c]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,_=1,S=0;S<d.length;S++){var w=d[S].coord,b=S===d.length-1?d[S-1].tickValue+_:d[S].tickValue;if(b===p){y=w;break}else if(b<p)m=w;else if(m!=null&&b>p){y=(w+m)/2;break}S===1&&(_=b-d[0].tickValue)}y==null&&(m?m&&(y=d[d.length-1].coord):y=d[0].coord),s[c]=v.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/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}(ie);ie.registerClass(vc);var BP=function(r){E(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 xo(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"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=rl(vc.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}(vc),NP=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}(),O1=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new NP},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(h),y=Math.sin(h);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,h,!v),e.arc(m*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(i,a,o,h,f,v)},t}(pt);function FP(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return bs(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=e?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,w=f+v*_(p),b=h+v*S(p),x="left",T="top";switch(s){case"startArc":w=f+(c-l)*_(m),b=h+(c-l)*S(m),x="center",T="top";break;case"insideStartArc":w=f+(c+l)*_(m),b=h+(c+l)*S(m),x="center",T="bottom";break;case"startAngle":w=f+d*_(p)+tu(p,l+y,!1),b=h+d*S(p)+eu(p,l+y,!1),x="right",T="middle";break;case"insideStartAngle":w=f+d*_(p)+tu(p,-l+y,!1),b=h+d*S(p)+eu(p,-l+y,!1),x="left",T="middle";break;case"middle":w=f+d*_(m),b=h+d*S(m),x="center",T="middle";break;case"endArc":w=f+(v+l)*_(m),b=h+(v+l)*S(m),x="center",T="bottom";break;case"insideEndArc":w=f+(v-l)*_(m),b=h+(v-l)*S(m),x="center",T="top";break;case"endAngle":w=f+d*_(g)+tu(g,l+y,!0),b=h+d*S(g)+eu(g,l+y,!0),x="left",T="middle";break;case"insideEndAngle":w=f+d*_(g)+tu(g,-l+y,!0),b=h+d*S(g)+eu(g,-l+y,!0),x="right",T="middle";break;default:return bs(n,i,a)}return n=n||{},n.x=w,n.y=b,n.align=x,n.verticalAlign=T,n}}function zP(r,t,e,n){if(gt(n)){r.setTextConfig({rotation:n});return}else if(F(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+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=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function tu(r,t,e){return t*Math.sin(r)*(e?-1:1)}function eu(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Po(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:N(n,function(a){return Wr(a,i)})}}var cc=Math.max,dc=Math.min;function VP(r,t){var e=r.getArea&&r.getArea();if(Ui(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var GP=function(r){E(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,n,i,a){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,n,i):this._renderNormal(e,n,i,a)):Rt("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){qa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=e.isAnimationEnabled()?e:null,c=HP(e,u);c&&this._enableRealtimeSort(c,s,i);var d=e.get("clip",!0)||c,p=VP(u,s);o.removeClipPath();var g=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],w=this._backgroundEls,b=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T(M){var I=ru[u.type](s,M),L=qP(u,h,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=ru[u.type](s,M,I);if(m&&T(M),!(!s.hasValue(M)||!V1[u.type](L))){var P=!1;d&&(P=B1[u.type](p,L));var R=N1[u.type](e,s,M,L,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),H1(R,s,M,I,L,e,h,u.type==="polar"),b?R.attr({shape:L}):c?F1(c,v,R,L,M,h,!1,!1):ce(R,{shape:L},e,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=ru[u.type](s,M,L);if(m){var R=void 0;w.length===0?R=T(I):(R=w[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[M]=R);var k=ru[u.type](s,M),H=Z1(h,k,u);Bt(R,{shape:H},v,M)}var B=l.getItemGraphicEl(I);if(!s.hasValue(M)||!V1[u.type](P)){o.remove(B);return}var z=!1;if(d&&(z=B1[u.type](p,P),z&&o.remove(B)),B?vh(B):B=N1[u.type](e,s,M,P,h,v,f.model,!!B,g),c&&(B.forceLabelAnimation=!0),x){var Z=B.getTextContent();if(Z){var it=el(Z);it.prevValue!=null&&(it.prevValue=it.value)}}else H1(B,s,M,L,P,e,h,u.type==="polar");b?B.attr({shape:P}):c?F1(c,v,B,P,M,h,!0,x):Bt(B,{shape:P},e,M,null),s.setItemGraphicEl(M,B),B.ignore=z,o.add(B)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&Ks(I,e,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new _t);A.removeAll();for(var D=0;D<S.length;++D)A.add(S[D]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),U1(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),U1(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&wP(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:N(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ks(a,e,ht(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(qt),B1={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=cc(t.x,r.x),s=dc(t.x+t.width,i),l=cc(t.y,r.y),u=dc(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=dc(t.r,r.r),a=cc(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},N1={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new bt({shape:O({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?O1:Tr,f=new u({shape:n,z2:1});f.name="item";var h=G1(i);if(f.calculateTextPosition=FP(h,{isRoundCap:u===O1}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?Bt:ce)(f,{shape:d},a)}return f}};function HP(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&(n.type!=="category"&&Rt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Rt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function F1(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Bt:ce)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Bt:ce)(e,{shape:u},f,i)}function z1(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var WP=["x","y","width","height"],UP=["cx","cy","r","startAngle","endAngle"],V1={cartesian2d:function(r){return!z1(r,WP)},polar:function(r){return!z1(r,UP)}},ru={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?ZP(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function YP(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function G1(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function H1(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Po(n.getModel("itemStyle"),f,!0);O(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);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=Qr(n);Zn(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:ac(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,zP(r,g==="outside"?c:g,G1(o),n.get(["label","rotate"]))}OA(p,d,a.getRawValue(e),function(y){return S1(t,y)});var m=n.getModel(["emphasis"]);Hn(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Ba(r,n),YP(i)&&(r.style.fill="none",r.style.stroke="none",C(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function ZP(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var XP=function(){function r(){}return r}(),W1=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new XP},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(pt);function U1(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new W1({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new W1({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),ht(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",Y1),h.on("mousemove",Y1)),e&&e.push(h)}var Y1=_l(function(r){var t=this,e=$P(t,r.offsetX,r.offsetY);ht(t).dataIndex=e>=0?e:null},30,!1);function $P(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+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[f]}return-1}function Z1(r,t,e){if(Ui(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function qP(r,t,e){var n=r.type==="polar"?Tr:bt;return new n({shape:Z1(t,e,r),silent:!0,z2:0})}function KP(r){r.registerChartView(GP),r.registerSeriesModel(BP),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(CL,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AL("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,k1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var nu=Math.PI*2,X1=Math.PI/180;function $1(r,t){return vr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function q1(r,t){var e=$1(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]);var a=ct(e.width,t.getWidth()),o=ct(e.height,t.getHeight()),s=Math.min(a,o),l=ct(i[0],s/2),u=ct(i[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else F(n)||(n=[n,n]),f=ct(n[0],a)+e.x,h=ct(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function QP(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=$1(n,e),s=q1(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*X1,c=n.get("minAngle")*X1,d=0;i.each(a,function(D){!isNaN(D)&&d++});var p=i.getSum(a),g=Math.PI/(p||d)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var w=nu,b=0,x=v,T=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(D,M){var I;if(isNaN(D)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:h,r:y?NaN:f});return}y!=="area"?I=p===0&&_?g:D*g:I=nu/d,I<c?(I=c,w-=c):b+=D;var L=x+T*I;i.setItemLayout(M,{angle:I,startAngle:x,endAngle:L,clockwise:m,cx:l,cy:u,r0:h,r:y?zt(D,S,[h,f]):f}),x=L}),w<nu&&d)if(w<=.001){var A=nu/d;i.each(a,function(D,M){if(!isNaN(D)){var I=i.getItemLayout(M);I.angle=A,I.startAngle=v+T*M*A,I.endAngle=v+T*(M+1)*A}})}else g=w/b,x=v,i.each(a,function(D,M){if(!isNaN(D)){var I=i.getItemLayout(M),L=I.angle===c?c:D*g;I.startAngle=x,I.endAngle=x+T*L,x+=T*L}})})}function jP(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var JP=Math.PI/180;function K1(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-e),w=n+_.len,b=w*w,x=Math.sqrt((1-Math.abs(S*S/m))*b),T=t+(x+_.len2)*i,A=T-_.label.x,D=_.targetTextWidth-A*i;Q1(_,D,!0),_.label.x=T}}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],S=_.label.y>e?m:g,w=Math.abs(_.label.y-e);if(w>=S.maxY){var b=_.label.x-t-_.len2*i,x=n+_.len,T=Math.abs(b)<x?Math.sqrt(w*w/(1-b*b/x/x)):x;S.rB=T,S.maxY=w}S.list.push(_)}f(g),f(m)}for(var v=r.length,c=0;c<v;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}I2(r,l,l+o)&&h(r)}function tR(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var c=r[v].label;pc(r[v])||(c.x<t?(f=Math.min(f,c.x),l.push(r[v])):(h=Math.max(h,c.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!pc(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=f-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,Q1(d,g)}}K1(u,t,e,n,1,i,a,o,s,h),K1(l,t,e,n,-1,i,a,o,s,f);for(var v=0;v<r.length;v++){var d=r[v];if(!pc(d)&&d.linePoints){var c=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,S=c.style.backgroundColor?0:_,w=d.rect.width+S,b=p[1][0]-p[2][0];m?c.x<t?p[2][0]=o+d.edgeDistance+w+d.labelDistance:p[2][0]=o+i-d.edgeDistance-w-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 Q1(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=t-l,d=t<f?c:e?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-h)/2}}}function pc(r){return r.position==="center"}function eR(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*JP,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var x in b.states)if(b.states[x].ignore===!1)return!0;return!1}t.each(function(b){var x=t.getItemGraphicEl(b),T=x.shape,A=x.getTextContent(),D=x.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=ct(I.get("edgeDistance"),u),H=I.get("bleedMargin"),B=M.getModel("labelLine"),z=B.get("length");z=ct(z,u);var Z=B.get("length2");if(Z=ct(Z,u),Math.abs(T.endAngle-T.startAngle)<o){C(A.states,c),A.ignore=!0,D&&(C(D.states,c),D.ignore=!0);return}if(d(A)){var it=(T.startAngle+T.endAngle)/2,K=Math.cos(it),ut=Math.sin(it),dt,Pt,St,jt;n=T.cx,i=T.cy;var Vt=L==="inside"||L==="inner";if(L==="center")dt=T.cx,Pt=T.cy,jt="center";else{var Dt=(Vt?(T.r+T.r0)/2*K:T.r*K)+n,Ct=(Vt?(T.r+T.r0)/2*ut:T.r*ut)+i;if(dt=Dt+K*3,Pt=Ct+ut*3,!Vt){var q=Dt+K*(z+l-T.r),ft=Ct+ut*(z+l-T.r),me=q+(K<0?-1:1)*Z,It=ft;R==="edge"?dt=K<0?f+k:f+u-k:dt=me+(K<0?-P:P),Pt=It,St=[[Dt,Ct],[q,ft],[me,It]]}jt=Vt?"center":R==="edge"?K>0?"right":"left":K>0?"left":"right"}var er=Math.PI,ye=0,Rr=I.get("rotate");if(gt(Rr))ye=Rr*(er/180);else if(L==="center")ye=0;else if(Rr==="radial"||Rr===!0){var ji=K<0?-it+er:-it;ye=ji}else if(Rr==="tangential"&&L!=="outside"&&L!=="outer"){var rr=Math.atan2(K,ut);rr<0&&(rr=er*2+rr);var bu=ut>0;bu&&(rr=er+rr),ye=rr-er}if(a=!!ye,A.x=dt,A.y=Pt,A.rotation=ye,A.setStyle({verticalAlign:"middle"}),Vt){A.setStyle({align:jt});var Md=A.states.select;Md&&(Md.x+=A.x,Md.y+=A.y)}else{var dn=A.getBoundingRect().clone();dn.applyTransform(A.getComputedTransform());var cw=(A.style.margin||0)+2.1;dn.y-=cw/2,dn.height+=cw,e.push({label:A,labelLine:D,position:L,len:z,len2:Z,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new nt(K,ut),linePoints:St,textAlign:jt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:H,rect:dn,unconstrainedWidth:dn.width,labelStyleWidth:A.style.width})}x.setTextConfig({inside:Vt})}}),!a&&r.get("avoidLabelOverlap")&&tR(e,n,i,l,u,v,f,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}),_&&(C(m.states,c),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var w=g.linePoints;_||!w?(C(y.states,c),y.ignore=!0):(w2(w,g.minTurnAngle),x2(w,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new nt(w[0][0],w[0][1])})}}}var rR=function(r){E(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Tt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=O(Po(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(ce(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,ce(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),ce(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Bt(o,{shape:{endAngle:f.endAngle}},s,n))}else vh(o),Bt(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),Ba(o,l);var c=(f.startAngle+f.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,n),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Po(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:p,y:g,shape:Po(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:Po(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&O(y.ensureState("select"),{x:p,y:g}),O(_.ensureState("select"),{x:p,y:g}),Hn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Zn(a,Qr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Kr,this.setTextGuideLine(c)),C2(this,A2(o),{stroke:u,opacity:kr(s.get(["lineStyle","opacity"]),f,1)})}},t}(Tr),nR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=new Tr({shape:q1(e,i)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(c){var d=new rR(o,c,u);o.setItemGraphicEl(c,d),l.add(d)}).update(function(c,d){var p=s.getItemGraphicEl(d);p.updateData(o,c,u),p.off("click"),l.add(p),o.setItemGraphicEl(c,p)}).remove(function(c){var d=s.getItemGraphicEl(c);Ks(d,e,c)}).execute(),eR(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(qt);function iR(r,t,e){t=F(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=kv(n,t).dimensions,a=new Mr(i,r);return a.initData(n,e),a}var aR=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 n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),oR=mt(),sR=function(r){E(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 aR(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return iR(this,{coordDimensions:["value"],encodeDefaulter:et(lM,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=oR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Hp(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){As(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.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,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}(ie);function lR(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(gt(o)&&!isNaN(o)&&o<0)})}}}function uR(r){r.registerChartView(nR),r.registerSeriesModel(sR),WD("pie",r.registerAction),r.registerLayout(et(QP,"pie")),r.registerProcessor(jP("pie")),r.registerProcessor(lR("pie"))}var fR=function(r){E(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,n){return xo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,i){return i.point(n.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}(ie),j1=4,hR=function(){function r(){}return r}(),vR=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new hR},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]<j1,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var v=i[h++],c=i[h++];isNaN(v)||isNaN(c)||f&&!f.contain(v,c)||(s.x=v-a[0]/2,s.y=c-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,i=e.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.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,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,h=a[f]-s/2,v=a[f+1]-l/2;if(e>=h&&n>=v&&e<=h+s&&n<=v+l)return u}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v<i.length;){var c=i[v++],d=i[v++];l=Math.min(c,l),f=Math.max(c,f),u=Math.min(d,u),h=Math.max(d,h)}e=this._rect=new vt(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(pt),cR=function(){function r(){this.group=new _t}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;e=new Float32Array(e.buffer,a,i)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],a=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,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:a}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new vR({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=Ke(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<j1;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=ht(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(f){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}(),dR=function(r){E(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,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=hc("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new cR:new lc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(qt),pR=function(r){E(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}(lt),gc=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ee).models[0]},t.type="cartesian2dAxis",t}(lt);_e(gc,A_);var J1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gR=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},J1),mc=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}}},J1),mR=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mc),yR=st({logBase:10},mc),_R={category:gR,value:mc,time:mR,log:yR},SR={value:1,category:1,time:1,log:1};function tS(r,t,e,n){C(SR,function(i,a){var o=tt(tt({},_R[a],!0),n,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=no(this),c=v?io(f):{},d=h.getTheme();tt(f,d.get(a+"Axis")),tt(f,this.getDefaultOption()),f.type=eS(f),v&&$n(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Bv.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",eS)}function eS(r){return r.type||(r.data?"category":"value")}var bR=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 N(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xt(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}(),yc=["x","y"];function rS(r){return r.type==="interval"||r.type==="time"}var wR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=yc,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!rS(e)||!rS(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=oa([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.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,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new vt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return te(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return te(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new vt(i,a,o,s)},t}(bR),xR=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(H_);function _c(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={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[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Se(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function nS(r){return r.get("coordinateSystem")==="cartesian2d"}function iS(r){var t={xAxisModel:null,yAxisModel:null};return C(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ee).models[0];if(!a)throw new Error(i+' "'+kr(r.get(i+"Index"),r.get(i+"Id"),0)+'" not found');t[n]=a}),t}var Sc=Math.log;function TR(r,t,e){var n=Hi.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=w_(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=Sc(r.base);u=[Sc(u[0])/v,Sc(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=n.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Fv(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Fv(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Fv(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=At(g-y),p<0&&u[0]>=0?(p=0,g=At(y)):g>0&&u[1]<=0&&(g=0,p=-At(y))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d);{var w=n.getTicks.call(r);w[1]&&(!mL(d)||xs(w[1].value)>xs(d))&&Rt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var CR=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yc,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=ot(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;Nv(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(Wv(p,d),Nv(p)&&(s=c))}f.length&&(s||(s=f.pop(),Wv(s.scale,s.model)),C(f,function(g){TR(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};C(n.x,function(o){aS(n,"y",o,a)}),C(n.y,function(o){aS(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=vr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=UL(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),AR(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ee).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",ee).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,at(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.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,n){var i=this,a=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,C(s.x,function(f,h){C(s.y,function(v,c){var d="x"+h+"y"+c,p=new wR(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(h,v){if(bc(h,t)){var c=h.get("position");f==="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 xR(f,x_(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=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){C(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(nS(i)){var a=iS(i),o=a.xAxisModel,s=a.yAxisModel;if(!bc(o,e)||!bc(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){C(C_(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return C(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);at(e,a)<0&&e.push(a),at(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(nS(i)){var a=iS(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();{if(!l)throw new Error('Grid "'+kr(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=yc,r}();function bc(r,t){return r.getCoordSysModel()===t}function aS(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)oS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&oS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function oS(r){return r&&r.type!=="category"&&r.type!=="time"&&WL(r)}function AR(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var fn=Math.PI,hn=function(){function r(t,e){this.group=new _t,this.opt=e,this.axisModel=t,st(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _t({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!sS[t]},r.prototype.add=function(t){sS[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=Df(e-t),a,o;return wa(i)?(o=n>0?"top":"bottom",a="center"):wa(i-fn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<fn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,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}(),sS={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(te(s,s,o),te(l,l,o));var f=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new fr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ua(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);V(v)&&(v=[v,v]),(V(c)||gt(c))&&(c=[c,c]);var d=Ml(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];C([{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(v[y]!=="none"&&v[y]!=null){var _=Ke(v[y],-p/2,-g/2,p,g,f.stroke,!0),S=m.r+m.offset,w=u?l:s;_.attr({rotation:m.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=IR(e,n,t,r),a=PR(e,n,t,r);if(DR(t,a,i),LR(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=M2(N(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));L2(o)}},axisName:function(r,t,e,n){var i=Se(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,uS(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*fn/180);var d;uS(a)?v=hn.innerTextLayout(r.rotation,c??r.rotation,o):(v=MR(r.rotation,a,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Se(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Tt({x:h[0],y:h[1],rotation:v.rotation,silent:hn.isLabelSilent(t),style:hr(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if($a({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=hn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ht(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function MR(r,t,e,n){var i=Df(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return wa(i-fn/2)?(o=l?"bottom":"top",a="center"):wa(i-fn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<fn*1.5&&i>fn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function DR(r,t,e){if(!T_(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];n===!1?(Ve(a),Ve(u)):lS(a,o)&&(n?(Ve(o),Ve(f)):(Ve(a),Ve(u))),i===!1?(Ve(s),Ve(h)):lS(l,s)&&(i?(Ve(l),Ve(v)):(Ve(s),Ve(h)))}}function Ve(r){r&&(r.ignore=!0)}function lS(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=aa([]);return jo(i,i,-r.rotation),e.applyTransform(Nr([],i,r.getLocalTransform())),n.applyTransform(Nr([],i,t.getLocalTransform())),e.intersect(n)}}function uS(r){return r==="middle"||r==="center"}function fS(r,t,e,n,i){for(var a=[],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&&(te(o,o,t),te(s,s,t));var f=new fr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ua(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function IR(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=fS(u,t.transform,l,st(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function LR(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=st(s.getLineStyle(),st(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=fS(o[f],t.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function PR(r,t,e,n){var i=e.axis,a=Se(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Se(n.labelRotate,o.get("rotate"))||0)*fn/180,f=hn.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],c=hn.isLabelSilent(e),d=e.get("triggerEvent");return C(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[m]){var w=h[m];Y(w)&&w.textStyle&&(S=new wt(w.textStyle,o,e.ecModel))}var b=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(m),T=new Tt({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:hr(S,{text:y,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:G(b)?b(i.type==="category"?_:i.type==="value"?m+"":m,g):b})});if(T.anid="label_"+m,d){var A=hn.makeAxisEventDataBase(e);A.targetType="axisLabel",A.value=_,A.tickIndex=g,i.type==="category"&&(A.dataIndex=m),ht(T).eventData=A}t.add(T),T.updateTransform(),v.push(T),r.add(T),T.decomposeTransform()}),v}}function RR(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ER(e,r,t),e.seriesInvolved&&OR(e,r),e}function ER(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];C(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ro(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(C(s.getAxes(),et(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&C(d.baseAxes,et(p,c?"cross":!0,v)),c&&C(d.otherAxes,et(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Tc(_))){m==null&&(m=_.get("triggerTooltip")),_=g?kR(y,h,i,t,g,m):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),x=Ro(y.model),T=m||w||y.type==="category",A=r.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:b,involveSeries:T,snap:w,useHandle:Tc(_),seriesModels:[],linkGroup:null};u[x]=A,r.seriesInvolved=r.seriesInvolved||T;var D=BR(a,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[x]=A,M.mapper=a[D].mapper,A.linkGroup=M}}}})}function kR(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(v){l[v]=j(o.get(v))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&st(u,h.textStyle)}}return r.model.getModel("axisPointer",new wt(l,e,n))}function OR(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||C(r.coordSysAxesInfo[Ro(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function BR(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(wc(a[n+"AxisId"],e.id)||wc(a[n+"AxisIndex"],e.componentIndex)||wc(a[n+"AxisName"],e.name))return i}}function wc(r,t){return r==="all"||F(r)&&at(r,t)>=0||r===t}function NR(r){var t=xc(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Tc(e);a==null&&(i.status=s?"show":"hide");var l=n.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 xc(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ro(r)]}function FR(r){var t=xc(r);return t&&t.axisPointerModel}function Tc(r){return!!r.get(["handle","show"])}function Ro(r){return r.type+"||"+r.id}var Cc={},hS=function(r){E(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,n,i,a){this.axisPointerClass&&NR(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=FR(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){if(Cc[e])throw new Error("axisPointer "+e+" exists");Cc[e]=n},t.getAxisPointerClass=function(e){return e&&Cc[e]},t.type="axis",t}(Nt),Ac=mt();function zR(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Ac(r).splitAreaColors,v=$(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,w=void 0,b=void 0;i.isHorizontal()?(_=g,S=l.y,w=y-_,b=l.height,g=_+w):(_=l.x,S=g,w=l.width,b=y-S,g=S+b);var x=u[d-1].tickValue;x!=null&&v.set(x,c),t.add(new bt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:w,height:b},style:st({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%f}Ac(r).splitAreaColors=v}}}function VR(r){Ac(r).splitAreaColors=null}var GR=["axisLine","axisTickLabel","axisName"],HR=["splitArea","splitLine","minorSplitLine"],vS=function(r){E(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,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=_c(s,e),u=new hn(e,O({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(Nv(v[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));C(GR,u.add,u),this._axisGroup.add(u.getGroup()),C(HR,function(h){e.get([h,"show"])&&WR[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||mm(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){VR(this)},t.type="cartesianAxis",t}(hS),WR={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=F(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,h=i.getTicksCoords({tickModel:a}),v=[],c=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=i.toGlobalCoord(h[p].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var m=f++%s.length,y=h[p].tickValue,_=new fr({anid:y!=null?"line_"+h[p].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:st({stroke:s[m]},d),silent:!0});Ua(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],h=[],v=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?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new fr({anid:"minor_line_"+u[c][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});Ua(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){zR(r,t,e,n)}},cS=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(vS),UR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=cS.type,e}return t.type="yAxis",t}(vS),YR=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new bt({shape:e.coordinateSystem.getRect(),style:st({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Nt),dS={offset:0};function pS(r){r.registerComponentView(YR),r.registerComponentModel(pR),r.registerCoordinateSystem("cartesian2d",CR),tS(r,"x",gc,dS),tS(r,"y",gc,dS),r.registerComponentView(cS),r.registerComponentView(UR),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function ZR(r){Qt(pS),r.registerSeriesModel(fR),r.registerChartView(dR),r.registerLayout(hc("scatter"))}var li=mt(),gS=j,Mc=X,XR=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new _t,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var v=et(mS,e,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}SS(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=xc(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=li(t).pointerEl=new LA[a.type](gS(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=li(t).labelEl=new Tt(gS(e.label));t.add(a),_S(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=li(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=li(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),_S(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Xa(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){pi(u.event)},onmousedown:Mc(this._onHandleDragMove,this,0,0),drift:Mc(this._onHandleDragMove,this),ondragend:Mc(this._onHandleDragEnd,this)}),n.add(i)),SS(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");F(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Sl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){mS(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Dc(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Dc(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Dc(i)),li(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},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(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),bl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function mS(r,t,e,n){yS(li(e).lastProp,n)||(li(e).lastProp=n,t?Bt(e,n,r):(e.stopAnimation(),e.attr(n)))}function yS(r,t){if(Y(r)&&Y(t)){var e=!0;return C(t,function(n,i){e=e&&yS(r[i],n)}),!!e}else return r===t}function _S(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Dc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function SS(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}function $R(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function qR(r,t,e,n,i){var a=e.get("value"),o=bS(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ro(s.get("padding")||0),u=s.getFont(),f=_s(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),KR(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:hr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function KR(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function bS(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Uv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};C(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),V(o)?a=o.replace("{value}",a):G(o)&&(a=o(s))}return a}function wS(r,t,e){var n=_n();return jo(n,n,e.rotation),Qo(n,n,e.position),Za([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function QR(r,t,e,n,i,a){var o=hn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),qR(t,n,i,a,{position:wS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jR(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function JR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var tE=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=xS(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=$R(a),c=eE[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=_c(l.model,i);QR(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=_c(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=wS(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=xS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(XR);function xS(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var eE={line:function(r,t,e){var n=jR([t,e[0]],[t,e[1]],TS(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:JR([t-n/2,e[0]],[n,i],TS(r))}}};function TS(r){return r.dim==="x"?0:1}var rE=function(r){E(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}(lt),Ir=mt(),nE=C;function CS(r,t,e){if(!Q.node){var n=t.getZr();Ir(n).records||(Ir(n).records={}),iE(n,t);var i=Ir(n).records[r]||(Ir(n).records[r]={});i.handler=e}}function iE(r,t){if(Ir(r).initialized)return;Ir(r).initialized=!0,e("click",et(AS,"click")),e("mousemove",et(AS,"mousemove")),e("globalout",oE);function e(n,i){r.on(n,function(a){var o=sE(t);nE(Ir(r).records,function(s){s&&i(s,a,o.dispatchAction)}),aE(o.pendings,t)})}}function aE(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function oE(r,t,e){r.handler("leave",null,e)}function AS(r,t,e,n){t.handler(r,e,n)}function sE(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Ic(r,t){if(!Q.node){var e=t.getZr(),n=(Ir(e).records||{})[r];n&&(Ir(e).records[r]=null)}}var lE=function(r){E(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,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";CS("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,n){Ic("axisPointer",n)},t.prototype.dispose=function(e,n){Ic("axisPointer",n)},t.type="axisPointer",t}(Nt);function MS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Dn(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),p=[];p[c]=a.get(d,o),p[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(N(l.dimensions,function(m){return a.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 DS=mt();function uE(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||X(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){iu(i)&&(i=MS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=iu(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||iu(i),v={},c={},d={list:[],map:{}},p={showPointer:et(hE,c),showTooltip:et(vE,d)};C(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);C(s.coordSysAxesInfo[y],function(S,w){var b=S.axis,x=gE(u,S);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&IS(S,T,p,!1,v)}})});var g={};return C(f,function(m,y){var _=m.linkGroup;_&&!c[y]&&C(_.axesInfo,function(S,w){var b=c[w];if(S!==m&&b){var x=b.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,LS(S),LS(m)))),g[m.key]=x}})}),C(g,function(m,y){IS(f[y],m,p,!0,v)}),cE(c,f,v),dE(d,i,r,o),pE(f,o,e),v}}function IS(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=fE(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&O(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function fE(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return C(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[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,a.length=0),C(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function hE(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function vE(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ro(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function cE(r,t,e){var n=e.axesInfo=[];C(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function dE(r,t,e,n){if(iu(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({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 pE(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=DS(n)[i]||{},o=DS(n)[i]={};C(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];C(a,function(u,f){!o[f]&&l.push(u)}),C(o,function(u,f){!a[f]&&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 gE(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function LS(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function iu(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Lc(r){hS.registerAxisPointerClass("CartesianAxisPointer",tE),r.registerComponentModel(rE),r.registerComponentView(lE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=RR(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uE)}function mE(r){Qt(pS),Qt(Lc)}function yE(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function PS(r,t){var e;return C(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function _E(r,t,e){var n=O({},e),i=r[t],a=e.$action||"merge";if(a==="merge")if(i){{var o=e.type;W(!o||i.type===o,'Please set $action: "replace" to change `type`')}tt(i,n,!0),$n(i,n,{ignoreSize:!0}),Zm(e,i),au(e,i),au(e,i,"shape"),au(e,i,"style"),au(e,i,"extra"),e.clipPath=i.clipPath}else r[t]=n;else a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var RS=["transition","enterFrom","leaveTo"],SE=RS.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function au(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?RS:SE,i=0;i<n.length;i++){var a=n[i];r[a]==null&&t[a]!=null&&(r[a]=t[a])}}function bE(r,t){if(r&&(r.hv=t.hv=[PS(t,["left","right"]),PS(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var wE=function(r){E(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,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=i},t.prototype.optionUpdated=function(e,n){var i=this.option,a=(n?i:e).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=jp(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];C(l,function(f,h){var v=f.newOption;W(Y(v)||f.existing,"Empty graphic option definition"),v&&(u.push(v),yE(f,v),_E(o,h,v),bE(o[h],v))},this),i.elements=xt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,i){C(e,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(lt);function xE(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||rt(r,"text")))}function TE(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},rt(n,"text")&&(o.text=n.text),rt(n,"rich")&&(o.rich=n.rich),rt(n,"textFill")&&(o.fill=n.textFill),rt(n,"textStroke")&&(o.stroke=n.textStroke),rt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),rt(n,"fontSize")&&(o.fontSize=n.fontSize),rt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),rt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=rt(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),rt(n,"textPosition")&&(i.position=n.textPosition),rt(n,"textOffset")&&(i.offset=n.textOffset),rt(n,"textRotation")&&(i.rotation=n.textRotation),rt(n,"textDistance")&&(i.distance=n.textDistance)}return ES(o,r),C(o.rich,function(l){ES(l,l)}),{textConfig:i,textContent:a}}function ES(r,t){t&&(t.font=t.textFont||t.font,rt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),rt(t,"textAlign")&&(r.align=t.textAlign),rt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),rt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),rt(t,"textWidth")&&(r.width=t.textWidth),rt(t,"textHeight")&&(r.height=t.textHeight),rt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),rt(t,"textPadding")&&(r.padding=t.textPadding),rt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),rt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),rt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),rt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),rt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),rt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),rt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var kS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},OS=ot(kS),ou=We(ir,function(r,t){return r[t]=1,r},{}),BS=ir.join(", "),su=["","style","shape","extra"],Yi=mt();function Pc(r,t,e,n,i){var a=r+"Animation",o=fh(r,n,i)||{},s=Yi(t).userDuring;return o.duration>0&&(o.during=s?X(LE,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,e[a]),o}function Rc(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=Yi(r),u=t.style;l.userDuring=t.during;var f={},h={};if(RE(r,t,h),zS("shape",t,h),zS("extra",t,h),!a&&s&&(PE(r,t,f),FS("shape",r,t,f),FS("extra",r,t,f),EE(r,t,u,f)),h.style=u,AE(r,h,o),DE(r,t),s)if(a){var v={};C(su,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),O(d?v[d]:v,p.enterFrom))});var c=Pc("enter",r,t,e,i);c.duration>0&&r.animateFrom(v,c)}else ME(r,t,i||0,e,f);NS(r,t),u?r.dirty():r.markRedraw()}function NS(r,t){for(var e=Yi(r).leaveToProps,n=0;n<su.length;n++){var i=su[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=Yi(r).leaveToProps={}),i&&(e[i]=e[i]||{}),O(i?e[i]:e,a.leaveTo))}}function CE(r,t,e,n){if(r){var i=r.parent,a=Yi(r).leaveToProps;if(a){var o=Pc("update",r,t,e,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function ui(r){return r==="all"}function AE(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function ME(r,t,e,n,i){if(i){var a=Pc("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function DE(r,t){rt(t,"silent")&&(r.silent=t.silent),rt(t,"ignore")&&(r.ignore=t.ignore),r instanceof Pn&&rt(t,"invisible")&&(r.invisible=t.invisible),r instanceof pt&&rt(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var yr={},IE={setTransform:function(r,t){return W(rt(ou,r),"Only "+BS+" available in `setTransform`."),yr.el[r]=t,this},getTransform:function(r){return W(rt(ou,r),"Only "+BS+" available in `getTransform`."),yr.el[r]},setShape:function(r,t){Zi(r);var e=yr.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){Zi(r);var t=yr.el.shape;if(t)return t[r]},setStyle:function(r,t){Zi(r);var e=yr.el,n=e.style;return n&&(gn(t)&&Rt("style."+r+" must not be assigned with NaN."),n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){Zi(r);var t=yr.el.style;if(t)return t[r]},setExtra:function(r,t){Zi(r);var e=yr.el.extra||(yr.el.extra={});return e[r]=t,this},getExtra:function(r){Zi(r);var t=yr.el.extra;if(t)return t[r]}};function Zi(r){if(r==="transition"||r==="enterFrom"||r==="leaveTo")throw new Error('key must not be "'+r+'"')}function LE(){var r=this,t=r.el;if(t){var e=Yi(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}yr.el=t,n(IE)}}function FS(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),ui(l))O(o,a);else for(var u=Ot(l),f=0;f<u.length;f++){var h=u[f],v=a[h];o[h]=v}else if(ui(s)||at(s,r)>=0){!o&&(o=n[r]={});for(var c=ot(a),f=0;f<c.length;f++){var h=c[f],v=a[h];kE(i[h],v)&&(o[h]=v)}}}}}function zS(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=ot(n),o=0;o<a.length;o++){var s=a[o];i[s]=ma(n[s])}}function PE(r,t,e){for(var n=t.transition,i=ui(n)?ir:Ot(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];VS(o,"el.transition"),e[o]=s}}}function RE(r,t,e){for(var n=0;n<OS.length;n++){var i=OS[n],a=kS[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<ir.length;n++){var s=ir[n];t[s]!=null&&(e[s]=t[s])}}function EE(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!ui(o)){var l=Ot(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],h=i[f];a[f]=h}}else if(r.getAnimationStyleProps&&(ui(s)||ui(o)||at(s,"style")>=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var d=ot(e),u=0;u<d.length;u++){var f=d[u];if(c[f]){var h=i[f];a[f]=h}}}}}}}function kE(r,t){return Ut(r)?r!==t:r!=null&&isFinite(r)}var VS;VS=function(r,t){rt(ou,r)||Rt("Prop `"+r+"` is not a permitted in `"+t+"`. Only `"+ot(ou).join("`, `")+"` are permitted.")};var GS=mt(),OE=["percent","easing","shape","style","extra"];function BE(r){r.stopAnimation("keyframe"),r.attr(GS(r))}function Ec(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(F(t)){C(t,function(s){Ec(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=fh("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=GS(r);C(su,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(f,h){return f.percent-h.percent}),C(n,function(f){var h=r.animators,v=s?f[s]:f;if(f.percent>=1&&(u=!0),!!v){var c=ot(v);if(s||(c=xt(c,function(g){return at(OE,g)<0})),!!c.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var d=0;d<h.length;d++)h[d]!==l&&h[d].targetName===l.targetName&&h[d].stopTracks(c);s&&(o[s]=o[s]||{});var p=s?o[s]:o;C(c,function(g){p[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(i*f.percent,v,c,f.easing)}}}),l&&(u||Rt("End frame with percent: 1 is missing in the keyframeAnimation.",!0),l.delay(t.delay||0).duration(i).start(t.easing))}})}}}var HS={path:null,compoundPath:null,group:_t,image:Ee,text:Tt},Ge=mt(),NE=function(r){E(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=$()},t.prototype.render=function(e,n,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");C(n,function(l){var u=fe(l.id,null),f=u!=null?i.get(u):null,h=fe(l.parentId,null),v=h!=null?i.get(h):a,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&&xE(d,c,!!g,!!p)){var m=TE(d,c,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=FE(l);f&&W(v===f.parent,"Changing parent is not supported.");var _=l.$action||"merge",S=_==="merge",w=_==="replace";if(S){var b=!f,x=f;b?x=WS(u,v,l.type,i):(x&&(Ge(x).isNew=!1),BE(x)),x&&(Rc(x,y,e,{isInit:b}),US(x,l,o,s))}else if(w){lu(f,l,i,e);var T=WS(u,v,l.type,i);T&&(Rc(T,y,e,{isInit:!0}),US(T,l,o,s))}else _==="remove"&&(NS(f,l),lu(f,l,i,e));var A=i.get(u);if(A&&p)if(S){var D=A.getTextContent();D?D.attr(p):A.setTextContent(new Tt(p))}else w&&A.setTextContent(new Tt(p));if(A){var M=l.clipPath;if(M){var I=M.type,L=void 0,b=!1;if(S){var P=A.getClipPath();b=!P||Ge(P).type!==I,L=b?kc(I):P}else w&&(b=!0,L=kc(I));A.setClipPath(L),Rc(L,M,e,{isInit:b}),Ec(L,M.keyframeAnimation,e)}var R=Ge(A);A.setTextConfig(g),R.option=l,zE(A,e,l),$a({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),Ec(A,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var i=e.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++){var h=i[f],v=fe(h.id,null),c=v!=null?o.get(v):null;if(!(!c||!c.isGroup)){var d=c.parent,p=d===a,g=Ge(c),m=Ge(d);g.width=ct(g.option.width,p?s:m.width)||0,g.height=ct(g.option.height,p?l:m.height)||0}}for(var f=i.length-1;f>=0;f--){var h=i[f],v=fe(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,m=Ge(d),y=d===a?{width:s,height:l}:{width:m.width,height:m.height},_={},S=Ym(c,h,y,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Ge(c).isNew&&S){for(var w=h.transition,b={},x=0;x<u.length;x++){var T=u[x],A=_[T];w&&(ui(w)||at(w,T)>=0)?b[T]=A:c[T]=A}Bt(c,b,e,0)}else c.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){lu(i,Ge(i).option,n,e._lastGraphicModel)}),this._elMap=$()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Nt);function kc(r){W(r,"graphic type MUST be set");var t=rt(HS,r)?HS[r]:dh(r);W(t,"graphic type "+r+" can not be found");var e=new t({});return Ge(e).type=r,e}function WS(r,t,e,n){var i=kc(e);return t.add(i),n.set(r,i),Ge(i).id=r,Ge(i).isNew=!0,i}function lu(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){lu(a,t,e,n)}),CE(r,t,n),e.removeKey(Ge(r).id))}function US(r,t,e,n){r.isGroup||C([["cursor",Pn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];rt(t,a)?r[a]=J(t[a],i[1]):r[a]==null&&(r[a]=i[1])}),C(ot(t),function(i){if(i.indexOf("on")===0){var a=t[i];r[i]=G(a)?a:null}}),rt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function FE(r){return r=O({},r),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Um),function(t){delete r[t]}),r}function zE(r,t,e){var n=ht(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ht(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function VE(r){r.registerComponentModel(wE),r.registerComponentView(NE),r.registerPreprocessor(function(t){var e=t.graphic;F(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var YS=["x","y","radius","angle","single"],GE=["cartesian2d","polar","singleAxis"];function HE(r){var t=r.get("coordinateSystem");return at(GE,t)>=0}function vn(r){return W(r),r+"Axis"}function WE(r,t){var e=$(),n=[],i=$();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=e.get(v);d&&d[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(e.get(h)||e.set(h,[]))[v]=!0})}return n}function ZS(r){var t=r.ecModel,e={infoList:[],infoMap:$()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(vn(n),i);if(a){var o=a.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(a)}}}),e}var Oc=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}(),Eo=function(r){E(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,n,i){var a=XS(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=XS(e);tt(this.option,e,!0),tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;C([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=$(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return C(YS,function(i){var a=this.getReferringComponents(vn(i),ET);if(a.specified){n=!0;var o=new Oc;C(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Oc;if(v.add(h.componentIndex),e.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",ee).models[0];c&&C(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",ee).models[0]&&v.add(d.componentIndex)})}}}a&&C(YS,function(u){if(a){var f=i.findComponents({mainType:vn(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Oc;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(vn(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){C(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){W(e&&n!=null);var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(vn(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;C([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;C(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],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;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return W(this._orient),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}(lt);function XS(r){var t={};return C(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var UE=function(r){E(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}(Eo),Bc=function(r){E(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,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(Nt),YE=function(r){E(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}(Bc);function ko(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Xi(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Xi(s,[0,o]),i=a=Xi(s,[i,a]),n=0}t[0]=Xi(t[0],e),t[1]=Xi(t[1],e);var l=Nc(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Xi(t[n],f);var h;return h=Nc(t,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(t[1-n]=t[n]+l.sign*i),h=Nc(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function Nc(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 Xi(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var $i=C,$S=Ur,ZE=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}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(HE(e)){var n=vn(this._dimName),i=e.getReferringComponents(n,ee).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 j(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;$i(["start","end"],function(v,c){var d=t[v],p=t[v+"Value"];a[c]==="percent"?(d==null&&(d=o[c]),p=i.parse(zt(d,o,e))):(u=!0,p=p==null?e[c]:i.parse(p),d=zt(p,e,o)),l[c]=p==null||isNaN(p)?e[c]:p,s[c]=d==null||isNaN(d)?o[c]:d}),$S(l),$S(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(v,c,d,p,g){var m=g?"Span":"ValueSpan";ko(0,v,d,"all",f["min"+m],f["max"+m]);for(var y=0;y<2;y++)c[y]=zt(v[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=XE(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;$i(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var h=u.getStore(),v=N(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var d,p,g,m=0;m<f.length;m++){var y=h.get(v[m],c),_=!isNaN(y),S=y<o[0],w=y>o[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else $i(f,function(c){if(a==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});$i(f,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,n=this._dataExtent;$i(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=zt(n[0]+o,n,[0,100],!0):a!=null&&(o=zt(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Mf(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function XE(r,t,e){var n=[1/0,-1/0];$i(e,function(o){ZL(n,o.getData(),t)});var i=r.getAxisModel(),a=b_(i.axis.scale,i,n).calculate();return[a.min,a.max]}var $E={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(vn(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ZE(i,a,s,r),e.push(o.__dzAxisProxy))});var n=$();return C(e,function(i){C(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function qE(r){r.registerAction("dataZoom",function(t,e){var n=WE(e,t);C(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var qS=!1;function Fc(r){qS||(qS=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,$E),qE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function KE(r){r.registerComponentModel(UE),r.registerComponentView(YE),Fc(r)}var tr=function(){function r(){}return r}(),KS={};function Oo(r,t){KS[r]=t}function QS(r){return KS[r]}var QE=function(r){E(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;C(this.option.feature,function(n,i){var a=QS(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),tt(n,a.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}(lt);function jE(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=vr(n,a,i);Ri(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Ym(r,n,a,i)}function jS(r,t){var e=ro(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new bt({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:n,silent:!0,z2:-1}),r}var JE=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){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")||{},f=this._features||(this._features={}),h=[];C(u,function(d,p){h.push(p)}),new Lv(this._featureNames||[],h).add(v).update(v).remove(et(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],m=h[p],y=u[g],_=new wt(y,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(tk(g))S={onclick:_.option.onclick,featureName:g};else{var w=QS(g);if(!w)return;S=new w}f[g]=S}else if(S=f[m],!S)return;S.uid=Ka("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var b=S instanceof tr;if(!g&&m){b&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}c(_,S,g),_.setIconStatus=function(x,T){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[x]=T,D[x]&&(T==="emphasis"?Vn:Gn)(D[x])},S instanceof tr&&S.render&&S.render(_,n,i,a)}function c(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof tr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,b;V(_)?(w={},w[g]=_):w=_,V(S)?(b={},b[g]=S):b=S;var x=d.iconPaths={};C(w,function(T,A){var D=Xa(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(m.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new Tt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),$a({el:D,componentModel:e,itemName:A,formatterParamsExtra:{title:b[A]}}),D.__title=b[A],D.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",A])==="emphasis"?Vn:Gn)(D),o.add(D),D.on("click",X(p.onclick,p,n,i,A)),x[A]=D})}jE(o,e,i),o.add(jS(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(_&&!G(_)&&p){var S=_.style||(_.style={}),w=_s(p,Tt.makeFont(S)),b=d.x+o.x,x=d.y+o.y+s,T=!1;x+w.height>i.getHeight()&&(m.position="top",T=!0);var A=T?-5-w.height:s+10;b+w.width/2>i.getWidth()?(m.position=["100%",A],S.align="right"):b-w.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){C(this._features,function(o){o instanceof tr&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){C(this._features,function(i){i instanceof tr&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){C(this._features,function(i){i instanceof tr&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(Nt);function tk(r){return r.indexOf("my")===0}var ek=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.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=Q.browser;if(G(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];c&&(d=window.atob(d));var p=a+"."+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 S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=i.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(x),T.document.title=a}},t.getDefaultOption=function(e){var n={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 n},t}(tr),JS="__ec_magicType_stack__",rk=[["line","bar"],["stack"]],nk=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return C(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={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 n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(tb[i]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=tb[i](v,c,h,a);d&&(st(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,ee).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var w=0;w<=S;w++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};C(rk,function(h){at(h,i)>=0&&C(h,function(v){a.setIconStatus(v,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(tr),tb={line:function(r,t,e,n){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")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){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")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===JS;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":JS},n.get(["option","stack"])||{},!0)}};je({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var uu=new Array(60).join("-"),qi="	";function ik(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.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:n}}function ak(r){var t=[];return C(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(N(e.series,function(c){return c.name})),l=[i.model.getCategories()];C(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(qi)],f=0;f<l[0].length;f++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][f]);u.push(h.join(qi))}t.push(u.join(`
`))}),t.join(`

`+uu+`

`)}function ok(r){return N(r,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+qi:"")+i.join(qi))}),n.join(`
`)}).join(`

`+uu+`

`)}function sk(r){var t=ik(r);return{value:xt([ak(t.seriesGroupByCategoryAxis),ok(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+uu+`

`),meta:t.meta}}function fu(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lk(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(qi)>=0)return!0}var zc=new RegExp("["+qi+"]+","g");function uk(r){for(var t=r.split(/\n+/g),e=fu(t.shift()).split(zc),n=[],i=N(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=fu(t[a]).split(zc);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function fk(r){for(var t=r.split(/\n+/g),e=fu(t.shift()),n=[],i=0;i<t.length;i++){var a=fu(t[i]);if(a){var o=a.split(zc),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:e,data:n}}function hk(r,t){var e=r.split(new RegExp(`
*`+uu+`
*`,"g")),n={series:[]};return C(e,function(i,a){if(lk(i)){var o=uk(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=fk(i);n.series.push(o)}}),n}var vk=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=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=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),v=a.get("contentToOption"),c=sk(e);if(G(h)){var d=h(n.getOption());V(d)?u.innerHTML=d:pn(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.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=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=c.value,u.appendChild(f)}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"),S=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var w=this;function b(){i.removeChild(o),w._dom=null}Vu(_,"click",b),Vu(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){Rt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var x;try{G(v)?x=v(u,n.getOption()):x=hk(f.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}x&&n.dispatchAction({type:"changeDataView",newOption:x}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=y,!a.get("readOnly")&&m.appendChild(S),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,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={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 n},t}(tr);function ck(r,t){return N(r,function(e,n){var i=t&&t[n];if(Y(i)&&!F(i)){var a=Y(e)&&!F(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=st(e,i),o&&delete e.name,e}else return e})}je({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];C(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(O({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:ck(n.data,a)})}}),t.mergeOption(st({series:e},r.newOption))});var eb=C,rb=mt();function dk(r,t){var e=Vc(r);eb(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<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 pk(r){var t=Vc(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return eb(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function gk(r){rb(r).snapshots=null}function mk(r){return Vc(r).length}function Vc(r){var t=rb(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var yk=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){gk(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={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 n},t}(tr);je({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var nb="\0_ec_interaction_mutex";function _k(r,t,e){var n=Gc(r);n[t]=e}function Sk(r,t,e){var n=Gc(r),i=n[t];i===e&&(n[t]=null)}function ib(r,t){return!!Gc(r)[t]}function Gc(r){return r[nb]||(r[nb]={})}je({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Gt);var fi=!0,Bo=Math.min,Ki=Math.max,bk=Math.pow,wk=1e4,xk=6,Tk=6,ab="globalPan",Ck={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Ak={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ob={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Mk=0,Dk=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},W(e),n._zr=e,n.group=new _t,n._uid="brushController_"+Mk++,C(Ok,function(i,a){this._handlers[a]=X(i,this)},n),n}return t.prototype.enableBrush=function(e){return W(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||_k(n,ab,this._uid),C(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=tt(j(ob),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Sk(e,ab,this._uid),C(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};C(e,function(i){n[i.panelId]=j(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._mounted=!0,this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){W(this._mounted),e=N(e,function(v){return tt(j(ob),v,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Lv(i,e,u,l).add(f).update(f).remove(h).execute(),this;function l(v,c){return(v.id!=null?v.id:n+c)+"-"+v.brushType}function u(v,c){return l(v.__brushOption,c)}function f(v,c){var d=e[v];if(c!=null&&i[c]===s)a[v]=i[c];else{var p=a[v]=c!=null?(i[c].__brushOption=d,i[c]):lb(o,sb(o,d));Hc(o,p)}}function h(v){i[v]!==s&&o.group.remove(i[v])}},t.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),Yc(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Te);function sb(r,t){var e=hu[t.brushType].createCover(r,t);return e.__brushOption=t,fb(e,t),r.group.add(e),e}function lb(r,t){var e=Wc(t);return e.endCreating&&(e.endCreating(r,t),fb(t,t.__brushOption)),t}function ub(r,t){var e=t.__brushOption;Wc(t).updateCoverShape(r,t,e.range,e)}function fb(r,t){var e=t.z;e==null&&(e=wk),r.traverse(function(n){n.z=e,n.z2=e})}function Hc(r,t){Wc(t).updateCommon(r,t),ub(r,t)}function Wc(r){return hu[r.__brushOption.brushType]}function Uc(r,t,e){var n=r._panels;if(!n)return fi;var i,a=r._transform;return C(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function hb(r,t){var e=r._panels;if(!e)return fi;var n=t.__brushOption.panelId;return n!=null?e[n]:fi}function Yc(r){var t=r._covers,e=t.length;return C(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function hi(r,t){var e=N(r._covers,function(n){var i=n.__brushOption,a=j(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Ik(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=bk(i*i+a*a,.5);return o>xk}function vb(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function cb(r,t,e,n){var i=new _t;return i.add(new bt({name:"main",style:Xc(e),silent:!0,draggable:!0,cursor:"move",drift:et(gb,r,t,i,["n","s","w","e"]),ondragend:et(hi,t,{isEnd:!0})})),C(n,function(a){i.add(new bt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:et(gb,r,t,i,a),ondragend:et(hi,t,{isEnd:!0})}))}),i}function db(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Ki(i,Tk),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],h=e[1][1],v=f-a+i/2,c=h-a+i/2,d=f-o,p=h-s,g=d+i,m=p+i;Lr(r,t,"main",o,s,d,p),n.transformable&&(Lr(r,t,"w",l,u,a,m),Lr(r,t,"e",v,u,a,m),Lr(r,t,"n",l,u,g,a),Lr(r,t,"s",l,c,g,a),Lr(r,t,"nw",l,u,a,a),Lr(r,t,"ne",v,u,a,a),Lr(r,t,"sw",l,c,a,a),Lr(r,t,"se",v,c,a,a))}function Zc(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Xc(e)),i.attr({silent:!n,cursor:n?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?$c(r,a[0]):Pk(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Ak[s]+"-resize":null})})}function Lr(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(Ek(qc(r,t,[[n,i],[n+a,i+o]])))}function Xc(r){return st({strokeNoScale:!0},r.brushStyle)}function pb(r,t,e,n){var i=[Bo(r,e),Bo(t,n)],a=[Ki(r,e),Ki(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Lk(r){return Ya(r.group)}function $c(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=mh(e[t],Lk(r));return n[i]}function Pk(r,t){var e=[$c(r,t[0]),$c(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function gb(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=mb(t,i,a);C(n,function(u){var f=Ck[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(pb(s[0][0],s[1][0],s[0][1],s[1][1])),Hc(t,e),hi(t,{isEnd:!1})}function Rk(r,t,e,n){var i=t.__brushOption.range,a=mb(r,e,n);C(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Hc(r,t),hi(r,{isEnd:!1})}function mb(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qc(r,t,e){var n=hb(r,t);return n&&n!==fi?n.clipPath(e,r._transform):j(e)}function Ek(r){var t=Bo(r[0][0],r[1][0]),e=Bo(r[0][1],r[1][1]),n=Ki(r[0][0],r[1][0]),i=Ki(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function kk(r,t,e){if(!(!r._brushType||Bk(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Uc(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===fi||s.panelId===a.panelId)&&hu[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function Kc(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Qc(r,t,e){return r.childOfName("main").contain(t,e)}function yb(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),Ik(r)||i){if(a&&!i){o.brushMode==="single"&&Yc(r);var l=j(o);l.brushType=_b(l.brushType,a),l.panelId=a===fi?null:a.panelId,i=r._creatingCover=sb(r,l),r._covers.push(i)}if(i){var u=hu[_b(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(qc(r,i,r._track)),n&&(lb(r,i),u.updateCommon(r,i)),ub(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Uc(r,t,e)&&Yc(r)&&(s={isEnd:n,removeOnClick:!0});return s}function _b(r,t){return r==="auto"?(W(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):r}var Ok={mousedown:function(r){if(this._dragging)Sb(this,r);else if(!r.target||!r.target.draggable){Kc(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Uc(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(kk(this,r,n),this._dragging){Kc(r);var i=yb(this,r,n,!1);i&&hi(this,i)}},mouseup:function(r){Sb(this,r)}};function Sb(r,t){if(r._dragging){Kc(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=yb(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&hi(r,a)}}function Bk(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var hu={lineX:bb(0),lineY:bb(1),rect:{createCover:function(r,t){function e(n){return n}return cb({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=vb(r);return pb(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){db(r,t,e,n)},updateCommon:Zc,contain:Qc},polygon:{createCover:function(r,t){var e=new _t;return e.add(new Kr({name:"main",style:Xc(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new qr({name:"main",draggable:!0,drift:et(Rk,r,t),ondragend:et(hi,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:qc(r,t,e)})},updateCommon:Zc,contain:Qc}};function bb(r){return{createCover:function(t,e){return cb({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=vb(t),n=Bo(e[0][r],e[1][r]),i=Ki(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=hb(t,e);if(o!==fi&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),db(t,e,l,i)},updateCommon:Zc,contain:Qc}}var Nk={axisPointer:1,tooltip:1,brush:1};function Fk(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!Nk.hasOwnProperty(n.mainType)&&i&&i.model!==e}function zk(r){return r=jc(r),function(t){return yh(t,r)}}function Vk(r,t){return r=jc(r),function(e){var n=t??e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function Gk(r,t,e){var n=jc(r);return function(i,a){return n.contain(a[0],a[1])&&!Fk(i,t,e)}}function jc(r){return vt.create(r)}var Hk=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],wb=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=xb(e,t);C(Wk,function(o,s){(!n||!n.include||at(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=td[n.brushType](0,a,i);n.__rangeOffset={offset:Mb[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){C(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&C(a.coordSyses,function(o){var s=td[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){C(t,function(n){var i=this.findTargetInfo(n,e);if(W(!i||i===!0||n.coordRange,"coordRange must be specified when coord index specified."),W(!i||i!==!0||n.range,"range must be specified in global brush."),n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=td[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Mb[n.brushType](a.values,o.offset,Uk(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return N(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:zk(i),isTargetByCursor:Gk(i,t,n.coordSysModel),getLinearBrushOtherExtent:Vk(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&at(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=xb(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Tb.length;l++)if(Tb[l](i,o))return o}return!0},r}();function Jc(r){return r[0]>r[1]&&r.reverse(),r}function xb(r,t){return Ma(r,t,{includeMainTypes:Hk})}var Wk={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=$(),o={},s={};!e&&!n&&!i||(C(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),C(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),C(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];C(u.getCartesians(),function(h,v){(at(e,h.getAxis("x").model)>=0||at(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Cb.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){C(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Cb.geo})})}},Tb=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Cb={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ya(r)),t}},td={lineX:et(Ab,0),lineY:et(Ab,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Jc([i[0],a[0]]),Jc([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=N(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);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:a,xyMinMax:i}}};function Ab(r,t,e,n){W(e.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=e.getAxis(["x","y"][r]),a=Jc(N([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Mb={lineX:et(Db,0),lineY:et(Db,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 N(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function Db(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Uk(r,t){var e=Ib(r),n=Ib(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Ib(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var ed=C,Yk=IT("toolbox-dataZoom_"),Zk=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new Dk(i.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),qk(e,n,this,a,i),$k(e,n)},t.prototype.onclick=function(e,n,i){Xk[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new wb(rd(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),dk(a,i),this._dispatchZoomAction(i);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,a),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=ko(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,f.componentIndex);d&&(v=c)}),v}},t.prototype._dispatchZoomAction=function(e){var n=[];ed(e,function(i,a){n.push(j(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={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 n},t}(tr),Xk={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(pk(this.ecModel))}};function rd(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 $k(r,t){r.setIconStatus("back",mk(t)>1?"emphasis":"normal")}function qk(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new wb(rd(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(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}fM("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=rd(n),o=Ma(r,a);ed(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ed(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Yk+u+h};v[f]=h,i.push(v)}return i});function Kk(r){r.registerComponentModel(QE),r.registerComponentView(JE),Oo("saveAsImage",ek),Oo("magicType",nk),Oo("dataView",vk),Oo("dataZoom",Zk),Oo("restore",yk),Qt(KE)}var Qk=function(r){E(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}(lt);function Lb(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Pb(r){if(Q.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var Rb=Pb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),jk=Pb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Eb(r,t){if(!r)return t;t=Lh(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Jk(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var tO=Eb(jk,"transition"),nd=Eb(Rb,"transform"),eO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Q.transform3dSupported?"will-change:transform;":"");function rO(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function nO(r,t,e){if(!V(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Xn(t);var a=rO(e),o=Math.max(Math.round(i)*1.5,6),s="",l=nd+":",u;at(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+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:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function iO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=Q.transformSupported?","+nd+n:",left"+n+",top"+n),tO+":"+i}function kb(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Q.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Q.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+nd+":"+o+";":[["top",0],["left",0],[Rb,o]]}function aO(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),C(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function oO(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Wy(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(iO(i,e)),a&&n.push("background-color:"+a),C(["width","color","radius"],function(c){var d="border-"+c,p=Lh(d),g=r.get(p);g!=null&&n.push(d+":"+g+(c==="color"?"":"px"))}),n.push(aO(f)),h!=null&&n.push("padding:"+ro(h).join("px ")+"px"),n.join(";")+";"}function Ob(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Zw(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var sO=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Q.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Ob(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ce(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=Jk(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=eO+oO(t,!this._firstShow,this._longHide)+kb(a[0],a[1],!0)+("border-color:"+Xn(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,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(V(a)&&n.get("trigger")==="item"&&!Lb(n)&&(s=nO(n,i,a)),V(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var l=0;l<t.length;l++)pn(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.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Ob(n,this._zr,this._appendToBody,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=kb(n[0],n[1]);C(a,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",Q.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(X(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}(),lO=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Nb(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,n,i,a){var o=this;Y(t)&&ue("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Tt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Wy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),C(["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(),n=Bb(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;Nb(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=cn(a.borderWidth||0),s=Bb(a);n.x=t+o+s.left,n.y=e+o+s.top,n.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(X(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function cn(r){return Math.max(0,r)}function Bb(r){var t=cn(r.shadowBlur||0),e=cn(r.shadowOffsetX||0),n=cn(r.shadowOffsetY||0);return{left:cn(t-e),right:cn(t+e),top:cn(t-n),bottom:cn(t+n)}}function Nb(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var uO=new bt({shape:{x:-1,y:-1,width:2,height:2}}),fO=function(r){E(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,n){if(!(Q.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=OT(i.get("renderMode"));this._tooltipContent=a==="richText"?new lO(n):new sO(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(e,n,i){if(!(Q.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Sl(this,"_updatePosition",50,"fixRate"):bl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");CS("itemTooltip",this._api,X(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||Q.node||!i.getDom())){var o=Fb(a,i);this._ticket="";var s=a.dataByCoordSys,l=dO(a,n,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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=uO;f.x=a.x,f.y=a.y,f.update(),ht(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=MS(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Fb(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=No([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,l;po(i,function(u){if(ht(u).dataIndex!=null)return s=u,!0;if(ht(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=X(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=No([n.tooltipOption],a),l=this._renderMode,u=[],f=jn("section",{blocks:[],noHeader:!0}),h=[],v=new tv;C(e,function(y){C(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=bS(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=jn("section",{header:b,noHeader:!Ue(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),C(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Uv(S.axis,{value:w}),M.axisValueLabel=b,M.marker=v.makeTooltipMarker("item",Xn(M.color),l);var I=My(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=No([A],a).get("valueFormatter");x.blocks.push(P?O({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=Gy(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`

`:"<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,v)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ht(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,p=No([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,h),y=new tv;m.marker=y.makeTooltipMarker("item",Xn(m.color),c);var _=My(u.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),b=_.frag,x=b?Gy(w?O({valueFormatter:w},b):b,y,c,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ht(n),o=a.tooltipConfig,s=o.option||{};if(V(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,v=No(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",p=new tv;this._showOrMove(v,function(){var g=j(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,d,e.offsetX,e.offsetY,e.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(V(v)){var g=e.ecModel.get("useUTC"),m=F(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=v,y&&(c=to(m.axisValue,c,g)),c=Eh(c,i,!0)}else if(G(v)){var _=X(function(S,w){S===this._ticket&&(h.setContent(w,f,e,p,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),G(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(n))i=ct(n[0],u),a=ct(n[1],f);else if(Y(n)){var p=n;p.width=h[0],p.height=h[1];var g=vr(p,{width:u,height:f});i=g.x,a=g.y,v=null,c=null}else if(V(n)&&l){var m=cO(n,d,h,e.get("borderWidth"));i=m[0],a=m[1]}else{var m=hO(i,a,o,u,f,v?null:20,c?null:20);i=m[0],a=m[1]}if(v&&(i-=zb(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=zb(c)?h[1]/2:c==="bottom"?h[1]:0),Lb(e)){var m=vO(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&C(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&C(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&C(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&C(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Q.node||!n.getDom()||(bl(this,"_updatePosition"),this._tooltipContent.dispose(),Ic("itemTooltip",n))},t.type="tooltip",t}(Nt);function No(r,t,e){var n=t.ecModel,i;e?(i=new wt(e,n,n),i=new wt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),V(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function Fb(r,t){return r.dispatchAction||X(t.dispatchAction,t)}function hO(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function vO(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function cO(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zb(r){return r==="center"||r==="middle"}function dO(r,t,e){var n=Rf(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Da(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ht(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function pO(r){Qt(Lc),r.registerComponentModel(Qk),r.registerComponentView(fO),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gt)}var gO=function(r){E(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}(lt),mO=function(r){E(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,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=J(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Tt({style:hr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new Tt({style:hr(s,{text:v,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);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Wm(d,"_"+e.get("target"))}),p&&c.on("click",function(){Wm(p,"_"+e.get("subtarget"))}),ht(f).eventData=ht(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var m=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=vr(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"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),m=a.getBoundingRect();var w=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var x=new bt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(Nt);function yO(r){r.registerComponentModel(gO),r.registerComponentView(mO)}function id(r,t){if(!r)return!1;for(var e=F(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function vu(r){As(r,"label",["show"])}var cu=mt(),Pr=function(r){E(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,n,i){if(this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Q.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=cu(s)[o];if(!l||!l.data){cu(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&vu(l),C(l.data,function(f){f instanceof Array?(vu(f[0]),vu(f[1])):vu(f)}),u=this.createMarkerModelFromSeries(l,this,n),O(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),cu(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return jn("section",{header:this.name,blocks:[jn("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.getMarkerModelFromSeries=function(e,n){return cu(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(lt);_e(Pr,Ay.prototype);var _O=function(r){E(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,n,i){return new t(e,n,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}(Pr);function ad(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function SO(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function du(r,t,e,n,i,a){var o=[],s=nn(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=sd(t,l,r),f=t.indicesOfNearest(l,u)[0];o[i]=t.get(e,f),o[a]=t.get(l,f);var h=t.get(n,f),v=Xe(t.get(n,f));return v=Math.min(v,20),v>=0&&(o[a]=+o[a].toFixed(v)),[o,h]}var od={min:et(du,"min"),max:et(du,"max"),average:et(du,"average"),median:et(du,"median")};function Fo(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!SO(t)&&!F(t.coord)&&F(i)){var a=Vb(t,e,n,r);if(t=j(t),t.type&&od[t.type]&&a.baseAxis&&a.valueAxis){var o=at(i,a.baseAxis.dim),s=at(i,a.valueAxis.dim),l=od[t.type](e,a.baseDataDim,a.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||!F(i))t.coord=[];else for(var u=t.coord,f=0;f<2;f++)od[u[f]]&&(u[f]=sd(e,e.mapDimension(i[f]),u[f]));return t}}function Vb(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(bO(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function bO(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function zo(r,t){return r&&r.containData&&t.coord&&!ad(t)?r.containData(t.coord):!0}function wO(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!ad(t)&&!ad(e)?r.containZone(t.coord,e.coord):!0}function Gb(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return jr(o,t[a])}:function(e,n,i,a){return jr(e.value,t[a])}}function sd(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var ld=mt(),ud=function(r){E(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=$()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){ld(s).keep=!1}),n.eachSeries(function(s){var l=Pr.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!ld(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){ld(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;C(e,function(a){var o=Pr.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?Hg(l):th(l))})}})},t.type="marker",t}(Nt);function Hb(r,t,e){var n=t.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=ct(a.get("x"),e.getWidth()),l=ct(a.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(n){var u=r.get(n.dimensions[0],i),f=r.get(n.dimensions[1],i);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var xO=function(r){E(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,n,i){n.eachSeries(function(a){var o=Pr.getMarkerModelFromSeries(a,"markPoint");o&&(Hb(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new lc),h=TO(o,e,n);n.setData(h),Hb(n.getData(),e,a),h.each(function(v){var c=h.getItemModel(v),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),m=c.getShallow("symbolOffset"),y=c.getShallow("symbolKeepAspect");if(G(d)||G(p)||G(g)||G(m)){var _=n.getRawValue(v),S=n.getDataParams(v);G(d)&&(d=d(_,S)),G(p)&&(p=p(_,S)),G(g)&&(g=g(_,S)),G(m)&&(m=m(_,S))}var w=c.getModel("itemStyle").getItemStyle(),b=Cl(l,"color");w.fill||(w.fill=b),h.setItemVisual(v,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:w})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){ht(c).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(ud);function TO(r,t,e){var n;r?n=N(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return O(O({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Mr(n,e),a=N(e.get("data"),et(Fo,t));r&&(a=xt(a,et(zo,r)));var o=Gb(!!r,n);return i.initData(a,null,o),i}function CO(r){r.registerComponentModel(_O),r.registerComponentView(xO),r.registerPreprocessor(function(t){id(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var AO=function(r){E(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,n,i){return new t(e,n,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}(Pr),Wb=fr.prototype,fd=Ga.prototype,Ub=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Ub);function hd(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var MO=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ub},t.prototype.buildPath=function(e,n){hd(n)?Wb.buildPath.call(this,e,n):fd.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return hd(this.shape)?Wb.pointAt.call(this,e):fd.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,i=hd(n)?[n.x2-n.x1,n.y2-n.y1]:fd.tangentAt.call(this,e);return Xo(i,i)},t}(pt),vd=["fromSymbol","toSymbol"];function Yb(r){return"_"+r+"Type"}function Zb(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=iv(i),u=Ml(o||0,l);return n+l+u+(a||"")+(s||"")}function Xb(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=iv(i),u=Ml(o||0,l),f=Ke(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function DO(r){var t=new MO({name:"line",subPixelOptimize:!0});return cd(t.shape,r),t}function cd(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 IO=function(r){E(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createLine(e,n,i),a}return t.prototype._createLine=function(e,n,i){var a=e.hostModel,o=e.getItemLayout(n),s=DO(o);s.shape.percent=0,ce(s,{shape:{percent:1}},a,n),this.add(s),C(vd,function(l){var u=Xb(l,e,n);this.add(u),this[Yb(l)]=Zb(l,e,n)},this),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};cd(l.shape,s),Bt(o,l,a,n),C(vd,function(u){var f=Zb(u,e,n),h=Yb(u);if(this[h]!==f){this.remove(this.childOfName(u));var v=Xb(u,e,n);this.add(v)}this[h]=f},this),this._updateCommonStl(e,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,v=i&&i.focus,c=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(n),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"),v=p.get("focus"),c=p.get("blurScope"),f=Qr(d)}var g=e.getItemVisual(n,"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,C(vd,function(b){var x=this.childOfName(b);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var T=0;T<he.length;T++){var A=he[T],D=o.getState(A);if(D){var M=D.style||{},I=x.ensureState(A),L=I.style||(I.style={});M.stroke!=null&&(L[x.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}x.markRedraw()}},this);var y=a.getRawValue(n);Zn(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,x){return a.getFormattedLabel(b,x,e.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?e.getName(n):isFinite(y)?At(y):y)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var w=S.get("distance");F(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Hn(this,v,c,h)},t.prototype.highlight=function(){Vn(this)},t.prototype.downplay=function(){Gn(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");cd(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!n&&!i&&(!a||a.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,f=l.pointAt(0),h=l.pointAt(u),v=Pu([],h,f);Xo(v,v);function c(D,M){var I=D.__specifiedRotation;if(I==null){var L=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else D.attr("rotation",I)}if(n&&(n.setPosition(f),c(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(h),c(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,y=g[1]*o,_=u/2,S=l.tangentAt(_),w=[S[1],-S[0]],b=l.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var x=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(T=Math.PI+T),a.rotation=T}var A=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=y,p="top";break;default:A=0,p="middle"}switch(a.__position){case"end":a.x=v[0]*m+h[0],a.y=v[1]*y+h[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":a.x=-v[0]*m+f[0],a.y=-v[1]*y+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*x+f[0],a.y=f[1]+A,d=S[0]<0?"right":"left",a.originX=-m*x,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,d="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*x+h[0],a.y=h[1]+A,d=S[0]>=0?"right":"left",a.originX=m*x,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(_t),LO=function(){function r(t){this.group=new _t,this._LineCtor=t||IO}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=$b(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$b(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!PO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(dd(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){qa(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(dd(i)){var a=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,n,i,a){var o=t.getItemGraphicEl(n);if(!dd(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},r}();function PO(r){return r.animators&&r.animators.length>0}function $b(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:Qr(t)}}function qb(r){return isNaN(r[0])||isNaN(r[1])}function dd(r){return r&&!qb(r[0])&&!qb(r[1])}var pu=mt(),RO=function(r,t,e,n){var i=r.getData(),a;if(F(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Se(n.yAxis,n.xAxis);else{var u=Vb(n,i,t,r);s=u.valueAxis;var f=Ov(i,u.valueDataDim);l=sd(i,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=j(n),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&gt(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,a=[c,d,{type:o,valueIndex:n.valueIndex,value:l}]}else He("Invalid markLine data."),a=[]}var g=[Fo(r,a[0]),Fo(r,a[1]),O({},a[2])];return g[2].type=g[2].type||null,tt(g[2],g[0]),tt(g[2],g[1]),g};function gu(r){return!isNaN(r)&&!isFinite(r)}function Kb(r,t,e,n){var i=1-r,a=n.dimensions[r];return gu(t[i])&&gu(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function EO(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(Kb(1,e,n,r)||Kb(0,e,n,r)))return!0}return zo(r,t[0])&&zo(r,t[1])}function pd(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=ct(o.get("x"),i.getWidth()),u=ct(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,h=r.get(f[0],t),v=r.get(f[1],t);s=a.dataToPoint([h,v])}if(Ui(a,"cartesian2d")){var c=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;gu(r.get(f[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):gu(r.get(f[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 kO=function(r){E(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,n,i){n.eachSeries(function(a){var o=Pr.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=pu(o).from,u=pu(o).to;l.each(function(f){pd(l,f,!0,a,i),pd(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new LO);this.group.add(f.group);var h=OO(o,e,n),v=h.from,c=h.to,d=h.line;pu(n).from=v,pu(n).to=c,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");F(p)||(p=[p,p]),F(g)||(g=[g,g]),F(m)||(m=[m,m]),F(y)||(y=[y,y]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){ht(S).dataModel=n,S.traverse(function(w){ht(w).dataModel=n})});function _(S,w,b){var x=S.getItemModel(w);pd(S,w,b,e,a);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Cl(l,"color")),S.setItemVisual(w,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:J(x.get("symbolOffset",!0),y[b?0:1]),symbolRotate:J(x.get("symbolRotate",!0),m[b?0:1]),symbolSize:J(x.get("symbolSize"),g[b?0:1]),symbol:J(x.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(ud);function OO(r,t,e){var n;r?n=N(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return O(O({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Mr(n,e),a=new Mr(n,e),o=new Mr([],e),s=N(e.get("data"),et(RO,t,r,e));r&&(s=xt(s,et(EO,r)));var l=Gb(!!r,n);return i.initData(N(s,function(u){return u[0]}),null,l),a.initData(N(s,function(u){return u[1]}),null,l),o.initData(N(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function BO(r){r.registerComponentModel(AO),r.registerComponentView(kO),r.registerPreprocessor(function(t){id(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var NO=function(r){E(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,n,i){return new t(e,n,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}(Pr),mu=mt(),FO=function(r,t,e,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Fo(r,i),s=Fo(r,a),l=o.coord,u=s.coord;l[0]=Se(l[0],-1/0),l[1]=Se(l[1],-1/0),u[0]=Se(u[0],1/0),u[1]=Se(u[1],1/0);var f=kd([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function yu(r){return!isNaN(r)&&!isFinite(r)}function Qb(r,t,e,n){var i=1-r;return yu(t[i])&&yu(e[i])}function zO(r,t){var e=t.coord[0],n=t.coord[1],i={coord:e,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Ui(r,"cartesian2d")?e&&n&&(Qb(1,e,n)||Qb(0,e,n))?!0:wO(r,i,a):zo(r,i)||zo(r,a)}function jb(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=ct(o.get(e[0]),i.getWidth()),u=ct(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),h=r.getValues(["x1","y1"],t),v=a.clampData(f),c=a.clampData(h),d=[];e[0]==="x0"?d[0]=v[0]>c[0]?h[0]:f[0]:d[0]=v[0]>c[0]?f[0]:h[0],e[1]==="y0"?d[1]=v[1]>c[1]?h[1]:f[1]:d[1]=v[1]>c[1]?f[1]:h[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),m=[p,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Ui(a,"cartesian2d")){var y=a.getAxis("x"),_=a.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);yu(p)?s[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):yu(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var Jb=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],VO=function(r){E(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,n,i){n.eachSeries(function(a){var o=Pr.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=N(Jb,function(h){return jb(s,l,h,a,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new _t});this.group.add(f.group),this.markKeep(f);var h=GO(o,e,n);n.setData(h),h.each(function(v){var c=N(Jb,function(T){return jb(h,v,T,e,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),m=p.getExtent(),y=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],_=[p.parse(h.get("y0",v)),p.parse(h.get("y1",v))];Ur(y),Ur(_);var S=!(g[0]>y[1]||g[1]<y[0]||m[0]>_[1]||m[1]<_[0]),w=!S;h.setItemLayout(v,{points:c,allClipped:w});var b=h.getItemModel(v).getModel("itemStyle").getItemStyle(),x=Cl(l,"color");b.fill||(b.fill=x,V(b.fill)&&(b.fill=ef(b.fill,.4))),b.stroke||(b.stroke=x),h.setItemVisual(v,"style",b)}),h.diff(mu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var d=new qr({shape:{points:c.points}});h.setItemGraphicEl(v,d),f.group.add(d)}}).update(function(v,c){var d=mu(f).data.getItemGraphicEl(c),p=h.getItemLayout(v);p.allClipped?d&&f.group.remove(d):(d?Bt(d,{shape:{points:p.points}},n,v):d=new qr({shape:{points:p.points}}),h.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var c=mu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),Zn(v,Qr(d),{labelFetcher:n,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:V(p.fill)?ef(p.fill,1):"#000"}),Ba(v,d),Hn(v,null,null,d.get(["emphasis","disabled"])),ht(v).dataModel=n}),mu(f).data=h,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(ud);function GO(r,t,e){var n,i,a=["x0","y0","x1","y1"];if(r){var o=N(r&&r.dimensions,function(u){var f=t.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return O(O({},h),{name:u,ordinalMeta:null})});i=N(a,function(u,f){return{name:u,type:o[f%2].type}}),n=new Mr(i,e)}else i=[{name:"value",type:"float"}],n=new Mr(i,e);var s=N(e.get("data"),et(FO,t,r,e));r&&(s=xt(s,et(zO,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return jr(c,i[v])}:function(u,f,h,v){return jr(u.value,i[v])};return n.initData(s,null,l),n.hasItemOption=!0,n}function HO(r){r.registerComponentModel(NO),r.registerComponentView(VO),r.registerPreprocessor(function(t){id(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var WO=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"])}},gd=function(r){E(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,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),F(n)&&C(n,function(a,o){V(a)&&(a={type:a}),n[o]=tt(a,WO(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Pf(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=$(),s=N(a,function(l){return(V(l)||gt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new wt(l,this,this.ecModel))},this);this._data=xt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;C(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;C(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;C(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&at(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}(lt),Qi=et,md=C,_u=_t,tw=function(r){E(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 _u),this.group.add(this._selectorGroup=new _u),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=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,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),c=vr(f,h,v),d=this.layoutInner(e,o,c,a,l,u),p=vr(st({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jS(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=$(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),md(n.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new _u;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),w=y.getVisual("style"),b=this._createItem(m,p,d,c,n,e,_,w,S,h,a);b.on("click",Qi(ew,p,null,a,v)).on("mouseover",Qi(yd,m.name,null,a,v)).on("mouseout",Qi(_d,m.name,null,a,v)),f.set(p,!0)}else i.eachRawSeries(function(x){if(!f.get(p)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(p))return;var A=T.indexOfName(p),D=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),I=le(D.fill);I&&I[3]===0&&(I[3]=.2,D=O(O({},D),{fill:Gr(I,"rgba")}));var L=this._createItem(x,p,d,c,n,e,{},D,M,h,a);L.on("click",Qi(ew,null,p,a,v)).on("mouseover",Qi(yd,null,p,a,v)).on("mouseout",Qi(_d,null,p,a,v)),f.set(p,!0)}},this);f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();md(e,function(u){var f=u.type,h=new Tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);Zn(h,{normal:v,emphasis:c},{defaultText:u.title}),Oa(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=UO(f,a,l,u,c,g,v),w=new _u,b=a.getModel("textStyle");if(G(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;w.add(YO({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,A=s,D=o.get("formatter"),M=n;V(D)&&D?M=D.replace("{name}",n??""):G(D)&&(M=D(n));var I=g?b.getTextColor():a.get("inactiveColor");w.add(new Tt({style:hr(b,{text:M,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new bt({shape:w.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&$a({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),Oa(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ri(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ri("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.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]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[m]/2-v[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]=f[g]+d+v[g],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[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}(Nt);function UO(r,t,e,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),md(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:fv(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function YO(r){var t=r.icon||"roundRect",e=Ke(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 ew(r,t,e,n){_d(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),yd(r,t,e,n)}function rw(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function yd(r,t,e,n){rw(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function _d(r,t,e,n){rw(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function ZO(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function Vo(r,t,e){var n={},i=r==="toggleSelected",a;return e.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();C(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function XO(r){r.registerAction("legendToggleSelect","legendselectchanged",et(Vo,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",et(Vo,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",et(Vo,"inverseSelect")),r.registerAction("legendSelect","legendselected",et(Vo,"select")),r.registerAction("legendUnSelect","legendunselected",et(Vo,"unSelect"))}function nw(r){r.registerComponentModel(gd),r.registerComponentView(tw),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,ZO),r.registerSubTypeDefaulter("legend",function(){return"plain"}),XO(r)}var $O=function(r){E(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,n,i){var a=io(e);r.prototype.init.call(this,e,n,i),iw(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),iw(this,this.option,e)},t.type="legend.scroll",t.defaultOption=rl(gd.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}(gd);function iw(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,$n(t,e,{type:"box",ignoreSize:!!i})}var aw=_t,Sd=["width","height"],bd=["x","y"],qO=function(r){E(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 aw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new aw)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=F(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new Tt({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=Xa(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:X(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Sd[u],h=bd[u],v=Sd[1-u],c=bd[1-u];o&&Ri("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=j(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(e,a,m,u,f,v,c,h);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[h]-=_}y[f]+=p[f]+d,g[1-u]+=y[c]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),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,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Ri(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),Ri("horizontal",v,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>i[o],g=[-c.x,-c.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),v.setPosition(y);var w={x:0,y:0};if(w[o]=p?i[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],h.setClipPath(new bt({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&Bt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",V(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Sd[o],l=bd[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!w(_,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)_=S(f[g]),(!_||!w(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(b){if(b){var x=b.getBoundingRect(),T=x[l]+b[l];return{s:T,e:T+x[s],i:b.__legendDataIndex}}}function w(b,x){return b.e>=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n??a},t.type="legend.scroll",t}(tw);function KO(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function QO(r){Qt(nw),r.registerComponentModel($O),r.registerComponentView(qO),KO(r)}function jO(r){Qt(nw),Qt(QO)}var JO=function(r){E(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=rl(Eo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Eo),tB=function(r){E(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=X(n._mousedownHandler,n),a=X(n._mousemoveHandler,n),o=X(n._mouseupHandler,n),s=X(n._mousewheelHandler,n),l=X(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=st(j(f)||{},{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",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}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(!Xd(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Su("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||ib(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&pi(e.event),ow(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Xd(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=Su("zoomOnMouseWheel",e,this._opt),i=Su("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;wd(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);wd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!ib(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;wd(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Te);function wd(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(pi(n.event),ow(r,t,e,n,i))}function ow(r,t,e,n,i){i.isAvailableBehavior=X(Su,null,e,n),r.trigger(t,i)}function Su(r,t,e){var n=e[r];return!r||n&&(!V(n)||t.event[n+"Key"])}var xd=mt();function eB(r,t,e){xd(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function rB(r,t){for(var e=xd(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||sw(e,o))}}}function sw(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function nB(r,t){var e={model:t,containsPoint:et(aB,t),dispatchAction:et(iB,r),dataZoomInfoMap:null,controller:null},n=e.controller=new tB(r.getZr());return C(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!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 iB(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function aB(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function oB(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function sB(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=xd(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=$());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=ZS(a);C(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,nB(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=$());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){sw(i,a);return}var f=oB(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Sl(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var lB=function(r){E(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,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),eB(i,e,{pan:X(Td.pan,this),zoom:X(Td.zoom,this),scrollMove:X(Td.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){rB(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Bc),Td={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Cd[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ko(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:lw(function(r,t,e,n,i,a){var o=Cd[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:lw(function(r,t,e,n,i,a){var o=Cd[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function lw(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(ko(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Cd={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=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=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function uB(r){Fc(r),r.registerComponentModel(JO),r.registerComponentView(lB),sB(r)}var fB=function(r){E(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=rl(Eo.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Eo),Go=bt,uw=7,hB=1,Ad=30,vB=7,Ho="horizontal",fw="vertical",cB=5,dB=["line","bar","candlestick","scatter"],pB={easing:"cubicOut",duration:100,delay:0},gB=function(r){E(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,n){this.api=n,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),Sl(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bl(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 n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?vB:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Ho?{right:s.width-o.x-o.width,top:s.height-Ad-uw-a,width:o.width,height:Ad}:{right:uw,top:o.y,width:Ad,height:o.height},u=io(e.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=vr(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===fw&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ho&&!o?{scaleY:l?1:-1,scaleX:1}:i===Ho&&o?{scaleY:l?1:-1,scaleX:-1}:i===fw&&!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=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Go({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Go({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),s=this.api.getZr();a?(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 n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],m=d[1]/(o.count()-1),y=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(A,D){if(_>0&&D%_){y+=m;return}var M=A==null||isNaN(A)||A==="",I=M?0:zt(A,h,c,!0);M&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([y,0]),g.push([y,0])),p.push([y,I]),g.push([y,I]),y+=m,S=M}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function b(A){var D=w.getModel(A?"selectedDataBackground":"dataBackground"),M=new _t,I=new qr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Kr({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var x=0;x<3;x++){var T=b(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();C(l,function(u){if(!i&&!(n!==!0&&at(dB,u.get("type"))<0)){var f=a.getComponent(vn(o),s).axis,h=mB(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=n.filler=new Go({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Go({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:hB,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=l.get("handleIcon");!Al[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,Ie("handleIcon now needs 'path://' prefix when using a path string"));var w=Ke(S,-1,0,2,2,null,!0);w.attr({cursor:hw(this._orient),draggable:!0,drift:X(this._onDragMove,this,_),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),x=l.get("handleSize");this._handleHeight=ct(x,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Oa(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(i[_]=w);var A=l.getModel("textStyle");e.add(a[_]=new Tt({silent:!0,invisible:!0,style:hr(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var d=ct(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=n.moveHandleIcon=Ke(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=n.moveZone=new bt({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:hw(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[zt(e[0],[0,100],n,!0),zt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ko(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?zt(s.minSpan,l,o,!0):null,s.maxSpan!=null?zt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ur([zt(a[0],o,l,!0),zt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=Ur(i.slice()),o=this._size;C([0,1],function(c){var d=n.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),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new bt,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=Ur(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(d){var p=Ya(i.handles[d].parent,this.group),g=mh(d===0?"right":"left",p),m=this._handleWidth/2+cB,y=Za([v[d]+(d===0?-m:m),this._size[1]/2],p);a[d].setStyle({x:y[0],y:y[1],verticalAlign:o===Ho?"middle":g,align:o===Ho?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return G(a)?a(e,s):V(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,i,a){this._dragging=!0,pi(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Za([n,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 n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new nt(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ur([zt(i.x,o,s,!0),zt(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&&(pi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Go({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?pB:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=ZS(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Bc);function mB(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function hw(r){return r==="vertical"?"ns-resize":"ew-resize"}function yB(r){r.registerComponentModel(fB),r.registerComponentView(gB),Fc(r)}function _B(r){Qt(uB),Qt(yB)}var SB={label:{enabled:!0},decal:{show:!1}},vw=mt(),bB={};function wB(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=j(SB);tt(n.label,r.getLocaleModel().get("aria"),!1),tt(e.option,n,!1),i(),a();function i(){var u=e.getModel("decal"),f=u.get("show");if(f){var h=$();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),vw(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(G(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var y=Jm(v.ecModel,v.name,bB,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,y))}else{var d=v.getRawData(),p={},g=vw(v).scope;c.each(function(w){var b=c.getRawIndex(w);p[b]=w});var m=d.count();d.each(function(w){var b=p[w],x=d.getName(w)||w+"",T=Jm(v.ecModel,x,g,m),A=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",S(A,T))})}function S(w,b){var x=w?O(O({},b),w):b;return x.dirty=!0,x}})}}function a(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=st(f.option,u),!!f.get("enabled")){var h=t.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,A){if(A<p){var D=void 0,M=T.get("name"),I=M?"withName":"withoutName";D=v>1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),k=f.get(["data","separator","end"]),H=[],B=0;B<L.count();B++)if(B<c){var z=L.getName(B),Z=L.getValues(B),it=f.get(["data",z?"withName":"withoutName"]);H.push(o(it,{name:z,value:Z.join(R)}))}D+=H.join(R)+k,_.push(D)}});var w=f.getModel(["series","multiple","separator"]),b=w.get("middle"),x=w.get("end");g+=_.join(b)+x,h.setAttribute("aria-label",g)}}}function o(u,f){if(!V(u))return u;var h=u;return C(f,function(v,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function xB(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},C(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function TB(r){r.registerPreprocessor(xB),r.registerVisual(r.PRIORITY.VISUAL.ARIA,wB)}var CB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new ky(this),Oy(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Oy(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:dr},t}(lt),AB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Nt);function MB(r){r.registerComponentModel(CB),r.registerComponentView(AB)}Qt([cP]),Qt([lP]),Qt([OP,KP,uR,ZR]),Qt([VE,pO,Lc,jO,mE,yO,CO,BO,HO,_B,Kk,TB,MB]),U.Axis=H_,U.ChartView=qt,U.ComponentModel=lt,U.ComponentView=Nt,U.List=Mr,U.Model=wt,U.PRIORITY=P0,U.SeriesModel=ie,U.color=Lx,U.connect=FI,U.dataTool=YI,U.dependencies=SI,U.disConnect=zI,U.disconnect=Z0,U.dispose=VI,U.env=Q,U.extendChartView=b2,U.extendComponentModel=y2,U.extendComponentView=_2,U.extendSeriesModel=S2,U.format=s2,U.getCoordinateSystemDimensions=HI,U.getInstanceByDom=Tv,U.getInstanceById=GI,U.getMap=UI,U.graphic=o2,U.helper=jL,U.init=NI,U.innerDrawElementOnCanvas=lv,U.matrix=ix,U.number=i2,U.parseGeoJSON=k_,U.parseGeoJson=k_,U.registerAction=je,U.registerCoordinateSystem=q0,U.registerLayout=K0,U.registerLoading=Iv,U.registerLocale=Th,U.registerMap=j0,U.registerPostInit=X0,U.registerPostUpdate=$0,U.registerPreprocessor=Av,U.registerProcessor=Mv,U.registerTheme=Cv,U.registerTransform=J0,U.registerUpdateLifecycle=zl,U.registerVisual=en,U.setCanvasCreator=WI,U.setPlatformAPI=Ld,U.throttle=_l,U.time=a2,U.use=Qt,U.util=l2,U.vector=Ww,U.version=_I,U.zrUtil=Ew,U.zrender=hT,Object.defineProperty(U,"__esModule",{value:!0})})})(Dd,Dd.exports);var IB=Dd.exports;const RB=DB(IB);export{RB as e};
