import{d as Kl,l as wi,r as Mh,w as Dh,ae as Vb,C as Hb,a7 as Wb,a9 as Ub,o as t_,c as e_,L as $b,af as Yb,_ as r_,b as Zb,u as Xb}from"./index-8184dd63-1780045603901v=1.0.0.js";import{u as qb}from"./index-1ac23b31-1780045603901v=1.0.0.js";/*! *****************************************************************************
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 Lh=function(r,t){return Lh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Lh(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Kb=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),jb=function(){function r(){this.browser=new Kb,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}(),tn=new jb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(tn.wxa=!0,tn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?tn.worker=!0:!tn.hasGlobalWindow||"Deno"in window?(tn.node=!0,tn.svgSupported=!0):Jb(navigator.userAgent,tn);function Jb(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[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}const lt=tn;var jv=12,Qb="sans-serif",sa=jv+"px "+Qb,tT=20,eT=100,rT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nT(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-tT)/eT;t[n]=a}return t}var aT=nT(rT),Fr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=Fr.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||sa),r.measureText(e);e=e||"",n=n||sa;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||jv,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=aT[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 n_(r){for(var t in Fr)r[t]&&(Fr[t]=r[t])}var a_=rr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),i_=rr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),hi=Object.prototype.toString,jl=Array.prototype,iT=jl.forEach,oT=jl.filter,Jv=jl.slice,sT=jl.map,Zd=function(){}.constructor,ts=Zd?Zd.prototype:null,Qv="__proto__",lT=2311;function tc(){return lT++}function fn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function tt(r){if(r==null||typeof r!="object")return r;var t=r,e=hi.call(r);if(e==="[object Array]"){if(!Xa(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=tt(r[n])}}else if(i_[e]){if(!Xa(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!a_[e]&&!Xa(r)&&!cn(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Qv&&(t[o]=tt(r[o]))}return t}function at(r,t,e){if(!X(t)||!X(r))return e?tt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Qv){var a=r[n],i=t[n];X(i)&&X(a)&&!V(i)&&!V(a)&&!cn(i)&&!cn(a)&&!Ih(i)&&!Ih(a)&&!Xa(i)&&!Xa(a)?at(a,i,e):(e||!(n in r))&&(r[n]=tt(t[n]))}return r}function ec(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=at(e,r[n],t);return e}function F(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Qv&&(r[e]=t[e]);return r}function Z(r,t,e){for(var n=St(t),a=0,i=n.length;a<i;a++){var o=n[a];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var uT=Fr.createCanvas;function ft(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 rc(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function ce(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),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else Z(r,t,e)}function te(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(!!(r&&t))if(r.forEach&&r.forEach===iT)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function z(r,t,e){if(!r)return[];if(!t)return Jl(r);if(r.map&&r.map===sT)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function rr(r,t,e,n){if(!!(r&&t)){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function bt(r,t,e){if(!r)return[];if(!t)return Jl(r);if(r.filter&&r.filter===oT)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function o_(r,t,e){if(!!(r&&t)){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function St(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 fT(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Jv.call(arguments)))}}var K=ts&&q(ts.bind)?ts.call.bind(ts.bind):fT;function ct(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Jv.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):hi.call(r)==="[object Array]"}function q(r){return typeof r=="function"}function W(r){return typeof r=="string"}function co(r){return hi.call(r)==="[object String]"}function gt(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Ih(r){return!!a_[hi.call(r)]}function ee(r){return!!i_[hi.call(r)]}function cn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Oo(r){return r.colorStops!=null}function s_(r){return r.image!=null}function nc(r){return hi.call(r)==="[object RegExp]"}function ei(r){return r!==r}function nr(){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 rt(r,t){return r!=null?r:t}function hn(r,t,e){return r!=null?r:t!=null?t:e}function Jl(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Jv.apply(r,t)}function ac(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 J(r,t){if(!r)throw new Error(t)}function Ge(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var l_="__ec_primitive__";function po(r){r[l_]=!0}function Xa(r){return r[l_]}var hT=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 St(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),u_=typeof Map=="function";function vT(){return u_?new Map:new hT}var f_=function(){function r(t){var e=V(t);this.data=vT();var n=this;t instanceof r?t.each(a):t&&M(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}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,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return u_?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function U(r){return new f_(r)}function ll(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function No(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&F(e,t),e}function ic(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function re(r,t){return r.hasOwnProperty(t)}function Qt(){}var h_=180/Math.PI;const cT=Object.freeze(Object.defineProperty({__proto__:null,guid:tc,logError:fn,clone:tt,merge:at,mergeAll:ec,extend:F,defaults:Z,createCanvas:uT,indexOf:ft,inherits:rc,mixin:ce,isArrayLike:te,each:M,map:z,reduce:rr,filter:bt,find:o_,keys:St,bind:K,curry:ct,isArray:V,isFunction:q,isString:W,isStringSafe:co,isNumber:gt,isObject:X,isBuiltInObject:Ih,isTypedArray:ee,isDom:cn,isGradientObject:Oo,isImagePatternObject:s_,isRegExp:nc,eqNaN:ei,retrieve:nr,retrieve2:rt,retrieve3:hn,slice:Jl,normalizeCssArray:ac,assert:J,trim:Ge,setAsPrimitive:po,isPrimitive:Xa,HashMap:f_,createHashMap:U,concatArray:ll,createObject:No,disableUserSelect:ic,hasOwn:re,noop:Qt,RADIAN_TO_DEGREE:h_},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
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 Ph=function(r,t){return Ph=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Ph(r,t)};function xt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ph(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ga(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function v_(r,t){return r[0]=t[0],r[1]=t[1],r}function c_(r){return[r[0],r[1]]}function dT(r,t,e){return r[0]=t,r[1]=e,r}function Rh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function pT(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function oc(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function sc(r){return Math.sqrt(lc(r))}var gT=sc;function lc(r){return r[0]*r[0]+r[1]*r[1]}var yT=lc;function mT(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function _T(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function ST(r,t){return r[0]*t[0]+r[1]*t[1]}function Ys(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ql(r,t){var e=sc(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function ul(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ir=ul;function d_(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ta=d_;function wT(r,t){return r[0]=-t[0],r[1]=-t[1],r}function ro(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 Vt(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function Pr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Rr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const xT=Object.freeze(Object.defineProperty({__proto__:null,create:ga,copy:v_,clone:c_,set:dT,add:Rh,scaleAndAdd:pT,sub:oc,len:sc,length:gT,lenSquare:lc,lengthSquare:yT,mul:mT,div:_T,dot:ST,scale:Ys,normalize:Ql,distance:ul,dist:Ir,distanceSquare:d_,distSquare:ta,negate:wT,lerp:ro,applyTransform:Vt,min:Pr,max:Rr},Symbol.toStringTag,{value:"Module"}));var wa=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),bT=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 wa(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new wa(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new wa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new wa(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new wa(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new wa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const TT=bT;var CT=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[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 a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.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 i&&i.afterTrigger&&i.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 a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(t),this},r}();const He=CT;var AT=Math.log(2);function Eh(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/AT);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&a||(h+=(c%2?-1:1)*r[e][v]*Eh(r,t-1,f,u,a|d,i),c++)}return i[o]=h,h}function Xd(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={},a=Eh(e,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Eh(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var qd="___zrEVENTSAVED",zu=[];function MT(r,t,e,n,a){return kh(zu,t,n,a,!0)&&kh(r,e,zu[0],zu[1])}function kh(r,t,e,n,a){if(t.getBoundingClientRect&&lt.domSupported&&!p_(t)){var i=t[qd]||(t[qd]={}),o=DT(t,i),s=LT(o,i,a);if(s)return s(r,e,n),!0}return!1}function DT(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>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",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function LT(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=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&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?Xd(s,o):Xd(o,s))}function p_(r){return r.nodeName.toUpperCase()==="CANVAS"}var IT=/([&<>"'])/g,PT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function se(r){return r==null?"":(r+"").replace(IT,function(t,e){return PT[e]})}var RT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vu=[],ET=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function Oh(r,t,e,n){return e=e||{},n?Kd(r,t,e):ET&&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):Kd(r,t,e),e}function Kd(r,t,e){if(lt.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(p_(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(kh(Vu,r,n,a)){e.zrX=Vu[0],e.zrY=Vu[1];return}}e.zrX=e.zrY=0}function uc(r){return r||window.event}function Ee(r,t,e){if(t=uc(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Oh(r,o,t,e)}else{Oh(r,t,t,e);var i=kT(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&RT.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function kT(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function Nh(r,t,e,n){r.addEventListener(t,e,n)}function OT(r,t,e,n){r.removeEventListener(t,e,n)}var ri=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function jd(r){return r.which===2||r.which===3}var NT=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 a=t.touches;if(!!a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=Oh(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Hu)if(Hu.hasOwnProperty(e)){var n=Hu[e](this._track,t);if(n)return n}},r}();function Jd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function BT(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Hu={pinch:function(r,t){var e=r.length;if(!!e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Jd(n)/Jd(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=BT(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function tr(){return[1,0,0,1,0,0]}function Bo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function tu(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 _r(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=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]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function ni(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 vi(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=a*h+s*f,r[1]=-a*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function fc(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function ya(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}function FT(r){var t=tr();return tu(t,r),t}const GT=Object.freeze(Object.defineProperty({__proto__:null,create:tr,identity:Bo,copy:tu,mul:_r,translate:ni,rotate:vi,scale:fc,invert:ya,clone:FT},Symbol.toStringTag,{value:"Module"}));var zT=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,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}();const j=zT;var es=Math.min,rs=Math.max,Tn=new j,Cn=new j,An=new j,Mn=new j,xi=new j,bi=new j,VT=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=es(t.x,this.x),n=es(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rs(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=rs(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,a=t.height/e.height,i=tr();return ni(i,i,[-e.x,-e.y]),fc(i,i,[n,a]),ni(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=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=!(i<l||u<a||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);i<l||u<a?_>d&&(d=_,p<g?j.set(bi,-p,0):j.set(bi,g,0)):_<c&&(c=_,p<g?j.set(xi,p,0):j.set(xi,-g,0)),s<f||h<o?S>d&&(d=S,y<m?j.set(bi,0,-y):j.set(bi,0,m)):_<c&&(c=_,y<m?j.set(xi,0,y):j.set(xi,0,-m))}return e&&j.copy(e,v?xi:bi),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 a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Tn.x=An.x=e.x,Tn.y=Mn.y=e.y,Cn.x=Mn.x=e.x+e.width,Cn.y=An.y=e.y+e.height,Tn.transform(n),Mn.transform(n),Cn.transform(n),An.transform(n),t.x=es(Tn.x,Cn.x,An.x,Mn.x),t.y=es(Tn.y,Cn.y,An.y,Mn.y);var l=rs(Tn.x,Cn.x,An.x,Mn.x),u=rs(Tn.y,Cn.y,An.y,Mn.y);t.width=l-t.x,t.height=u-t.y},r}();const nt=VT;var g_="silent";function HT(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:WT}}function WT(){ri(this.event)}var UT=function(r){xt(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}(He),Ti=function(){function r(t,e){this.x=t,this.y=e}return r}(),$T=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wu=new nt(0,0,0,0),y_=function(r){xt(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Ti(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new UT,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new TT(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M($T,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,a=e.zrY,i=m_(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Ti(n,a):this.findHover(n,a),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 Ti(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.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,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=HT(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.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,a){var i=this.storage.getDisplayList(),o=new Ti(e,n);if(Qd(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new nt(e-u,n-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==a&&!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 y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(Qd(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new NT);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Ti;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(He);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){y_.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=m_(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.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||Ir(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function YT(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?g_:!0}return!1}function Qd(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=YT(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==g_)){t.target=o;break}}}function m_(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const ZT=y_;var __=32,Ci=7;function XT(r){for(var t=0;r>=__;)t|=r&1,r>>=1;return r+t}function tp(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;qT(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function qT(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function ep(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,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]=i}}function Uu(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function $u(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function KT(r,t){var e=Ci,n,a,i=0,o=[];n=[],a=[];function s(c,d){n[i]=c,a[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&a[c-1]<=a[c]+a[c+1]||c>=2&&a[c-2]<=a[c]+a[c-1])a[c-1]<a[c+1]&&c--;else if(a[c]>a[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&a[c-1]<a[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=a[c],g=n[c+1],y=a[c+1];a[c]=p+y,c===i-3&&(n[c+1]=n[c+2],a[c+1]=a[c+2]),i--;var m=$u(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=Uu(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var w=e,x,b,T;;){x=0,b=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],b++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,b=0,--d===1){T=!0;break}while((x|b)<w);if(T)break;do{if(x=$u(r[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(b=Uu(o[m],r,_,g,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=r[_+y];if(S+=b,_+=b,g-=b,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}w--}while(x>=Ci||b>=Ci);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,w=0,x=0;if(r[S--]=r[m--],--d===0){for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<b);if(A)break;do{if(T=d-$u(o[_],r,c,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,x=S+1,w=m+1,y=T-1;y>=0;y--)r[x+y]=r[w+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Uu(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,w=_+1,y=0;y<C;y++)r[x+y]=o[w+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}b--}while(T>=Ci||C>=Ci);if(A)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Zs(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<__){i=tp(r,e,n,t),ep(r,e,n,e+i,t);return}var o=KT(r,t),s=XT(a);do{if(i=tp(r,e,n,t),i<s){var l=a;l>s&&(l=s),ep(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var Ce=1,Xi=2,za=4,rp=!1;function Yu(){rp||(rp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function np(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var jT=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=np}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,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,Zs(n,np)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ce),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)&&(Yu(),f.z=0),isNaN(f.z2)&&(Yu(),f.z2=0),isNaN(f.zlevel)&&(Yu(),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 a=ft(this._roots,t);a>=0&&this._roots.splice(a,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}();const JT=jT;var S_;S_=lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Bh=S_;var Xs={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-Xs.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?Xs.bounceIn(r*2)*.5:Xs.bounceOut(r*2-1)*.5+.5}};const w_=Xs;var ns=Math.pow,vn=Math.sqrt,fl=1e-8,x_=1e-4,ap=vn(3),as=1/3,dr=ga(),Ne=ga(),qa=ga();function on(r){return r>-fl&&r<fl}function b_(r){return r>fl||r<-fl}function Ft(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function ip(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function hl(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(on(f)&&on(h))if(on(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(on(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=vn(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ns(-_,as):_=ns(_,as),S<0?S=-ns(-S,as):S=ns(S,as);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*vn(f*f*f)),x=Math.acos(w)/3,b=vn(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+ap*Math.sin(x)))/(3*o),C=(-s+b*(T-ap*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function T_(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(on(o)){if(b_(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(on(f))a[0]=-i/(2*o);else if(f>0){var h=vn(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function dn(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=n}function C_(r,t,e,n,a,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;dr[0]=l,dr[1]=u;for(var m=0;m<1;m+=.05)Ne[0]=Ft(r,e,a,o,m),Ne[1]=Ft(t,n,i,s,m),g=ta(dr,Ne),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<x_);_++)d=h-v,p=h+v,Ne[0]=Ft(r,e,a,o,d),Ne[1]=Ft(t,n,i,s,d),g=ta(Ne,dr),d>=0&&g<c?(h=d,c=g):(qa[0]=Ft(r,e,a,o,p),qa[1]=Ft(t,n,i,s,p),y=ta(qa,dr),p<=1&&y<c?(h=p,c=y):v*=.5);return f&&(f[0]=Ft(r,e,a,o,h),f[1]=Ft(t,n,i,s,h)),vn(c)}function QT(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=Ft(r,e,a,o,d),g=Ft(t,n,i,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function Ut(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function Fh(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function tC(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(on(i)){if(b_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(on(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=vn(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function A_(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function vl(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function M_(r,t,e,n,a,i,o,s,l){var u,f=.005,h=1/0;dr[0]=o,dr[1]=s;for(var v=0;v<1;v+=.05){Ne[0]=Ut(r,e,a,v),Ne[1]=Ut(t,n,i,v);var c=ta(dr,Ne);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<x_);d++){var p=u-f,g=u+f;Ne[0]=Ut(r,e,a,p),Ne[1]=Ut(t,n,i,p);var c=ta(Ne,dr);if(p>=0&&c<h)u=p,h=c;else{qa[0]=Ut(r,e,a,g),qa[1]=Ut(t,n,i,g);var y=ta(qa,dr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=Ut(r,e,a,u),l[1]=Ut(t,n,i,u)),vn(h)}function eC(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Ut(r,e,a,v),d=Ut(t,n,i,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var rC=/cubic-bezier\(([0-9,\.e ]+)\)/;function D_(r){var t=r&&rC.exec(r);if(t){var e=t[1].split(","),n=+Ge(e[0]),a=+Ge(e[1]),i=+Ge(e[2]),o=+Ge(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:hl(0,n,i,1,l,s)&&Ft(0,a,o,1,s[0])}}}var nC=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||Qt,this.ondestroy=t.ondestroy||Qt,this.onrestart=t.onrestart||Qt,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,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%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=q(t)?t:w_[t]||D_(t)},r}();const aC=nC;var L_=function(){function r(t){this.value=t}return r}(),iC=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new L_(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}(),oC=function(){function r(t){this._list=new iC,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new L_(e),s.key=t,n.insertEntry(s),a[t]=s}return i},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}();const Fo=oC;var op={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 er(r){return r=Math.round(r),r<0?0:r>255?255:r}function sC(r){return r=Math.round(r),r<0?0:r>360?360:r}function go(r){return r<0?0:r>1?1:r}function Zu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?er(parseFloat(t)/100*255):er(parseInt(t,10))}function ea(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?go(parseFloat(t)/100):go(parseFloat(t))}function Xu(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 sn(r,t,e){return r+(t-r)*e}function Re(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function Gh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var I_=new Fo(20),is=null;function xa(r,t){is&&Gh(is,t),is=I_.put(r,is||t.slice())}function Ae(r,t){if(!!r){t=t||[];var e=I_.get(r);if(e)return Gh(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in op)return Gh(t,op[n]),xa(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Re(t,0,0,0,1);return}return Re(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),xa(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Re(t,0,0,0,1);return}return Re(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),xa(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){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?Re(t,+u[0],+u[1],+u[2],1):Re(t,0,0,0,1);f=ea(u.pop());case"rgb":if(u.length>=3)return Re(t,Zu(u[0]),Zu(u[1]),Zu(u[2]),u.length===3?f:ea(u[3])),xa(r,t),t;Re(t,0,0,0,1);return;case"hsla":if(u.length!==4){Re(t,0,0,0,1);return}return u[3]=ea(u[3]),zh(u,t),xa(r,t),t;case"hsl":if(u.length!==3){Re(t,0,0,0,1);return}return zh(u,t),xa(r,t),t;default:return}}Re(t,0,0,0,1)}}function zh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=ea(r[1]),a=ea(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Re(t,er(Xu(o,i,e+1/3)*255),er(Xu(o,i,e)*255),er(Xu(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function lC(r){if(!!r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,h=((i-e)/6+o/2)/o,v=((i-n)/6+o/2)/o;t===i?l=v-h:e===i?l=1/3+f-v:n===i&&(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 Vh(r,t){var e=Ae(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 wn(e,e.length===4?"rgba":"rgb")}}function uC(r){var t=Ae(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function P_(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=er(sn(o[0],s[0],l)),e[1]=er(sn(o[1],s[1],l)),e[2]=er(sn(o[2],s[2],l)),e[3]=go(sn(o[3],s[3],l)),e}}var fC=P_;function hc(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Ae(t[a]),s=Ae(t[i]),l=n-a,u=wn([er(sn(o[0],s[0],l)),er(sn(o[1],s[1],l)),er(sn(o[2],s[2],l)),go(sn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var hC=hc;function vC(r,t,e,n){var a=Ae(r);if(r)return a=lC(a),t!=null&&(a[0]=sC(t)),e!=null&&(a[1]=ea(e)),n!=null&&(a[2]=ea(n)),wn(zh(a),"rgba")}function cC(r,t){var e=Ae(r);if(e&&t!=null)return e[3]=go(t),wn(e,"rgba")}function wn(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 yo(r,t){var e=Ae(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function dC(){return wn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var sp=new Fo(100);function Hh(r){if(W(r)){var t=sp.get(r);return t||(t=Vh(r,-.1),sp.put(r,t)),t}else if(Oo(r)){var e=F({},r);return e.colorStops=z(r.colorStops,function(n){return{offset:n.offset,color:Vh(n.color,-.1)}}),e}return r}const pC=Object.freeze(Object.defineProperty({__proto__:null,parse:Ae,lift:Vh,toHex:uC,fastLerp:P_,fastMapToColor:fC,lerp:hc,mapToColor:hC,modifyHSL:vC,modifyAlpha:cC,stringify:wn,lum:yo,random:dC,liftColor:Hh},Symbol.toStringTag,{value:"Module"}));function gC(r){return r.type==="linear"}function yC(r){return r.type==="radial"}(function(){return lt.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return fn("Base64 isn't natively supported in the current environment."),null}})();var Wh=Array.prototype.slice;function Dr(r,t,e){return(t-r)*e+r}function qu(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=Dr(t[i],e[i],n);return r}function mC(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Dr(t[o][s],e[o][s],n)}return r}function os(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function lp(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function _C(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function SC(r,t,e){var n=r,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(e===1?a[l]:Wh.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function qs(r){if(te(r)){var t=r.length;if(te(r[0])){for(var e=[],n=0;n<t;n++)e.push(Wh.call(r[n]));return e}return Wh.call(r)}return r}function Ks(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 wC(r){return te(r&&r[0])?2:1}var ss=0,js=1,R_=2,qi=3,Uh=4,$h=5,up=6;function fp(r){return r===Uh||r===$h}function ls(r){return r===js||r===R_}var Ai=[0,0,0,0],xC=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 a=this.keyframes,i=a.length,o=!1,s=up,l=e;if(te(e)){var u=wC(e);s=u,(u===1&&!gt(e[0])||u===2&&!gt(e[0][0]))&&(o=!0)}else if(gt(e)&&!ei(e))s=ss;else if(W(e))if(!isNaN(+e))s=ss;else{var f=Ae(e);f&&(l=f,s=qi)}else if(Oo(e)){var h=F({},l);h.colorStops=z(e.colorStops,function(c){return{offset:c.offset,color:Ae(c.color)}}),gC(e)?s=Uh:yC(e)&&(s=$h),l=h}i===0?this.valType=s:(s!==this.valType||s===up)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=q(n)?n:w_[n]||D_(n)),a.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 a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=ls(a),u=fp(a),f=0;f<i;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==i-1?SC(v,c,a):u&&_C(v.colorStops,c.colorStops))}if(!s&&a!==$h&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<i;f++)a===ss?n[f].additiveValue=n[f].value-d:a===qi?n[f].additiveValue=os([],n[f].value,d,-1):ls(a)&&(n[f].additiveValue=a===js?os([],n[f].value,d,-1):lp([],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,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===qi,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,y=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Ai:t[l];if((ls(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?c.rawValue:d.rawValue;else if(ls(i))i===js?qu(m,c[a],d[a],y):mC(m,c[a],d[a],y);else if(fp(i)){var _=c[a],S=d[a],w=i===Uh;t[l]={type:w?"linear":"radial",x:Dr(_.x,S.x,y),y:Dr(_.y,S.y,y),colorStops:z(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:Dr(b.offset,C.offset,y),color:Ks(qu([],b.color,C.color,y))}}),global:S.global},w?(t[l].x2=Dr(_.x2,S.x2,y),t[l].y2=Dr(_.y2,S.y2,y)):t[l].r=Dr(_.r,S.r,y)}else if(u)qu(m,c[a],d[a],y),n||(t[l]=Ks(m));else{var x=Dr(c[a],d[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===ss?t[n]=t[n]+a:e===qi?(Ae(t[n],Ai),os(Ai,Ai,a,1),t[n]=Ks(Ai)):e===js?os(t[n],t[n],a,1):e===R_&&lp(t[n],t[n],a,1)},r}(),bC=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){fn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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,St(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new xC(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===qi&&u&&(u=Ks(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,qs(u),a),this._trackKeys.push(s)}l.addKeyframe(t,qs(e[s]),a)}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 a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,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 aC({life:a,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 y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[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 z(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,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(!!t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=qs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||St(t);for(var n=0;n<e.length;n++){var a=e[n],i=this._tracks[a];if(!!i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();const vc=bC;function Wa(){return new Date().getTime()}var TC=function(r){xt(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,a=e.next;n?n.next=a:this._head=a,a?a.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=Wa()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Bh(n),!e._paused&&e.update())}Bh(n)},t.prototype.start=function(){this._running||(this._time=Wa(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Wa(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Wa()-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 a=new vc(e,n.loop);return this.addAnimator(a),a},t}(He);const CC=TC;var AC=300,Ku=lt.domSupported,ju=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=z(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),hp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vp=!1;function Yh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function MC(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 Ju(r){r&&(r.zrByTouch=!0)}function DC(r,t){return Ee(r.dom,new LC(r,t),!0)}function E_(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 LC=function(){function r(t,e){this.stopPropagation=Qt,this.stopImmediatePropagation=Qt,this.preventDefault=Qt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),qe={mousedown:function(r){r=Ee(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ee(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=Ee(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ee(this.dom,r);var t=r.toElement||r.relatedTarget;E_(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){vp=!0,r=Ee(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){vp||(r=Ee(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ee(this.dom,r),Ju(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),qe.mousemove.call(this,r),qe.mousedown.call(this,r)},touchmove:function(r){r=Ee(this.dom,r),Ju(r),this.handler.processGesture(r,"change"),qe.mousemove.call(this,r)},touchend:function(r){r=Ee(this.dom,r),Ju(r),this.handler.processGesture(r,"end"),qe.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<AC&&qe.click.call(this,r)},pointerdown:function(r){qe.mousedown.call(this,r)},pointermove:function(r){Yh(r)||qe.mousemove.call(this,r)},pointerup:function(r){qe.mouseup.call(this,r)},pointerout:function(r){Yh(r)||qe.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){qe[r]=function(t){t=Ee(this.dom,t),this.trigger(r,t)}});var Zh={pointermove:function(r){Yh(r)||Zh.mousemove.call(this,r)},pointerup:function(r){Zh.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 IC(r,t){var e=t.domHandlers;lt.pointerEventsSupported?M(ju.pointer,function(n){Js(t,n,function(a){e[n].call(r,a)})}):(lt.touchEventsSupported&&M(ju.touch,function(n){Js(t,n,function(a){e[n].call(r,a),MC(t)})}),M(ju.mouse,function(n){Js(t,n,function(a){a=uc(a),t.touching||e[n].call(r,a)})}))}function PC(r,t){lt.pointerEventsSupported?M(hp.pointer,e):lt.touchEventsSupported||M(hp.mouse,e);function e(n){function a(i){i=uc(i),E_(r,i.target)||(i=DC(r,i),t.domHandlers[n].call(r,i))}Js(t,n,a,{capture:!0})}}function Js(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,Nh(r.domTarget,t,e,n)}function Qu(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&OT(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var cp=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),RC=function(r){xt(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new cp(e,qe),Ku&&(a._globalHandlerScope=new cp(document,Zh)),IC(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Qu(this._localHandlerScope),Ku&&Qu(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,Ku&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?PC(this,n):Qu(n)}},t}(He);const EC=RC;var k_=1;lt.hasGlobalWindow&&(k_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cl=k_,Xh=.4,qh="#333",Kh="#ccc",kC="#eee",dp=Bo,pp=5e-5;function Dn(r){return r>pp||r<-pp}var Ln=[],ba=[],tf=tr(),ef=Math.abs,OC=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 Dn(this.rotation)||Dn(this.x)||Dn(this.y)||Dn(this.scaleX-1)||Dn(this.scaleY-1)||Dn(this.skewX)||Dn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(dp(n),this.invTransform=null);return}n=n||tr(),e?this.getLocalTransform(n):dp(n),t&&(e?_r(n,t,n):tu(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ln);var n=Ln[0]<0?-1:1,a=Ln[1]<0?-1:1,i=((Ln[0]-n)*e+n)/Ln[0]||0,o=((Ln[1]-a)*e+a)/Ln[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||tr(),ya(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],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,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&&(t.invTransform=t.invTransform||tr(),_r(ba,t.invTransform,e),e=ba);var n=this.originX,a=this.originY;(n||a)&&(tf[4]=n,tf[5]=a,_r(ba,e,tf),ba[4]-=n,ba[5]-=a,e=ba),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],a=this.invTransform;return a&&Vt(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Vt(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&ef(t[0]-1)>1e-10&&ef(t[3]-1)>1e-10?Math.sqrt(ef(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){NC(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=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||a||s||l){var d=n+s,p=a+l;e[4]=-d*i-v*p*o,e[5]=-p*o-c*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=c*i,e[2]=v*o,u&&vi(e,e,u),e[4]+=n+f,e[5]+=a+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}(),mo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function NC(r,t){for(var e=0;e<mo.length;e++){var n=mo[e];r[n]=t[n]}}const Er=OC;var gp={};function Me(r,t){t=t||sa;var e=gp[t];e||(e=gp[t]=new Fo(500));var n=e.get(r);return n==null&&(n=Fr.measureText(r,t).width,e.put(r,n)),n}function yp(r,t,e,n){var a=Me(r,t),i=cc(t),o=Ki(0,a,e),s=Va(0,i,n),l=new nt(o,s,a,i);return l}function Go(r,t,e,n){var a=((r||"")+"").split(`
`),i=a.length;if(i===1)return yp(a[0],t,e,n);for(var o=new nt(0,0,0,0),s=0;s<a.length;s++){var l=yp(a[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Ki(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Va(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function cc(r){return Me("\u56FD",r)}function pn(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function dl(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=pn(n[0],e.width),u+=pn(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=a,u+=s,f="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var rf="__zr_normal__",nf=mo.concat(["ignore"]),BC=rr(mo,function(r,t){return r[t]=!0,r},{ignore:!1}),Ta={},FC=new nt(0,0,0,0),dc=function(){function r(t){this.id=tc(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[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,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(e),n.position!=null){var f=FC;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ta,n,f):dl(Ta,n,f),i.x=Ta.x,i.y=Ta.y,o=Ta.align,s=Ta.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=pn(h[0],f.width),c=pn(h[1],f.height)),u=!0,i.originX=-i.x+v+(a?0:f.x),i.originY=-i.y+c+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=Ce,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()?Kh:qh},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Ae(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,wn(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||{},F(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(X(t))for(var n=t,a=St(n),i=0;i<a.length;i++){var o=a[i];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 a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==rf)){var o=a.targetName,s=o?e[o]:e;a.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,nf)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},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(rf,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===rf,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ft(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){fn("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);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),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ce),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[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&&a.push(f)}var h=a[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(a),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&=~Ce)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ft(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 a=this.currentStates.slice(),i=ft(a,t),o=ft(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];F(e,i),i.textConfig&&(n=n||{},F(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,o){var s=!(e&&a);e&&e.textConfig?(this.textConfig=F({},a?this.textConfig:n.textConfig),F(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<nf.length;f++){var h=nf[f],v=i&&BC[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(!i)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 Er,this._attachComponent(t),this._textContent=t,this.markRedraw()}},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),F(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|=Ce;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 a=t?this[t]:this;if(!a){fn('Property "'+t+'" is not existed in element '+this.id);return}var i=new vc(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,o=ft(i,t);o>=0&&i.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,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){af(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){af(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=af(this,e,n,a),o=0;o<i.length;o++)i[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=Ce;var e={};function n(i,o,s){e[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(t,i,{get:function(){if(n(i,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){n(i,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&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),r}();ce(dc,He);ce(dc,Er);function af(r,t,e,n,a){e=e||{};var i=[];O_(r,"",r,t,e,n,i,a);var o=i.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(),i.length>0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return i}function of(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function GC(r){return te(r[0])}function zC(r,t,e){if(te(t[e]))if(te(r[e])||(r[e]=[]),ee(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),of(r[e],t[e],n))}else{var a=t[e],i=r[e],o=a.length;if(GC(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?of(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else of(i,a,o);i.length=a.length}else r[e]=t[e]}function VC(r,t){return r===t||te(r)&&te(t)&&HC(r,t)}function HC(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 O_(r,t,e,n,a,i,o,s){for(var l=St(n),u=a.duration,f=a.delay,h=a.additive,v=a.setToFinal,c=!X(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(c||i[y]))if(X(m)&&!te(m)&&!Oo(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}O_(r,y,e[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var x=w.stopTracks(p);if(x){var b=ft(d,w);d.splice(b,1)}}}if(a.force||(p=bt(p,function(D){return!VC(n[D],e[D])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?T[y]=n[y]:e[y]=n[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=qs(e[y]),zC(e,n,y)}}var w=new vc(e,!1,!1,h?bt(d,function(L){return L.targetName===t}):null);w.targetName=t,a.scope&&(w.scope=a.scope),v&&T&&w.whenWithKeys(0,T,p),A&&w.whenWithKeys(0,A,p),w.whenWithKeys(u==null?500:u,s?C:n,p).delay(f||0),r.addAnimator(w,t),o.push(w)}}const N_=dc;var B_=function(r){xt(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,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},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 a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=ft(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.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,a=this._children,i=ft(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];e.call(n,o,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=e.call(n,i);i.isGroup&&!o&&i.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 a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new nt(0,0,0,0),a=e||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(nt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(N_);B_.prototype.type="group";const ot=B_;/*!
* 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 ji={},Kn={};function WC(r){delete Kn[r]}function UC(r){if(!r)return!1;if(typeof r=="string")return yo(r,1)<Xh;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=yo(t[a].color,1);return e/=n,e<Xh}return!1}var $C=function(){function r(t,e,n){var a=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 i=new JT,o=n.renderer||"canvas";if(ji[o]||(o=St(ji)[0]),!ji[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ji[o](e,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!lt.node&&!lt.worker&&!l?new EC(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?lt.touchEventsSupported:!!f,v=44,c;h&&(c=rt(n.pointerSize,v)),this.handler=new ZT(i,s,u,s.root,c),this.animation=new CC({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=UC(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=Wa();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=Wa();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-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._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ot&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,WC(this.id))},r}();function jh(r,t){var e=new $C(tc(),r,t);return Kn[e.id]=e,e}function YC(r){r.dispose()}function ZC(){for(var r in Kn)Kn.hasOwnProperty(r)&&Kn[r].dispose();Kn={}}function XC(r){return Kn[r]}function F_(r,t){ji[r]=t}var Jh;function qC(r){if(typeof Jh=="function")return Jh(r)}function G_(r){Jh=r}var KC="5.6.1";const jC=Object.freeze(Object.defineProperty({__proto__:null,init:jh,dispose:YC,disposeAll:ZC,getInstance:XC,registerPainter:F_,getElementSSRData:qC,registerSSRDataGetter:G_,version:KC},Symbol.toStringTag,{value:"Module"}));var mp=1e-4,z_=20;function JC(r){return r.replace(/^\s+|\s+$/g,"")}function At(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function Y(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 W(r)?JC(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Lt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),z_),r=(+r).toFixed(t),e?r:+r}function Ua(r){return r.sort(function(t,e){return t-e}),r}function gr(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 pl(r)}function pl(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function pc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function QC(r,t,e){if(!r[t])return 0;var n=V_(r,e);return n[t]||0}function V_(r,t){var e=rr(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=z(r,function(c){return(isNaN(c)?0:c)/e*n*100}),i=n*100,o=z(a,function(c){return Math.floor(c)}),s=rr(o,function(c,d){return c+d},0),l=z(a,function(c,d){return c-o[d]});s<i;){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 z(o,function(c){return c/n})}function tA(r,t){var e=Math.max(gr(r),gr(t)),n=r+t;return e>z_?n:Lt(n,e)}var eA=9007199254740991;function gc(r){var t=Math.PI*2;return(r%t+t)%t}function _o(r){return r>-mp&&r<mp}var rA=/^(?:(\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 ze(r){if(r instanceof Date)return r;if(W(r)){var t=rA.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 H_(r){return Math.pow(10,zo(r))}function zo(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 yc(r,t){var e=zo(r),n=Math.pow(10,e),a=r/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function nA(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function aA(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 a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-e),t=a[o],e=i[o];a[0]===a[1]&&i[0]*i[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 Gr(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function mc(r){return!isNaN(Gr(r))}function W_(){return Math.round(Math.random()*9)}function U_(r,t){return t===0?r:U_(t,r%t)}function _p(r,t){return r==null?t:t==null?r:r*t/U_(r,t)}var iA="[ECharts] ",Sp={},oA=typeof console<"u"&&console.warn&&console.log;function eu(r,t,e){if(oA){if(e){if(Sp[t])return;Sp[t]=!0}console[r](iA+t)}}function sA(r,t){eu("log",r,t)}function Et(r,t){eu("warn",r,t)}function Yt(r,t){eu("error",r,t)}function Ve(r){eu("warn","DEPRECATED: "+r,!0)}function Nt(r,t,e){Ve((e?"["+e+"]":"")+(r+" is deprecated, use "+t+" instead."))}function Se(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";{var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":ei(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":q(a)?"function () { ... }":nc(a)?a+"":null};e=z(r,function(a){if(W(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l==null?s:l})}catch{return"?"}else return"?"}).join(" ")}return e}function pt(r){throw new Error(r)}function wp(r,t,e){return(t-r)*e+r}var $_="series\0",Y_="\0_ec_\0";function kt(r){return r instanceof Array?r:r==null?[]:[r]}function gl(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var xp=["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 Vo(r){return X(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function lA(r){return X(r)&&!(r instanceof Array)}function uA(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=U();M(t,function(l,u){if(!X(l)){t[u]=null;return}l.id!=null&&!Tp(l.id)&&bp(l.id),l.name!=null&&!Tp(l.name)&&bp(l.name)});var s=fA(r,o,e);return(n||a)&&hA(s,r,o,t),n&&vA(s,t),n||a?cA(s,t,a):i&&dA(s,t),pA(s),s}function fA(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||ai(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function hA(r,t,e,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=no(a.id),s=e.get(o);if(s!=null){var l=r[s];J(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function vA(r,t){M(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!ai(e)&&!ai(i)&&Z_("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function cA(r,t,e){M(t,function(n){if(!!n){for(var a,i=0;(a=r[i])&&(a.newOption||ai(a.existing)||a.existing&&n.id!=null&&!Z_("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function dA(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function pA(r){var t=U();M(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(r,function(e){var n=e.newOption;J(!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={})}),M(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(!!X(i)){if(o.name=i.name!=null?no(i.name):a?a.name:$_+n,a)o.id=no(a.id);else if(i.id!=null)o.id=no(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Z_(r,t,e){var n=Sr(t[r],null),a=Sr(e[r],null);return n!=null&&a!=null&&n===a}function no(r){if(r==null)throw new Error;return Sr(r,"")}function Sr(r,t){return r==null?t:W(r)?r:gt(r)||co(r)?r+"":t}function bp(r){Et("`"+r+"` is invalid id or name. Must be a string or number.")}function Tp(r){return co(r)||mc(r)}function _c(r){var t=r.name;return!!(t&&t.indexOf($_))}function ai(r){return r&&r.id!=null&&no(r.id).indexOf(Y_)===0}function gA(r){return Y_+r}function yA(r,t,e){M(r,function(n){var a=n.newOption;X(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=mA(t,a,n.existing,e))})}function mA(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function la(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function wt(){var r="__ec_inner_"+_A++;return function(t){return t[r]||(t[r]={})}}var _A=W_();function ao(r,t,e){var n=Sc(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var h=Ho(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 Sc(r,t){var e;if(W(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=U(),i={},o=!1;return M(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ft(t.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var zt={useDefault:!0,enableAll:!1,enableNone:!1},SA={useDefault:!1,enableAll:!0,enableNone:!0};function Ho(r,t,e,n){n=n||zt;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(J(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(J(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function X_(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function wA(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function xA(r){return r==="auto"?lt.domSupported?"html":"richText":r||"html"}function q_(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(gt(n)){var o=wp(e||0,n,a);return Lt(o,i?Math.max(gr(e||0),gr(n)):t)}else{if(W(n))return a<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]=(a<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=wp(c,d,a);s[h]=Lt(o,i?Math.max(gr(c),gr(d)):t)}}return s}}var bA=".",In="___EC__COMPONENT__CONTAINER___",K_="___EC__EXTENDED_CLASS___";function yr(r){var t={main:"",sub:""};if(r){var e=r.split(bA);t.main=e[0]||"",t.sub=e[1]||""}return t}function TA(r){J(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function CA(r){return!!(r&&r[K_])}function wc(r,t){r.$constructor=r,r.extend=function(e){M(t,function(i){e[i]||console.warn("Method `"+i+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var n=this,a;return AA(n)?a=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},rc(a,this)),F(a.prototype,e),a[K_]=!0,a.extend=this.extend,a.superCall=LA,a.superApply=IA,a.superClass=n,a}}function AA(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function j_(r,t){r.extend=t.extend}var MA=Math.round(Math.random()*10);function DA(r){var t=["__\0is_clz",MA++].join("_");r.prototype[t]=!0,J(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function LA(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 IA(r,t,e){return this.superClass.prototype[t].apply(r,e)}function ru(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){TA(a),n.prototype.type=a;var i=yr(a);if(!i.sub)t[i.main]&&console.warn(i.main+" exists."),t[i.main]=n;else if(i.sub!==In){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[In]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=yr(n),i=[],o=t[a.main];return o&&o[In]?M(o,function(s,l){l!==In&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=yr(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return M(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=yr(n),i=t[a.main];return i&&i[In]};function e(n){var a=t[n.main];return(!a||!a[In])&&(a=t[n.main]={},a[In]=!0),a}}function So(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,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&ft(a,l)>=0||i&&ft(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var PA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],RA=So(PA),EA=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return RA(this,t,e)},r}(),Qh=new Fo(50);function kA(r){if(typeof r=="string"){var t=Qh.get(r);return t&&t.image}else return r}function J_(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Qh.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!nu(t)&&i.pending.push(o)):(t=Fr.loadImage(r,Cp,Cp),t.__zrImageSrc=r,Qh.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Cp(){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 nu(r){return r&&r.width&&r.height}var sf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function OA(r,t,e,n,a){var i={};return Q_(i,r,t,e,n,a),i.text}function Q_(r,t,e,n,a,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);i=t1(e,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)e1(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function t1(r,t,e,n){n=n||{};var a=F({},n);a.font=t,e=rt(e,"..."),a.maxIterations=rt(n.maxIterations,2);var i=a.minChar=rt(n.minChar,0);a.cnCharWidth=Me("\u56FD",t);var o=a.ascCharWidth=Me("a",t);a.placeholder=rt(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Me(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function e1(r,t,e){var n=e.containerWidth,a=e.font,i=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=Me(t,a);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?NA(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=Me(t,a)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function NA(r,t,e,n){for(var a=0,i=0,o=r.length;i<o&&a<t;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?e:n}return i}function BA(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,a=t.font,i=e==="truncate",o=cc(a),s=rt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,h=t.width,v;h!=null&&(e==="break"||e==="breakAll")?v=r?r1(r,t.font,h,e==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var c=v.length*s,d=rt(t.height,c);if(c>d&&u){var p=Math.floor(d/s);f=f||v.length>p,v=v.slice(0,p)}if(r&&i&&h!=null)for(var g=t1(h,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<v.length;m++)e1(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<v.length;m++)S=Math.max(Me(v[m],a),S);h==null&&(h=S);var w=S;return n&&(_+=n[0]+n[2],w+=n[1]+n[3],h+=n[1]+n[3]),l&&(w=h),{lines:v,height:d,outerWidth:w,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var FA=function(){function r(){}return r}(),Ap=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),GA=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function zA(r,t){var e=new GA;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=sf.lastIndex=0,l;(l=sf.exec(r))!=null;){var u=l.index;u>s&&lf(e,r.substring(s,u),t,o),lf(e,l[2],t,o,l[1]),s=sf.lastIndex}s<r.length&&lf(e,r.substring(s,r.length),t,o);var f=[],h=0,v=0,c=t.padding,d=i==="truncate",p=t.lineOverflow==="truncate",g={};function y(G,H,$){G.width=H,G.lineHeight=$,h+=$,v=Math.max(v,H)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,w=0,x=0;x<_.tokens.length;x++){var b=_.tokens[x],T=b.styleName&&t.rich[b.styleName]||{},C=b.textPadding=T.padding,A=C?C[1]+C[3]:0,D=b.font=T.font||t.font;b.contentHeight=cc(D);var L=rt(T.height,b.contentHeight);if(b.innerHeight=L,C&&(L+=C[0]+C[2]),b.height=L,b.lineHeight=hn(T.lineHeight,t.lineHeight,L),b.align=T&&T.align||t.align,b.verticalAlign=T&&T.verticalAlign||"middle",p&&a!=null&&h+b.lineHeight>a){var I=e.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,w,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<I;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,f.push(b),b.contentWidth=Me(b.text,D);else{if(R){var E=T.backgroundColor,O=E&&E.image;O&&(O=kA(O),nu(O)&&(b.width=Math.max(b.width,O.width*L/O.height)))}var k=d&&n!=null?n-w:null;k!=null&&k<b.width?!R||k<A?(b.text="",b.width=b.contentWidth=0):(Q_(g,b.text,k-A,D,t.ellipsis,{minChar:t.truncateMinChar}),b.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,b.width=b.contentWidth=Me(b.text,D)):b.contentWidth=Me(b.text,D)}b.width+=A,w+=b.width,T&&(S=Math.max(S,b.lineHeight))}y(_,w,S)}e.outerWidth=e.width=rt(n,v),e.outerHeight=e.height=rt(a,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],N=b.percentWidth;b.width=parseInt(N,10)/100*e.width}return e}function lf(r,t,e,n,a){var i=t==="",o=a&&e.rich[a]||{},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=pn(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var p=r1(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 y=f[g],m=new FA;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Me(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Ap)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new Ap([m]))}}function VA(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var HA=rr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function WA(r){return VA(r)?!!HA[r]:!0}function r1(r,t,e,n,a){for(var i=[],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),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Me(v,t),d=n?!1:!WA(v);if(i.length?f+c>e:a+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var tv="__zr_style_"+Math.round(Math.random()*10),ra={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},au={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ra[tv]=!0;var Mp=["z","z2","invisible"],UA=["invisible"],$A=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=St(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&YA(this,e,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&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 a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new nt(0,0,0,0)),n?nt.applyTransform(e,a,n):e.copy(a),(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 nt(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:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Xi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Xi)},t.prototype.styleUpdated=function(){this.__dirty&=~Xi},t.prototype.createStyle=function(e){return No(ra,e)},t.prototype.useStyle=function(e){e[tv]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[tv]},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,Mp)},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=St(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=St(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?UA:Mp,v=0;v<p.length;v++){var c=p[v];n&&n[c]!=null?this[c]=n[c]:l&&a[c]!=null&&(this[c]=a[c])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return F(e,n),e},t.prototype.getAnimationStyleProps=function(){return au},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=Ce|Xi}(),t}(N_),uf=new nt(0,0,0,0),ff=new nt(0,0,0,0);function YA(r,t,e){return uf.copy(r.getBoundingRect()),r.transform&&uf.applyTransform(r.transform),ff.width=t,ff.height=e,!uf.intersect(ff)}const gn=$A;var ye=Math.min,me=Math.max,hf=Math.sin,vf=Math.cos,Pn=Math.PI*2,us=ga(),fs=ga(),hs=ga();function n1(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=ye(a,n[0]),i=me(i,n[0]),o=ye(o,n[1]),s=me(s,n[1]);t[0]=a,t[1]=o,e[0]=i,e[1]=s}}function Dp(r,t,e,n,a,i){a[0]=ye(r,e),a[1]=ye(t,n),i[0]=me(r,e),i[1]=me(t,n)}var Lp=[],Ip=[];function ZA(r,t,e,n,a,i,o,s,l,u){var f=T_,h=Ft,v=f(r,e,a,o,Lp);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,a,o,Lp[c]);l[0]=ye(d,l[0]),u[0]=me(d,u[0])}v=f(t,n,i,s,Ip);for(var c=0;c<v;c++){var p=h(t,n,i,s,Ip[c]);l[1]=ye(p,l[1]),u[1]=me(p,u[1])}l[0]=ye(r,l[0]),u[0]=me(r,u[0]),l[0]=ye(o,l[0]),u[0]=me(o,u[0]),l[1]=ye(t,l[1]),u[1]=me(t,u[1]),l[1]=ye(s,l[1]),u[1]=me(s,u[1])}function XA(r,t,e,n,a,i,o,s){var l=A_,u=Ut,f=me(ye(l(r,e,a),1),0),h=me(ye(l(t,n,i),1),0),v=u(r,e,a,f),c=u(t,n,i,h);o[0]=ye(r,a,v),o[1]=ye(t,i,c),s[0]=me(r,a,v),s[1]=me(t,i,c)}function qA(r,t,e,n,a,i,o,s,l){var u=Pr,f=Rr,h=Math.abs(a-i);if(h%Pn<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(us[0]=vf(a)*e+r,us[1]=hf(a)*n+t,fs[0]=vf(i)*e+r,fs[1]=hf(i)*n+t,u(s,us,fs),f(l,us,fs),a=a%Pn,a<0&&(a=a+Pn),i=i%Pn,i<0&&(i=i+Pn),a>i&&!o?i+=Pn:a<i&&o&&(a+=Pn),o){var v=i;i=a,a=v}for(var c=0;c<i;c+=Math.PI/2)c>a&&(hs[0]=vf(c)*e+r,hs[1]=hf(c)*n+t,u(s,hs,s),f(l,hs,l))}var yt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Rn=[],En=[],ur=[],Yr=[],fr=[],hr=[],cf=Math.min,df=Math.max,kn=Math.cos,On=Math.sin,Cr=Math.abs,ev=Math.PI,en=ev*2,pf=typeof Float32Array<"u",Mi=[];function gf(r){var t=Math.round(r/ev*1e8)/1e8;return t%2*ev}function xc(r,t){var e=gf(r[0]);e<0&&(e+=en);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=en?a=e+en:t&&e-a>=en?a=e-en:!t&&e>a?a=e+(en-gf(e-a)):t&&e<a&&(a=e-(en-gf(a-e))),r[0]=e,r[1]=a}var KA=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=Cr(n/cl/t)||0,this._uy=Cr(n/cl/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=Cr(t-this._xi),a=Cr(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(yt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(yt.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(yt.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),Mi[0]=a,Mi[1]=i,xc(Mi,o),a=Mi[0],i=Mi[1];var s=i-a;return this.addData(yt.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=kn(i)*n+t,this._yi=On(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(yt.R,t,e,n,a),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)&&pf&&(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,a=this._len,i=0;i<e;i++)n+=t[i].len();pf&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(t,e,n,a,i,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,pf&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ur[0]=ur[1]=fr[0]=fr[1]=Number.MAX_VALUE,Yr[0]=Yr[1]=hr[0]=hr[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],a=e,i=n),s){case yt.M:e=a=t[o++],n=i=t[o++],fr[0]=a,fr[1]=i,hr[0]=a,hr[1]=i;break;case yt.L:Dp(e,n,t[o],t[o+1],fr,hr),e=t[o++],n=t[o++];break;case yt.C:ZA(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],fr,hr),e=t[o++],n=t[o++];break;case yt.Q:XA(e,n,t[o++],t[o++],t[o],t[o+1],fr,hr),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&&(a=kn(c)*h+u,i=On(c)*v+f),qA(u,f,h,v,c,d,p,fr,hr),e=kn(d)*h+u,n=On(d)*v+f;break;case yt.R:a=e=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Dp(a,i,a+g,i+y,fr,hr);break;case yt.Z:e=a,n=i;break}Pr(ur,ur,fr),Rr(Yr,Yr,hr)}return o===0&&(ur[0]=ur[1]=Yr[0]=Yr[1]=0),new nt(ur[0],ur[1],Yr[0]-ur[0],Yr[1]-ur[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=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&&(i=t[v],o=t[v+1],s=i,l=o);var p=-1;switch(c){case yt.M:i=s=t[v++],o=l=t[v++];break;case yt.L:{var g=t[v++],y=t[v++],m=g-i,_=y-o;(Cr(m)>n||Cr(_)>a||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case yt.C:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++],x=t[v++],b=t[v++];p=QT(i,o,S,w,g,y,x,b,10),i=x,o=b;break}case yt.Q:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++];p=eC(i,o,S,w,g,y,10),i=g,o=y;break}case yt.A:var T=t[v++],C=t[v++],A=t[v++],D=t[v++],L=t[v++],I=t[v++],P=I+L;v+=1,d&&(s=kn(L)*A+T,l=On(L)*D+C),p=df(A,D)*cf(en,Math.abs(I)),i=kn(P)*A+T,o=On(P)*D+C;break;case yt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],E=t[v++];p=R*2+E*2;break}case yt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=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,a=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=e<1,d,p,g=0,y=0,m,_=0,S,w;if(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m))return;t:for(var x=0;x<o;){var b=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),b!==yt.L&&_>0&&(t.lineTo(S,w),_=0),b){case yt.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case yt.L:{h=n[x++],v=n[x++];var C=Cr(h-u),A=Cr(v-f);if(C>a||A>i){if(c){var D=d[y++];if(g+D>m){var L=(m-g)/D;t.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=D}t.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+A*A;I>_&&(S=h,w=v,_=I)}break}case yt.C:{var P=n[x++],R=n[x++],E=n[x++],O=n[x++],k=n[x++],N=n[x++];if(c){var D=d[y++];if(g+D>m){var L=(m-g)/D;dn(u,P,E,k,L,Rn),dn(f,R,O,N,L,En),t.bezierCurveTo(Rn[1],En[1],Rn[2],En[2],Rn[3],En[3]);break t}g+=D}t.bezierCurveTo(P,R,E,O,k,N),u=k,f=N;break}case yt.Q:{var P=n[x++],R=n[x++],E=n[x++],O=n[x++];if(c){var D=d[y++];if(g+D>m){var L=(m-g)/D;vl(u,P,E,L,Rn),vl(f,R,O,L,En),t.quadraticCurveTo(Rn[1],En[1],Rn[2],En[2]);break t}g+=D}t.quadraticCurveTo(P,R,E,O),u=E,f=O;break}case yt.A:var G=n[x++],H=n[x++],$=n[x++],et=n[x++],st=n[x++],ht=n[x++],Bt=n[x++],de=!n[x++],Zt=$>et?$:et,Ot=Cr($-et)>.001,Mt=st+ht,Q=!1;if(c){var D=d[y++];g+D>m&&(Mt=st+ht*(m-g)/D,Q=!0),g+=D}if(Ot&&t.ellipse?t.ellipse(G,H,$,et,Bt,st,Mt,de):t.arc(G,H,Zt,st,Mt,de),Q)break t;T&&(s=kn(st)*$+G,l=On(st)*et+H),u=kn(Mt)*$+G,f=On(Mt)*et+H;break;case yt.R:s=u=n[x],l=f=n[x+1],h=n[x++],v=n[x++];var vt=n[x++],lr=n[x++];if(c){var D=d[y++];if(g+D>m){var Gt=m-g;t.moveTo(h,v),t.lineTo(h+cf(Gt,vt),v),Gt-=vt,Gt>0&&t.lineTo(h+vt,v+cf(Gt,lr)),Gt-=lr,Gt>0&&t.lineTo(h+df(vt-Gt,0),v+lr),Gt-=vt,Gt>0&&t.lineTo(h,v+df(lr-Gt,0));break t}g+=D}t.rect(h,v,vt,lr);break;case yt.Z:if(c){var D=d[y++];if(g+D>m){var L=(m-g)/D;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}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}();const zr=KA;function nn(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function jA(r,t,e,n,a,i,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>i+h&&f>s+h||f<t-h&&f<n-h&&f<i-h&&f<s-h||u>r+h&&u>e+h&&u>a+h&&u>o+h||u<r-h&&u<e-h&&u<a-h&&u<o-h)return!1;var v=C_(r,t,e,n,a,i,o,s,u,f,null);return v<=h/2}function a1(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=M_(r,t,e,n,a,i,s,l,null);return f<=u/2}var Pp=Math.PI*2;function kr(r){return r%=Pp,r<0&&(r+=Pp),r}var Di=Math.PI*2;function JA(r,t,e,n,a,i,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-a)%Di<1e-4)return!0;if(i){var h=n;n=kr(a),a=kr(h)}else n=kr(n),a=kr(a);n>a&&(a+=Di);var v=Math.atan2(l,s);return v<0&&(v+=Di),v>=n&&v<=a||v+Di>=n&&v+Di<=a}function Lr(r,t,e,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-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===a?1/0:l>a?s:0}var Zr=zr.CMD,Nn=Math.PI*2,QA=1e-4;function tM(r,t){return Math.abs(r-t)<QA}var ae=[-1,-1,-1],Oe=[-1,-1];function eM(){var r=Oe[0];Oe[0]=Oe[1],Oe[1]=r}function rM(r,t,e,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=hl(t,n,i,s,u,ae);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=ae[p],y=g===0||g===1?.5:1,m=Ft(r,e,a,o,g);m<l||(v<0&&(v=T_(t,n,i,s,Oe),Oe[1]<Oe[0]&&v>1&&eM(),c=Ft(t,n,i,s,Oe[0]),v>1&&(d=Ft(t,n,i,s,Oe[1]))),v===2?g<Oe[0]?h+=c<t?y:-y:g<Oe[1]?h+=d<c?y:-y:h+=s<d?y:-y:g<Oe[0]?h+=c<t?y:-y:h+=s<c?y:-y)}return h}function nM(r,t,e,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=tC(t,n,i,s,ae);if(l===0)return 0;var u=A_(t,n,i);if(u>=0&&u<=1){for(var f=0,h=Ut(t,n,i,u),v=0;v<l;v++){var c=ae[v]===0||ae[v]===1?.5:1,d=Ut(r,e,a,ae[v]);d<o||(ae[v]<u?f+=h<t?c:-c:f+=i<h?c:-c)}return f}else{var c=ae[0]===0||ae[0]===1?.5:1,d=Ut(r,e,a,ae[0]);return d<o?0:i<t?c:-c}}function aM(r,t,e,n,a,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ae[0]=-l,ae[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Nn-1e-4){n=0,a=Nn;var f=i?1:-1;return o>=ae[0]+r&&o<=ae[1]+r?f:0}if(n>a){var h=n;n=a,a=h}n<0&&(n+=Nn,a+=Nn);for(var v=0,c=0;c<2;c++){var d=ae[c];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Nn+p),(p>=n&&p<=a||p+Nn>=n&&p+Nn<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function i1(r,t,e,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Zr.M&&d>1&&(e||(s+=Lr(l,u,f,h,n,a))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case Zr.M:f=i[d++],h=i[d++],l=f,u=h;break;case Zr.L:if(e){if(nn(l,u,i[d],i[d+1],t,n,a))return!0}else s+=Lr(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Zr.C:if(e){if(jA(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=rM(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Zr.Q:if(e){if(a1(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=nM(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Zr.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=Lr(l,u,v,c,n,a);var T=(n-y)*S/_+y;if(e){if(JA(y,m,S,w,w+x,b,t,T,a))return!0}else s+=aM(y,m,S,w,w+x,b,T,a);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case Zr.R:f=l=i[d++],h=u=i[d++];var C=i[d++],A=i[d++];if(v=f+C,c=h+A,e){if(nn(f,h,v,h,t,n,a)||nn(v,h,v,c,t,n,a)||nn(v,c,f,c,t,n,a)||nn(f,c,f,h,t,n,a))return!0}else s+=Lr(v,h,v,c,n,a),s+=Lr(f,c,f,h,n,a);break;case Zr.Z:if(e){if(nn(l,u,f,h,t,n,a))return!0}else s+=Lr(l,u,f,h,n,a);l=f,u=h;break}}return!e&&!tM(u,h)&&(s+=Lr(l,u,f,h,n,a)||0),s!==0}function iM(r,t,e){return i1(r,0,!1,t,e)}function oM(r,t,e,n){return i1(r,t,!0,e,n)}var o1=Z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ra),sM={style:Z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},au.style)},yf=mo.concat(["invisible","culling","z","z2","zlevel","parent"]),lM=function(r){xt(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 a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<yf.length;++s)a[yf[s]]=this[yf[s]];a.__dirty|=Ce}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=St(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=e[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(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(W(e)){var n=yo(e,0);return n>.5?qh:n>.2?kC:Kh}else if(e)return Kh}return qh},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(W(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=yo(e,0)<Xh;if(i===o)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~za},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 zr(!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,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&za)&&(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||a){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==null?4:f)}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 a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.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)),oM(s,l/u,e,n)))return!0}if(this.hasFill())return iM(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=za,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 a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:F(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&za)},t.prototype.createStyle=function(e){return No(o1,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=F({},a.shape),F(u,n.shape)):(u=F({},i?this.shape:a.shape),F(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=F({},this.shape);for(var f={},h=St(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),a,i=0;i<e.length;i++){var o=e[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return sM},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(i){xt(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return tt(e.style)},o.prototype.getDefaultShape=function(){return tt(e.shape)},o}(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);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=Ce|Xi|za}(),t}(gn);const ut=lM;var uM=Z({strokeFirst:!0,font:sa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o1),s1=function(r){xt(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 No(uM,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 a=Go(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(gn);s1.prototype.type="tspan";const yl=s1;var fM=Z({x:0,y:0},ra),hM={style:Z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},au.style)};function vM(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var l1=function(r){xt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return No(fM,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=vM(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hM},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new nt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gn);l1.prototype.type="image";const or=l1;function cM(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),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>a&&(h=s+l,s*=a/h,l*=a/h),u+f>a&&(h=u+f,u*=a/h,f*=a/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-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 $a=Math.round;function u1(r,t,e){if(!!t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&($a(n*2)===$a(a*2)&&(r.x1=r.x2=jn(n,s,!0)),$a(i*2)===$a(o*2)&&(r.y1=r.y2=jn(i,s,!0))),r}}function f1(r,t,e){if(!!t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=jn(n,s,!0),r.y=jn(a,s,!0),r.width=Math.max(jn(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(jn(a+o,s,!1)-r.y,o===0?0:1)),r}}function jn(r,t,e){if(!t)return r;var n=$a(r*2);return(n+$a(t))%2===0?n/2:(n+(e?1:-1))/2}var dM=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),pM={},h1=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new dM},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=f1(pM,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?cM(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ut);h1.prototype.type="rect";const mt=h1;var Rp={fill:"#000"},Ep=2,gM={style:Z({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},au.style)},v1=function(r){xt(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Rp,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,wM(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 nt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Rp},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 a=n.rich,i=e.rich||a&&{};return F(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=St(n),i=0;i<a.length;i++){var o=a[i];e[o]=e[o]||{},F(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return gM},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||sa,a=e.padding,i=zp(e),o=BA(i,e),s=mf(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=Va(g,o.contentHeight,m);if(s||a){var w=Ki(p,f,y),x=Va(g,u,m);s&&this._renderBackground(e,e,w,x,f,u)}S+=c/2,a&&(_=Gp(p,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var b=0,T=!1,C=Fp("fill"in e?e.fill:(T=!0,d.fill)),A=Bp("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(b=Ep,d.stroke):null),D=e.textShadowBlur>0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<v.length;P++){var R=this._getOrCreateChild(yl),E=R.createStyle();R.useStyle(E),E.text=v[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=A,E.fill=C,A&&(E.lineWidth=e.lineWidth||b,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=n,Op(E,e),S+=c,L&&R.setBoundingRect(new nt(Ki(E.x,h,E.textAlign),Va(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var e=this.style,n=zp(e),a=zA(n,e),i=a.width,o=a.outerWidth,s=a.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;this.isTruncated=!!a.isTruncated;var d=Ki(u,o,v),p=Va(f,s,c),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+i;mf(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<a.lines.length;S++){for(var w=a.lines[S],x=w.tokens,b=x.length,T=w.lineHeight,C=w.width,A=0,D=g,L=m,I=b-1,P=void 0;A<b&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,e,T,y,D,"left",_),C-=P.width,D+=P.width,A++;for(;I>=0&&(P=x[I],P.align==="right");)this._placeToken(P,e,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(i-(D-g)-(m-L)-C)/2;A<=I;)P=x[A],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=i+a/2;f==="top"?h=i+e.height/2:f==="bottom"&&(h=i+a-e.height/2);var v=!e.isLineHolder&&mf(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=Gp(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(yl),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Fp("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Bp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Ep,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(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||sa,g.opacity=hn(u.opacity,n.opacity,1),Op(g,u),w&&(g.lineWidth=hn(u.lineWidth,n.lineWidth,_),g.lineDash=rt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new nt(Ki(g.x,b,g.textAlign),Va(g.y,T,g.textBaseline),b,T))},t.prototype._renderBackground=function(e,n,a,i,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(mt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=rt(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(or),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=rt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.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=hn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return SM(e)&&(n=[e.fontStyle,e.fontWeight,_M(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ge(n)||e.textFont||e.font},t}(gn),yM={left:!0,right:1,center:1},mM={top:1,bottom:1,middle:1},kp=["fontStyle","fontWeight","fontSize","fontFamily"];function _M(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?jv+"px":r+"px"}function Op(r,t){for(var e=0;e<kp.length;e++){var n=kp[e],a=t[n];a!=null&&(r[n]=a)}}function SM(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function wM(r){return Np(r),M(r.rich,Np),r}function Np(r){if(r){r.font=v1.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||yM[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||mM[e]?e:"top";var n=r.padding;n&&(r.padding=ac(r.padding))}}function Bp(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Fp(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Gp(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function zp(r){var t=r.text;return t!=null&&(t+=""),t}function mf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Tt=v1;var it=wt(),rv=function(r,t,e,n){if(n){var a=it(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=it(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Vp=1,Hp={},c1=wt(),bc=wt(),Tc=0,iu=1,ou=2,we=["emphasis","blur","select"],ml=["normal","emphasis","blur","select"],xM=10,bM=9,na="highlight",Qs="downplay",io="select",tl="unselect",oo="toggleSelect";function Ca(r){return r!=null&&r!=="none"}function su(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function d1(r){su(r,"emphasis",ou)}function p1(r){r.hoverState===ou&&su(r,"normal",Tc)}function Cc(r){su(r,"blur",iu)}function g1(r){r.hoverState===iu&&su(r,"normal",Tc)}function TM(r){r.selected=!0}function CM(r){r.selected=!1}function Wp(r,t,e){t(r,e)}function Vr(r,t,e){Wp(r,t,e),r.isGroup&&r.traverse(function(n){Wp(n,t,e)})}function Up(r,t){switch(t){case"emphasis":r.hoverState=ou;break;case"normal":r.hoverState=Tc;break;case"blur":r.hoverState=iu;break;case"select":r.selected=!0}}function AM(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l==null?n&&n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function MM(r,t,e,n){var a=e&&ft(e,"select")>=0,i=!1;if(r instanceof ut){var o=c1(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ca(s)||Ca(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=F({},n),u=F({},u),u.fill=s):!Ca(u.fill)&&Ca(s)?(i=!0,n=F({},n),u=F({},u),u.fill=Hh(s)):!Ca(u.stroke)&&Ca(l)&&(i||(n=F({},n),u=F({},u)),u.stroke=Hh(l)),n.style=u}}if(n&&n.z2==null){i||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:xM)}return n}function DM(r,t,e){if(e&&e.z2==null){e=F({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:bM)}return e}function LM(r,t,e){var n=ft(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:AM(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:n?a:i.opacity*.1},o),e.style=o),e}function _f(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return MM(this,r,t,e);if(r==="blur")return LM(this,r,e);if(r==="select")return DM(this,r,e)}return e}function Ac(r){r.stateProxy=_f;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=_f),e&&(e.stateProxy=_f)}function $p(r,t){!S1(r,t)&&!r.__highByOuter&&Vr(r,d1)}function Yp(r,t){!S1(r,t)&&!r.__highByOuter&&Vr(r,p1)}function ua(r,t){r.__highByOuter|=1<<(t||0),Vr(r,d1)}function fa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Vr(r,p1)}function IM(r){Vr(r,Cc)}function y1(r){Vr(r,g1)}function m1(r){Vr(r,TM)}function _1(r){Vr(r,CM)}function S1(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function w1(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=bc(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){g1(u)}),s&&e.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function nv(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&y1(v)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.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"||Cc(g)}),te(t))i(u.getData(),t);else if(X(t))for(var d=St(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),bc(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function av(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(!!n){bc(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Cc(i)})}}}function PM(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(!a){Yt("Unknown dataType "+t.dataType);return}var i=la(a,t);i=(V(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=it(o);nv(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&nv(n,f,h,e)}}function Mc(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ii(s[u])||Yt("param should be highDownDispatcher"),it(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function RM(r,t,e){ii(r)||Yt("param should be highDownDispatcher");var n=it(r),a=Mc(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&av(n.componentMainType,n.componentIndex,e),M(i,function(s){return $p(s,t)})):(nv(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&av(n.componentMainType,n.componentIndex,e),$p(r,t))}function EM(r,t,e){ii(r)||Yt("param should be highDownDispatcher"),w1(e);var n=it(r),a=Mc(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?M(a,function(i){return Yp(i,t)}):Yp(r,t)}function kM(r,t,e){if(!!iv(t)){var n=t.dataType,a=r.getData(n),i=la(a,t);V(i)||(i=[i]),r[t.type===oo?"toggleSelect":t.type===io?"select":"unselect"](i,n)}}function Zp(r){var t=r.getAllData();M(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?m1(i):_1(i)})})}function OM(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();M(n,function(a){a.data;var i=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function wo(r,t,e){x1(r,!0),Vr(r,Ac),BM(r,t,e)}function NM(r){x1(r,!1)}function ar(r,t,e,n){n?NM(r):wo(r,t,e)}function BM(r,t,e){var n=it(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Xp=["emphasis","blur","select"],FM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yn(r,t,e,n){e=e||"itemStyle";for(var a=0;a<Xp.length;a++){var i=Xp[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=n?n(o):o[FM[e]]()}}function x1(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 ii(r){return!!(r&&r.__highDownDispatcher)}function GM(r,t,e){var n=it(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function zM(r){var t=Hp[r];return t==null&&Vp<=32&&(t=Hp[r]=Vp++),t}function iv(r){var t=r.type;return t===io||t===tl||t===oo}function qp(r){var t=r.type;return t===na||t===Qs}function VM(r){var t=c1(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 Aa=zr.CMD,HM=[[],[],[]],Kp=Math.sqrt,WM=Math.atan2;function b1(r,t){if(!!t){var e=r.data,n=r.len(),a,i,o,s,l,u,f=Aa.M,h=Aa.C,v=Aa.L,c=Aa.R,d=Aa.A,p=Aa.Q;for(o=0,s=0;o<n;){switch(a=e[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case h:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=Kp(t[0]*t[0]+t[1]*t[1]),_=Kp(t[2]*t[2]+t[3]*t[3]),S=WM(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],Vt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Vt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var w=HM[l];w[0]=e[o++],w[1]=e[o++],Vt(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var Sf=Math.sqrt,vs=Math.sin,cs=Math.cos,Li=Math.PI;function jp(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function ov(r,t){return(r[0]*t[0]+r[1]*t[1])/(jp(r)*jp(t))}function Jp(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(ov(r,t))}function Qp(r,t,e,n,a,i,o,s,l,u,f){var h=l*(Li/180),v=cs(h)*(r-e)/2+vs(h)*(t-n)/2,c=-1*vs(h)*(r-e)/2+cs(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Sf(d),s*=Sf(d));var p=(a===i?-1:1)*Sf((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,y=p*-s*v/o,m=(r+e)/2+cs(h)*g-vs(h)*y,_=(t+n)/2+vs(h)*g+cs(h)*y,S=Jp([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=Jp(w,x);if(ov(w,x)<=-1&&(b=Li),ov(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Li*1e6)/1e6;b=Li*2+T%2*Li}f.addData(u,m,_,o,s,S,b,h,i)}var UM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$M=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YM(r){var t=new zr;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=zr.CMD,l=r.match(UM);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($M)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=e,C=n,A=void 0,D=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),a=e,i=n,h="l";break;case"M":e=c[g++],n=c[g++],v=s.M,t.addData(v,e,n),a=e,i=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":y=e,m=n,A=t.len(),D=t.data,o===s.C&&(y+=e-D[A-4],m+=n-D[A-3]),v=s.C,T=c[g++],C=c[g++],e=c[g++],n=c[g++],t.addData(v,y,m,T,C,e,n);break;case"s":y=e,m=n,A=t.len(),D=t.data,o===s.C&&(y+=e-D[A-4],m+=n-D[A-3]),v=s.C,T=e+c[g++],C=n+c[g++],e+=c[g++],n+=c[g++],t.addData(v,y,m,T,C,e,n);break;case"Q":T=c[g++],C=c[g++],e=c[g++],n=c[g++],v=s.Q,t.addData(v,T,C,e,n);break;case"q":T=c[g++]+e,C=c[g++]+n,e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,T,C,e,n);break;case"T":y=e,m=n,A=t.len(),D=t.data,o===s.Q&&(y+=e-D[A-4],m+=n-D[A-3]),e=c[g++],n=c[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"t":y=e,m=n,A=t.len(),D=t.data,o===s.Q&&(y+=e-D[A-4],m+=n-D[A-3]),e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"A":_=c[g++],S=c[g++],w=c[g++],x=c[g++],b=c[g++],T=e,C=n,e=c[g++],n=c[g++],v=s.A,Qp(T,C,e,n,x,b,_,S,w,v,t);break;case"a":_=c[g++],S=c[g++],w=c[g++],x=c[g++],b=c[g++],T=e,C=n,e+=c[g++],n+=c[g++],v=s.A,Qp(T,C,e,n,x,b,_,S,w,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=a,n=i),o=v}return t.toStatic(),t}var T1=function(r){xt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(ut);function C1(r){return r.setData!=null}function A1(r,t){var e=YM(r),n=F({},t);return n.buildPath=function(a){if(C1(a)){a.setData(e.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;e.rebuildPath(i,1)}},n.applyTransform=function(a){b1(e,a),this.dirtyShape()},n}function M1(r,t){return new T1(A1(r,t))}function ZM(r,t){var e=A1(r,t),n=function(a){xt(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(T1);return n}function XM(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var o=new ut(t);return o.createPathProxy(),o.buildPath=function(s){if(C1(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Dc(r,t){t=t||{};var e=new ut;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?b1(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var qM=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),D1=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qM},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}(ut);D1.prototype.type="circle";const ma=D1;var KM=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),L1=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new KM},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(ut);L1.prototype.type="ellipse";const lu=L1;var I1=Math.PI,wf=I1*2,Bn=Math.sin,Ma=Math.cos,jM=Math.acos,Xt=Math.atan2,tg=Math.abs,so=Math.sqrt,Ji=Math.max,vr=Math.min,Xe=1e-4;function JM(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,h=s-i,v=h*l-f*u;if(!(v*v<Xe))return v=(f*(t-i)-h*(r-a))/v,[r+v*l,t+v*u]}function ds(r,t,e,n,a,i,o){var s=r-e,l=t-n,u=(o?i:-i)/so(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,y=(c+p)/2,m=d-v,_=p-c,S=m*m+_*_,w=a-i,x=v*p-d*c,b=(_<0?-1:1)*so(Ji(0,w*w*S-x*x)),T=(x*_-m*b)/S,C=(-x*m-_*b)/S,A=(x*_+m*b)/S,D=(-x*m+_*b)/S,L=T-g,I=C-y,P=A-g,R=D-y;return L*L+I*I>P*P+R*R&&(T=A,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(a/w-1),y1:C*(a/w-1)}}function QM(r){var t;if(V(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 tD(r,t){var e,n=Ji(t.r,0),a=Ji(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=tg(u-l),d=c>wf&&c%wf;if(d>Xe&&(c=d),!(n>Xe))r.moveTo(f,h);else if(c>wf-Xe)r.moveTo(f+n*Ma(l),h+n*Bn(l)),r.arc(f,h,n,l,u,!v),a>Xe&&(r.moveTo(f+a*Ma(u),h+a*Bn(u)),r.arc(f,h,a,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,C=void 0,A=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=n*Ma(l),E=n*Bn(l),O=a*Ma(u),k=a*Bn(u),N=c>Xe;if(N){var G=t.cornerRadius;G&&(e=QM(G),p=e[0],g=e[1],y=e[2],m=e[3]);var H=tg(n-a)/2;if(_=vr(H,y),S=vr(H,m),w=vr(H,p),x=vr(H,g),C=b=Ji(_,S),A=T=Ji(w,x),(b>Xe||T>Xe)&&(D=n*Ma(u),L=n*Bn(u),I=a*Ma(l),P=a*Bn(l),c<I1)){var $=JM(R,E,I,P,D,L,O,k);if($){var et=R-$[0],st=E-$[1],ht=D-$[0],Bt=L-$[1],de=1/Bn(jM((et*ht+st*Bt)/(so(et*et+st*st)*so(ht*ht+Bt*Bt)))/2),Zt=so($[0]*$[0]+$[1]*$[1]);C=vr(b,(n-Zt)/(de+1)),A=vr(T,(a-Zt)/(de-1))}}}if(!N)r.moveTo(f+R,h+E);else if(C>Xe){var Ot=vr(y,C),Mt=vr(m,C),Q=ds(I,P,R,E,n,Ot,v),vt=ds(D,L,O,k,n,Mt,v);r.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C<b&&Ot===Mt?r.arc(f+Q.cx,h+Q.cy,C,Xt(Q.y0,Q.x0),Xt(vt.y0,vt.x0),!v):(Ot>0&&r.arc(f+Q.cx,h+Q.cy,Ot,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(vt.cy+vt.y1,vt.cx+vt.x1),!v),Mt>0&&r.arc(f+vt.cx,h+vt.cy,Mt,Xt(vt.y1,vt.x1),Xt(vt.y0,vt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,n,l,u,!v);if(!(a>Xe)||!N)r.lineTo(f+O,h+k);else if(A>Xe){var Ot=vr(p,A),Mt=vr(g,A),Q=ds(O,k,D,L,a,-Mt,v),vt=ds(R,E,I,P,a,-Ot,v);r.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),A<T&&Ot===Mt?r.arc(f+Q.cx,h+Q.cy,A,Xt(Q.y0,Q.x0),Xt(vt.y0,vt.x0),!v):(Mt>0&&r.arc(f+Q.cx,h+Q.cy,Mt,Xt(Q.y0,Q.x0),Xt(Q.y1,Q.x1),!v),r.arc(f,h,a,Xt(Q.cy+Q.y1,Q.cx+Q.x1),Xt(vt.cy+vt.y1,vt.cx+vt.x1),v),Ot>0&&r.arc(f+vt.cx,h+vt.cy,Ot,Xt(vt.y1,vt.x1),Xt(vt.y0,vt.x0),!v))}else r.lineTo(f+O,h+k),r.arc(f,h,a,u,l,v)}r.closePath()}}}var eD=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}(),P1=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new eD},t.prototype.buildPath=function(e,n){tD(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ut);P1.prototype.type="sector";const xe=P1;var rD=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),R1=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rD},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t}(ut);R1.prototype.type="ring";const Wo=R1;function nD(r,t,e,n){var a=[],i=[],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++)Pr(f,f,r[v]),Rr(h,h,r[v]);Pr(f,f,n[0]),Rr(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){a.push(c_(r[v]));continue}else l=r[v-1],u=r[v+1];oc(i,u,l),Ys(i,i,t);var p=ul(d,l),g=ul(d,u),y=p+g;y!==0&&(p/=y,g/=y),Ys(o,i,-p),Ys(s,i,g);var m=Rh([],d,o),_=Rh([],d,s);n&&(Rr(m,m,f),Pr(m,m,h),Rr(_,_,f),Pr(_,_,h)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function E1(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=nD(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var aD=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),k1=function(r){xt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new aD},t.prototype.buildPath=function(e,n){E1(e,n,!0)},t}(ut);k1.prototype.type="polygon";const xr=k1;var iD=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),O1=function(r){xt(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 iD},t.prototype.buildPath=function(e,n){E1(e,n,!1)},t}(ut);O1.prototype.type="polyline";const We=O1;var oD={},sD=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),N1=function(r){xt(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 sD},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=u1(oD,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(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}(ut);N1.prototype.type="line";const Jt=N1;var pe=[],lD=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 eg(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?ip:Ft)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?ip:Ft)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Fh:Ut)(r.x1,r.cpx1,r.x2,t),(e?Fh:Ut)(r.y1,r.cpy1,r.y2,t)]}var B1=function(r){xt(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 lD},t.prototype.buildPath=function(e,n){var a=n.x1,i=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(a,i),f==null||h==null?(v<1&&(vl(a,l,o,v,pe),l=pe[1],o=pe[2],vl(i,u,s,v,pe),u=pe[1],s=pe[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(dn(a,l,f,o,v,pe),l=pe[1],f=pe[2],o=pe[3],dn(i,u,h,s,v,pe),u=pe[1],h=pe[2],s=pe[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return eg(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=eg(this.shape,e,!0);return Ql(n,n)},t}(ut);B1.prototype.type="bezier-curve";const uu=B1;var uD=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}(),F1=function(r){xt(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 uD},t.prototype.buildPath=function(e,n){var a=n.cx,i=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+a,h*o+i),e.arc(a,i,o,s,l,!u)},t}(ut);F1.prototype.type="arc";const fu=F1;var fD=function(r){xt(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(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].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),ut.prototype.getBoundingRect.call(this)},t}(ut);const Lc=fD;var hD=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const G1=hD;var vD=function(r){xt(t,r);function t(e,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=n==null?0:n,l.x2=a==null?1:a,l.y2=i==null?0:i,l.type="linear",l.global=s||!1,l}return t}(G1);const hu=vD;var cD=function(r){xt(t,r);function t(e,n,a,i,o){var s=r.call(this,i)||this;return s.x=e==null?.5:e,s.y=n==null?.5:n,s.r=a==null?.5:a,s.type="radial",s.global=o||!1,s}return t}(G1);const Ic=cD;var Fn=[0,0],Gn=[0,0],ps=new j,gs=new j,dD=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new j;for(var n=0;n<2;n++)this._axes[n]=new j;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),e)for(var u=0;u<4;u++)n[u].transform(e);j.sub(a[0],n[1],n[0]),j.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,a=!e;return ps.set(1/0,1/0),gs.set(0,0),!this._intersectCheckOneSide(this,t,ps,gs,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,ps,gs,a,-1)&&(n=!1,a)||a||j.copy(e,n?ps:gs),n},r.prototype._intersectCheckOneSide=function(t,e,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Fn),this._getProjMinMaxOnAxis(l,e._corners,Gn),Fn[1]<Gn[0]||Fn[0]>Gn[1]){if(s=!1,i)return s;var f=Math.abs(Gn[0]-Fn[1]),h=Math.abs(Fn[0]-Gn[1]);Math.min(f,h)>a.len()&&(f<h?j.scale(a,u,-f*o):j.scale(a,u,h*o))}else if(n){var f=Math.abs(Gn[0]-Fn[1]),h=Math.abs(Fn[0]-Gn[1]);Math.min(f,h)<n.len()&&(f<h?j.scale(n,u,f*o):j.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var a=this._axes[t],i=this._origin,o=e[0].dot(a)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+i[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const _l=dD;var pD=[],gD=function(r){xt(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 a=0;a<e.length;a++)this.addDisplayable(e[a],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 nt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(pD)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(i.contain(a[0],a[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}(gn);const z1=gD;var V1=wt();function vu(r,t,e,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=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=rt(n.duration,200),f=rt(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),q(h)&&(h=h(e,a)),q(u)&&(u=u(e));var v={duration:u||0,delay:h,easing:f};return v}else return null}function Pc(r,t,e,n,a,i,o){var s=!1,l;q(a)?(o=i,i=a,a=null):X(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=vu(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):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:i,force:!!i||!!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),i&&i()}function Ct(r,t,e,n,a,i){Pc("update",r,t,e,n,a,i)}function Pt(r,t,e,n,a,i){Pc("enter",r,t,e,n,a,i)}function Ka(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 Sl(r,t,e,n,a,i){Ka(r)||Pc("leave",r,t,e,n,a,i)}function rg(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Sl(r,{style:{opacity:0}},t,e,n)}function wl(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||rg(a,t,e,n)}):rg(r,t,e,n)}function xo(r){V1(r).oldStyle=r.style}function yD(r){return V1(r).oldStyle}var xl=Math.max,bl=Math.min,sv={};function H1(r){return ut.extend(r)}var mD=ZM;function W1(r,t){return mD(r,t)}function Ue(r,t){sv[r]=t}function U1(r){if(sv.hasOwnProperty(r))return sv[r]}function cu(r,t,e,n){var a=M1(r,t);return e&&(n==="center"&&(e=$1(e,a.getBoundingRect())),Ec(a,e)),a}function Rc(r,t,e){var n=new or({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle($1(t,i))}}});return n}function $1(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Be=XM;function Ec(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function bo(r,t){return u1(r,r,{lineWidth:t}),r}function _D(r){return f1(r.shape,r.shape,r.style),r}var SD=jn;function Uo(r,t){for(var e=Bo([]);r&&r!==t;)_r(e,r.getLocalTransform(),e),r=r.parent;return e}function oi(r,t,e){return t&&!te(t)&&(t=Er.getLocalTransform(t)),e&&(t=ya([],t)),Vt([],r,t)}function kc(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=oi(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ng(r){return!r.isGroup}function wD(r){return r.shape!=null}function Oc(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){ng(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wD(o)&&(s.shape=F({},o.shape)),s}var i=n(r);t.traverse(function(o){if(ng(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Ct(o,l,e,it(o).dataIndex)}}})}function Nc(r,t){return z(r,function(e){var n=e[0];n=xl(n,t.x),n=bl(n,t.x+t.width);var a=e[1];return a=xl(a,t.y),a=bl(a,t.y+t.height),[n,a]})}function Y1(r,t){var e=xl(r.x,t.x),n=bl(r.x+r.width,t.x+t.width),a=xl(r.y,t.y),i=bl(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function $o(r,t,e){var n=F({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),Z(a,e),new or(n)):cu(r.replace("path://",""),n,e,"center")}function xD(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Z1(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Z1(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,h=s-i,v=xf(f,h,l,u);if(bD(v))return!1;var c=r-a,d=t-i,p=xf(c,d,l,u)/v;if(p<0||p>1)return!1;var g=xf(c,d,f,h)/v;return!(g<0||g>1)}function xf(r,t,e,n){return r*n-e*t}function bD(r){return r<=1e-6&&r>=-1e-6}function ci(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=W(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&M(St(l),function(f){re(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Z({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function ag(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Yo(r,t){if(r)if(V(r))for(var e=0;e<r.length;e++)ag(r[e],t);else ag(r,t)}Ue("circle",ma);Ue("ellipse",lu);Ue("sector",xe);Ue("ring",Wo);Ue("polygon",xr);Ue("polyline",We);Ue("rect",mt);Ue("line",Jt);Ue("bezierCurve",uu);Ue("arc",fu);const du=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Ct,initProps:Pt,removeElement:Sl,removeElementWithFadeOut:wl,isElementRemoved:Ka,extendShape:H1,extendPath:W1,registerShape:Ue,getShapeClass:U1,makePath:cu,makeImage:Rc,mergePath:Be,resizePath:Ec,subPixelOptimizeLine:bo,subPixelOptimizeRect:_D,subPixelOptimize:SD,getTransform:Uo,applyTransform:oi,transformDirection:kc,groupTransition:Oc,clipPointsByRect:Nc,clipRectByRect:Y1,createIcon:$o,linePolygonIntersect:xD,lineLineIntersect:Z1,setTooltipConfig:ci,traverseElements:Yo,Group:ot,Image:or,Text:Tt,Circle:ma,Ellipse:lu,Sector:xe,Ring:Wo,Polygon:xr,Polyline:We,Rect:mt,Line:Jt,BezierCurve:uu,Arc:fu,IncrementalDisplayable:z1,CompoundPath:Lc,LinearGradient:hu,RadialGradient:Ic,BoundingRect:nt,OrientedBoundingRect:_l,Point:j,Path:ut},Symbol.toStringTag,{value:"Module"}));var pu={};function X1(r,t){for(var e=0;e<we.length;e++){var n=we[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function lv(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=q(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<we.length;u++){var f=we[u],h=t[f];l[f]=rt(n?n.getFormattedLabel(a,f,null,i,h&&h.get("formatter")):null,s)}return l}function xn(r,t,e,n){e=e||pu;for(var a=r instanceof Tt,i=!1,o=0;o<ml.length;o++){var s=t[ml[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Tt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=lv(e,t),f=t.normal,h=!!f.getShallow("show"),v=le(f,n&&n.normal,e,!1,!a);v.text=u.normal,a||r.setTextConfig(ig(f,e,!1));for(var o=0;o<we.length;o++){var c=we[o],s=t[c];if(s){var d=l.ensureState(c),p=!!rt(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=le(s,n&&n[c],e,!0,!a),d.style.text=u[c],!a){var g=r.ensureState(c);g.textConfig=ig(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&&(di(l).setLabelText=function(y){var m=lv(e,t,y);X1(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Hr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<we.length;n++){var a=we[n];e[a]=r.getModel([a,t])}return e}function le(r,t,e,n,a){var i={};return TD(i,r,e,n,a),t&&F(i,t),i}function ig(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=rt(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function TD(r,t,e,n,a){e=e||pu;var i=t.ecModel,o=i&&i.option.textStyle,s=CD(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);ug(l[u]={},f,o,e,n,a,!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),ug(r,t,o,e,n,a,!0,!1)}function CD(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||pu).rich;if(e){t=t||{};for(var n=St(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var og=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],sg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ug(r,t,e,n,a,i,o,s){e=!a&&e||pu;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=rt(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(u==="auto"&&Nt("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(f==="auto"&&Nt("color: 'auto'","color: 'inherit'"),l?f=l:f=null),i||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var v=rt(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var c=rt(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=rt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<og.length;p++){var g=og[p],y=rt(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<sg.length;p++){var g=sg[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<lg.length;p++){var g=lg[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor==="auto"&&Nt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor==="auto"&&Nt("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function q1(r,t){var e=t&&t.getModel("textStyle");return Ge([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 di=wt();function K1(r,t,e,n){if(!!r){var a=di(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function j1(r,t,e,n,a){var i=di(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=rt(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var h=q_(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:h;var v=lv({labelDataIndex:t,labelFetcher:a,defaultText:o?o(h):h+""},i.statesModels,h);X1(r,v)}r.percent=0,(i.prevValue==null?Pt:Ct)(r,{percent:1},n,t,null,u)}var AD=["textStyle","color"],bf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tf=new Tt,MD=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(AD):null)},r.prototype.getFont=function(){return q1({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<bf.length;n++)e[bf[n]]=this.getShallow(bf[n]);return Tf.useStyle(e),Tf.update(),Tf.getBoundingRect()},r}();const DD=MD;var J1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],LD=So(J1),ID=function(){function r(){}return r.prototype.getLineStyle=function(t){return LD(this,t)},r}(),Q1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],PD=So(Q1),RD=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return PD(this,t,e)},r}(),_a=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){at(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,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,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(tt(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(!lt.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 a=0;a<t.length&&!(!!t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();wc(_a);DA(_a);ce(_a,ID);ce(_a,RD);ce(_a,EA);ce(_a,DD);const Dt=_a;var ED=Math.round(Math.random()*10);function pi(r){return[r||"",ED++].join("_")}function kD(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=yr(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=yr(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function OD(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,h=u.noEntryList,v={};for(M(i,function(m){v[m]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),M(d.successor,p?y:g)}M(v,function(){var m="";throw m=Se("Circular dependency may exists: ",v,i,o),new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){v[m]=!0,g(m)}};function e(i){var o={},s=[];return M(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=a(f,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),M(h,function(v){ft(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);ft(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return M(i,function(l){ft(o,l)>=0&&s.push(l)}),s}}function gu(r,t){return at(at({},r,!0),t,!0)}const ND={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},BD={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Tl="ZH",Bc="EN",ja=Bc,el={},Fc={},tS=lt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ja).toUpperCase();return r.indexOf(Tl)>-1?Tl:ja}():ja;function Gc(r,t){r=r.toUpperCase(),Fc[r]=new Dt(t),el[r]=t}function FD(r){if(W(r)){var t=el[r.toUpperCase()]||{};return r===Tl||r===Bc?tt(t):at(tt(t),tt(el[ja]),!1)}else return at(tt(r),tt(el[ja]),!1)}function GD(r){return Fc[r]}function zD(){return Fc[ja]}Gc(Bc,ND);Gc(Tl,BD);var zc=1e3,Vc=zc*60,lo=Vc*60,Fe=lo*24,fg=Fe*365,Qi={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}"},ys="{yyyy}-{MM}-{dd}",hg={year:"{yyyy}",month:"{yyyy}-{MM}",day:ys,hour:ys+" "+Qi.hour,minute:ys+" "+Qi.minute,second:ys+" "+Qi.second,millisecond:Qi.none},Cf=["year","month","day","hour","minute","second","millisecond"],eS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ie(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ja(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 VD(r){return r===Ja(r)}function HD(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zo(r,t,e,n){var a=ze(r),i=a[Hc(e)](),o=a[Qa(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[yu(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[To(e)](),h=(f-1)%12+1,v=a[mu(e)](),c=a[_u(e)](),d=a[Su(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Dt?n:GD(n||tS)||zD(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ie(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,ie(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ie(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ie(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ie(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ie(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ie(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ie(d,3)).replace(/{S}/g,d+"")}function WD(r,t,e,n,a){var i=null;if(W(e))i=e;else if(q(e))i=e(r.value,t,{level:r.level});else{var o=F({},Qi);if(r.level>0)for(var s=0;s<Cf.length;++s)o[Cf[s]]="{primary|"+o[Cf[s]]+"}";var l=e?e.inherit===!1?e:Z(e,o):o,u=rS(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=eS.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(V(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Zo(new Date(r.value),i,a,n)}function rS(r,t){var e=ze(r),n=e[Qa(t)]()+1,a=e[yu(t)](),i=e[To(t)](),o=e[mu(t)](),s=e[_u(t)](),l=e[Su(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&a===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function vg(r,t,e){var n=gt(r)?ze(r):r;switch(t=t||rS(r,e),t){case"year":return n[Hc(e)]();case"half-year":return n[Qa(e)]()>=6?1:0;case"quarter":return Math.floor((n[Qa(e)]()+1)/4);case"month":return n[Qa(e)]();case"day":return n[yu(e)]();case"half-day":return n[To(e)]()/24;case"hour":return n[To(e)]();case"minute":return n[mu(e)]();case"second":return n[_u(e)]();case"millisecond":return n[Su(e)]()}}function Hc(r){return r?"getUTCFullYear":"getFullYear"}function Qa(r){return r?"getUTCMonth":"getMonth"}function yu(r){return r?"getUTCDate":"getDate"}function To(r){return r?"getUTCHours":"getHours"}function mu(r){return r?"getUTCMinutes":"getMinutes"}function _u(r){return r?"getUTCSeconds":"getSeconds"}function Su(r){return r?"getUTCMilliseconds":"getMilliseconds"}function UD(r){return r?"setUTCFullYear":"setFullYear"}function nS(r){return r?"setUTCMonth":"setMonth"}function aS(r){return r?"setUTCDate":"setDate"}function iS(r){return r?"setUTCHours":"setHours"}function oS(r){return r?"setUTCMinutes":"setMinutes"}function sS(r){return r?"setUTCSeconds":"setSeconds"}function lS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function $D(r,t,e,n,a,i,o,s){var l=new Tt({style:{text:r,font:t,align:e,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Wc(r){if(!mc(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uc(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 Xo=ac;function uv(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Ge(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ze(r):r;if(isNaN(+l)){if(s)return"-"}else return Zo(l,n,e)}if(t==="ordinal")return co(r)?a(r):gt(r)&&i(r)?r+"":"-";var u=Gr(r);return i(u)?Wc(u):co(r)?a(r):typeof r=="boolean"?r+"":"-"}var cg=["a","b","c","d","e","f","g"],Af=function(r,t){return"{"+r+(t==null?"":t)+"}"};function $c(r,t,e){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=cg[i];r=r.replace(Af(o),Af(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(Af(cg[l],s),e?se(u):u)}return r}function uS(r,t){var e=W(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+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:i,content:"{"+o+"|}  ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function YD(r,t,e){Nt("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var n=ze(t),a=e?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),h=n[a+"Milliseconds"]();return r=r.replace("MM",ie(o,2)).replace("M",o).replace("yyyy",i).replace("yy",ie(i%100+"",2)).replace("dd",ie(s,2)).replace("d",s).replace("hh",ie(l,2)).replace("h",l).replace("mm",ie(u,2)).replace("m",u).replace("ss",ie(f,2)).replace("s",f).replace("SSS",ie(h,3)),r}function ZD(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function ha(r,t){return t=t||"transparent",W(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function dg(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var rl=M,XD=["left","right","top","bottom","width","height"],ms=[["width","left","right"],["height","top","bottom"]];function Yc(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=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=i+p,c>n||l.newline?(i=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>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=c+e:o=d+e)})}var ti=Yc;ct(Yc,"vertical");ct(Yc,"horizontal");function ir(r,t,e){e=Xo(e||0);var n=t.width,a=t.height,i=Y(r.left,n),o=Y(r.top,a),s=Y(r.right,n),l=Y(r.bottom,a),u=Y(r.width,n),f=Y(r.height,a),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-h),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-h-o-(l||0));var d=new nt(i+e[3],o+e[0],u,f);return d.margin=e,d}function qD(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new nt(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=ir(Z({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"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function Co(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function si(r,t,e){var n=e&&e.ignoreSize;!V(n)&&(n=[n,n]);var a=o(ms[0],0),i=o(ms[1],1);u(ms[0],r,a),u(ms[1],r,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(rl(f,function(_){d[_]=r[_]}),rl(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 y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];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){rl(f,function(c){h[c]=v[c]})}}function qo(r){return KD({},r)}function KD(r,t){return t&&r&&rl(XD,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var jD=wt(),gi=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=pi("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Co(this),i=a?qo(e):{},o=n.getTheme();at(e,o.get(this.mainType)),at(e,this.getDefaultOption()),a&&si(e,i,a)},t.prototype.mergeOption=function(e,n){at(this.option,e,!0);var a=Co(this);a&&si(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!CA(e))return e.defaultOption;var n=jD(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=at(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Ho(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!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}(Dt);j_(gi,Dt);ru(gi);kD(gi);OD(gi,JD);function JD(r){var t=[];return M(gi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return yr(e).main}),r!=="dataset"&&ft(t,"dataset")<=0&&t.unshift("dataset"),t}const dt=gi;var fS="";typeof navigator<"u"&&(fS=navigator.platform||"");var Da="rgba(0, 0, 0, 0.2)";const QD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Da,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Da,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Da,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Da,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Da,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Da,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fS.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var fv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),$e="original",ue="arrayRows",Ye="objectRows",br="keyedColumns",Br="typedArray",hS="unknown",wr="column",yi="row",Wt={Must:1,Might:2,Not:3},vS=wt();function tL(r){vS(r).datasetMap=U()}function eL(r,t,e){var n={},a=Zc(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=vS(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(p,g){var y=X(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(n[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(n[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(n[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function rL(r,t,e){var n={},a=Zc(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Ye||i===br)&&M(o,function(f,h){(X(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=dS(t.data,i,t.seriesLayoutBy,o,t.startIndex,c);v.push(p);var g=p===Wt.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Wt.Not)&&(f.n=c),y(f)&&v[f.n]!==Wt.Not)return f;g||(p===Wt.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function Zc(r){var t=r.get("data",!0);if(!t)return Ho(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},zt).models[0]}function nL(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ho(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},zt).models}function cS(r,t){return dS(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function dS(r,t,e,n,a,i){var o,s=5;if(ee(r))return Wt.Not;var l,u;if(n){var f=n[i];X(f)?(l=f.name,u=f.type):W(f)&&(l=f)}if(u!=null)return u==="ordinal"?Wt.Must:Wt.Not;if(t===ue){var h=r;if(e===yi){for(var v=h[i],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[a+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[a+c];if(d&&(o=S(d[i]))!=null)return o}}else if(t===Ye){var p=r;if(!l)return Wt.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===br){var y=r;if(!l)return Wt.Not;var v=y[l];if(!v||ee(v))return Wt.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===$e)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=Vo(g);if(!V(_))return Wt.Not;if((o=S(_[i]))!=null)return o}function S(w){var x=W(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?Wt.Might:Wt.Not;if(x&&w!=="-")return Wt.Must}return Wt.Not}var hv=U();function aL(r,t){J(hv.get(r)==null&&t),hv.set(r,t)}function iL(r,t,e){var n=hv.get(t);if(!n)return e;var a=n(r);if(!a)return e;for(var i=0;i<a.length;i++)J(ai(a[i]));return e.concat(a)}var pg=wt();wt();var Xc=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=kt(this.get("color",!0)),i=this.get("colorLayer",!0);return sL(this,pg,a,i,t,e,n)},r.prototype.clearColorPalette=function(){lL(this,pg)},r}();function oL(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 sL(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:oL(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%f.length,h}}function lL(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var _s,Ii,gg,Mf="\0_ec_inner",yg=1,uL={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"},fL={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 hL(r){M(r,function(t,e){if(!dt.hasClass(e)){var n=uL[e];n&&!Cl[n]&&(Yt("Component "+e+` is used but not imported.
import { `+n+` } from 'echarts/components';
echarts.use([`+n+"]);"),Cl[n]=!0)}})}var pS=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Dt(i),this._locale=new Dt(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){J(e!=null,"option is null/undefined"),J(e[Mf]!==yg,"please use chart.getOption()");var i=Sg(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Sg(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");hL(o),!this.option||e==="recreate"?gg(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;tL(this),M(e,function(h,v){h!=null&&(dt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?tt(h):at(a[v],h,!0))}),u&&u.each(function(h,v){dt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),dt.topologicalTravel(s,dt.getAllClassMainTypes(),f,this);function f(h){var v=iL(this,h,kt(e[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=uA(c,v,d);yA(p,h,dt),a[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_,S;M(p,function(w,x){var b=w.existing,T=w.newOption;if(!T)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=h==="series",A=dt.getClass(h,w.keyInfo.subType,!C);if(!A){{var D=w.keyInfo.subType,L=fL[D];Cl[D]||(Cl[D]=!0,Yt(L?"Series "+D+` is used but not imported.
import { `+L+` } from 'echarts/charts';
echarts.use([`+L+"]);":"Unknown series "+D))}return}if(h==="tooltip"){if(_){S||(Et("Currently only one tooltip component is allowed."),S=!0);return}_=!0}if(b&&b.constructor===A)b.name=w.keyInfo.name,b.mergeOption(T,this),b.optionUpdated(T,!1);else{var I=F({componentIndex:x},w.keyInfo);b=new A(T,this,this,I),F(b,I),w.brandNew&&(b.__requireNewView=!0),b.init(T,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),a[h]=g,i.set(h,y),o.set(h,m),h==="series"&&_s(this)}this._seriesIndices||_s(this)},t.prototype.getOption=function(){var e=tt(this.option);return M(e,function(n,a){if(dt.hasClass(a)){for(var i=kt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ai(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Mf],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 a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],M(kt(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=mg("id",i,s):o!=null?l=mg("name",o,s):l=bt(s,function(u){return!!u}),_g(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):bt(this._componentsMap.get(a),function(u){return!!u});return l(_g(o,e));function s(u){var f=a+"Index",h=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[h],name:u[v]}:null}function l(u){return e.filter?bt(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(q(e)){var o=n,s=e;i.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=W(e)?i.get(e):X(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=Sr(e,null);return bt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return bt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return bt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Ii(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){M(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){Ii(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return M(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return Ii(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Ii(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=U(a)},t.prototype.restoreData=function(e){_s(this);var n=this._componentsMap,a=[];n.each(function(i,o){dt.hasClass(o)&&a.push(o)}),dt.topologicalTravel(a,dt.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!vL(o,e))&&o.restoreData()})})},t.internalField=function(){_s=function(e){var n=e._seriesIndices=[];M(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=U(n)},Ii=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},gg=function(e,n){e.option={},e.option[Mf]=yg,e._componentsMap=U({series:[]}),e._componentsCount=U();var a=n.aria;X(a)&&a.enabled==null&&(a.enabled=!0),cL(n,e._theme.option),at(n,QD,!1),e._mergeOption(n,null)}}(),t}(Dt);function vL(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function cL(r,t){var e=r.color&&!r.colorLayer;M(t,function(n,a){a==="colorLayer"&&e||dt.hasClass(a)||(typeof n=="object"?r[a]=r[a]?at(r[a],n,!1):tt(n):r[a]==null&&(r[a]=n))})}function mg(r,t,e){if(V(t)){var n=U();return M(t,function(i){if(i!=null){var o=Sr(i,null);o!=null&&n.set(i,!0)}}),bt(e,function(i){return i&&n.get(i[r])})}else{var a=Sr(t,null);return bt(e,function(i){return i&&a!=null&&i[r]===a})}}function _g(r,t){return t.hasOwnProperty("subType")?bt(r,function(e){return e&&e.subType===t.subType}):r}function Sg(r){var t=U();return r&&M(kt(r.replaceMerge),function(e){J(dt.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ce(pS,Xc);const gS=pS;var dL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pL=function(){function r(t){M(dL,function(e){this[e]=K(t[e],t)},this)}return r}();const yS=pL;var Df={},gL=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];M(Df,function(a,i){var o=a.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){M(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Df[t]=e},r.get=function(t){return Df[t]},r}();const Ko=gL;var yL=/^(min|max)?(.+)$/,mL=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(M(kt(t.series),function(o){o&&o.data&&ee(o.data)&&po(o.data)}),M(kt(t.dataset),function(o){o&&o.source&&ee(o.source)&&po(o.source)})),t=tt(t);var a=this._optionBackup,i=_L(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=tt(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)SL(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!xL(o,this._currentMediaIndices)&&(s=z(o,function(f){return tt(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function _L(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||f)&&(r.options=r.media=null),i=r),f&&(V(u)?M(u,function(c){c&&!c.option&&X(c.query)&&X(c.query.option)&&Yt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),c&&c.option&&(c.query?n.push(c):a||(a=c))}):Yt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),v(i),M(l,function(c){return v(c)}),M(n,function(c){return v(c.option)});function v(c){M(t,function(d){d(c,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function SL(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return M(r,function(i,o){var s=o.match(yL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wL(n[u],i,l)||(a=!1)}}),a}function wL(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function xL(r,t){return r.join(",")===t.join(",")}const bL=mL;var De=M,Ao=X,wg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lf(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=wg.length;e<n;e++){var a=wg[e],i=t.normal,o=t.emphasis;i&&i[a]&&(Nt("itemStyle.normal."+a,a),r[a]=r[a]||{},r[a].normal?at(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(Nt("itemStyle.emphasis."+a,"emphasis."+a),r[a]=r[a]||{},r[a].emphasis?at(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function jt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(Ve("'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,Z(r[t],n)):r[t]=n),a&&(Ve(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function to(r){jt(r,"itemStyle"),jt(r,"lineStyle"),jt(r,"areaStyle"),jt(r,"label"),jt(r,"labelLine"),jt(r,"upperLabel"),jt(r,"edgeLabel")}function Rt(r,t){var e=Ao(r)&&r[t],n=Ao(e)&&e.textStyle;if(n){Ve("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,i=xp.length;a<i;a++){var o=xp[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}}function ke(r){r&&(to(r),Rt(r,"label"),r.emphasis&&Rt(r.emphasis,"label"))}function TL(r){if(!!Ao(r)){Lf(r),to(r),Rt(r,"label"),Rt(r,"upperLabel"),Rt(r,"edgeLabel"),r.emphasis&&(Rt(r.emphasis,"label"),Rt(r.emphasis,"upperLabel"),Rt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Lf(t),ke(t));var e=r.markLine;e&&(Lf(e),ke(e));var n=r.markArea;n&&ke(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!ee(i))for(var o=0;o<i.length;o++)ke(i[o]);M(r.categories,function(u){to(u)})}if(a&&!ee(a))for(var o=0;o<a.length;o++)ke(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ke(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)V(l[o])?(ke(l[o][0]),ke(l[o][1])):ke(l[o]);r.type==="gauge"?(Rt(r,"axisLabel"),Rt(r,"title"),Rt(r,"detail")):r.type==="treemap"?(jt(r.breadcrumb,"itemStyle"),M(r.levels,function(u){to(u)})):r.type==="tree"&&to(r.leaves)}}function Ar(r){return V(r)?r:r?[r]:[]}function xg(r){return(V(r)?r[0]:r)||{}}function CL(r,t){De(Ar(r.series),function(n){Ao(n)&&TL(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),De(e,function(n){De(Ar(r[n]),function(a){a&&(Rt(a,"axisLabel"),Rt(a.axisPointer,"label"))})}),De(Ar(r.parallel),function(n){var a=n&&n.parallelAxisDefault;Rt(a,"axisLabel"),Rt(a&&a.axisPointer,"label")}),De(Ar(r.calendar),function(n){jt(n,"itemStyle"),Rt(n,"dayLabel"),Rt(n,"monthLabel"),Rt(n,"yearLabel")}),De(Ar(r.radar),function(n){Rt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,Ve("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,Ve("nameGap property in radar component has been changed to axisNameGap")),De(n.indicator,function(a){a.text&&Nt("text","name","radar.indicator")})}),De(Ar(r.geo),function(n){Ao(n)&&(ke(n),De(Ar(n.regions),function(a){ke(a)}))}),De(Ar(r.timeline),function(n){ke(n),jt(n,"label"),jt(n,"itemStyle"),jt(n,"controlStyle",!0);var a=n.data;V(a)&&M(a,function(i){X(i)&&(jt(i,"label"),jt(i,"itemStyle"))})}),De(Ar(r.toolbox),function(n){jt(n,"iconStyle"),De(n.feature,function(a){jt(a,"iconStyle")})}),Rt(xg(r.axisPointer),"label"),Rt(xg(r.tooltip).axisPointer,"label")}function AL(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function ML(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=e)}function bg(r){r&&M(DL,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var DL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],LL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],If=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Pi(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<If.length;e++){var n=If[e][1],a=If[e][0];t[n]!=null&&(t[a]=t[n],Nt(n,a))}}function Tg(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(Nt("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function Cg(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay,Nt("downplay","blur","sunburst"))}function IL(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(Nt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function mS(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&mS(r[e].children,t)}function _S(r,t){CL(r,t),r.series=kt(r.series),M(r.series,function(e){if(!!X(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,Nt("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,Nt("clockWise","clockwise")),Tg(e.label);var a=e.data;if(a&&!ee(a))for(var i=0;i<a.length;i++)Tg(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(Nt("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=AL(e,"pointer.color");o!=null&&ML(e,"itemStyle.color",o)}else if(n==="bar"){Pi(e),Pi(e.backgroundStyle),Pi(e.emphasis);var a=e.data;if(a&&!ee(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Pi(a[i]),Pi(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,Nt("highlightPolicy","emphasis.focus","sunburst"))),Cg(e),mS(e.data,Cg)}else n==="graph"||n==="sankey"?IL(e):n==="map"&&(e.mapType&&!e.map&&(Nt("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(Ve("`mapLocation` is not used anymore."),Z(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(Nt("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),bg(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(LL,function(e){var n=r[e];n&&(V(n)||(n=[n]),M(n,function(a){bg(a)}))})}function PL(r){var t=U();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(RL)}function RL(r){M(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return a;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 y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=tA(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var wu=function(){function r(t){this.data=t.data||(t.sourceFormat===br?{}:[]),this.sourceFormat=t.sourceFormat||hS,this.seriesLayoutBy=t.seriesLayoutBy||wr,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 a=e[n];a.type==null&&cS(this,n)===Wt.Must&&(a.type="ordinal")}}return r}();function qc(r){return r instanceof wu}function vv(r,t,e){e=e||SS(r);var n=t.seriesLayoutBy,a=kL(r,e,n,t.sourceHeader,t.dimensions),i=new wu({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:tt(t)});return i}function Kc(r){return new wu({data:r,sourceFormat:ee(r)?Br:$e})}function EL(r){return new wu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:tt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function SS(r){var t=hS;if(ee(r))t=Br;else if(V(r)){r.length===0&&(t=ue);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(V(a)||ee(a)){t=ue;break}else if(X(a)){t=Ye;break}}}}else if(X(r)){for(var i in r)if(re(r,i)&&te(r[i])){t=br;break}}return t}function kL(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:Ag(a),startIndex:o,dimensionsDetectedCount:i};if(t===ue){var s=r;n==="auto"||n==null?Mg(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},e,s,10):o=gt(n)?n:n?1:0,!a&&o===1&&(a=[],Mg(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===yi?s.length:s[0]?s[0].length:null}else if(t===Ye)a||(a=OL(r));else if(t===br)a||(a=[],M(r,function(u,f){a.push(f)}));else if(t===$e){var l=Vo(r[0]);i=V(l)&&l.length||1}else t===Br&&J(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Ag(a),dimensionsDetectedCount:i}}function OL(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return St(e)}function Ag(r){if(!!r){var t=U();return z(r,function(e,n){e=X(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function Mg(r,t,e,n){if(t===yi)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function wS(r){var t=r.sourceFormat;return t===Ye||t===br}var zn,Vn,Hn,Dg,Lg,xS=function(){function r(t,e){var n=qc(t)?t:Kc(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Br){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=a}Lg(this,a,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;Lg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=Dg[jc(u,f)];if(J(c,"Invalide sourceFormat: "+u),F(o,c),u===Br)o.getItem=e,o.count=a,o.fillStorage=n;else{var d=bS(u,f);o.getItem=K(d,null,s,h,v);var p=TS(u,f);o.count=K(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,y=l[v],m=0;m<g;m++){var _=f[m*h+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Dg=(t={},t[ue+"_"+wr]={pure:!0,appendData:i},t[ue+"_"+yi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ye]={pure:!0,appendData:i},t[br]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[$e]={appendData:i},t[Br]={persistent:!1,pure:!0,appendData:function(o){J(ee(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 i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Ig=function(r,t,e,n){return r[n]},NL=(zn={},zn[ue+"_"+wr]=function(r,t,e,n){return r[n+t]},zn[ue+"_"+yi]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},zn[Ye]=Ig,zn[br]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name;if(s==null)throw new Error;var l=r[s];i[o]=l?l[n]:null}return i},zn[$e]=Ig,zn);function bS(r,t){var e=NL[jc(r,t)];return J(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var Pg=function(r,t,e){return r.length},BL=(Vn={},Vn[ue+"_"+wr]=function(r,t,e){return Math.max(0,r.length-t)},Vn[ue+"_"+yi]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Vn[Ye]=Pg,Vn[br]=function(r,t,e){var n=e[0].name;if(n==null)throw new Error;var a=r[n];return a?a.length:0},Vn[$e]=Pg,Vn);function TS(r,t){var e=BL[jc(r,t)];return J(e,'Do not support count on "'+r+'", "'+t+'".'),e}var Pf=function(r,t,e){return r[t]},FL=(Hn={},Hn[ue]=Pf,Hn[Ye]=function(r,t,e){return r[e]},Hn[br]=Pf,Hn[$e]=function(r,t,e){var n=Vo(r);return n instanceof Array?n[t]:n},Hn[Br]=Pf,Hn);function CS(r){var t=FL[r];return J(t,'Do not support get value on "'+r+'".'),t}function jc(r,t){return r===ue?r+"_"+t:r}function li(r,t,e){if(!!r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return CS(i)(n,o,s)}else{var l=n;return i===$e&&(l=Vo(n)),l}}}}var GL=/\{@(.+?)\}/g,zL=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=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:i,data:s,dataType:e,value:a,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,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&V(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(q(i))return l.status=e,l.dimensionIndex=a,i(l);if(W(i)){var f=$c(i,l);return f.replace(GL,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1),isNaN(d)&&Yt("Invalide label formatter: @"+v+", only support @[0], @[1], @[2], ..."));var p=li(s,t,d);if(o&&V(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return li(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Rg(r){var t,e;return X(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+Se(r)):t=r,{text:t,frag:e}}function uo(r){return new VL(r)}var VL=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 a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=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)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?(J(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(J(!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(V(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 y=this._settedOutputEnd!=null?this._settedOutputEnd:d;J(y>=this._outputDueEnd),this._outputDueEnd=y}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,a,i){Eg.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Eg.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),V(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){J(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}(),Eg=function(){var r,t,e,n,a,i={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}}();function nl(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!gt(r)&&r!=null&&r!=="-"&&(r=+ze(r)),r==null||r===""?NaN:Number(r))}var HL=U({number:function(r){return parseFloat(r)},time:function(r){return+ze(r)},trim:function(r){return W(r)?Ge(r):r}});function AS(r){return HL.get(r)}var MS={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},WL=function(){function r(t,e){if(!gt(e)){var n="";n='rvalue of "<", ">", "<=", ">=" can only be number in filter.',pt(n)}this._opFn=MS[t],this._rvalFloat=Gr(e)}return r.prototype.evaluate=function(t){return gt(t)?this._opFn(t,this._rvalFloat):this._opFn(Gr(t),this._rvalFloat)},r}(),DS=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:Gr(t),a=gt(e)?e:Gr(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=W(t),l=W(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),UL=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Gr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Gr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function $L(r,t){return r==="eq"||r==="ne"?new UL(r==="eq",t):re(MS,r)?new WL(r,t):null}var YL=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 nl(t,e)},r}();function ZL(r,t){var e=new YL,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==wr&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',pt(o));var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";re(l,y)&&(_='dimension name "'+y+'" duplicated.',pt(_)),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=bS(a,wr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,i,s,p)},e.getRawData=K(XL,null,r)),e.cloneRawData=K(qL,null,r);var v=TS(a,wr);e.count=K(v,null,n,i,s);var c=CS(a);e.retrieveValue=function(p,g){var y=h(n,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return c(p,g,y.name)}};return e.getDimensionInfo=K(KL,null,s,l),e.cloneAllDimensionInfo=K(jL,null,s),e}function XL(r){var t=r.sourceFormat;if(!Jc(t)){var e="";e="`getRawData` is not supported in source format "+t,pt(e)}return r.data}function qL(r){var t=r.sourceFormat,e=r.data;if(!Jc(t)){var n="";n="`cloneRawData` is not supported in source format "+t,pt(n)}if(t===ue){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===Ye){for(var a=[],i=0,o=e.length;i<o;i++)a.push(F({},e[i]));return a}}function KL(r,t,e){if(e!=null){if(gt(e)||!isNaN(e)&&!re(t,e))return r[e];if(re(t,e))return t[e]}}function jL(r){return tt(r)}var LS=U();function JL(r){r=tt(r);var t=r.type,e="";t||(e="Must have a `type` when `registerTransform`.",pt(e));var n=t.split(":");n.length!==2&&(e='Name must include namespace like "ns:regression".',pt(e));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,LS.set(t,r)}function QL(r,t,e){var n=kt(r),a=n.length,i="";a||(i="If `transform` declared, it should at least contain one transform.",pt(i));for(var o=0,s=a;o<s;o++){var l=n[o];t=t2(l,t,e,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function t2(r,t,e,n){var a="";t.length||(a="Must have at least one upstream dataset.",pt(a)),X(r)||(a="transform declaration must be an object rather than "+typeof r+".",pt(a));var i=r.type,o=LS.get(i);o||(a='Can not find transform on type "'+i+'".',pt(a));var s=z(t,function(f){return ZL(f,o)}),l=kt(o.transform({upstream:s[0],upstreamList:s,config:tt(r.config)}));if(r.print){var u=z(l,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+e.datasetIndex+h+" ===","- transform result data:",Se(f.data),"- transform result dimensions:",Se(f.dimensions)].join(`
`)}).join(`
`);sA(u)}return z(l,function(f,h){var v="";X(f)||(v="A transform should not return some empty results.",pt(v)),f.data||(v="Transform result data should be not be null or undefined",pt(v));var c=SS(f.data);Jc(c)||(v="Transform result data should be array rows or object rows.",pt(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:wr,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:wr,sourceHeader:0,dimensions:f.dimensions};return vv(f.data,d,null)})}function Jc(r){return r===ue||r===Ye}var xu="undefined",e2=typeof Uint32Array===xu?Array:Uint32Array,r2=typeof Uint16Array===xu?Array:Uint16Array,IS=typeof Int32Array===xu?Array:Int32Array,kg=typeof Float64Array===xu?Array:Float64Array,PS={float:kg,int:IS,ordinal:Array,number:Array,time:kg},Rf;function La(r){return r>65535?e2:r2}function Ia(){return[1/0,-1/0]}function n2(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Og(r,t,e,n,a){var i=PS[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var a2=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return r.prototype.initData=function(t,e,n){J(q(t.getItem)&&q(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Rf[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=wS(a);this._dimensions=z(e,function(s){return o&&J(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,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new PS[e||"float"](this._rawCount),this._rawExtent[i]=Ia(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=Ia());for(var l=i[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]))}a.ordinalMeta=e,a.ordinalOffset=s,a.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){J(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];Og(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<i;d++){var f=a[d],p=Rf.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 a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Ia()),Og(i,f,h.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var v=[],c=t;c<e;c++){v=a.getItem(c,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.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=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],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 a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var n=e.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/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 a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)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-i[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,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=La(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=La(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],h=n._chunks,v=0;v<a;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<a&&(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 a=St(t),i=a.length;if(!i)return this;var o=e.count(),s=La(e._rawCount),l=new s(o),u=0,f=a[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=c[a[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[a[0]],_=c[a[1]],S=t[a[1]][0],w=t[a[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var b=e.getRawIndex(y),m=c[a[0]][b];(m>=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=e.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=c[A][b];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}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 a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Ia();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)l[c]=a[e[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=a[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(La(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),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),w=i[S];isNaN(w)||(m+=w)}m/=g-p;var x=d,b=Math.min(d+l,o),T=d-1,C=i[u];f=-1,v=x;for(var A=-1,D=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=i[S];if(isNaN(w)){D++,A<0&&(A=S);continue}h=Math.abs((T-y)*(w-C)-(T-_)*(m-C)),h>f&&(f=h,v=S)}D>0&&D<b-x&&(c[s++]=Math.min(A,v),v=Math.max(A,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.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/e),o=a[t],s=this.count(),l=new(La(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,h=f+g),m>d&&(d=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=i._rawExtent[t]=Ia(),v=new(La(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 y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Ia();if(!e)return n;var a=this.count(),i=!this._indices,o;if(i)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<a;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=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&rr(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?n2(a[o]):a[o];else n._chunks=a;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=tt(this._extent),t._rawExtent=tt(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 a=0;a<n;a++)e[a]=this._indices[a]}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,a,i){return nl(e[i],this._dimensions[i])}Rf={arrayRows:t,objectRows:function(e,n,a,i){return nl(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return nl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}();const cv=a2;var RS=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,a,i;if(Ri(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,i=[f._getVersionSign()]}else s=o.get("data",!0),l=ee(s)?Br:$e,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=rt(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=rt(h.sourceHeader,v.sourceHeader),p=rt(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[vv(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[vv(_,this._getSourceMetaRawOption(),null)],i=[]}}J(a&&i),this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(J(a!=null||n!=null),a!=null){var i="";t.length!==1&&(i="When using `fromTransformResult`, there should be only one upstream dataset",Bg(i))}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&(h="Can not retrieve result by `fromTransformResult`: "+a,Bg(h)),s.push(f),l.push(u._getVersionSign())}),n?o=QL(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[EL(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){J(Ri(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 a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Ri(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new cv,s.initData(new xS(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ri(t)){var e=Zc(t);return e?[e.getSourceManager()]:[]}else return z(nL(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(Ri(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function Ng(r){var t=r.option.transform;t&&po(r.option.transform)}function Ri(r){return r.mainType==="series"}function Bg(r){throw new Error(r)}var i2="line-height:1";function ES(r){var t=r.lineHeight;return t==null?i2:"line-height:"+se(t+"")+"px"}function kS(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=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(a+""),valueStyle:"font-size:"+se(o+"")+"px;color:"+se(i)+";font-weight:"+se(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var o2=[0,10,20,30],s2=["",`
`,`

`,`


`];function mn(r,t){return t.type=r,t}function dv(r){return r.type==="section"}function OS(r){return dv(r)?l2:u2}function NS(r){if(dv(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return M(r.blocks,function(a){var i=NS(a);i>=t&&(t=i+ +(n&&(!i||dv(a)&&!a.noHeader)))}),t}return 0}function l2(r,t,e,n){var a=t.noHeader,i=f2(NS(t)),o=[],s=t.blocks||[];J(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(re(u,l)){var f=new DS(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=OS(p)(y?F(F({},r),{valueFormatter:y}):r,p,g>0?i.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):pv(n,o.join(""),a?e:i.html);if(a)return h;var v=uv(t.header,"ordinal",r.useUTC),c=kS(n,r.renderMode).nameStyle,d=ES(n);return r.renderMode==="richText"?BS(r,v,c)+i.richText+h:pv(n,'<div style="'+c+";"+d+';">'+se(v)+"</div>"+h,e)}function u2(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=V(S)?S:[S],z(S,function(w,x){return uv(w,V(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),v=i?"":uv(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=kS(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":h)+(i?"":BS(r,v,m))+(o?"":c2(r,d,p,g,_)):pv(n,(s?"":h)+(i?"":h2(v,!s,m))+(o?"":v2(d,p,g,_)),e)}}function Fg(r,t,e,n,a,i){if(!!r){var o=OS(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function f2(r){return{html:o2[r],richText:s2[r]}}function pv(r,t,e){var n='<div style="clear:both"></div>',a="margin: "+e+"px 0 0",i=ES(r);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function h2(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+se(r)+"</span>"}function v2(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=V(r)?r:[r],'<span style="'+i+";"+n+'">'+z(r,function(o){return se(o)}).join("&nbsp;&nbsp;")+"</span>"}function BS(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function c2(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join("  "):t,i)}function FS(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return ha(n)}function GS(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Ef=function(){function r(){this.richTextStyles={},this._nextStyleNameId=W_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=uS({color:e,type:t,renderMode:n,markerId:a});return W(i)?i:(J(a),this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};V(e)?M(e,function(i){return F(n,i)}):F(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function d2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=V(s),u=FS(t,e),f,h,v,c;if(o>1||l&&!o){var d=p2(s,t,e,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);c=f=li(a,e,i[0]),h=p.type}else c=f=l?s[0]:s;var g=_c(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return mn("section",{header:y,noHeader:n||!g,sortParam:c,blocks:[mn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ge(_),value:f,valueType:h,dataIndex:e})].concat(v||[])})}function p2(r,t,e,n,a){var i=t.getData(),o=rr(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(h){f(li(i,e,h),h)}):M(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(mn("nameValue",{markerType:"subItem",markerColor:a,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xr=wt();function Ss(r,t){return r.getName(t)||r.getId(t)}var al="__universalTransitionEnabled",bu=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=uo({count:y2,reset:m2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Xr(this).sourceManager=new RS(this);i.prepareSource();var o=this.getInitialData(e,a);zg(o,this),this.dataTask.context.data=o,J(o,"getInitialData returned invalid data."),Xr(this).dataBeforeProcessed=o,Gg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Co(this),i=a?qo(e):{},o=this.subType;dt.hasClass(o)&&(o+="Series"),at(e,n.getTheme().get(this.subType)),at(e,this.getDefaultOption()),gl(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&si(e,i,a)},t.prototype.mergeOption=function(e,n){e=at(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Co(this);a&&si(this.option,e,a);var i=Xr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);zg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xr(this).dataBeforeProcessed=o,Gg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ee(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&gl(e[a],"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=gv(this);if(n){var a=n.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return Xr(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=gv(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}Xr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return U(e)},t.prototype.getSourceManager=function(){return Xr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Xr(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,a){return d2({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(lt.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,a){var i=this.ecModel,o=Xc.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),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 a=this.option.selectedMap;if(!!a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Ss(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=St(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Ss(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[al])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=Ss(e,h);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=Ss(e,c);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=e.getRawIndex(c),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return dt.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}(dt);ce(bu,zL);ce(bu,Xc);j_(bu,dt);function Gg(r){var t=r.name;_c(r)||(r.name=g2(r)||t)}function g2(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function y2(r){return r.model.getRawData().count()}function m2(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),_2}function _2(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zg(r,t){M(ll(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ct(S2,t))})}function S2(r,t){var e=gv(r);return e&&e.setOutputEnd((t||this).count()),t}function gv(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const fe=bu;var Qc=function(){function r(){this.group=new ot,this.uid=pi("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();wc(Qc);ru(Qc);const Ht=Qc;function Tu(){var r=wt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var zS=wt(),w2=Tu(),td=function(){function r(){this.group=new ot,this.uid=pi("viewChart"),this.renderTask=uo({plan:x2,reset:b2}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);if(!i){Yt("Unknown dataType "+a.dataType);return}Hg(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);if(!i){Yt("Unknown dataType "+a.dataType);return}Hg(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){Yo(this.group,t)},r.markUpdateMethod=function(t,e){zS(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Vg(r,t,e){r&&ii(r)&&(t==="emphasis"?ua:fa)(r,e)}function Hg(r,t,e){var n=la(r,t),a=t&&t.highlightKey!=null?zM(t.highlightKey):null;n!=null?M(kt(n),function(i){Vg(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Vg(i,e,a)})}wc(td,["dispose"]);ru(td);function x2(r){return w2(r.model)}function b2(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&zS(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),T2[l]}var T2={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)}}};const $t=td;var Al="\0__throttleOriginMethod",Wg="\0__throttleRate",Ug="\0__throttleType";function Cu(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function h(){i=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?a:i)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Au(r,t,e,n){var a=r[t];if(!!a){var i=a[Al]||a,o=a[Ug],s=a[Wg];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=Cu(i,e,n==="debounce"),a[Al]=i,a[Ug]=n,a[Wg]=e}return a}}function Ml(r,t){var e=r[t];e&&e[Al]&&(e.clear&&e.clear(),r[t]=e[Al])}var $g=wt(),Yg={itemStyle:So(Q1,!0),lineStyle:So(J1,!0)},C2={lineStyle:"stroke",itemStyle:"fill"};function VS(r,t){var e=r.visualStyleMapper||Yg[t];return e||(console.warn("Unknown style type '"+t+"'."),Yg.itemStyle)}function HS(r,t){var e=r.visualDrawType||C2[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var A2={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=VS(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=HS(r,n),u=o[l],f=q(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"||q(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||q(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=F({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Ei=new Dt,M2={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=VS(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ei.option=l[n];var u=a(Ei),f=o.ensureUniqueItemVisual(s,"style");F(f,u),Ei.option.decal&&(o.setItemVisual(s,"decal",Ei.option.decal),Ei.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},D2={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),$g(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=$g(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=HS(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},ws=Math.PI;function L2(r,t){t=t||{},Z(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 ot,n=new mt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=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}),i=new mt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new fu({shape:{startAngle:-ws/2,endAngle:-ws/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:ws*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ws*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.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}),i.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 I2=function(){function r(t,e,n,a){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.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),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',J(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},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,a){a=a||{};var i=!1,o=this;M(t,function(l,u){if(!(a.visualType&&a.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(a,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||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,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||uo({plan:O2,reset:N2,count:F2}));c.context={model:h,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||uo({reset:P2});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";c='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',J(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(h=!1,M(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,uo({reset:R2,onDirty:k2})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:G2(t)}),t.uid=pi("stageHandler"),e&&(t.visualType=e),t},r}();function P2(r){r.overallReset(r.ecModel,r.api,r.payload)}function R2(r){return r.overallProgress&&E2}function E2(){this.agent.dirty(),this.getDownstream().dirty()}function k2(){this.agent&&this.agent.dirty()}function O2(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function N2(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=kt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return WS(n)}):B2}var B2=WS(0);function WS(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function F2(r){return r.data.count()}function G2(r){Dl=null;try{r(Mo,US)}catch{}return Dl}var Mo={},US={},Dl;$S(Mo,gS);$S(US,yS);Mo.eachSeriesByType=Mo.eachRawSeriesByType=function(r){Dl=r};Mo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Dl=r.subType)};function $S(r,t){for(var e in t.prototype)r[e]=Qt}const YS=I2;var Zg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const z2={color:Zg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Zg]};var Kt="#B9B8CE",Xg="#100C2A",xs=function(){return{axisLine:{lineStyle:{color:Kt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},qg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ZS={darkMode:!0,color:qg,backgroundColor:Xg,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Kt},pageTextStyle:{color:Kt}},textStyle:{color:Kt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Kt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Kt},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:Kt}},timeline:{lineStyle:{color:Kt},label:{color:Kt},controlStyle:{color:Kt,borderColor:Kt}},calendar:{itemStyle:{color:Xg},dayLabel:{color:Kt},monthLabel:{color:Kt},yearLabel:{color:Kt}},timeAxis:xs(),logAxis:xs(),valueAxis:xs(),categoryAxis:xs(),line:{symbol:"circle"},graph:{color:qg},gauge:{title:{color:Kt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Kt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ZS.categoryAxis.splitLine.show=!1;const V2=ZS;var H2=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(W(t)){var i=yr(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(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||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=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,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),yv=["symbol","symbolSize","symbolRotate","symbolOffset"],Kg=yv.concat(["symbolKeepAspect"]),W2={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={},a={},i=!1,o=0;o<yv.length;o++){var s=yv[o],l=r.get(s);q(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(F({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=St(a);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,a[g](c,d))}}return{dataEach:i?f:null}}},U2={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Kg.length;s++){var l=Kg[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function $2(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 Y2(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 Z2(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=F({},a),Nt(a.type,n[1]),o.dispatchAction(F(a,{type:n[1],seriesIndex:e(i,a)}))})})}function Pa(r,t,e,n,a){var i=r+t;e.isSilent(i)||(Ve("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=la(h,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:V(v)?h.getName(v[0]):h.getName(v),selected:W(l)?l:F({},l)})}}))}function X2(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(Pa("map","selectchanged",t,a,n),Pa("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Pa("map","selected",t,a,n),Pa("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Pa("map","unselected",t,a,n),Pa("pie","unselected",t,a,n))})}function Ya(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var q2=Math.round(Math.random()*9),K2=typeof Object.defineProperty=="function",j2=function(){function r(){this._id="__ec_inner_"+q2++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return K2?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}();const J2=j2;var Q2=ut.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),tI=ut.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),eI=ut.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+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()}}),rI=ut.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),nI={line:Jt,rect:mt,roundRect:mt,square:mt,circle:ma,diamond:tI,pin:eI,arrow:rI,triangle:Q2},aI={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},Ll={};M(nI,function(r,t){Ll[t]=new r});var iI=ut.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=dl(r,t,e),a=this.shape;return a&&a.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 a=Ll[n];a||(n="rect",a=Ll[n]),aI[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function oI(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 he(r,t,e,n,a,i,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=Rc(r.slice(8),new nt(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=cu(r.slice(7),{},new nt(t,e,n,a),o?"center":"cover"):l=new iI({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=oI,i&&l.setColor(i),l}function Mu(r){return V(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Du(r,t){if(r!=null)return V(r)||(r=[r,r]),[Y(r[0],t[0])||0,Y(rt(r[1],r[0]),t[1])||0]}function Jn(r){return isFinite(r)}function sI(r,t,e){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),n=Jn(n)?n:0,a=Jn(a)?a:1,i=Jn(i)?i:0,o=Jn(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function lI(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),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*a+e.y,l=l*i),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 mv(r,t,e){for(var n=t.type==="radial"?lI(r,t,e):sI(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function uI(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 bs(r){return parseInt(r,10)}function Ts(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["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[a]||bs(s[n])||bs(r.style[n]))-(bs(s[i])||0)-(bs(s[o])||0)|0}function fI(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:gt(r)?[r]:V(r)?r:null}function XS(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&fI(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=z(e,function(i){return i/a}),n/=a)}return[e,n]}var hI=new zr(!0);function Il(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function jg(r){return typeof r=="string"&&r!=="none"}function Pl(r){var t=r.fill;return t!=null&&t!=="none"}function Jg(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 Qg(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 _v(r,t,e){var n=J_(t.image,t.__image,e);if(nu(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*h_),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function vI(r,t,e,n){var a,i=Il(e),o=Pl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||hI,h=t.__dirty;if(!n){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=h?mv(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?mv(r,c,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?_v(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?_v(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:i=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(a=XS(t),T=a[0],C=a[1]);var A=!0;(u||h&za)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(i&&Qg(r,e),o&&Jg(r,e)):(o&&Jg(r,e),i&&Qg(r,e))),T&&r.setLineDash([])}function cI(r,t,e){var n=t.__image=J_(e.image,t.__image,t,t.onload);if(!(!n||!nu(n))){var a=e.x||0,i=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,a,i,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,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function dI(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||sa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=XS(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Il(e)&&r.strokeText(a,e.x,e.y),Pl(e)&&r.fillText(a,e.x,e.y)):(Pl(e)&&r.fillText(a,e.x,e.y),Il(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var ty=["shadowBlur","shadowOffsetX","shadowOffsetY"],ey=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function qS(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){_e(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?ra.opacity:o}(n||t.blend!==e.blend)&&(i||(_e(r,a),i=!0),r.globalCompositeOperation=t.blend||ra.blend);for(var s=0;s<ty.length;s++){var l=ty[s];(n||t[l]!==e[l])&&(i||(_e(r,a),i=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(_e(r,a),i=!0),r.shadowColor=t.shadowColor||ra.shadowColor),i}function ry(r,t,e,n,a){var i=Do(t,a.inHover),o=n?null:e&&Do(e,a.inHover)||{};if(i===o)return!1;var s=qS(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(_e(r,a),s=!0),jg(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(_e(r,a),s=!0),jg(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(_e(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(_e(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<ey.length;f++){var h=ey[f],v=h[0];(n||i[v]!==o[v])&&(s||(_e(r,a),s=!0),r[v]=i[v]||h[1])}return s}function pI(r,t,e,n,a){return qS(r,Do(t,a.inHover),e&&Do(e,a.inHover),n,a)}function KS(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 gI(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),KS(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function yI(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 ny=1,ay=2,iy=3,oy=4;function mI(r){var t=Pl(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 _e(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Do(r,t){return t&&r.__hoverStyle||r.style}function ed(r,t){Qn(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qn(r,t,e,n){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Ce,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||uI(i,o))&&(o&&o.length&&(_e(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(_e(r,e),r.save(),gI(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof ut&&t.autoBatch&&mI(t.style);s||yI(a,u.transform)?(_e(r,e),KS(r,t)):f||_e(r,e);var h=Do(t,e.inHover);t instanceof ut?(e.lastDrawType!==ny&&(l=!0,e.lastDrawType=ny),ry(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),vI(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof yl?(e.lastDrawType!==iy&&(l=!0,e.lastDrawType=iy),ry(r,t,u,l,e),dI(r,t,h)):t instanceof or?(e.lastDrawType!==ay&&(l=!0,e.lastDrawType=ay),pI(r,t,u,l,e),cI(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==oy&&(l=!0,e.lastDrawType=oy),_I(r,t,e)),f&&n&&_e(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function _I(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={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(),Qn(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qn(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var kf=new J2,sy=new Fo(100),ly=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Rl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&kf.delete(r);var i=kf.get(r);if(i)return i;var o=Z(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=a?1:1/e,kf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,v=0;v<ly.length;++v){var c=o[ly[v]];if(c!=null&&!V(c)&&!W(c)&&!gt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(a?"-svg":"");var p=sy.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=JS(o.dashArrayX),y=SI(o.dashArrayY),m=jS(o.symbol),_=wI(g),S=QS(y),w=!a&&Fr.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;w&&(w.width=b.width*e,w.height=b.height*e,T=w.getContext("2d")),A(),h&&sy.put(d,w||x),u.image=w,u.svgElement=x,u.svgWidth=b.width,u.svgHeight=b.height;function C(){for(var D=1,L=0,I=_.length;L<I;++L)D=_p(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=_p(P,m[L].length);D*=P;var R=S*_.length*m.length;{var E=function(O){console.warn("Calculated decal size is greater than "+O+" due to decal option settings so "+O+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+O+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&E("maxTileWidth"),R>o.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){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 D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,R=0,E=0;I<b.height;){if(P%2===0){for(var O=R/2%m.length,k=0,N=0,G=0;k<b.width*2;){for(var H=0,L=0;L<g[E].length;++L)H+=g[E][L];if(H<=0)break;if(N%2===0){var $=(1-o.symbolSize)*.5,et=k+g[E][N]*$,st=I+y[P]*$,ht=g[E][N]*o.symbolSize,Bt=y[P]*o.symbolSize,de=G/2%m[O].length;Zt(et,st,ht,Bt,m[O][de])}k+=g[E][N],++G,++N,N===g[E].length&&(N=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function Zt(Ot,Mt,Q,vt,lr){var Gt=a?1:e,$r=he(lr,Ot*Gt,Mt*Gt,Q*Gt,vt*Gt,o.color,o.symbolKeepAspect);if(a){var Tr=n.painter.renderOneToVNode($r);Tr&&x.children.push(Tr)}else ed(T,$r)}}}}function jS(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!W(r[e])){t=!1;break}if(t)return jS([r]);for(var n=[],e=0;e<r.length;++e)W(r[e])?n.push([r[e]]):n.push(r[e]);return n}function JS(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 JS([r]);for(var a=[],n=0;n<r.length;++n)if(gt(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=z(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function SI(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=z(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function wI(r){return z(r,function(t){return QS(t)})}function QS(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function xI(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=Rl(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Rl(a,t)}}})}var bI=new He;const Ke=bI;var El={};function TI(r,t){El[r]&&Yt("Already has an implementation of "+r+"."),El[r]=t}function tw(r){return El[r]||Yt("Implementation of "+r+" doesn't exists."),El[r]}var CI="5.6.0",AI={zrender:"5.6.1"},MI=1,DI=800,LI=900,II=1e3,PI=2e3,RI=5e3,ew=1e3,EI=1100,rd=2e3,rw=3e3,kI=4e3,Lu=4500,OI=4600,NI=5e3,BI=6e3,nw=7e3,aw={PROCESSOR:{FILTER:II,SERIES_FILTER:DI,STATISTIC:RI},VISUAL:{LAYOUT:ew,PROGRESSIVE_LAYOUT:EI,GLOBAL:rd,CHART:rw,POST_CHART_LAYOUT:OI,COMPONENT:kI,BRUSH:NI,CHART_ITEM:Lu,ARIA:BI,DECAL:nw}},qt="__flagInMainProcess",ge="__pendingUpdate",Of="__needsUpdateStatus",uy=/^[a-zA-Z0-9_]+$/,Nf="__connectUpdateStatus",fy=0,FI=1,GI=2;function iw(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){Te(this.id);return}return sw(this,r,t)}}function ow(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sw(this,r,t)}}function sw(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),He.prototype[t].apply(r,e)}var lw=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(He),uw=lw.prototype;uw.on=ow("on");uw.off=ow("off");var Ra,Bf,Cs,qr,Ff,Gf,zf,ki,Oi,hy,vy,Vf,cy,As,dy,fw,Le,py,kl=function(r){B(t,r);function t(e,n,a){var i=r.call(this,new H2)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},W(n)&&(n=hw[n]),i._dom=e;var o="canvas",s="auto",l=!1;{var u=lt.hasGlobalWindow?window:global;u&&(o=rt(u.__ECHARTS__DEFAULT__RENDERER__,o),s=rt(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=rt(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr&&G_(function(c){var d=it(c),p=d.dataIndex;if(p!=null){var g=U();return g.set("series_index",d.seriesIndex),g.set("data_index",p),d.ssrType&&g.set("ssr_type",d.ssrType),g}});var f=i._zr=jh(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:rt(a.useDirtyRect,l),useCoarsePointer:rt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Cu(K(f.flush,f),17),n=tt(n),n&&_S(n,!0),i._theme=n,i._locale=FD(a.locale||tS),i._coordSysMgr=new Ko;var h=i._api=dy(i);function v(c,d){return c.__prio-d.__prio}return Zs(Nl,v),Zs(Sv,v),i._scheduler=new YS(i,h,Sv,Nl),i._messageCenter=new lw,i._initEvents(),i.resize=K(i.resize,i),f.animation.on("frame",i._onframe,i),hy(f,i),vy(f,i),po(i),i}return t.prototype._onframe=function(){if(!this._disposed){py(this);var e=this._scheduler;if(this[ge]){var n=this[ge].silent;this[qt]=!0;try{Ra(this),qr.update.call(this,null,this[ge].updateParams)}catch(l){throw this[qt]=!1,this[ge]=null,l}this._zr.flush(),this[qt]=!1,this[ge]=null,ki.call(this,n),Oi.call(this,n)}else if(e.unfinished){var a=MI,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Gf(this,i),e.performVisualTasks(i),As(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>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,a){if(this[qt]){Yt("`setOption` should not be called during main process.");return}if(this._disposed){Te(this.id);return}var i,o,s;if(X(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[qt]=!0,!this._model||n){var l=new bL(this._api),u=this._theme,f=this._model=new gS;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},wv);var h={seriesTransition:s,optionChanged:!0};if(a)this[ge]={silent:i,updateParams:h},this[qt]=!1,this.getZr().wakeUp();else{try{Ra(this),qr.update.call(this,null,h)}catch(v){throw this[ge]=null,this[qt]=!1,v}this._ssr||this._zr.flush(),this[ge]=null,this[qt]=!1,ki.call(this,i),Oi.call(this,i)}},t.prototype.setTheme=function(){Ve("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||lt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return Nt("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(!!lt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){Te(this.id);return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;M(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.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 M(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){Te(this.id);return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Bl[a]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();M(aa,function(_,S){if(_.group===a){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=Fr.createCanvas(),y=jh(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(v,function(_){var S=_.left-l,w=_.top-u;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new mt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(v,function(_){var S=new or({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Ff(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Ff(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){Te(this.id);return}var a=this._model,i,o=ao(a,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?i=i||h.containPoint(n,u):Et(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else Et(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=ao(a,e,{defaultMainType:"series"}),o=i.seriesModel;o||Et("There is no specified series model");var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?$2(s,l,n):Y2(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;M(zI,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Ya(s,function(d){var p=it(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=F({},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)&&Et("model or view can not be found by params"),l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),M(fo,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),X2(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Te(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Te(this.id);return}this._disposed=!0;var e=this.getDom();e&&X_(this.getDom(),ad,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(n._chartsViews,function(o){o.dispose(i,a)}),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 aa[n.id]},t.prototype.resize=function(e){if(this[qt]){Yt("`resize` should not be called during main process.");return}if(this._disposed){Te(this.id);return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ge]&&(i==null&&(i=this[ge].silent),a=!0,this[ge]=null),this[qt]=!0;try{a&&Ra(this),qr.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[qt]=!1,o}this[qt]=!1,ki.call(this,i),Oi.call(this,i)}},t.prototype.showLoading=function(e,n){if(this._disposed){Te(this.id);return}if(X(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!xv[e]){Et("Loading effects "+e+" not exists.");return}var a=xv[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},t.prototype.hideLoading=function(){if(this._disposed){Te(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=F({},e);return n.type=fo[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){Te(this.id);return}if(X(n)||(n={silent:!!n}),!!Ol[e.type]&&!!this._model){if(this[qt]){this._pendingActions.push(e);return}var a=n.silent;zf.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&lt.browser.weChat&&this._throttledZrFlush(),ki.call(this,a),Oi.call(this,a)}},t.prototype.updateLabelLayout=function(){Ke.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){Te(this.id);return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);J(e.data&&i),i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Ra=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Bf(h,!0),Bf(h,!1),v.plan()},Bf=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(x,b){x!=="series"&&S(b)}):c.eachSeries(S);function S(x){var b=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!b&&g[T];if(!C){var A=yr(x.type),D=v?Ht.getClass(A.main,A.sub):$t.getClass(A.sub);J(D,A.sub+" does not exist."),C=new D,C.init(c,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(C,x,c,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(c,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Cs=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){M([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[d+"Id"]=c[d+"Id"],y[d+"Index"]=c[d+"Index"],y[d+"Name"]=c[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=c.excludeSeriesId,S;_!=null&&(S=U(),M(kt(_),function(x){var b=Sr(x,null);b!=null&&S.set(b,!0)})),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;if(!b)if(qp(c))if(x instanceof fe)c.type===na&&!c.notBlur&&!x.get(["emphasis","disabled"])&&PM(x,c,h._api);else{var T=Mc(x.mainType,x.componentIndex,c.name,h._api),C=T.focusSelf,A=T.dispatchers;c.type===na&&C&&!c.notBlur&&av(x.mainType,x.componentIndex,h._api),A&&M(A,function(D){c.type===na?ua(D):fa(D)})}else iv(c)&&x instanceof fe&&(kM(x,c,h._api),Zp(x),Le(h))},h),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,h._api,c)}},qr={prepareAndUpdate:function(h){Ra(this),qr.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,y=this._scheduler;if(!!c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,d),y.performDataProcessorTasks(c,h),Gf(this,c),g.update(c,d),e(c),y.performVisualTasks(c,h),Vf(this,c,d,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Ke.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(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=U();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),As(this,c,d,h,{},g),Ke.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;!v||(v.setUpdatePayload(h),$t.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Vf(this,v,this._api,h,{}),Ke.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()}),$t.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)}),Ke.trigger("afterupdate",c,this._api))},updateLayout:function(h){qr.update.call(this,h)}},Ff=function(h,v,c,d){if(h._disposed){Te(h.id);return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=ao(p,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(y=S[v](p,m,d))!=null)return y}Et("No coordinate system that supports "+v+" found by the given finder.")},Gf=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},zf=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=Ol[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&yr(_[0]);this[qt]=!0;var x=[h],b=!1;h.batch&&(b=!0,x=z(h.batch,function(P){return P=Z(F({},P),h),P.batch=null,P}));var T=[],C,A=iv(h),D=qp(h);if(D&&w1(this._api),M(x,function(P){if(C=y.action(P,c._model,c._api),C=C||F({},P),C.type=m.event||C.type,T.push(C),D){var R=Sc(h),E=R.queryOptionMap,O=R.mainTypeSpecified,k=O?E.keys()[0]:"series";Cs(c,S,P,k),Le(c)}else A?(Cs(c,S,P,"series"),Le(c)):w&&Cs(c,S,P,w.main,w.sub)}),S!=="none"&&!D&&!A&&!w)try{this[ge]?(Ra(this),qr.update.call(this,h),this[ge]=null):qr[S].call(this,h)}catch(P){throw this[qt]=!1,P}if(b?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[qt]=!1,!v){var L=this._messageCenter;if(L.trigger(C.type,C),A){var I={type:"selectchanged",escapeConnect:g,selected:OM(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},ki=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();zf.call(this,c,h)}},Oi=function(h){!h&&this.trigger("updated")},hy=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")})},vy=function(h,v){h.on("mouseover",function(c){var d=c.target,p=Ya(d,ii);p&&(RM(p,c,v._api),Le(v))}).on("mouseout",function(c){var d=c.target,p=Ya(d,ii);p&&(EM(p,c,v._api),Le(v))}).on("click",function(c){var d=c.target,p=Ya(d,function(m){return it(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=it(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.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(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?c:v).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),d){var p=v.concat(c),g,y;Zs(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==y&&S++,y=w):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Vf=function(h,v,c,d,p){n(v),cy(h,v,c,d,p),M(h._chartsViews,function(g){g.__alive=!1}),As(h,v,c,d,p),M(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},cy=function(h,v,c,d,p,g){M(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,c,d),s(m,y),f(m,y)})},As=function(h,v,c,d,p,g){var y=h._scheduler;p=F(p||{},{updatedSeries:v.getSeries()}),Ke.trigger("series:beforeupdate",v,c,p);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,d),u(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),Zp(_)}),y.unfinished=m||y.unfinished,Ke.trigger("series:layoutlabels",v,c,p),Ke.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(h,v),Ke.trigger("series:afterupdate",v,c,p)},Le=function(h){h[Of]=!0,h.getZr().wakeUp()},py=function(h){!h[Of]||(h.getZr().storage.traverse(function(v){Ka(v)||a(v)}),h[Of]=!1)};function a(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===ou&&h.states.emphasis?v.push("emphasis"):h.hoverState===iu&&h.states.blur&&v.push("blur"),h.useStates(v)}function i(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.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(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],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(!Ka(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(y){if(y.states&&y.states.emphasis){if(Ka(y))return;if(y instanceof ut&&VM(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}dy=function(h){return new(function(v){B(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){ua(d,p),Le(h)},c.prototype.leaveEmphasis=function(d,p){fa(d,p),Le(h)},c.prototype.enterBlur=function(d){IM(d),Le(h)},c.prototype.leaveBlur=function(d){y1(d),Le(h)},c.prototype.enterSelect=function(d){m1(d),Le(h)},c.prototype.leaveSelect=function(d){_1(d),Le(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}(yS))(h)},fw=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[Nf]=d}}M(fo,function(c,d){h._messageCenter.on(d,function(p){if(Bl[h.group]&&h[Nf]!==fy){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];M(aa,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,fy),M(y,function(m){m[Nf]!==FI&&m.dispatchAction(g)}),v(y,GI)}})})}}(),t}(He),nd=kl.prototype;nd.on=iw("on");nd.off=iw("off");nd.one=function(r,t,e){var n=this;Ve("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var zI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Te(r){Et("Instance "+r+" has been disposed")}var Ol={},fo={},Sv=[],wv=[],Nl=[],hw={},xv={},aa={},Bl={},VI=+new Date-0,HI=+new Date-0,ad="_echarts_instance_";function WI(r,t,e){var n=!(e&&e.ssr);if(n){if(!r)throw new Error("Initialize failed: invalid dom.");var a=id(r);if(a)return Et("There is a chart instance already initialized on the dom."),a;cn(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!e||e.width==null)||!r.clientHeight&&(!e||e.height==null))&&Et("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 i=new kl(r,t,e);return i.id="ec_"+VI++,aa[i.id]=i,n&&X_(r,ad,i.id),fw(i),Ke.trigger("afterinit",i),i}function UI(r){if(V(r)){var t=r;r=null,M(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+HI++,M(t,function(e){e.group=r})}return Bl[r]=!0,r}function vw(r){Bl[r]=!1}var $I=vw;function YI(r){W(r)?r=aa[r]:r instanceof kl||(r=id(r)),r instanceof kl&&!r.isDisposed()&&r.dispose()}function id(r){return aa[wA(r,ad)]}function ZI(r){return aa[r]}function od(r,t){hw[r]=t}function sd(r){ft(wv,r)<0&&wv.push(r)}function ld(r,t){ud(Sv,r,t,PI)}function cw(r){Iu("afterinit",r)}function dw(r){Iu("afterupdate",r)}function Iu(r,t){Ke.on(r,t)}function sr(r,t,e){q(t)&&(e=t,t="");var n=X(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!fo[t]&&(J(uy.test(n)&&uy.test(t)),Ol[n]||(Ol[n]={action:e,actionInfo:r}),fo[t]=n)}function pw(r,t){Ko.register(r,t)}function XI(r){var t=Ko.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function gw(r,t){ud(Nl,r,t,ew,"layout")}function bn(r,t){ud(Nl,r,t,rw,"visual")}var gy=[];function ud(r,t,e,n,a){(q(t)||X(t))&&(e=t,t=n);{if(isNaN(t)||t==null)throw new Error("Illegal priority");M(r,function(o){J(o.__raw!==e)})}if(!(ft(gy,e)>=0)){gy.push(e);var i=YS.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function fd(r,t){xv[r]=t}function qI(r){Ve("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),n_({createCanvas:r})}function yw(r,t,e){var n=tw("registerMap");n&&n(r,t,e)}function KI(r){var t=tw("getMap");return t&&t(r)}var mw=JL;bn(rd,A2);bn(Lu,M2);bn(Lu,D2);bn(rd,W2);bn(Lu,U2);bn(nw,xI);sd(_S);ld(LI,PL);fd("default",L2);sr({type:na,event:na,update:na},Qt);sr({type:Qs,event:Qs,update:Qs},Qt);sr({type:io,event:io,update:io},Qt);sr({type:tl,event:tl,update:tl},Qt);sr({type:oo,event:oo,update:oo},Qt);od("light",z2);od("dark",V2);var jI={};function Ni(r){return r==null?0:r.length||1}function yy(r){return r}var JI=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||yy,this._newKeyGetter=a||yy,this.context=i,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={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Ni(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(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],h=Ni(u),v=Ni(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[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,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=Ni(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!e){var l=e[s],u=Ni(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Lo=JI;var QI=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 tP(r,t){var e={},n=e.encode={},a=U(),i=[],o=[],s={};M(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){J(fv.get(d)==null);var p=c.coordDimIndex;Hf(n,d)[p]=v,c.isExtraCoord||(a.set(d,1),rP(c.type)&&(i[0]=v),Hf(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}fv.each(function(g,y){var m=Hf(n,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var l=[],u={};a.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=z(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e.userOutput=new QI(s,t),e}function Hf(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function eP(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function rP(r){return!(r==="ordinal"||r==="time")}var nP=function(){function r(t){this.otherDims={},t!=null&&F(this,t)}return r}();const il=nP;var aP=wt(),iP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_w=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=xw(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return rt(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=wS(this.source),n=!bw(t),a="",i=[],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)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=iP[u]||"f",f&&(a+=f.uid),a+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Sw(r){return r instanceof _w}function ww(r){for(var t=U(),e=0;e<(r||[]).length;e++){var n=r[e],a=X(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function xw(r){var t=aP(r);return t.dimNameMap||(t.dimNameMap=ww(r.dimensionsDefine))}function bw(r){return r>30}var Bi=X,Kr=z,oP=typeof Int32Array>"u"?Array:Int32Array,sP="e\0\0",my=-1,lP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uP=["_approximateExtent"],_y,Ms,Fi,Ea,Wf,Gi,Uf,fP=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;Sw(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=W(h)?new il({name:h}):h instanceof il?h:new il(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),i[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),J(a||v.storeDimIndex>=0),a&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=U();M(o,function(g){p.set(i[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 a=this._schema.getSourceDimension(e);if(a)return a.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 a=n.encode[t];return a?a[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 a=this,i;if(t instanceof cv&&(i=t),!i){var o=this.dimensions,s=qc(t)||te(t)?new xS(t,o.length):t;i=new cv;var l=Kr(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=tP(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&&e.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&Uf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Br&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$e;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var h=a.getItem(f,u);if(!this.hasItemOption&&lA(h)&&(this.hasItemOption=!0),h){var v=h.name;i[f]==null&&v!=null&&(i[f]=Sr(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Sr(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Uf(this,f);_y(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){Bi(t)?F(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=Fi(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return Ms(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.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,a=this._store;return V(t)?a.getValues(Kr(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;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 a=n&&n[e];return a==null||isNaN(a)?my:a},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){q(t)&&(n=e,e=t,t=[]);var a=n||this,i=Kr(Ea(t),this._getStoreDimIndex,this);this._store.each(i,a?K(e,a):e)},r.prototype.filterSelf=function(t,e,n){q(t)&&(n=e,e=t,t=[]);var a=n||this,i=Kr(Ea(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?K(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=St(t);return M(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){q(t)&&(n=e,e=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=Kr(Ea(t),this._getStoreDimIndex,this),s=Gi(this);return s._store=this._store.map(o,i?K(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=this,o=n||a||this;M(Ea(t),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Kr(Ea(t),this._getStoreDimIndex,this);this._store.modify(s,o?K(e,o):e)},r.prototype.downSample=function(t,e,n,a){var i=Gi(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.minmaxDownSample=function(t,e){var n=Gi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Gi(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 Dt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Lo(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ms(t,n)},function(n){return Ms(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||{},Bi(t)?F(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a==null?this.getVisual(e):a},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),V(i)?i=i.slice():Bi(i)&&(i=F({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Bi(e)?F(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Bi(t)?F(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?F(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;rv(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Kr(this.dimensions,this._getDimInfo,this),this.hostModel)),Wf(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!q(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(Jl(arguments)))})},r.internalField=function(){_y=function(t){var e=t._invertedIndicesMap;M(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new oP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=my;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Fi=function(t,e,n){return Sr(t._getCategory(e,n),null)},Ms=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Fi(t,t._idDimIdx,e)),n==null&&(n=sP+e),n},Ea=function(t){return V(t)||(t=t!=null?[t]:[]),t},Gi=function(t){var e=new r(t._schema?t._schema:Kr(t.dimensions,t._getDimInfo,t),t.hostModel);return Wf(e,t),e},Wf=function(t,e){M(lP.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,M(uP,function(n){t[n]=tt(e[n])}),t._calculationInfo=F({},e._calculationInfo)},Uf=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=Fi(t,i,e)),l==null&&o!=null&&(a[e]=l=Fi(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),a[e]=l}}}(),r}();const Pu=fP;function hP(r,t){return hd(r,t).dimensions}function hd(r,t){qc(r)||(r=Kc(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=cP(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&bw(o),l=n===r.dimensionsDefine,u=l?xw(r):ww(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=U(f),v=new IS(o),c=0;c<v.length;c++)v[c]=-1;function d(C){var A=v[C];if(A<0){var D=n[C],L=X(D)?D:{name:D},I=new il,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return v[C]=R,I.storeDimIndex=C,i.push(I),I}return i[A]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(C,A){var D=kt(C).slice();if(D.length===1&&!W(D[0])&&D[0]<0){h.set(A,!1);return}var L=h.set(A,[]);M(D,function(I,P){var R=W(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),A,P))})});var p=0;M(e,function(C){var A,D,L,I;if(W(C))A=C,I={};else{I=C,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=F({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(A);if(R!==!1){if(R=kt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}M(R,function(O,k){var N=d(O);if(l&&I.type!=null&&(N.type=I.type),g(Z(N,I),A,k),N.name==null&&D){var G=D[k];!X(G)&&(G={name:G}),N.name=N.displayName=G.name,N.defaultTooltip=G.defaultTooltip}L&&Z(N.otherDims,L)})}});function g(C,A,D){fv.get(A)!=null?C.otherDims[A]=D:(C.coordDim=A,C.coordDimIndex=D,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)M(i,function(C){w(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var b=d(x),T=b.coordDim;T==null&&(b.coordDim=dP(S,a,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(cS(r,x)===Wt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return vP(i),new _w({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function vP(r){for(var t=U(),e=0;e<r.length;e++){var n=r[e],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function cP(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(i){var o;X(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function dP(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 pP=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function gP(r){var t=r.get("coordinateSystem"),e=new pP(t),n=yP[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var yP={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",zt).models[0],i=r.getReferringComponents("yAxis",zt).models[0];{if(!a)throw new Error('xAxis "'+nr(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+nr(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),ka(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ka(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",zt).models[0];if(!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",a),ka(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",zt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),ka(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),ka(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 a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ka(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ka(r){return r.get("type")==="category"}function Tw(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;mP(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(M(i,function(m,_){W(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),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;M(i,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function mP(r){return!Sw(r.schema)}function _n(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Cw(r,t){return _n(r,t)?r.getCalculationInfo("stackResultDimension"):t}function _P(r,t){var e=r.get("coordinateSystem"),n=Ko.get(e),a;return t&&t.coordSysDims&&(a=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=eP(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function SP(r,t,e){var n,a;return e&&M(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function jo(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=Kc(r)):(a=n.getSource(),i=a.sourceFormat===$e);var o=gP(t),s=_P(t,o),l=e.useEncodeDefaulter,u=q(l)?l:l?ct(eL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=hd(a,f),v=SP(h.dimensions,e.createInvertedIndices,o),c=i?null:n.getSharedDataStore(h),d=Tw(t,{schema:h,store:c}),p=new Pu(h,t);p.setCalculationInfo(d);var g=v!=null&&wP(a)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:c,null,g),p}function wP(r){if(r.sourceFormat===$e){var t=xP(r.data||[]);return!V(Vo(t))}}function xP(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Aw=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}();ru(Aw);const Wr=Aw;var bP=0,TP=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bP}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&z(n,CP);return new r({categories:a,needCollect:!a,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(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function CP(r){return X(r)&&r.value!=null?r.value:r+""}const bv=TP;function AP(r){var t=Math.pow(10,zo(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function Tv(r){return r.type==="interval"||r.type==="log"}function MP(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=yc(i/t,!0);e!=null&&o<e&&(o=a.interval=e),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=Mw(o),l=a.niceTickExtent=[Lt(Math.ceil(r[0]/o)*o,s),Lt(Math.floor(r[1]/o)*o,s)];return DP(l,r),a}function $f(r){var t=Math.pow(10,zo(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Lt(e*t)}function Mw(r){return gr(r)+2}function Sy(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function DP(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Sy(r,0,t),Sy(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ru(r,t){return r>=t[0]&&r<=t[1]}function Eu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function ku(r,t){return r*(t[1]-t[0])+t[0]}var Dw=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new bv({})),V(a)&&(a=new bv({categories:z(a,function(i){return X(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ru(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(ku(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;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,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[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),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},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}(Wr);Wr.registerClass(Dw);const Lw=Dw;var Wn=Lt,Iw=function(r){B(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 Ru(e,this._extent)},t.prototype.normalize=function(e){return Eu(e,this._extent)},t.prototype.scale=function(e){return ku(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[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=Mw(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(e?s.push({value:Wn(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Wn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:Wn(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=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=Wn(l.value+(u+1)*v);c>i[0]&&c<i[1]&&f.push(c),u++}a.push(f)}return a},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=gr(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Wn(e.value,a,!0);return Wc(i)},t.prototype.calcNiceTicks=function(e,n,a){e=e||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=MP(i,e,n,a);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 a=Math.abs(n[0]);e.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=Wn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=Wn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Wr);Wr.registerClass(Iw);const va=Iw;var Pw=typeof Float32Array<"u",LP=Pw?Float32Array:Array;function Or(r){return V(r)?Pw?new Float32Array(r):r:new LP(r)}var IP="__ec_stack_";function vd(r){return r.get("stack")||IP+r.seriesIndex}function cd(r){return r.dim+r.index}function Rw(r,t){var e=[];return t.eachSeriesByType(r,function(n){kw(n)&&e.push(n)}),e}function PP(r){var t={};M(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 y=d.get(c,p);t[v]?t[v].push(y):t[v]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[n]=i}}return e}function Ew(r){var t=PP(r),e=[];return M(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),h=i.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=Y(n.get("barWidth"),s),p=Y(n.get("barMaxWidth"),s),g=Y(n.get("barMinWidth")||(Ow(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:cd(i),stackId:vd(n)})}),RP(e)}function RP(r){var t={};M(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=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 M(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=St(i).length;s=Math.max(35-l*4,15)+"%"}var u=Y(s,o),f=Y(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),M(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;M(i,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(i,function(y,m){e[a][m]=e[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function EP(r,t,e){if(r&&t){var n=r[cd(t)];return n!=null&&e!=null?n[vd(e)]:n}}function kP(r,t){var e=Rw(r,t),n=Ew(e);M(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=vd(a),u=n[cd(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function OP(r){return{seriesType:r,plan:Tu(),reset:function(t){if(!!kw(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),h=_n(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=NP(a,i),d=Ow(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Or(w*3),b=d&&l&&Or(w*3),T=d&&Or(w),C=n.master.getRect(),A=v?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(h?g:o,D),R=L.get(s,D),E=c,O=void 0;h&&(O=+P-L.get(o,D));var k=void 0,N=void 0,G=void 0,H=void 0;if(v){var $=n.dataToPoint([P,R]);if(h){var et=n.dataToPoint([O,R]);E=et[0]}k=E,N=$[1]+m,G=$[0]-E,H=y,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var $=n.dataToPoint([R,P]);if(h){var et=n.dataToPoint([R,O]);E=et[1]}k=$[0]+m,N=E,G=y,H=$[1]-E,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[I]=k,x[I+1]=N,x[I+2]=v?G:H,b&&(b[I]=v?C.x:k,b[I+1]=v?N:C.y,b[I+2]=A),T[D]=D):S.setItemLayout(D,{x:k,y:N,width:G,height:H}),I+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:v})}}}}}}function kw(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Ow(r){return r.pipelineContext&&r.pipelineContext.large}function NP(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var BP=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},Nw=function(r){B(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 Zo(e.value,hg[HD(Ja(this._minLevelUnit))]||hg.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return WD(e,n,a,o,i)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,a=[];if(!e)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=UP(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Fe,n[1]+=Fe),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Fe}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,a){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Ds.length,l=Math.min(BP(Ds,this._approxInterval,0,s),s-1);this._interval=Ds[l][1],this._minLevelUnit=Ds[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return gt(e)?e:+ze(e)},t.prototype.contain=function(e){return Ru(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Eu(this.parse(e),this._extent)},t.prototype.scale=function(e){return ku(e,this._extent)},t.type="time",t}(va),Ds=[["second",zc],["minute",Vc],["hour",lo],["quarter-day",lo*6],["half-day",lo*12],["day",Fe*1.2],["half-week",Fe*3.5],["week",Fe*7],["month",Fe*31],["quarter",Fe*95],["half-year",fg/2],["year",fg]];function FP(r,t,e,n){var a=ze(t),i=ze(e),o=function(d){return vg(a,d,n)===vg(i,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 GP(r,t){return r/=Fe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function zP(r){var t=30*Fe;return r/=t,r>6?6:r>3?3:r>2?2:1}function VP(r){return r/=lo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function wy(r,t){return r/=t?Vc:zc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function HP(r){return yc(r,!0)}function WP(r,t,e){var n=new Date(r);switch(Ja(t)){case"year":case"month":n[nS(e)](0);case"day":n[aS(e)](1);case"hour":n[iS(e)](0);case"minute":n[oS(e)](0);case"second":n[sS(e)](0),n[lS(e)](0)}return n.getTime()}function UP(r,t,e,n){var a=1e4,i=eS,o=0;function s(A,D,L,I,P,R,E){for(var O=new Date(D),k=D,N=O[I]();k<L&&k<=n[1];)E.push({value:k}),N+=A,O[P](N),k=O.getTime();E.push({value:k,notAdd:!0})}function l(A,D,L){var I=[],P=!D.length;if(!FP(Ja(A),n[0],n[1],e)){P&&(D=[{value:WP(new Date(n[0]),A,e)},{value:n[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,O=D[R+1].value;if(E!==O){var k=void 0,N=void 0,G=void 0,H=!1;switch(A){case"year":k=Math.max(1,Math.round(t/Fe/365)),N=Hc(e),G=UD(e);break;case"half-year":case"quarter":case"month":k=zP(t),N=Qa(e),G=nS(e);break;case"week":case"half-week":case"day":k=GP(t),N=yu(e),G=aS(e),H=!0;break;case"half-day":case"quarter-day":case"hour":k=VP(t),N=To(e),G=iS(e);break;case"minute":k=wy(t,!0),N=mu(e),G=oS(e);break;case"second":k=wy(t,!1),N=_u(e),G=sS(e);break;case"millisecond":k=HP(t),N=Su(e),G=lS(e);break}s(k,E,O,N,G,H,I),A==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-k})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,v=0,c=0;c<i.length&&o++<a;++c){var d=Ja(i[c]);if(!!VD(i[c])){l(i[c],u[u.length-1]||[],f);var p=i[c+1]?Ja(i[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(A,D){return A.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}o>=a&&Et("Exceed safe limit.");for(var S=bt(z(u,function(A){return bt(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],x=S.length-1,c=0;c<S.length;++c)for(var b=S[c],T=0;T<b.length;++T)w.push({value:b[T].value,level:x-c});w.sort(function(A,D){return A.value-D.value});for(var C=[],c=0;c<w.length;++c)(c===0||w[c].value!==w[c-1].value)&&C.push(w[c]);return C}Wr.registerClass(Nw);const $P=Nw;var xy=Wr.prototype,ho=va.prototype,YP=Lt,ZP=Math.floor,XP=Math.ceil,Ls=Math.pow,Ze=Math.log,dd=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new va,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=ho.getTicks.call(this,e);return z(o,function(s){var l=s.value,u=Lt(Ls(this.base,l));return u=l===a[0]&&this._fixMin?Is(u,i[0]):u,u=l===a[1]&&this._fixMax?Is(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var a=Ze(this.base);e=Ze(Math.max(0,e))/a,n=Ze(Math.max(0,n))/a,ho.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=xy.getExtent.call(this);n[0]=Ls(e,n[0]),n[1]=Ls(e,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Is(n[0],i[0])),this._fixMax&&(n[1]=Is(n[1],i[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Ze(e[0])/Ze(n),e[1]=Ze(e[1])/Ze(n),xy.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,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=H_(a),o=e/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Lt(XP(n[0]/i)*i),Lt(ZP(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ho.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=Ze(e)/Ze(this.base),Ru(e,this._extent)},t.prototype.normalize=function(e){return e=Ze(e)/Ze(this.base),Eu(e,this._extent)},t.prototype.scale=function(e){return e=ku(e,this._extent),Ls(this.base,e)},t.type="log",t}(Wr),Bw=dd.prototype;Bw.getMinorTicks=ho.getMinorTicks;Bw.getLabel=ho.getLabel;function Is(r,t){return YP(r,gr(t))}Wr.registerClass(dd);const qP=dd;var KP=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 a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;q(o)?this._modelMinNum=Ps(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Ps(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(q(s)?this._modelMaxNum=Ps(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Ps(t,s)),a)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=V(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[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=[pn(u[0],1),pn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=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?a?0:NaN:e-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=ei(s)||ei(l)||t&&!a;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){J(!this.frozen),this[JP[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=jP[t];J(!this.frozen&&this[n]==null),this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),jP={min:"_determinedMin",max:"_determinedMax"},JP={min:"_dataMin",max:"_dataMax"};function Fw(r,t,e){var n=r.rawExtentInfo;return n||(n=new KP(r,t,e),r.rawExtentInfo=n,n)}function Ps(r,t){return t==null?null:ei(t)?NaN:r.parse(t)}function Gw(r,t){var e=r.type,n=Fw(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=Rw("bar",o),l=!1;if(M(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Ew(s),f=QP(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function QP(r,t,e,n){var a=e.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=EP(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;M(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)/i,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function Io(r,t){var e=t,n=Gw(r,e),a=n.extent,i=e.get("splitNumber");r instanceof qP&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,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 pd(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Lw({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new $P({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Wr.getClass(t)||va)}}function tR(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function mi(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(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):W(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(t):q(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(gd(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function gd(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function eR(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Lw?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=mi(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var h=n?n[f]:{value:i[0]+f},v=s(h,f),c=o.getTextRect(v),d=rR(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function rR(r,t){var e=t*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new nt(r.x,r.y,i,o);return s}function yd(r){var t=r.get("interval");return t==null?"auto":t}function zw(r){return r.type==="category"&&yd(r.getLabelModel())===0}function Fl(r,t){var e={};return M(r.mapDimensionsAll(t),function(n){e[Cw(r,n)]=!0}),St(e)}function nR(r,t,e){t&&M(Fl(t,e),function(n){var a=t.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var Ou=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function aR(r){return jo(null,r)}var iR={isDimensionStacked:_n,enableDataStack:Tw,getStackedDimension:Cw};function oR(r,t){var e=t;t instanceof Dt||(e=new Dt(t));var n=pd(e);return n.setExtent(r[0],r[1]),Io(n,e),n}function sR(r){ce(r,Ou)}function lR(r,t){return t=t||{},le(r,null,null,t.state!=="normal")}const uR=Object.freeze(Object.defineProperty({__proto__:null,createList:aR,getLayoutRect:ir,dataStack:iR,createScale:oR,mixinAxisModelCommonMethods:sR,getECData:it,createTextStyle:lR,createDimensions:hP,createSymbol:he,enableHoverEmphasis:wo},Symbol.toStringTag,{value:"Module"}));var by=[],fR={registerPreprocessor:sd,registerProcessor:ld,registerPostInit:cw,registerPostUpdate:dw,registerUpdateLifecycle:Iu,registerAction:sr,registerCoordinateSystem:pw,registerLayout:gw,registerVisual:bn,registerTransform:mw,registerLoading:fd,registerMap:yw,registerImpl:TI,PRIORITY:aw,ComponentModel:dt,ComponentView:Ht,SeriesModel:fe,ChartView:$t,registerComponentModel:function(r){dt.registerClass(r)},registerComponentView:function(r){Ht.registerClass(r)},registerSeriesModel:function(r){fe.registerClass(r)},registerChartView:function(r){$t.registerClass(r)},registerSubTypeDefaulter:function(r,t){dt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){F_(r,t)}};function ve(r){if(V(r)){M(r,function(t){ve(t)});return}ft(by,r)>=0||(by.push(r),q(r)&&(r={install:r}),r.install(fR))}var hR=1e-8;function Ty(r,t){return Math.abs(r-t)<hR}function Cy(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=Lr(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!Ty(a[0],s[0])||!Ty(a[1],s[1]))&&(n+=Lr(a[0],a[1],s[0],s[1],t,e)),n!==0}var vR=[];function Yf(r,t){for(var e=0;e<r.length;e++)Vt(r[e],r[e],t)}function Ay(r,t,e,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Pr(t,t,i),Rr(e,e,i))}}function cR(r){for(var t=0,e=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Vw=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}(),My=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Dy=function(){function r(t){this.type="linestring",this.points=t}return r}(),Hw=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,a=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return cR(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 a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Ay(s.exterior,a,i,e):M(s.points,function(l){Ay(l,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new nt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Cy(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Cy(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new nt(e,n,a,i),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(Yf(v.exterior,u),M(v.interiors,function(c){Yf(c,u)})):M(v.points,function(c){Yf(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}(Vw),dR=function(r){B(t,r);function t(e,n){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Bo(vR),o=e;o&&!o.isGeoSVGGraphicRoot;)_r(i,o.getLocalTransform(),i),o=o.parent;return ya(i,i),Vt(a,a,i),a},t}(Vw);function pR(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return M(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=Ww(s,o,e);break;case"Polygon":Zf(s,o,e);break;case"MultiLineString":Zf(s,o,e);break;case"MultiPolygon":M(s,function(l,u){return Zf(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Zf(r,t,e){for(var n=0;n<r.length;n++)r[n]=Ww(r[n],t[n],e)}function Ww(r,t,e){for(var n=[],a=t[0],i=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+=a,l+=i,a=s,i=l,n.push([s/e,l/e])}return n}function Cv(r,t){return r=pR(r),z(bt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new My(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new My(l[0],l.slice(1)))});break;case"LineString":i.push(new Dy([a.coordinates]));break;case"MultiLineString":i.push(new Dy(a.coordinates))}var s=new Hw(n[t||"name"],i,n.cp);return s.properties=n,s})}const gR=Object.freeze(Object.defineProperty({__proto__:null,linearMap:At,round:Lt,asc:Ua,getPrecision:gr,getPrecisionSafe:pl,getPixelPrecision:pc,getPercentWithPrecision:QC,MAX_SAFE_INTEGER:eA,remRadian:gc,isRadianAroundZero:_o,parseDate:ze,quantity:H_,quantityExponent:zo,nice:yc,quantile:nA,reformIntervals:aA,isNumeric:mc,numericToNumber:Gr},Symbol.toStringTag,{value:"Module"})),yR=Object.freeze(Object.defineProperty({__proto__:null,parse:ze,format:Zo},Symbol.toStringTag,{value:"Module"})),mR=Object.freeze(Object.defineProperty({__proto__:null,extendShape:H1,extendPath:W1,makePath:cu,makeImage:Rc,mergePath:Be,resizePath:Ec,createIcon:$o,updateProps:Ct,initProps:Pt,getTransform:Uo,clipPointsByRect:Nc,clipRectByRect:Y1,registerShape:Ue,getShapeClass:U1,Group:ot,Image:or,Text:Tt,Circle:ma,Ellipse:lu,Sector:xe,Ring:Wo,Polygon:xr,Polyline:We,Rect:mt,Line:Jt,BezierCurve:uu,Arc:fu,IncrementalDisplayable:z1,CompoundPath:Lc,LinearGradient:hu,RadialGradient:Ic,BoundingRect:nt},Symbol.toStringTag,{value:"Module"})),_R=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Wc,toCamelCase:Uc,normalizeCssArray:Xo,encodeHTML:se,formatTpl:$c,getTooltipMarker:uS,formatTime:YD,capitalFirst:ZD,truncateText:OA,getTextRect:$D},Symbol.toStringTag,{value:"Module"})),SR=Object.freeze(Object.defineProperty({__proto__:null,map:z,each:M,indexOf:ft,inherits:rc,reduce:rr,filter:bt,bind:K,curry:ct,isArray:V,isString:W,isObject:X,isFunction:q,extend:F,defaults:Z,clone:tt,merge:at},Symbol.toStringTag,{value:"Module"}));var Po=wt();function Uw(r,t){var e=z(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function wR(r){var t=r.getLabelModel().get("customValues");if(t){var e=mi(r),n=r.scale.getExtent(),a=Uw(r,t),i=bt(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:z(i,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?bR(r):CR(r)}function xR(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),a=Uw(r,e);return{ticks:bt(a,function(i){return i>=n[0]&&i<=n[1]})}}return r.type==="category"?TR(r,t):{ticks:z(r.scale.getTicks(),function(i){return i.value})}}function bR(r){var t=r.getLabelModel(),e=$w(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function $w(r,t){var e=Yw(r,"labels"),n=yd(t),a=Zw(e,n);if(a)return a;var i,o;return q(n)?i=Kw(r,n):(o=n==="auto"?AR(r):n,i=qw(r,o)),Xw(e,n,{labels:i,labelCategoryInterval:o})}function TR(r,t){var e=Yw(r,"ticks"),n=yd(t),a=Zw(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),q(n))i=Kw(r,n,!0);else if(n==="auto"){var s=$w(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=n,i=qw(r,o,!0);return Xw(e,n,{ticks:i,tickCategoryInterval:o})}function CR(r){var t=r.scale.getTicks(),e=mi(r);return{labels:z(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Yw(r,t){return Po(r)[t]||(Po(r)[t]=[])}function Zw(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function Xw(r,t,e){return r.push({key:t,value:e}),e}function AR(r){var t=Po(r).autoInterval;return t!=null?t:Po(r).autoInterval=r.calculateCategoryInterval()}function MR(r){var t=DR(r),e=mi(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[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<=i[1];l+=s){var d=0,p=0,g=Go(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 y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Po(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function DR(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 qw(r,t,e){var n=mi(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=zw(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function Kw(r,t,e){var n=r.scale,a=mi(r),i=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Ly=[0,1],LR=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]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return pc(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,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Iy(n,a.count())),At(t,Ly,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Iy(n,a.count()));var i=At(t,n,Ly,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=xR(this,e),a=n.ticks,i=z(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return IR(this,i,o,t.clamp),i},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),a=z(n,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return wR(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 a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return MR(this)},r}();function Iy(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function IR(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1],tickValue:t[0].tickValue};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;M(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=i[0]>i[1];v(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(c,d){return c=Lt(c),d=Lt(d),h?c>d:c<d}}const Ur=LR;function PR(r){var t=dt.extend(r);return dt.registerClass(t),t}function RR(r){var t=Ht.extend(r);return Ht.registerClass(t),t}function ER(r){var t=fe.extend(r);return fe.registerClass(t),t}function kR(r){var t=$t.extend(r);return $t.registerClass(t),t}var zi=Math.PI*2,Un=zr.CMD,OR=["top","right","bottom","left"];function NR(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function BR(r,t,e,n,a,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(n-a)%zi<1e-4)return l[0]=f,l[1]=h,u-e;if(i){var v=n;n=kr(a),a=kr(v)}else n=kr(n),a=kr(a);n>a&&(a+=zi);var c=Math.atan2(s,o);if(c<0&&(c+=zi),c>=n&&c<=a||c+zi>=n&&c+zi<=a)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Gl(r,t,e,n,a,i,o,s){var l=a-r,u=i-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-a)*(p-a)+(g-i)*(g-i))}function jw(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var je=[];function FR(r,t,e){var n=jw(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),n}function GR(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,h=r.x,v=r.y,c=0;c<f.length;){var d=f[c++];c===1&&(n=f[c],a=f[c+1],i=n,o=a);var p=u;switch(d){case Un.M:i=f[c++],o=f[c++],n=i,a=o;break;case Un.L:p=Gl(n,a,f[c],f[c+1],h,v,je,!0),n=f[c++],a=f[c++];break;case Un.C:p=C_(n,a,f[c++],f[c++],f[c++],f[c++],f[c],f[c+1],h,v,je),n=f[c++],a=f[c++];break;case Un.Q:p=M_(n,a,f[c++],f[c++],f[c],f[c+1],h,v,je),n=f[c++],a=f[c++];break;case Un.A:var g=f[c++],y=f[c++],m=f[c++],_=f[c++],S=f[c++],w=f[c++];c+=1;var x=!!(1-f[c++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,c<=1&&(i=s,o=l);var b=(h-g)*_/m+g;p=BR(g,y,_,S,S+w,x,b,v,je),n=Math.cos(S+w)*m+g,a=Math.sin(S+w)*_+y;break;case Un.R:i=n=f[c++],o=a=f[c++];var T=f[c++],C=f[c++];p=jw(i,o,T,C,h,v,je);break;case Un.Z:p=Gl(n,a,i,o,h,v,je,!0),n=i,a=o;break}p<u&&(u=p,e.set(je[0],je[1]))}return u}var Qe=new j,_t=new j,It=new j,mr=new j,pr=new j;function Py(r,t){if(!!r){var e=r.getTextGuideLine(),n=r.getTextContent();if(!!(n&&e)){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||OR,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),h=f&&ya([],f),v=t.get("length2")||0;u&&It.copy(u);for(var c=0;c<o.length;c++){var d=o[c];NR(d,0,s,Qe,mr),j.scaleAndAdd(_t,Qe,mr,v),_t.transform(h);var p=r.getBoundingRect(),g=u?u.distance(_t):r instanceof ut?GR(_t,r.path,It):FR(_t,p,It);g<l&&(l=g,_t.transform(f),It.transform(f),It.toArray(i[0]),_t.toArray(i[1]),Qe.toArray(i[2]))}Jw(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var zl=[],oe=new j;function Jw(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Qe.fromArray(r[0]),_t.fromArray(r[1]),It.fromArray(r[2]),j.sub(mr,Qe,_t),j.sub(pr,It,_t);var e=mr.len(),n=pr.len();if(!(e<.001||n<.001)){mr.scale(1/e),pr.scale(1/n);var a=mr.dot(pr),i=Math.cos(t);if(i<a){var o=Gl(_t.x,_t.y,It.x,It.y,Qe.x,Qe.y,zl,!1);oe.fromArray(zl),oe.scaleAndAdd(pr,o/Math.tan(Math.PI-t));var s=It.x!==_t.x?(oe.x-_t.x)/(It.x-_t.x):(oe.y-_t.y)/(It.y-_t.y);if(isNaN(s))return;s<0?j.copy(oe,_t):s>1&&j.copy(oe,It),oe.toArray(r[1])}}}}function zR(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Qe.fromArray(r[0]),_t.fromArray(r[1]),It.fromArray(r[2]),j.sub(mr,_t,Qe),j.sub(pr,It,_t);var n=mr.len(),a=pr.len();if(!(n<.001||a<.001)){mr.scale(1/n),pr.scale(1/a);var i=mr.dot(t),o=Math.cos(e);if(i<o){var s=Gl(_t.x,_t.y,It.x,It.y,Qe.x,Qe.y,zl,!1);oe.fromArray(zl);var l=Math.PI/2,u=Math.acos(pr.dot(t)),f=l+u-e;if(f>=l)j.copy(oe,It);else{oe.scaleAndAdd(pr,s/Math.tan(Math.PI/2-f));var h=It.x!==_t.x?(oe.x-_t.x)/(It.x-_t.x):(oe.y-_t.y)/(It.y-_t.y);if(isNaN(h))return;h<0?j.copy(oe,_t):h>1&&j.copy(oe,It)}oe.toArray(r[1])}}}}function Xf(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function VR(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 a=Ir(n[0],n[1]),i=Ir(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=ro([],n[1],n[0],o/a),l=ro([],n[1],n[2],o/i),u=ro([],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 Qw(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<ml.length;l++){var u=ml[l],f=t[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:rt(a.states[u]&&a.states[u].ignore,s);if(c||!rt(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&Xf(n,!0,u,f);continue}n||(n=new We,r.setTextGuideLine(n),!h&&(s||!o)&&Xf(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Xf(n,!1,u,f)}}if(n){Z(n.style,e),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=VR}}function tx(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<we.length;n++){var a=we[n];e[a]=r.getModel([a,t])}return e}function ex(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new _l(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function rx(r,t,e,n,a,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.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&&i&&w(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=p.rect[t]-n,m=a-g.rect[t]-g.rect[e]}function S(T,C,A){if(T<0){var D=Math.min(C,-T);if(D>0){w(D*A,0,o);var L=D+T;L<0&&x(-L*A,1)}else x(-T*A,1)}}function w(T,C,A){T!==0&&(u=!0);for(var D=C;D<A;D++){var L=r[D],I=L.rect;I[t]+=T,L.label[t]+=T}}function x(T,C){for(var A=[],D=0,L=1;L<o;L++){var I=r[L-1].rect,P=Math.max(r[L].rect[t]-I[t]-I[e],0);A.push(P),D+=P}if(!!D){var R=Math.min(Math.abs(T)/D,C);if(T>0)for(var L=0;L<o-1;L++){var E=A[L]*R;w(E,0,L+1)}else for(var L=o-1;L>0;L--){var E=A[L-1]*R;w(-E,L,o)}}}function b(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(C>0?w(A,0,D+1):w(-A,o-D-1,o),T-=A,T<=0)return}return u}function HR(r,t,e,n){return rx(r,"x","width",t,e,n)}function nx(r,t,e,n){return rx(r,"y","height",t,e,n)}function ax(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new nt(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 a=0;a<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=i.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 _l(d.localRect,d.transform)),h||(h=new _l(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function WR(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function UR(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:WR(n&&n.shape.points)}}var Ry=["align","verticalAlign","width","height","fontSize"],ne=new Er,qf=wt(),$R=wt();function Rs(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var Es=["x","y","rotation"],YR=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();nt.applyTransform(f,f,u),u?ne.setLocalTransform(u):(ne.x=ne.y=ne.rotation=ne.originX=ne.originY=0,ne.scaleX=ne.scaleY=1),ne.rotation=kr(ne.rotation);var h=a.__hostTarget,v;if(h){v=h.getBoundingRect().plain();var c=h.getComputedTransform();nt.applyTransform(v,v,c)}var d=v&&h.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:ne.x,y:ne.y,scaleX:ne.scaleX,scaleY:ne.scaleY,rotation:ne.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");!(q(a)||St(a).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=it(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){Py(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;q(o.layoutOption)?f=o.layoutOption(UR(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=Y(f.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Y(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:f.labelLinePoints}),v=!1)}var d=qf(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Ry.length;p++){var g=Ry[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=ex(this._labelList),i=bt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=bt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});HR(i,0,e),nx(o,0,n);var s=bt(a,function(l){return l.layoutOption.hideOverlap});ax(s)},r.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=qf(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=it(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var h=s.getModel("labelLine");Qw(t,tx(s),l),Py(t,h)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ka(t))){var i=qf(n),o=i.oldLayout,s=it(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(ft(v,"select")>=0&&n.attr(i.oldLayoutSelect),ft(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Ct(n,u,e,l)}else if(n.attr(u),!di(n).valueAnimation){var h=rt(n.style.opacity,1);n.style.opacity=0,Pt(n,{style:{opacity:h}},e,l)}if(i.oldLayout=u,n.states.select){var c=i.oldLayoutSelect={};Rs(c,u,Es),Rs(c,n.states.select,Es)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Rs(d,u,Es),Rs(d,n.states.emphasis,Es)}j1(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=$R(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Ct(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,Pt(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const ZR=YR;var Kf=wt();function XR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=Kf(e).labelManager;a||(a=Kf(e).labelManager=new ZR),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=Kf(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}const Ey=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:Gc,version:CI,dependencies:AI,PRIORITY:aw,init:WI,connect:UI,disconnect:vw,disConnect:$I,dispose:YI,getInstanceByDom:id,getInstanceById:ZI,registerTheme:od,registerPreprocessor:sd,registerProcessor:ld,registerPostInit:cw,registerPostUpdate:dw,registerUpdateLifecycle:Iu,registerAction:sr,registerCoordinateSystem:pw,getCoordinateSystemDimensions:XI,registerLayout:gw,registerVisual:bn,registerLoading:fd,setCanvasCreator:qI,registerMap:yw,getMap:KI,registerTransform:mw,dataTool:jI,throttle:Cu,use:ve,setPlatformAPI:n_,parseGeoJSON:Cv,parseGeoJson:Cv,env:lt,Model:Dt,Axis:Ur,innerDrawElementOnCanvas:ed,zrender:jC,matrix:GT,vector:xT,zrUtil:cT,color:pC,helper:uR,number:gR,time:yR,graphic:mR,format:_R,util:SR,List:Pu,ComponentModel:dt,ComponentView:Ht,SeriesModel:fe,ChartView:$t,extendComponentModel:PR,extendComponentView:RR,extendSeriesModel:ER,extendChartView:kR},Symbol.toStringTag,{value:"Module"}));var qR=function(r){B(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 jo(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new ot,a=he("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=he(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}(fe);const KR=qR;function md(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=li(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push(li(r,t,e[o]));return i.join(" ")}}function ix(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!V(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var jR=function(r){B(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=he(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=JR,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(){ua(this.childAt(0))},t.prototype.downplay=function(){fa(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.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):Ct(v,c,s,n),xo(v)}if(this._updateCommon(e,n,l,a,i),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,Pt(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Hr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Du(e.getItemVisual(n,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),b=x.fill;if(s instanceof or){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;xn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(R){return D?e.getName(R):md(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.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;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),ar(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=it(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Sl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Sl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return Mu(e.getItemVisual(n,"symbolSize"))},t}(ot);function JR(r,t){this.parent.drift(r,t)}const _d=jR;function jf(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 ky(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Oy(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:Hr(t),cursorStyle:t.get("cursor")}}var QR=function(){function r(t){this.group=new ot,this._SymbolCtor=t||_d}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ky(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Oy(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};i||n.removeAll(),t.diff(i).add(function(h){var v=f(h);if(jf(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=i.getItemGraphicEl(v),d=f(h);if(!jf(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 y={x:d[0],y:d[1]};s?c.attr(y):Ct(c,y,a)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Oy(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=ky(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(jf(e,o,i,n)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Yo(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();const ox=QR;function sx(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=tE(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=z(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return _n(t,h[0])&&(v=!0,h[0]=c),_n(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function tE(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 lx(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function eE(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function rE(r,t,e,n,a,i,o,s){for(var l=eE(r,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=sx(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,x=void 0,b=void 0;switch(S.cmd){case"=":x=S.idx*2,b=S.idx1*2;var T=y[x],C=y[x+1],A=m[b],D=m[b+1];(isNaN(T)||isNaN(C))&&(T=A,C=D),u.push(T,C),f.push(A,D),h.push(e[x],e[x+1]),v.push(n[b],n[b+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);b=L*2,u.push(P[0],P[1]),f.push(m[b],m[b+1]);var R=lx(g,a,t,L);h.push(R[0],R[1]),v.push(n[b],n[b+1]),p.push(t.getRawIndex(L));break;case"-":w=!1}w&&(c.push(S),d.push(d.length))}d.sort(function(ht,Bt){return p[ht]-p[Bt]});for(var E=u.length,O=Or(E),k=Or(E),N=Or(E),G=Or(E),H=[],_=0;_<d.length;_++){var $=d[_],et=_*2,st=$*2;O[et]=u[st],O[et+1]=u[st+1],k[et]=f[st],k[et+1]=f[st+1],N[et]=h[st],N[et+1]=h[st+1],G[et]=v[st],G[et+1]=v[st+1],H[_]=c[$]}return{current:O,next:k,stackedOnCurrent:N,stackedOnNext:G,status:H}}var jr=Math.min,Jr=Math.max;function ia(r,t){return isNaN(r)||isNaN(t)}function Av(r,t,e,n,a,i,o,s,l){for(var u,f,h,v,c,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(ia(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var w=p+i,x=t[w*2],b=t[w*2+1];x===y&&b===m&&g<n;)g++,w+=i,p+=i,x=t[w*2],b=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;ia(x,b)&&T<n;)T++,w+=i,x=t[w*2],b=t[w*2+1];var C=.5,A=0,D=0,L=void 0,I=void 0;if(T>=n||ia(x,b))c=y,d=m;else{A=x-u,D=b-f;var P=y-u,R=x-y,E=m-f,O=b-m,k=void 0,N=void 0;if(s==="x"){k=Math.abs(P),N=Math.abs(R);var G=A>0?1:-1;c=y-G*k*o,d=m,L=y+G*N*o,I=m}else if(s==="y"){k=Math.abs(E),N=Math.abs(O);var H=D>0?1:-1;c=y,d=m-H*k*o,L=y,I=m+H*N*o}else k=Math.sqrt(P*P+E*E),N=Math.sqrt(R*R+O*O),C=N/(N+k),c=y-A*o*(1-C),d=m-D*o*(1-C),L=y+A*o*C,I=m+D*o*C,L=jr(L,Jr(x,y)),I=jr(I,Jr(b,m)),L=Jr(L,jr(x,y)),I=Jr(I,jr(b,m)),A=L-y,D=I-m,c=y-A*k/N,d=m-D*k/N,c=jr(c,Jr(u,y)),d=jr(d,Jr(f,m)),c=Jr(c,jr(u,y)),d=Jr(d,jr(f,m)),A=y-c,D=m-d,L=y+A*N/k,I=m+D*N/k}r.bezierCurveTo(h,v,c,d,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var ux=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),nE=function(r){B(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 ux},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&ia(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ia(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Av(e,a,i,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 a=this.path,i=a.data,o=zr.CMD,s,l,u=n==="x",f=[],h=0;h<i.length;){var v=i[h++],c=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[h++],l=i[h++];break;case o.L:if(c=i[h++],d=i[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=i[h++],d=i[h++],p=i[h++],g=i[h++],y=i[h++],m=i[h++];var w=u?hl(s,c,p,y,e,f):hl(l,d,g,m,e,f);if(w>0)for(var x=0;x<w;x++){var b=f[x];if(b<=1&&b>=0){var S=u?Ft(l,d,g,m,b):Ft(s,c,p,y,b);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(ut),aE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ux),iE=function(r){B(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 aE},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ia(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ia(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Av(e,a,o,s,s,1,n.smooth,l,n.connectNulls);Av(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(ut);function fx(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new mt({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=q(a)?function(g){a(g,h)}:null;Pt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return h}function hx(r,t,e){var n=r.getArea(),a=Lt(n.r0,1),i=Lt(n.r,1),o=new xe({shape:{cx:Lt(r.cx,1),cy:Lt(r.cy,1),r0:a,r:i,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=a,Pt(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function vx(r,t,e,n,a){if(r){if(r.type==="polar")return hx(r,t,e);if(r.type==="cartesian2d")return fx(r,t,e,n,a)}else return null;return null}function Sd(r,t){return r.type===t}function Ny(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function By(r){for(var t=1/0,e=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[n,a]]}function Fy(r,t){var e=By(r),n=e[0],a=e[1],i=By(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Gy(r){return gt(r)?r:r?.5:0}function oE(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),a=Or(n*2),i=0;i<n;i++){var o=lx(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Qr(r,t,e,n,a){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],v=[];if(a){for(l=0;l<r.length;l+=2){var c=t||r;!isNaN(c[l])&&!isNaN(c[l+1])&&v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=h[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function sE(r,t){var e=[],n=r.length,a,i;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=hc(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)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function lE(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 a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(a),u=z(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=sE(u,a==="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,y=g-p;if(y<.001)return"transparent";M(v,function(_){_.offset=(_.coord-p)/y}),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 m=new hu(0,0,0,0,v,!0);return m[a]=p,m[a+"2"]=g,m}}function uE(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(a&&fE(i,t))){var o=t.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function fE(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(_d.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function hE(r,t){return isNaN(r)||isNaN(t)}function vE(r){for(var t=r.length/2;t>0&&hE(r[t*2-2],r[t*2-1]);t--);return t-1}function zy(r,t){return[r[t*2],r[t*2+1]]}function cE(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function cx(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<we.length;t++)if(r.get([we[t],"endLabel","show"]))return!0;return!1}function Jf(r,t,e,n){if(Sd(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=cx(n)?function(c,d){r._endLabelOnDuring(c,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=fx(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."),hx(t,e,n)}function dE(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var pE=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ot,n=new ox;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=K(this._changePolyState,this)},t.prototype.render=function(e,n,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=i.type==="polar",v=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=sx(i,s,_),w=m&&oE(i,s,S),x=e.get("showSymbol"),b=e.get("connectNulls"),T=x&&!h&&uE(e,s,i),C=this._data;C&&C.eachItemGraphicEl(function(ht,Bt){ht.__temp&&(o.remove(ht),C.setItemGraphicEl(Bt,null))}),x||c.remove(),o.add(g);var A=h?!1:e.get("step"),D;i&&i.getArea&&e.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=lE(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&A===this._step))x&&c.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ht){return[f[ht*2],f[ht*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),A&&(w&&(w=Qr(w,f,i,A,b)),f=Qr(f,null,i,A,b)),d=this._newPolyline(f),m?p=this._newPolygon(f,w):p&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,i,ha(L)),g.setClipPath(Jf(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,w):p&&!m&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,i,ha(L));var I=g.getClipPath();if(I){var P=Jf(this,i,!1,e);Pt(I,{shape:P.shape},e)}else g.setClipPath(Jf(this,i,!0,e));x&&c.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ht){return[f[ht*2],f[ht*2+1]]}}),(!Ny(this._stackedOnPoints,w)||!Ny(this._points,f))&&(y?this._doUpdateAnimation(s,w,i,a,A,_,b):(A&&(w&&(w=Qr(w,f,i,A,b)),f=Qr(f,null,i,A,b)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:w})))}var R=e.getModel("emphasis"),E=R.get("focus"),O=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(Z(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),yn(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}it(d).seriesIndex=e.seriesIndex,ar(d,E,O,k);var G=Gy(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:b}),p){var $=s.getCalculationInfo("stackedOnSeries"),et=0;p.useStyle(Z(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(et=Gy($.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:et,smoothMonotone:H,connectNulls:b}),yn(p,e,"areaStyle"),it(p).seriesIndex=e.seriesIndex,ar(p,E,O,k)}var st=this._changePolyState;s.eachItemGraphicEl(function(ht){ht&&(ht.onHoverStateChange=st)}),this._polyline.onHoverStateChange=st,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){it(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=la(o,i);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 _d(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 $t.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=la(o,i);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 $t.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Up(this._polyline,e),n&&Up(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nE({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new iE({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");q(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=q(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,w=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=q(h)?h(d):f*b+v,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(cx(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=vE(l);f>=0&&(xn(s,Hr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?ix(o,c):md(o,h)},enableTextSetter:!0},dE(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=a.getLayout("points"),v=a.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=cE(h,S,b),C=T.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!c){var L=zy(h,C[0]);u.attr({x:L[0]+w,y:L[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+w,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=q_(a,d,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,L=zy(h,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+w,y:L[1]+x})}if(o){var E=di(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=rE(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Qr(v.stackedOnCurrent,v.current,a,o,l),c=Qr(v.current,null,a,o,l),g=Qr(v.stackedOnNext,v.next,a,o,l),p=Qr(v.next,null,a,o,l)),Fy(c,p)>3e3||f&&Fy(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 y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Ct(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Ct(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=b[A],C.y=b[A+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}($t);const gE=pE;function wd(r,t){return{seriesType:r,plan:Tu(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(!!a){var s=z(a.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");_n(n,s[0])&&(s[0]=u),_n(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&&Or(p*l),y=[],m=[],_=c.start,S=0;_<c.end;_++){var w=void 0;if(l===1){var x=f.get(h,_);w=a.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(v,_),w=a.dataToPoint(y,null,m);o?(g[S++]=w[0],g[S++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",g)}}}}}}var yE={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]}},mE=function(r){return Math.round(r.length/2)};function dx(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){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){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/c)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/c));var d=void 0;W(i)?d=yE[i]:q(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/c,d,mE))}}}}}function _E(r){r.registerChartView(gE),r.registerSeriesModel(KR),r.registerLayout(wd("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,dx("line"))}var px=function(r){B(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 jo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[c],y=n[c]==="x1"||n[c]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<d.length;w++){var x=d[w].coord,b=w===d.length-1?d[w-1].tickValue+S:d[w].tickValue;if(b===g){_=x;break}else if(b<g)m=x;else if(m!=null&&b>g){_=(x+m)/2;break}w===1&&(S=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.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}(fe);fe.registerClass(px);const Vy=px;var SE=function(r){B(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 jo(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,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gu(Vy.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}(Vy);const wE=SE;var xE=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}(),bE=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xE},t.prototype.buildPath=function(e,n){var a=n.cx,i=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),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(p*o+a,g*o+i),e.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!v)):e.moveTo(p*s+a,g*s+i),e.arc(a,i,s,f,h,!v),e.arc(y*u+a,m*u+i,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(a,i,o,h,f,v)},t}(ut);const Vl=bE;function TE(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return dl(n,a,i);var s=r(o),l=a.distance!=null?a.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,y=(p+g)/2,m=e?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,w=f+v*_(p),x=h+v*S(p),b="left",T="top";switch(s){case"startArc":w=f+(c-l)*_(y),x=h+(c-l)*S(y),b="center",T="top";break;case"insideStartArc":w=f+(c+l)*_(y),x=h+(c+l)*S(y),b="center",T="bottom";break;case"startAngle":w=f+d*_(p)+ks(p,l+m,!1),x=h+d*S(p)+Os(p,l+m,!1),b="right",T="middle";break;case"insideStartAngle":w=f+d*_(p)+ks(p,-l+m,!1),x=h+d*S(p)+Os(p,-l+m,!1),b="left",T="middle";break;case"middle":w=f+d*_(y),x=h+d*S(y),b="center",T="middle";break;case"endArc":w=f+(v+l)*_(y),x=h+(v+l)*S(y),b="center",T="bottom";break;case"insideEndArc":w=f+(v-l)*_(y),x=h+(v-l)*S(y),b="center",T="top";break;case"endAngle":w=f+d*_(g)+ks(g,l+m,!0),x=h+d*S(g)+Os(g,l+m,!0),b="left",T="middle";break;case"insideEndAngle":w=f+d*_(g)+ks(g,-l+m,!0),x=h+d*S(g)+Os(g,-l+m,!0),b="right",T="middle";break;default:return dl(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=b,n.verticalAlign=T,n}}function CE(r,t,e,n){if(gt(n)){r.setTextConfig({rotation:n});return}else if(V(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+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=i;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 ks(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Os(r,t,e){return t*Math.cos(r)*(e?1:-1)}function eo(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;V(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(n,function(i){return pn(i,a)})}}var Qf=Math.max,th=Math.min;function AE(r,t){var e=r.getArea&&r.getArea();if(Sd(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var ME=function(r){B(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,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i)):Et("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){Yo(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,a,i){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=DE(e,u);c&&this._enableRealtimeSort(c,s,a);var d=e.get("clip",!0)||c,p=AE(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,x=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function T(D){var L=Ns[u.type](s,D),I=OE(u,h,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=Ns[u.type](s,D,L);if(y&&T(D),!(!s.hasValue(D)||!Yy[u.type](I))){var P=!1;d&&(P=Hy[u.type](p,I));var R=Wy[u.type](e,s,D,I,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),Zy(R,s,D,L,I,e,h,u.type==="polar"),x?R.attr({shape:I}):c?Uy(c,v,R,I,D,h,!1,!1):Pt(R,{shape:I},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=Ns[u.type](s,D,I);if(y){var R=void 0;w.length===0?R=T(L):(R=w[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=Ns[u.type](s,D),O=yx(h,E,u);Ct(R,{shape:O},v,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!Yy[u.type](P)){o.remove(k);return}var N=!1;if(d&&(N=Hy[u.type](p,P),N&&o.remove(k)),k?xo(k):k=Wy[u.type](e,s,D,P,h,v,f.model,!!k,g),c&&(k.forceLabelAnimation=!0),b){var G=k.getTextContent();if(G){var H=di(G);H.prevValue!=null&&(H.prevValue=H.value)}}else Zy(k,s,D,I,P,e,h,u.type==="polar");x?k.attr({shape:P}):c?Uy(c,v,k,P,D,h,!0,b):Ct(k,{shape:P},e,D,null),s.setItemGraphicEl(D,k),k.ignore=N,o.add(k)}).remove(function(D){var L=l.getItemGraphicEl(D);L&&wl(L,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ot);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),qy(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),qy(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&vx(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(!!n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),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(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(s);l=l==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.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 a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(!!this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){wl(i,e,it(i).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}($t),Hy={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 a=r.x+r.width,i=r.y+r.height,o=Qf(t.x,r.x),s=th(t.x+t.width,a),l=Qf(t.y,r.y),u=th(t.y+t.height,i),f=s<o,h=u<l;return t.x=f&&o>a?s:o,t.y=h&&l>i?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 a=th(t.r,r.r),i=Qf(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Wy={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new mt({shape:F({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,h=a?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?Vl:xe,f=new u({shape:n,z2:1});f.name="item";var h=gx(a);if(f.calculateTextPosition=TE(h,{isRoundCap:u===Vl}),i){var v=f.shape,c=a?"r":"endAngle",d={};v[c]=a?n.r0:n.startAngle,d[c]=n[c],(s?Ct:Pt)(f,{shape:d},i)}return f}};function DE(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&(n.type!=="category"&&Et("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Et("`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 Uy(r,t,e,n,a,i,o,s){var l,u;i?(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?Ct:Pt)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Ct:Pt)(e,{shape:u},f,a)}function $y(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var LE=["x","y","width","height"],IE=["cx","cy","r","startAngle","endAngle"],Yy={cartesian2d:function(r){return!$y(r,LE)},polar:function(r){return!$y(r,IE)}},Ns={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),a=e?RE(e,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},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 PE(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function gx(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 Zy(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=eo(n.getModel("itemStyle"),f,!0);F(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?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=Hr(n);xn(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:md(i.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,CE(r,g==="outside"?c:g,gx(o),n.get(["label","rotate"]))}K1(p,d,i.getRawValue(e),function(m){return ix(t,m)});var y=n.getModel(["emphasis"]);ar(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),yn(r,n),PE(a)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function RE(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var EE=function(){function r(){}return r}(),Xy=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new EE},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(ut);function qy(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new Xy({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new Xy({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(a.getVisual("style")),h.style.stroke=null,it(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",Ky),h.on("mousemove",Ky)),e&&e.push(h)}var Ky=Cu(function(r){var t=this,e=kE(t,r.offsetX,r.offsetY);it(t).dataIndex=e>=0?e:null},30,!1);function kE(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function yx(r,t,e){if(Sd(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function OE(r,t,e){var n=r.type==="polar"?xe:mt;return new n({shape:yx(t,e,r),silent:!0,z2:0})}const NE=ME;function BE(r){r.registerChartView(NE),r.registerSeriesModel(wE),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ct(kP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,OP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dx("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var jy=Math.PI*2,Bs=Math.PI/180;function mx(r,t){return ir(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _x(r,t){var e=mx(r,t),n=r.get("center"),a=r.get("radius");V(a)||(a=[0,a]);var i=Y(e.width,t.getWidth()),o=Y(e.height,t.getHeight()),s=Math.min(i,o),l=Y(a[0],s/2),u=Y(a[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else V(n)||(n=[n,n]),f=Y(n[0],i)+e.x,h=Y(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function FE(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=mx(n,e),s=_x(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*Bs,c=n.get("endAngle"),d=n.get("padAngle")*Bs;c=c==="auto"?v-jy:-c*Bs;var p=n.get("minAngle")*Bs,g=p+d,y=0;a.each(i,function(O){!isNaN(O)&&y++});var m=a.getSum(i),_=Math.PI/(m||y)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var T=S?1:-1,C=[v,c],A=T*d/2;xc(C,!S),v=C[0],c=C[1];var D=Sx(n);D.startAngle=v,D.endAngle=c,D.clockwise=S;var L=Math.abs(c-v),I=L,P=0,R=v;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(O,k){var N;if(isNaN(O)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?N=m===0&&x?_:O*_:N=L/y,N<g?(N=g,I-=g):P+=O;var G=R+T*N,H=0,$=0;d>N?(H=R+T*N/2,$=H):(H=R+A,$=G-A),a.setItemLayout(k,{angle:N,startAngle:H,endAngle:$,clockwise:S,cx:l,cy:u,r0:h,r:w?At(O,b,[h,f]):f}),R=G}),I<jy&&y)if(I<=.001){var E=L/y;a.each(i,function(O,k){if(!isNaN(O)){var N=a.getItemLayout(k);N.angle=E;var G=0,H=0;E<d?(G=v+T*(k+1/2)*E,H=G):(G=v+T*k*E+A,H=v+T*(k+1)*E-A),N.startAngle=G,N.endAngle=H}})}else _=I/P,R=v,a.each(i,function(O,k){if(!isNaN(O)){var N=a.getItemLayout(k),G=N.angle===g?g:O*_,H=0,$=0;G<d?(H=R+T*G/2,$=H):(H=R+A,$=R+T*G-A),N.startAngle=H,N.endAngle=$,R+=T*G}})})}var Sx=wt();function xx(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var GE=Math.PI/180;function Jy(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),w=n+_.len,x=w*w,b=Math.sqrt(Math.abs((1-S*S/y)*x)),T=t+(b+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;bx(_,A,!0),_.label.x=T}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,w=Math.abs(_.label.y-e);if(w>=S.maxY){var x=_.label.x-t-_.len2*a,b=n+_.len,T=Math.abs(x)<b?Math.sqrt(w*w/(1-x*x/b/b)):b;S.rB=T,S.maxY=w}S.list.push(_)}f(g),f(y)}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}nx(r,l,l+o)&&h(r)}function zE(r,t,e,n,a,i,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;eh(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(!eh(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+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<t?g=f-o-d.bleedMargin:g=o+a-h-d.bleedMargin:c.x<t?g=c.x-o-d.bleedMargin:g=o+a-c.x-d.bleedMargin,d.targetTextWidth=g,bx(d,g)}}Jy(u,t,e,n,1,a,i,o,s,h),Jy(l,t,e,n,-1,a,i,o,s,f);for(var v=0;v<r.length;v++){var d=r[v];if(!eh(d)&&d.linePoints){var c=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=c.style.padding,_=m?m[1]+m[3]:0,S=c.style.backgroundColor?0:_,w=d.rect.width+S,x=p[1][0]-p[2][0];y?c.x<t?p[2][0]=o+d.edgeDistance+w+d.labelDistance:p[2][0]=o+a-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]+x),p[1][1]=p[2][1]=c.y}}}function bx(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){var h=i.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();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-h)/2}}}function eh(r){return r.position==="center"}function VE(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*GE,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}t.each(function(x){var b=t.getItemGraphicEl(x),T=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),D=t.getItemModel(x),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=Y(L.get("edgeDistance"),u),O=L.get("bleedMargin"),k=D.getModel("labelLine"),N=k.get("length");N=Y(N,u);var G=k.get("length2");if(G=Y(G,u),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,c),C.ignore=!0,A&&(M(A.states,c),A.ignore=!0);return}if(!!d(C)){var H=(T.startAngle+T.endAngle)/2,$=Math.cos(H),et=Math.sin(H),st,ht,Bt,de;n=T.cx,a=T.cy;var Zt=I==="inside"||I==="inner";if(I==="center")st=T.cx,ht=T.cy,de="center";else{var Ot=(Zt?(T.r+T.r0)/2*$:T.r*$)+n,Mt=(Zt?(T.r+T.r0)/2*et:T.r*et)+a;if(st=Ot+$*3,ht=Mt+et*3,!Zt){var Q=Ot+$*(N+l-T.r),vt=Mt+et*(N+l-T.r),lr=Q+($<0?-1:1)*G,Gt=vt;R==="edge"?st=$<0?f+E:f+u-E:st=lr+($<0?-P:P),ht=Gt,Bt=[[Ot,Mt],[Q,vt],[lr,Gt]]}de=Zt?"center":R==="edge"?$>0?"right":"left":$>0?"left":"right"}var $r=Math.PI,Tr=0,_i=L.get("rotate");if(gt(_i))Tr=_i*($r/180);else if(I==="center")Tr=0;else if(_i==="radial"||_i===!0){var Gb=$<0?-H+$r:-H;Tr=Gb}else if(_i==="tangential"&&I!=="outside"&&I!=="outer"){var Sa=Math.atan2($,et);Sa<0&&(Sa=$r*2+Sa);var zb=et>0;zb&&(Sa=$r+Sa),Tr=Sa-$r}if(i=!!Tr,C.x=st,C.y=ht,C.rotation=Tr,C.setStyle({verticalAlign:"middle"}),Zt){C.setStyle({align:de});var Gu=C.states.select;Gu&&(Gu.x+=C.x,Gu.y+=C.y)}else{var Si=C.getBoundingRect().clone();Si.applyTransform(C.getComputedTransform());var Yd=(C.style.margin||0)+2.1;Si.y-=Yd/2,Si.height+=Yd,e.push({label:C,labelLine:A,position:I,len:N,len2:G,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new j($,et),linePoints:Bt,textAlign:de,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:O,rect:Si,unconstrainedWidth:Si.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Zt})}}),!i&&r.get("avoidLabelOverlap")&&zE(e,n,a,l,u,v,f,h);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=g.linePoints;_||!w?(M(m.states,c),m.ignore=!0):(Jw(w,g.minTurnAngle),zR(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new j(w[0][0],w[0][1])})}}}var HE=function(r){B(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new Tt;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=F(eo(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(Pt(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,Pt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Pt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ct(o,{shape:{endAngle:f.endAngle}},s,n))}else xo(o),Ct(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),yn(o,l);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(c)*d,g=Math.sin(c)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},eo(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y:g,shape:eo(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:eo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y:g}),F(_.ensureState("select"),{x:p,y:g}),ar(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;xn(i,Hr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new We,this.setTextGuideLine(c)),Qw(this,tx(o),{stroke:u,opacity:hn(s.get(["lineStyle","opacity"]),f,1)})}},t}(xe),WE=function(r){B(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,a,i){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=Sx(e),c=new xe({shape:F(_x(e,a),v)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(d){var p=new HE(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);wl(p,e,d)}).execute(),VE(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}($t);const UE=WE;function xd(r,t,e){t=V(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=hd(n,t).dimensions,i=new Pu(a,r);return i.initData(n,e),i}var $E=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}();const Tx=$E;var YE=wt(),ZE=function(r){B(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 Tx(K(this.getData,this),K(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return xd(this,{coordDimensions:["value"],encodeDefaulter:ct(rL,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=YE(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=V_(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){gl(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(fe);const XE=ZE;function qE(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(gt(o)&&!isNaN(o)&&o<0)})}}}function KE(r){r.registerChartView(UE),r.registerSeriesModel(XE),Z2("pie",r.registerAction),r.registerLayout(ct(FE,"pie")),r.registerProcessor(xx("pie")),r.registerProcessor(qE("pie"))}var jE=function(r){B(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 jo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,a){return a.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}(fe);const JE=jE;var Cx=4,QE=function(){function r(){}return r}(),tk=function(r){B(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 QE},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Cx,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<a.length;){var v=a[h++],c=a[h++];isNaN(v)||isNaN(c)||f&&!f.contain(v,c)||(s.x=v-i[0]/2,s.y=c-i[1]/2,s.width=i[0],s.height=i[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,a=e.size,i=this._ctx,o=this.softClipShape,s;if(!!i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,h=i[f]-s/2,v=i[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 a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.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,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v<a.length;){var c=a[v++],d=a[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 nt(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(ut),ek=function(){function r(){this.group=new ot}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 a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;e=new Float32Array(e.buffer,i,a)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new tk({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=he(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Cx;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=it(t);u.seriesIndex=a.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}();const rk=ek;var nk=function(r){B(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,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=wd("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(!!e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new rk:new ox,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}($t);const ak=nk;var ik=function(r){B(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}(dt);const ok=ik;var Mv=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},t.type="cartesian2dAxis",t}(dt);ce(Mv,Ou);var Ax={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},sk=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ax),bd=at({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}}},Ax),lk=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},bd),uk=Z({logBase:10},bd);const Mx={category:sk,value:bd,time:lk,log:uk};var fk={value:1,category:1,time:1,log:1};function Hl(r,t,e,n){M(fk,function(a,i){var o=at(at({},Mx[i],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Co(this),c=v?qo(f):{},d=h.getTheme();at(f,d.get(i+"Axis")),at(f,this.getDefaultOption()),f.type=Qy(f),v&&si(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."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Qy)}function Qy(r){return r.type||(r.data?"category":"value")}var hk=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 z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),bt(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}();const vk=hk;var Dv=["x","y"];function tm(r){return r.type==="interval"||r.type==="time"}var ck=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Dv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!tm(e)||!tm(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-a[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=ya([],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"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.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 a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new nt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Vt(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.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 a=[];if(this._invTransform)return Vt(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new nt(i,o,s,l)},t}(vk),dk=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"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}(Ur);const pk=dk;function Lv(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.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])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),nr(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function em(r){return r.get("coordinateSystem")==="cartesian2d"}function rm(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,zt).models[0];if(!i)throw new Error(a+' "'+hn(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');t[n]=i}),t}var rh=Math.log;function Dx(r,t,e){var n=va.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=Gw(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=rh(r.base);u=[rh(u[0])/v,rh(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=$f(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=$f(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=$f(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Lt(g-m),p<0&&u[0]>=0?(p=0,g=Lt(m)):g>0&&u[1]<=0&&(g=0,p=-Lt(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[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]&&(!AP(d)||pl(w[1].value)>pl(d))&&Et("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var gk=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dv,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 a(o){var s,l=St(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;Tv(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(Io(p,d),Tv(p)&&(s=c))}f.length&&(s||(s=f.pop(),Io(s.scale,s.model)),M(f,function(g){Dx(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};M(n.x,function(o){nm(n,"y",o,i)}),M(n.y,function(o){nm(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=ir(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=eR(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()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(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]),yk(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]}X(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",zt).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",zt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ft(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.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 a=this,i=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,M(s.x,function(f,h){M(s.y,function(v,c){var d="x"+h+"y"+c,p=new ck(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(h,v){if(!!nh(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 pk(f,pd(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=i,d.index=v,i._axesList.push(d),s[f][v]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){M(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(em(a)){var i=rm(a),o=i.xAxisModel,s=i.yAxisModel;if(!nh(o,e)||!nh(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(a,i){M(Fl(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return M(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);ft(e,i)<0&&e.push(i),ft(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(!!em(a)){var i=rm(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();{if(!l)throw new Error('Grid "'+hn(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;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Dv,r}();function nh(r,t){return r.getCoordSysModel()===t}function nm(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)am(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&am(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(h){return h.dim+"_"+h.index}}function am(r){return r&&r.type!=="category"&&r.type!=="time"&&tR(r)}function yk(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const mk=gk;var ln=Math.PI,oa=function(){function r(t,e){this.group=new ot,this.opt=e,this.axisModel=t,Z(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ot({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!im[t]},r.prototype.add=function(t){im[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var a=gc(e-t),i,o;return _o(a)?(o=n>0?"top":"bottom",i="center"):_o(a-ln)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ln?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,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}(),im={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Vt(s,s,o),Vt(l,l,o));var f=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Jt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});bo(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"]);W(v)&&(v=[v,v]),(W(c)||gt(c))&&(c=[c,c]);var d=Du(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];M([{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(y,m){if(v[m]!=="none"&&v[m]!=null){var _=he(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.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 a=wk(e,n,t,r),i=bk(e,n,t,r);if(Sk(t,i,a),xk(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ex(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ax(o)}},axisName:function(r,t,e,n){var a=nr(r.axisName,t.get("name"));if(!!a){var i=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=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,sm(i)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*ln/180);var d;sm(i)?v=oa.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=_k(r.rotation,i,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)||{},y=g.ellipsis,m=nr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Tt({x:h[0],y:h[1],rotation:v.rotation,silent:oa.isLabelSilent(t),style:le(s,{text:a,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(ci({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=oa.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,it(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function _k(r,t,e,n){var a=gc(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return _o(a-ln/2)?(o=l?"bottom":"top",i="center"):_o(a-ln*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<ln*1.5&&a>ln/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Sk(r,t,e){if(!zw(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=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?(Ie(i),Ie(u)):om(i,o)&&(n?(Ie(o),Ie(f)):(Ie(i),Ie(u))),a===!1?(Ie(s),Ie(h)):om(l,s)&&(a?(Ie(l),Ie(v)):(Ie(s),Ie(h)))}}function Ie(r){r&&(r.ignore=!0)}function om(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Bo([]);return vi(a,a,-r.rotation),e.applyTransform(_r([],a,r.getLocalTransform())),n.applyTransform(_r([],a,t.getLocalTransform())),e.intersect(n)}}function sm(r){return r==="middle"||r==="center"}function Lx(r,t,e,n,a){for(var i=[],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&&(Vt(o,o,t),Vt(s,s,t));var f=new Jt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});bo(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function wk(r,t,e,n){var a=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=Lx(u,t.transform,l,Z(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function xk(r,t,e,n){var a=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=Z(s.getLineStyle(),Z(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Lx(o[f],t.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function bk(r,t,e,n){var a=e.axis,i=nr(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(nr(n.labelRotate,o.get("rotate"))||0)*ln/180,f=oa.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],c=oa.isLabelSilent(e),d=e.get("triggerEvent");return M(l,function(p,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var w=h[y];X(w)&&w.textStyle&&(S=new Dt(w.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),b=a.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,C=rt(S.getShallow("alignMinLabel",!0),T),A=rt(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,L=rt(S.getShallow("verticalAlignMinLabel",!0),D),I=rt(S.getShallow("verticalAlignMaxLabel",!0),D),P=new Tt({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:le(S,{text:m,align:g===0?C:g===l.length-1?A:T,verticalAlign:g===0?L:g===l.length-1?I:D,fill:q(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,g):x})});if(P.anid="label_"+y,ci({el:P,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:g}}),d){var R=oa.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=g,a.type==="category"&&(R.dataIndex=y),it(P).eventData=R}t.add(P),P.updateTransform(),v.push(P),r.add(P),P.decomposeTransform()}),v}}const ca=oa;function Tk(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ck(e,r,t),e.seriesInvolved&&Mk(e,r),e}function Ck(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(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(M(s.getAxes(),ct(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)&&M(d.baseAxes,ct(p,c?"cross":!0,v)),c&&M(d.otherAxes,ct(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Iv(_))){y==null&&(y=_.get("triggerTooltip")),_=g?Ak(m,h,a,t,g,y):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),b=Ro(m.model),T=y||w||m.type==="category",C=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:w,useHandle:Iv(_),seriesModels:[],linkGroup:null};u[b]=C,r.seriesInvolved=r.seriesInvolved||T;var A=Dk(i,m);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[b]=C,D.mapper=i[A].mapper,C.linkGroup=D}}}})}function Ak(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(v){l[v]=tt(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&Z(u,h.textStyle)}}return r.model.getModel("axisPointer",new Dt(l,e,n))}function Mk(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||M(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 Dk(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if(ah(i[n+"AxisId"],e.id)||ah(i[n+"AxisIndex"],e.componentIndex)||ah(i[n+"AxisName"],e.name))return a}}function ah(r,t){return r==="all"||V(r)&&ft(r,t)>=0||r===t}function Lk(r){var t=Td(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Iv(e);i==null&&(a.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]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Td(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ro(r)]}function Ik(r){var t=Td(r);return t&&t.axisPointerModel}function Iv(r){return!!r.get(["handle","show"])}function Ro(r){return r.type+"||"+r.id}var ih={},Pk=function(r){B(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,a,i){this.axisPointerClass&&Lk(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=Ik(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){if(ih[e])throw new Error("axisPointer "+e+" exists");ih[e]=n},t.getAxisPointerClass=function(e){return e&&ih[e]},t.type="axis",t}(Ht);const Jo=Pk;var Pv=wt();function Rk(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var f=s.length,h=Pv(r).splitAreaColors,v=U(),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=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=V(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,w=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,w=m-_,x=l.height,g=_+w):(_=l.x,S=g,w=l.width,x=m-S,g=S+x);var b=u[d-1].tickValue;b!=null&&v.set(b,c),t.add(new mt({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:w,height:x},style:Z({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}Pv(r).splitAreaColors=v}}}function Ek(r){Pv(r).splitAreaColors=null}var kk=["axisLine","axisTickLabel","axisName"],Ok=["splitArea","splitLine","minorSplitLine"],Ix=function(r){B(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,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Lv(s,e),u=new ca(e,F({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(Tv(v[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));M(kk,u.add,u),this._axisGroup.add(u.getGroup()),M(Ok,function(h){e.get([h,"show"])&&Nk[h](this,this._axisGroup,e,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||Oc(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){Ek(this)},t.type="cartesianAxis",t}(Jo),Nk={splitLine:function(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=V(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=a.isHorizontal(),v=0,c=a.getTicksCoords({tickModel:i}),d=[],p=[],g=o.getLineStyle(),y=0;y<c.length;y++){var m=a.toGlobalCoord(c[y].coord);if(!(y===0&&!l||y===c.length-1&&!u)){var _=c[y].tickValue;h?(d[0]=m,d[1]=f.y,p[0]=m,p[1]=f.y+f.height):(d[0]=f.x,d[1]=m,p[0]=f.x+f.width,p[1]=m);var S=v++%s.length,w=new Jt({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Z({stroke:s[S]},g),silent:!0});bo(w.shape,g.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,n){var a=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.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=a.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 Jt({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});bo(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){Rk(r,t,e,n)}},Px=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(Ix),Bk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Px.type,e}return t.type="yAxis",t}(Ix),Fk=function(r){B(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 mt({shape:e.coordinateSystem.getRect(),style:Z({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ht),lm={offset:0};function Rx(r){r.registerComponentView(Fk),r.registerComponentModel(ok),r.registerCoordinateSystem("cartesian2d",mk),Hl(r,"x",Mv,lm),Hl(r,"y",Mv,lm),r.registerComponentView(Px),r.registerComponentView(Bk),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Gk(r){ve(Rx),r.registerSeriesModel(JE),r.registerChartView(ak),r.registerLayout(wd("scatter"))}function zk(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(!!a){var i=a.getIndicatorAxes();M(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=um(f)?f:fm(a)})}),e.each(function(o){var s=o_(n[o],function(l){return um(l)})||fm(a);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function um(r){return!isNaN(r[0])&&!isNaN(r[1])}function fm(r){return[r.cx,r.cy]}function Vk(r){var t=r.polar;if(t){V(t)||(t=[t]);var e=[];M(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],V(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Hk=function(r){B(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,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,c){var d=v.getItemVisual(c,"symbol")||"circle";if(d!=="none"){var p=Mu(v.getItemVisual(c,"symbolSize")),g=he(d,-1,-1,2,2),y=v.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,c,d,p,g,y){d.removeAll();for(var m=0;m<c.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),du[y?"initProps":"updateProps"](_,{x:c[m][0],y:c[m][1]},e,g)):_.setPosition(c[m]),d.add(_))}}function h(v){return z(v,function(c){return[i.cx,i.cy]})}s.diff(l).add(function(v){var c=s.getItemLayout(v);if(!!c){var d=new xr,p=new We,g={shape:{points:c}};d.shape.points=h(c),p.shape.points=h(c),Pt(d,g,e,v),Pt(p,g,e,v);var y=new ot,m=new ot;y.add(p),y.add(d),y.add(m),f(p.shape.points,c,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,c){var d=l.getItemGraphicEl(c),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};!m.shape.points||(f(p.shape.points,m.shape.points,y,s,v,!1),xo(g),xo(p),Ct(p,m,e),Ct(g,m,e),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,c){var d=s.getItemModel(c),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(c,"style"),_=m.fill;o.add(v),p.useStyle(Z(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),yn(p,d,"lineStyle"),yn(g,d,"areaStyle");var S=d.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=w,M(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=A&&w}),g.useStyle(Z(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis"),b=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof or){var C=T.style;T.useStyle(F({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=tt(b);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),c);(D==null||isNaN(D))&&(D=""),xn(T,Hr(d),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),ar(v,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}($t);const Wk=Hk;var Uk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tx(K(this.getData,this),K(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return xd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=FS(this,e);return mn("section",{header:u,sortBlocks:!0,blocks:z(s,function(h){var v=i.get(i.mapDimension(h.dim),e);return mn("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(z(a.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(fe);const $k=Uk;var Vi=Mx.value;function Fs(r,t){return Z({show:t},r)}var Yk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),c=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Z({color:d.color},l));var g=at(tt(d),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if(W(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else q(f)&&(g.name=f(g.name,g));var m=new Dt(g,null,this.ecModel);return ce(m,Ou.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:at({lineStyle:{color:"#bbb"}},Vi.axisLine),axisLabel:Fs(Vi.axisLabel,!1),axisTick:Fs(Vi.axisTick,!1),splitLine:Fs(Vi.splitLine,!0),splitArea:Fs(Vi.splitArea,!0),indicator:[]},t}(dt);const Zk=Yk;var Xk=["axisLine","axisTickLabel","axisName"],qk=function(r){B(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,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=z(a,function(o){var s=o.model.get("showName")?o.name:"",l=new ca(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(Xk,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),d=V(v)?v:[v],p=V(c)?c:[c],g=[],y=[];function m(R,E,O){var k=O%E.length;return R[k]=R[k]||[],k}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(f){var b=m(g,d,x);g[b].push(new ma({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,p,x);y[b].push(new Wo({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=z(a,function(R,E){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),z(O,function(k){return n.coordToPoint(k.coord,E)})}),A=[],x=0;x<=T;x++){for(var D=[],L=0;L<a.length;L++)D.push(C[L][x]);if(D[0]?D.push(D[0].slice()):console.error("Can't draw value axis "+x),f){var b=m(g,d,x);g[b].push(new We({shape:{points:D}}))}if(h&&A){var b=m(y,p,x-1);y[b].push(new xr({shape:{points:D.concat(A)}}))}A=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();M(y,function(R,E){this.group.add(Be(R,{style:Z({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),M(g,function(R,E){this.group.add(Be(R,{style:Z({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},t.type="radar",t}(Ht);const Kk=qk;var jk=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(Ur);const Jk=jk;var Qk=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new Jk(o,new va);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(i-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight(),o=Math.min(a,i)/2;this.cx=Y(n[0],a),this.cy=Y(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(W(s)||gt(s))&&(s=[0,s]),this.r0=Y(s[0],o),this.r=Y(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,a=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();M(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new va;o.setExtent(0,i),o.setInterval(1),M(n,function(s,l){Dx(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();const tO=Qk;function eO(r){r.registerCoordinateSystem("radar",tO),r.registerComponentModel(Zk),r.registerComponentView(Kk),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function rO(r){ve(eO),r.registerChartView(Wk),r.registerSeriesModel($k),r.registerLayout(zk),r.registerProcessor(xx("radar")),r.registerPreprocessor(Vk)}var hm="\0_ec_interaction_mutex";function nO(r,t,e){var n=Cd(r);n[t]=e}function aO(r,t,e){var n=Cd(r),a=n[t];a===e&&(n[t]=null)}function vm(r,t){return!!Cd(r)[t]}function Cd(r){return r[hm]||(r[hm]={})}sr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Qt);var iO=function(r){B(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var a=K(n._mousedownHandler,n),i=K(n._mousemoveHandler,n),o=K(n._mouseupHandler,n),s=K(n._mousewheelHandler,n),l=K(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=Z(tt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",a),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",a),e.off("mousemove",i),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(!jd(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!ol("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||vm(this._zr,"globalPan"))){var n=e.offsetX,a=e.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&ri(e.event),Ex(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){jd(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=ol("zoomOnMouseWheel",e,this._opt),a=ol("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;oh(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);oh(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!vm(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;oh(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(He);function oh(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(ri(n.event),Ex(r,t,e,n,a))}function Ex(r,t,e,n,a){a.isAvailableBehavior=K(ol,null,e,n),r.trigger(t,a)}function ol(r,t,e){var n=e[r];return!r||n&&(!W(n)||t.event[n+"Key"])}const kx=iO;function oO(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function sO(r,t,e,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(e-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var lO={axisPointer:1,tooltip:1,brush:1};function Ox(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!lO.hasOwnProperty(n.mainType)&&a&&a.model!==e}function Nx(r){if(W(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var sh,Wl={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},cm=St(Wl),Ul={"alignment-baseline":"textBaseline","stop-color":"stopColor"},dm=St(Ul),uO=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=Nx(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new ot;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),be(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;vO(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Nu(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=Fx(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=a;a=new ot,a.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new mt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(t,e,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=sh[s];if(f&&re(sh,s)){l=f.call(this,t,e);var h=t.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var c=pm[s];if(c&&re(pm,s)){var d=c.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new yl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pe(e,n),be(t,n,this._defsUsePending,!1,!1),fO(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){sh={g:function(t,e){var n=new ot;return Pe(e,n),be(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new mt;return Pe(e,n),be(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new ma;return Pe(e,n),be(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Jt;return Pe(e,n),be(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new lu;return Pe(e,n),be(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=mm(n));var i=new xr({shape:{points:a||[]},silent:!0});return Pe(e,i),be(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=mm(n));var i=new We({shape:{points:a||[]},silent:!0});return Pe(e,i),be(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new or;return Pe(e,n),be(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new ot;return Pe(e,s),be(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ot;return Pe(e,s),be(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",a=M1(n);return Pe(e,a),be(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),pm={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new hu(t,e,n,a);return gm(r,i),ym(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new Ic(t,e,n);return gm(r,a),ym(r,a),a}};function gm(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function ym(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};Bx(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Pe(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Z(t.__inheritedStyle,r.__inheritedStyle))}function mm(r){for(var t=Nu(r),e=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);e.push([a,i])}return e}function be(r,t,e,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(pO(r,t),Bx(r,o,s),n||gO(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=_m(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=_m(i,"stroke",o.stroke,e)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=z(Nu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function fO(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var hO=/^url\(\s*#(.*?)\)/;function _m(r,t,e,n){var a=e&&e.match(hO);if(a){var i=Ge(a[1]);n.push([r,t,i]);return}return e==="none"&&(e=null),e}function vO(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var cO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Nu(r){return r.match(cO)||[]}var dO=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,lh=Math.PI/180;function pO(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],a=null;e.replace(dO,function(h,v,c){return n.push(v,c),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Nu(o);switch(a=a||tr(),s){case"translate":ni(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":fc(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":vi(a,a,-parseFloat(l[0])*lh,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*lh);_r(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*lh);_r(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var Sm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Bx(r,t,e){var n=r.getAttribute("style");if(!!n){Sm.lastIndex=0;for(var a;(a=Sm.exec(n))!=null;){var i=a[1],o=re(Wl,i)?Wl[i]:null;o&&(t[o]=a[2]);var s=re(Ul,i)?Ul[i]:null;s&&(e[s]=a[2])}}}function gO(r,t,e){for(var n=0;n<cm.length;n++){var a=cm[n],i=r.getAttribute(a);i!=null&&(t[Wl[a]]=i)}for(var n=0;n<dm.length;n++){var a=dm[n],i=r.getAttribute(a);i!=null&&(e[Ul[a]]=i)}}function Fx(r,t){var e=t.width/r.width,n=t.height/r.height,a=Math.min(e,n);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function yO(r,t){var e=new uO;return e.parse(r,t)}var mO=U(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),_O=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=U(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Nx(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=wO(t.named),n=e.regions,a=e.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&yO(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,J(n!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var a=new ot;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=n.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new nt(u,f,h,v)}if(s){var d=Fx(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new mt({shape:l.plain()}));var p=[];return M(e.named,function(g){mO.get(g.svgNodeTagLower)!=null&&(p.push(g),SO(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function SO(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function wO(r){var t=[],e=U();return M(r,function(n){if(n.namedFrom==null){var a=new dR(n.name,n.el);t.push(a),e.set(n.name,a)}}),{regions:t,regionsMap:e}}var Rv=[126,25],wm="\u5357\u6D77\u8BF8\u5C9B",Zn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var $n=0;$n<Zn.length;$n++)for(var Oa=0;Oa<Zn[$n].length;Oa++)Zn[$n][Oa][0]/=10.5,Zn[$n][Oa][1]/=-10.5/.75,Zn[$n][Oa][0]+=Rv[0],Zn[$n][Oa][1]+=Rv[1];function xO(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===wm)return;t.push(new Hw(wm,z(Zn,function(n){return{type:"polygon",exterior:n}}),Rv))}}var bO={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function TO(r,t){if(r==="china"){var e=bO[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var CO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function AO(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:CO[0]})}var MO="name",DO=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=U(),this._mapName=t,this._specialAreas=n,this._geoJSON=IO(e)}return r.prototype.load=function(t,e){e=e||MO;var n=this._parsedMap.get(e);if(!n){var a=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:a,boundingRect:LO(a)})}var i=U(),o=[];return M(n.regions,function(s){var l=s.name;t&&re(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new nt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,a;try{a=n?Cv(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return xO(e,a),M(a,function(i){var o=i.name;TO(e,i),AO(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function LO(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function IO(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Hi=U();const Sn={registerMap:function(r,t,e){if(t.svg){var n=new _O(r,t.svg);Hi.set(r,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var n=new DO(r,a,e);Hi.set(r,n)}},getGeoResource:function(r){return Hi.get(r)},getMapForUser:function(r){var t=Hi.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=Hi.get(r);if(!n){console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(t,e)}};var Ad=["rect","circle","line","ellipse","polygon","polyline","path"],PO=U(Ad),RO=U(Ad.concat(["g"])),EO=U(Ad.concat(["g"])),Gx=wt();function Gs(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function xm(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var kO=function(){function r(t){var e=new ot;this.uid=pi("ec_map_draw"),this._controller=new kx(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ot),e.add(this._svgGroup=new ot)}return r.prototype.draw=function(t,e,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,d=!u.childAt(0)||i;d?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Ct(f,c,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=U(),n=U(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(c,d){return d&&(c=d(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],p);y&&d.push(y)}return d}function v(c){return{shape:{points:h(c)}}}a.removeAll(),M(t.geo.regions,function(c){var d=c.name,p=e.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=e.set(d,new ot),a.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),n.set(d,{dataIdx:y,regionModel:m})}var S=[],w=[];M(c.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=Dm(C,u)),M(C,function(D){S.push(new xr(v(D)))})}else{var A=T.points;u&&(A=Dm(A,u,!0)),M(A,function(D){w.push(new We(v(D)))})}});var x=f(c.getCenter(),l&&l.project);function b(T,C){if(!!T.length){var A=new Lc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(A),bm(t,A,y,m),Tm(t,A,d,m,o,y,x),C&&(xm(A),M(A.states,xm))}}b(S),b(w,!0)}),e.each(function(c,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;Cm(t,c,d,y,o,g),Am(t,c,d,y,o),Mm(t,c,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var a=this._svgDispatcherMap=U(),i=!1;M(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);PO.get(f)!=null&&h instanceof gn&&bm(t,h,v,c),h instanceof gn&&(h.culling=!0);var d=c.get("silent",!0);if(d!=null&&(h.silent=d),h.z2EmphasisLift=0,!o.namedFrom&&(EO.get(f)!=null&&Tm(t,h,s,c,l,v,null),Cm(t,h,s,c,l,v),Am(t,h,s,c,l),RO.get(f)!=null)){var p=Mm(t,h,s,c,l);p==="self"&&(i=!0);var g=a.get(s)||a.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Ac(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=Sn.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Sn.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,n){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,oO(o,u.dx,u.dy),n.dispatchAction(F(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,sO(o,u.scale,u.originX,u.originY),n.dispatchAction(F(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,h){return a.containPoint([f,h])&&!Ox(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=Gx(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,a){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},r}();function bm(r,t,e,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Gs(a),u=Gs(i),f=Gs(s),h=Gs(o),v=r.data;if(v){var c=v.getItemVisual(e,"style"),d=v.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),d&&(l.decal=Rl(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=h,Ac(t)}function Tm(r,t,e,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var h=l?e:i,v=void 0;(!s||i>=0)&&(v=a);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;xn(t,Hr(n),{labelFetcher:v,labelDataIndex:h,defaultText:e},c);var d=t.getTextContent();if(d&&(Gx(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Cm(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):it(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function Am(r,t,e,n,a){r.data||ci({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function Mm(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return ar(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&GM(t,a,e),o}function Dm(r,t,e){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),M(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}const OO=kO;var Lm=Vt,NO=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Er,n._rawTransformable=new Er,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,a,i){return this._rect=new nt(e,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,a,i){this._transformTo(e,n,a,i),this._viewRect=new nt(e,n,a,i)},t.prototype._transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new nt(e,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,n){!e||(this._center=[Y(e[0],n.getWidth()),Y(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,a=e.y+e.height/2;return[n,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Vt([],i,e),a=Vt([],a,e),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),tu(this.transform||(this.transform=[]),n.transform||tr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],ya(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,a=new Er;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?Lm(a,e,i):v_(a,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?Lm([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,a){var i=Im(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=Im(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Er);function Im(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const zx=NO;var BO={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Vx=["lng","lat"],Hx=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e)||this;i.dimensions=Vx,i.type="geo",i._nameCoordMap=U(),i.map=n;var o=a.projection,s=Sn.load(n,a.nameMap,a.nameProperty),l=Sn.getGeoResource(n),u=i.resourceType=l?l.type:null,f=i.regions=s.regions,h=BO[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,o&&(u==="geoSVG"&&(Et("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(Et("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var v;if(o)for(var c=0;c<f.length;c++){var d=f[c].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:rt(a.aspectScale,h.aspectScale),i._invertLongitute=o?!1:h.invertLongitute,i}return t.prototype._transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new nt(e,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(e))return n[a]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,a){if(W(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,n,a)}},t.prototype.pointToData=function(e){var n=this.projection;return n&&(e=n.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,n,a){return r.prototype.dataToPoint.call(this,e,n,a)},t.prototype.convertToPixel=function(e,n,a){var i=Pm(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=Pm(n);return i===this?i.pointToData(a):null},t}(zx);ce(Hx,zx);function Pm(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",zt).models[0]||{}).coordinateSystem:null}const Rm=Hx;function Em(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],a=e[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(x,b,T,C){for(var A=T-x,D=C-b,L=0;L<=100;L++){var I=L/100,P=i.project([x+A*I,b+D*I]);Pr(n,n,P),Rr(a,a,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var h=this.getBoundingRect(),v=r.get("layoutCenter"),c=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;v&&c&&(m=[Y(v[0],d),Y(v[1],p)],_=Y(c,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)?y=!0:console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=ir(w,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function FO(r,t){M(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var GO=function(){function r(){this.dimensions=Vx}return r.prototype.create=function(t,e){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Rm(l+s,l,F({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Em,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=z(o,function(f){return f.get("nameMap")}),u=new Rm(s,s,F({nameMap:ec(l)},a(o[0])));u.zoomLimit=nr.apply(null,z(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=Em,u.resize(o[0],e),M(o,function(f){f.coordinateSystem=u,FO(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),o=U(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Sn.load(e,n,a);return M(l.regions,function(u){var f=u.name,h=o.get(f),v=u.properties&&u.properties.echartsStyle;h||(h={name:f},i.push(h)),v&&at(h,v)}),i},r}(),zO=new GO;const Wx=zO;var VO=function(r){B(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,a){var i=Sn.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,a),gl(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=Wx.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=rr(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Dt(o,e,e.ecModel)),o.selected&&(a[s]=!0)),i},U()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Dt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var a=this.getRegionModel(e),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:e};if(q(i))return o.status=n,i(o);if(W(i))return i.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var n=this.option,a=n.selectedMode;if(!!a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(dt);const HO=VO;function km(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function WO(r,t,e,n){var a=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(km(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(km(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var UO=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,a,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new OO(a));var o=this._mapDraw;o.draw(e,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,a)},t.prototype._handleRegionClick=function(e){var n;Ya(e.target,function(a){return(n=it(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=it(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ht);const $O=UO;function YO(r,t,e){Sn.registerMap(r,t,e)}function ZO(r){r.registerCoordinateSystem("geo",Wx),r.registerComponentModel(HO),r.registerComponentView($O),r.registerImpl("registerMap",YO),r.registerImpl("getMap",function(e){return Sn.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[e](a.name);var u=l.coordinateSystem;M(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];M(o,function(h,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,a){var i=e.componentType||"series";n.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=WO(s,e,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&M(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}var Om=Jt.prototype,uh=uu.prototype,Ux=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Ux);function fh(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var XO=function(r){B(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 Ux},t.prototype.buildPath=function(e,n){fh(n)?Om.buildPath.call(this,e,n):uh.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return fh(this.shape)?Om.pointAt.call(this,e):uh.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,a=fh(n)?[n.x2-n.x1,n.y2-n.y1]:uh.tangentAt.call(this,e);return Ql(a,a)},t}(ut);const qO=XO;var hh=["fromSymbol","toSymbol"];function Nm(r){return"_"+r+"Type"}function Bm(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Mu(a),u=Du(o||0,l);return n+l+u+(i||"")+(s||"")}function Fm(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Mu(a),u=Du(o||0,l),f=he(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function KO(r){var t=new qO({name:"line",subPixelOptimize:!0});return Ev(t.shape,r),t}function Ev(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 jO=function(r){B(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createLine(e,n,a),i}return t.prototype._createLine=function(e,n,a){var i=e.hostModel,o=e.getItemLayout(n),s=KO(o);s.shape.percent=0,Pt(s,{shape:{percent:1}},i,n),this.add(s),M(hh,function(l){var u=Fm(l,e,n);this.add(u),this[Nm(l)]=Bm(l,e,n)},this),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};Ev(l.shape,s),Ct(o,l,i,n),M(hh,function(u){var f=Bm(u,e,n),h=Nm(u);if(this[h]!==f){this.remove(this.childOfName(u));var v=Fm(u,e,n);this.add(v)}this[h]=f},this),this._updateCommonStl(e,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,h=a&&a.emphasisDisabled,v=a&&a.focus,c=a&&a.blurScope;if(!a||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=Hr(d)}var g=e.getItemVisual(n,"style"),y=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,M(hh,function(x){var b=this.childOfName(x);if(b){b.setColor(y),b.style.opacity=g.opacity;for(var T=0;T<we.length;T++){var C=we[T],A=o.getState(C);if(A){var D=A.style||{},L=b.ensureState(C),I=L.style||(L.style={});D.stroke!=null&&(I[b.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}b.markRedraw()}},this);var m=i.getRawValue(n);xn(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,b){return i.getFormattedLabel(x,b,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?Lt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var w=S.get("distance");V(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),ar(this,v,c,h)},t.prototype.highlight=function(){ua(this)},t.prototype.downplay=function(){fa(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");Ev(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),a=e.childOfName("toSymbol"),i=e.getTextContent();if(!n&&!a&&(!i||i.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=oc([],h,f);Ql(v,v);function c(A,D){var L=A.__specifiedRotation;if(L==null){var I=l.tangentAt(D);A.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else A.attr("rotation",L)}if(n&&(n.setPosition(f),c(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(h),c(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),w=[S[1],-S[0]],x=l.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=v[0]*y+h[0],i.y=v[1]*m+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":i.x=-v[0]*y+f[0],i.y=-v[1]*m+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":i.x=y*b+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*b,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*b+h[0],i.y=h[1]+C,d=S[0]>=0?"right":"left",i.originX=y*b,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(ot);const Md=jO;var JO=function(){function r(t){this.group=new ot,this._LineCtor=t||Md}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=Gm(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.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=Gm(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!QO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=e.getItemLayout(a);if(vh(i)){var o=new this._LineCtor(e,a,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Yo(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var a=t.getItemLayout(e);if(!!vh(a)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,n,a,i){var o=t.getItemGraphicEl(n);if(!vh(e.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(e,a,i):o=new this._LineCtor(e,a,i),e.setItemGraphicEl(a,o),this.group.add(o)},r}();function QO(r){return r.animators&&r.animators.length>0}function Gm(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:Hr(t)}}function zm(r){return isNaN(r[0])||isNaN(r[1])}function vh(r){return r&&!zm(r[0])&&!zm(r[1])}const tN=JO;var eN=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),rN=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new eN},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t}(ut);const nN=rN;function aN(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=Y(e[0],t.getWidth()),s=Y(e[1],t.getHeight()),l=Y(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function zs(r,t){var e=r==null?"":r+"";return t&&(W(t)?e=t.replace("{value}",e):q(t)&&(e=t(r))),e}var iN=function(r){B(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,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=aN(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),v=h.get("roundCap"),c=v?Vl:xe,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),y=[u,f];xc(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],w=0;d&&w<i.length;w++){var x=Math.min(Math.max(i[w][0],0),1);f=u+m*x;var b=new c({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});b.setStyle({fill:i[w][1]}),b.setStyle(p.getLineStyle(["color","width"])),S.push(b),_=f}S.reverse(),M(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(e,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(e,n,a,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,a,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,a,i,o,s,l,u,f){for(var h=this.group,v=o.cx,c=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),w=m.get("splitNumber"),x=Y(y.get("length"),d),b=Y(m.get("length"),d),T=s,C=(l-s)/S,A=C/w,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var O=I?I+f:f,k=new Jt({shape:{x1:P*(d-O)+v,y1:R*(d-O)+c,x2:P*(d-x-O)+v,y2:R*(d-x-O)+c},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(E/S)}),h.add(k)}if(_.get("show")){var O=_.get("distance")+I,N=zs(Lt(E/S*(g-p)+p),_.get("formatter")),G=i(E/S),H=P*(d-x-O)+v,$=R*(d-x-O)+c,et=_.get("rotate"),st=0;et==="radial"?(st=-T+2*Math.PI,st>Math.PI/2&&(st+=Math.PI)):et==="tangential"?st=-T-Math.PI/2:gt(et)&&(st=et*Math.PI/180),st===0?h.add(new Tt({style:le(_,{text:N,x:H,y:$,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0})):h.add(new Tt({style:le(_,{text:N,x:H,y:$,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:H,originY:$,rotation:st}))}if(m.get("show")&&E!==S){var O=m.get("distance");O=O?O+f:f;for(var ht=0;ht<=w;ht++){P=Math.cos(T),R=Math.sin(T);var Bt=new Jt({shape:{x1:P*(d-O)+v,y1:R*(d-O)+c,x2:P*(d-b-O)+v,y2:R*(d-b-O)+c},silent:!0,style:L});L.stroke==="auto"&&Bt.setStyle({stroke:i((E+ht/w)/S)}),h.add(Bt),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),w=+e.get("max"),x=[S,w],b=[s,l];function T(A,D){var L=m.getItemModel(A),I=L.getModel("pointer"),P=Y(I.get("width"),o.r),R=Y(I.get("length"),o.r),E=e.get(["pointer","icon"]),O=I.get("offsetCenter"),k=Y(O[0],o.r),N=Y(O[1],o.r),G=I.get("keepAspect"),H;return E?H=he(E,k-P/2,N-R,P,R,null,G):H=new nN({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:N}}),H.rotation=-(D+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(A,D){var L=g.get("roundCap"),I=L?Vl:xe,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(A+1)*R,O=P?o.r:o.r-A*R,k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return P&&(k.z2=At(m.get(_,A),[S,w],[100,0],!0)),k}(y||p)&&(m.diff(v).add(function(A){var D=m.get(_,A);if(p){var L=T(A,s);Pt(L,{rotation:-((isNaN(+D)?b[0]:At(D,x,b,!0))+Math.PI/2)},e),h.add(L),m.setItemGraphicEl(A,L)}if(y){var I=C(A,s),P=g.get("clip");Pt(I,{shape:{endAngle:At(D,x,b,P)}},e),h.add(I),rv(e.seriesIndex,m.dataType,A,I),d[A]=I}}).update(function(A,D){var L=m.get(_,A);if(p){var I=v.getItemGraphicEl(D),P=I?I.rotation:s,R=T(A,P);R.rotation=P,Ct(R,{rotation:-((isNaN(+L)?b[0]:At(L,x,b,!0))+Math.PI/2)},e),h.add(R),m.setItemGraphicEl(A,R)}if(y){var E=c[D],O=E?E.shape.endAngle:s,k=C(A,O),N=g.get("clip");Ct(k,{shape:{endAngle:At(L,x,b,N)}},e),h.add(k),rv(e.seriesIndex,m.dataType,A,k),d[A]=k}}).execute(),m.each(function(A){var D=m.getItemModel(A),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(p){var E=m.getItemGraphicEl(A),O=m.getItemVisual(A,"style"),k=O.fill;if(E instanceof or){var N=E.style;E.useStyle(F({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},O))}else E.useStyle(O),E.type!=="pointer"&&E.setColor(k);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(At(m.get(_,A),x,[0,1],!0))),E.z2EmphasisLift=0,yn(E,D),ar(E,I,P,R)}if(y){var G=d[A];G.useStyle(m.getItemVisual(A,"style")),G.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,yn(G,D),ar(G,I,P,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=he(s,n.cx-o/2+Y(l[0],n.r),n.cy-o/2+Y(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),h=+e.get("max"),v=new ot,c=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Tt({silent:!0}),d[y]=new Tt({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ot,w=i(At(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),T=o.cx+Y(b[0],o.r),C=o.cy+Y(b[1],o.r),A=c[y];A.attr({z2:g?0:2,style:le(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(A)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+Y(L[0],o.r),P=o.cy+Y(L[1],o.r),R=Y(D.get("width"),o.r),E=Y(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,A=d[y],k=D.get("formatter");A.attr({z2:g?0:2,style:le(D,{x:I,y:P,text:zs(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),K1(A,{normal:D},_,function(G){return zs(G,k)}),p&&j1(A,y,l,e,{getFormattedLabel:function(G,H,$,et,st,ht){return zs(ht?ht.interpolatedValue:_,k)}}),S.add(A)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=d},t.type="gauge",t}($t);const oN=iN;var sN=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return xd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(fe);const lN=sN;function uN(r){r.registerChartView(oN),r.registerSeriesModel(lN)}function Qo(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=Na(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Na(s,[0,o]),a=i=Na(s,[a,i]),n=0}t[0]=Na(t[0],e),t[1]=Na(t[1],e);var l=ch(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Na(t[n],f);var h;return h=ch(t,n),a!=null&&(h.sign!==l.sign||h.span<a)&&(t[1-n]=t[n]+l.sign*a),h=ch(t,n),i!=null&&h.span>i&&(t[1-n]=t[n]+h.sign*i),t}function ch(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 Na(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var da=!0,Eo=Math.min,ui=Math.max,fN=Math.pow,hN=1e4,vN=6,cN=6,Vm="globalPan",dN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},pN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Hm={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},gN=0,yN=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},J(e),n._zr=e,n.group=new ot,n._uid="brushController_"+gN++,M(TN,function(a,i){this._handlers[i]=K(a,this)},n),n}return t.prototype.enableBrush=function(e){return J(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||nO(n,Vm,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=at(tt(Hm),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;aO(e,Vm,this._uid),M(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(a){n[a.panelId]=tt(a)})}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){J(this._mounted),e=z(e,function(v){return at(tt(Hm),v,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Lo(a,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&&a[c]===s)i[v]=a[c];else{var p=i[v]=c!=null?(a[c].__brushOption=d,a[c]):Yx(o,$x(o,d));Dd(o,p)}}function h(v){a[v]!==s&&o.group.remove(a[v])}},t.prototype.unmount=function(){if(!!this._mounted)return this.enableBrush(!1),kv(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(He);function $x(r,t){var e=Bu[t.brushType].createCover(r,t);return e.__brushOption=t,Xx(e,t),r.group.add(e),e}function Yx(r,t){var e=Ld(t);return e.endCreating&&(e.endCreating(r,t),Xx(t,t.__brushOption)),t}function Zx(r,t){var e=t.__brushOption;Ld(t).updateCoverShape(r,t,e.range,e)}function Xx(r,t){var e=t.z;e==null&&(e=hN),r.traverse(function(n){n.z=e,n.z2=e})}function Dd(r,t){Ld(t).updateCommon(r,t),Zx(r,t)}function Ld(r){return Bu[r.__brushOption.brushType]}function Id(r,t,e){var n=r._panels;if(!n)return da;var a,i=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function qx(r,t){var e=r._panels;if(!e)return da;var n=t.__brushOption.panelId;return n!=null?e[n]:da}function kv(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function pa(r,t){var e=z(r._covers,function(n){var a=n.__brushOption,i=tt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function mN(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=fN(a*a+i*i,.5);return o>vN}function Kx(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function jx(r,t,e,n){var a=new ot;return a.add(new mt({name:"main",style:Pd(e),silent:!0,draggable:!0,cursor:"move",drift:ct(Wm,r,t,a,["n","s","w","e"]),ondragend:ct(pa,t,{isEnd:!0})})),M(n,function(i){a.add(new mt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ct(Wm,r,t,a,i),ondragend:ct(pa,t,{isEnd:!0})}))}),a}function Jx(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=ui(a,cN),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],h=e[1][1],v=f-i+a/2,c=h-i+a/2,d=f-o,p=h-s,g=d+a,y=p+a;Mr(r,t,"main",o,s,d,p),n.transformable&&(Mr(r,t,"w",l,u,i,y),Mr(r,t,"e",v,u,i,y),Mr(r,t,"n",l,u,g,i),Mr(r,t,"s",l,c,g,i),Mr(r,t,"nw",l,u,i,i),Mr(r,t,"ne",v,u,i,i),Mr(r,t,"sw",l,c,i,i),Mr(r,t,"se",v,c,i,i))}function Ov(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Pd(e)),a.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Nv(r,i[0]):SN(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?pN[s]+"-resize":null})})}function Mr(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(xN(Rd(r,t,[[n,a],[n+i,a+o]])))}function Pd(r){return Z({strokeNoScale:!0},r.brushStyle)}function Qx(r,t,e,n){var a=[Eo(r,e),Eo(t,n)],i=[ui(r,e),ui(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function _N(r){return Uo(r.group)}function Nv(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=kc(e[t],_N(r));return n[a]}function SN(r,t){var e=[Nv(r,t[0]),Nv(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Wm(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=tb(t,a,i);M(n,function(u){var f=dN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Qx(s[0][0],s[1][0],s[0][1],s[1][1])),Dd(t,e),pa(t,{isEnd:!1})}function wN(r,t,e,n){var a=t.__brushOption.range,i=tb(r,e,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Dd(r,t),pa(r,{isEnd:!1})}function tb(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function Rd(r,t,e){var n=qx(r,t);return n&&n!==da?n.clipPath(e,r._transform):tt(e)}function xN(r){var t=Eo(r[0][0],r[1][0]),e=Eo(r[0][1],r[1][1]),n=ui(r[0][0],r[1][0]),a=ui(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function bN(r,t,e){if(!(!r._brushType||CN(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=Id(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===da||s.panelId===i.panelId)&&Bu[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function Bv(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Fv(r,t,e){return r.childOfName("main").contain(t,e)}function eb(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),mN(r)||a){if(i&&!a){o.brushMode==="single"&&kv(r);var l=tt(o);l.brushType=Um(l.brushType,i),l.panelId=i===da?null:i.panelId,a=r._creatingCover=$x(r,l),r._covers.push(a)}if(a){var u=Bu[Um(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(Rd(r,a,r._track)),n&&(Yx(r,a),u.updateCommon(r,a)),Zx(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Id(r,t,e)&&kv(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Um(r,t){return r==="auto"?(J(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):r}var TN={mousedown:function(r){if(this._dragging)$m(this,r);else if(!r.target||!r.target.draggable){Bv(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Id(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(bN(this,r,n),this._dragging){Bv(r);var a=eb(this,r,n,!1);a&&pa(this,a)}},mouseup:function(r){$m(this,r)}};function $m(r,t){if(r._dragging){Bv(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=eb(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&pa(r,i)}}function CN(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Bu={lineX:Ym(0),lineY:Ym(1),rect:{createCover:function(r,t){function e(n){return n}return jx({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Kx(r);return Qx(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Jx(r,t,e,n)},updateCommon:Ov,contain:Fv},polygon:{createCover:function(r,t){var e=new ot;return e.add(new We({name:"main",style:Pd(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new xr({name:"main",draggable:!0,drift:ct(wN,r,t),ondragend:ct(pa,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Rd(r,t,e)})},updateCommon:Ov,contain:Fv}};function Ym(r){return{createCover:function(t,e){return jx({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Kx(t),n=Eo(e[0][r],e[1][r]),a=ui(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=qx(t,e);if(o!==da&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),Jx(t,e,l,a)},updateCommon:Ov,contain:Fv}}const AN=yN;function MN(r){return r=Ed(r),function(t){return Nc(t,r)}}function DN(r,t){return r=Ed(r),function(e){var n=t!=null?t:e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function LN(r,t,e){var n=Ed(r);return function(a,i){return n.contain(i[0],i[1])&&!Ox(a,t,e)}}function Ed(r){return nt.create(r)}var IN=function(r){B(t,r);function t(e,n,a){var i=r.call(this)||this;return i.add(i.createLine(e,n,a)),i._updateEffectSymbol(e,n),i}return t.prototype.createLine=function(e,n,a){return new Md(e,n,a)},t.prototype._updateEffectSymbol=function(e,n){var a=e.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");V(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=he(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,n))},t.prototype._updateEffectAnimation=function(e,n,a){var i=this.childAt(1);if(!!i){var o=e.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),h=nr(n.get("delay"),function(c){return c/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;q(h)?v=h(a):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,a,i,o){if(n>0){e.__t=0;var s=this,l=e.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Ir(e.__p1,e.__cp1)+Ir(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ut,f=Fh;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var h=e.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),v=e.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);e.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Ir(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*Ir(n,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var a=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,a,n)},t}(ot);const rb=IN;var PN=function(r){B(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createPolyline(e,n,a),i}return t.prototype._createPolyline=function(e,n,a){var i=e.getItemLayout(n),o=new We({shape:{points:i}});this.add(o),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};Ct(o,s,i,n),this._updateCommonStl(e,n,a)},t.prototype._updateCommonStl=function(e,n,a){var i=this.childAt(0),o=e.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||e.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),f=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}i.useStyle(e.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,ar(this,l,u,f)},t.prototype.updateLayout=function(e,n){var a=this.childAt(0);a.setShape("points",e.getItemLayout(n))},t}(ot);const nb=PN;var RN=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,n,a){return new nb(e,n,a)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Ir(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<1?e.__t:2-e.__t,a=this._points,i=this._offsets,o=a.length;if(!!i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),h=a[l],v=a[l+1];e.x=h[0]*(1-f)+f*v[0],e.y=h[1]*(1-f)+f*v[1];var c=e.__t<1?v[0]-h[0]:h[0]-v[0],d=e.__t<1?v[1]-h[1]:h[1]-v[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(rb);const EN=RN;var kN=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),ON=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kN},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){e.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)e.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],h=a[o++],v=a[o++];if(e.moveTo(u,f),i>0){var c=(u+h)/2-(f-v)*i,d=(f+v)/2-(h-u)*i;e.quadraticCurveTo(c,d,h,v)}else e.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var h=i[u++],v=i[u++],c=1;c<f;c++){var d=i[u++],p=i[u++];if(nn(h,v,d,p,s,e,n))return l}l++}else for(var l=0,u=0;u<i.length;){var h=i[u++],v=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(h+d)/2-(v-p)*o,y=(v+p)/2-(d-h)*o;if(a1(h,v,g,y,d,p,s,e,n))return l}else if(nn(h,v,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.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,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],h=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(h,o),l=Math.max(h,l)}e=this._rect=new nt(i,o,s,l)}return e},t}(ut),NN=function(){function r(){this.group=new ot}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],a=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ON({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=it(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const BN=NN;var FN={seriesType:"lines",plan:Tu(),reset:function(r){var t=r.coordinateSystem;if(!t){Yt("The lines series must have a coordinate system.");return}var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(e){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,v=[],f=a.start;f<a.end;f++){var c=r.getLineCoords(f,o);e&&(s[h++]=c);for(var d=0;d<c;d++)v=t.dataToPoint(o[d],!1,v),s[h++]=v[0],s[h++]=v[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),c=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<c;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}};const ab=FN;var GN=function(r){B(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,a){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=a.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(f?console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=e.get("clip",!0)&&vx(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=ab.reset(e,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new BN:new tN(o?i?EN:nb:i?rb:Md),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}($t);const zN=GN;var VN=typeof Uint32Array>"u"?Array:Uint32Array,HN=typeof Float64Array>"u"?Array:Float64Array;function Zm(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=z(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),ec([a,e[0],e[1]])}))}var WN=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Zm(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Zm(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=ll(this._flatCoords,n.flatCoords),this._flatCoordsOffset=ll(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");if(!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),gt(e[0])){for(var a=e.length,i=new VN(a),o=new HN(a),s=0,l=0,u=0,f=0;f<a;){u++;var h=e[f++];i[l++]=s+n,i[l++]=h;for(var v=0;v<h;v++){var c=e[f++],d=e[f++];if(o[s++]=c,o[s++]=d,f>a)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){{var a=Ko.get(e.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+e.coordinateSystem)}var i=new Pu(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),mn("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(fe);const UN=WN;function Vs(r){return r instanceof Array||(r=[r,r]),r}var $N={seriesType:"lines",reset:function(r){var t=Vs(r.get("symbol")),e=Vs(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,o){var s=i.getItemModel(o),l=Vs(s.getShallow("symbol",!0)),u=Vs(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};const YN=$N;function ZN(r){r.registerChartView(zN),r.registerSeriesModel(UN),r.registerLayout(ab),r.registerVisual(YN)}var qn=wt(),Xm=tt,dh=K,XN=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,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 ot,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var v=ct(qm,e,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}jm(s,e,!0),this._renderHandle(i)}},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"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Td(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=qn(t).pointerEl=new du[i.type](Xm(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=qn(t).labelEl=new Tt(Xm(e.label));t.add(i),Km(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=qn(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=qn(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Km(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=$o(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ri(u.event)},onmousedown:dh(this._onHandleDragMove,this,0,0),drift:dh(this._onHandleDragMove,this),ondragend:dh(this._onHandleDragEnd,this)}),n.add(a)),jm(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");V(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Au(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){qm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ph(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform(ph(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ph(a)),qn(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,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Ml(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 qm(r,t,e,n){ib(qn(e).lastProp,n)||(qn(e).lastProp=n,t?Ct(e,n,r):(e.stopAnimation(),e.attr(n)))}function ib(r,t){if(X(r)&&X(t)){var e=!0;return M(t,function(n,a){e=e&&ib(r[a],n)}),!!e}else return r===t}function Km(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ph(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function jm(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const ob=XN;function sb(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 lb(r,t,e,n,a){var i=e.get("value"),o=ub(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Xo(s.get("padding")||0),u=s.getFont(),f=Go(o,u),h=a.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=a.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),qN(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:le(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qN(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function ub(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:gd(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?i=o.replace("{value}",i):q(o)&&(i=o(s))}return i}function fb(r,t,e){var n=tr();return vi(n,n,e.rotation),ni(n,n,e.position),oi([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function KN(r,t,e,n,a,i){var o=ca.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),lb(t,n,a,i,{position:fb(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function hb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function jN(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function Jm(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var JN=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=Qm(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=sb(i),c=QN[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=Lv(l.model,a);KN(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=Lv(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=fb(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Qm(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}(ob);function Qm(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var QN={line:function(r,t,e){var n=hb([t,e[0]],[t,e[1]],t0(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:jN([t-n/2,e[0]],[n,a],t0(r))}}};function t0(r){return r.dim==="x"?0:1}const tB=JN;var eB=function(r){B(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}(dt);const rB=eB;var Nr=wt(),nB=M;function vb(r,t,e){if(!lt.node){var n=t.getZr();Nr(n).records||(Nr(n).records={}),aB(n,t);var a=Nr(n).records[r]||(Nr(n).records[r]={});a.handler=e}}function aB(r,t){if(Nr(r).initialized)return;Nr(r).initialized=!0,e("click",ct(e0,"click")),e("mousemove",ct(e0,"mousemove")),e("globalout",oB);function e(n,a){r.on(n,function(i){var o=sB(t);nB(Nr(r).records,function(s){s&&a(s,i,o.dispatchAction)}),iB(o.pendings,t)})}}function iB(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function oB(r,t,e){r.handler("leave",null,e)}function e0(r,t,e,n){t.handler(r,e,n)}function sB(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Gv(r,t){if(!lt.node){var e=t.getZr(),n=(Nr(e).records||{})[r];n&&(Nr(e).records[r]=null)}}var lB=function(r){B(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,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";vb("axisPointer",a,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){Gv("axisPointer",n)},t.prototype.dispose=function(e,n){Gv("axisPointer",n)},t.type="axisPointer",t}(Ht);const uB=lB;function cb(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=la(i,r);if(o==null||o<0||V(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.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=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(z(l.dimensions,function(y){return i.mapDimension(y)}),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 r0=wt();function fB(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||K(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){sl(a)&&(a=cb({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=sl(a),u=i.axesInfo,f=s.axesInfo,h=n==="leave"||sl(a),v={},c={},d={list:[],map:{}},p={showPointer:ct(vB,c),showTooltip:ct(cB,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=yB(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&n0(S,T,p,!1,v)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&M(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,a0(S),a0(y)))),g[y.key]=b}})}),M(g,function(y,m){n0(f[m],y,p,!0,v)}),dB(c,f,v),pB(d,a,r,o),gB(f,o,e),v}}function n0(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=hB(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&F(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function hB(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return M(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,a=h,i.length=0),M(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function vB(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function cB(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function dB(r,t,e){var n=e.axesInfo=[];M(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function pB(r,t,e,n){if(sl(t)||!r.list.length){n({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function gB(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=r0(n)[a]||{},o=r0(n)[a]={};M(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&M(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];M(i,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!i[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 yB(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 a0(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 sl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function kd(r){Jo.registerAxisPointerClass("CartesianAxisPointer",tB),r.registerComponentModel(rB),r.registerComponentView(uB),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!V(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Tk(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fB)}function mB(r){ve(Rx),ve(kd)}var _B=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(n),v=i.get("type");if(v&&v!=="none"){var c=sb(i),d=wB[v](s,l,h,f);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=SB(n,a,i,l,p);lb(e,a,i,o,g)},t}(ob);function SB(r,t,e,n,a){var i=t.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=tr();vi(v,v,s),ni(v,v,[n.cx,n.cy]),u=oi([o,-a],v);var c=t.getModel("axisLabel").get("rotate")||0,d=ca.innerTextLayout(s,c*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var wB={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:hb(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Jm(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:Jm(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}};const xB=_B;var bB=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(dt);const TB=bB;var Od=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zt).models[0]},t.type="polarAxis",t}(dt);ce(Od,Ou);var CB=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Od),AB=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Od),Nd=function(r){B(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(Ur);Nd.prototype.dataToRadius=Ur.prototype.dataToCoord;Nd.prototype.radiusToData=Ur.prototype.coordToData;const MB=Nd;var DB=wt(),Bd=function(r){B(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Go(s==null?"":s+"",n.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),d=DB(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},t}(Ur);Bd.prototype.dataToAngle=Ur.prototype.dataToCoord;Bd.prototype.angleToData=Ur.prototype.coordToData;const LB=Bd;var db=["radius","angle"],IB=function(){function r(t){this.dimensions=db,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new MB,this._angleAxis=new LB,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,h=u*u+f*f,v=this.r,c=this.r0;return v!==c&&h-o<=v*v&&h+o>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=i0(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=i0(e);return a===this?this.pointToData(n):null},r}();function i0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const PB=IB;function RB(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=Y(n[0],a),r.cy=Y(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:V(l)||(l=[0,l]);var u=[Y(l[0],s),Y(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function EB(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();M(Fl(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(Fl(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Io(n.scale,n.model),Io(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function kB(r){return r.mainType==="angleAxis"}function o0(r,t){var e;if(r.type=t.get("type"),r.scale=pd(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),kB(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var OB={dimensions:db,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new PB(a+"");i.update=EB;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");o0(o,l),o0(s,u),RB(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",zt).models[0];if(!a)throw new Error('Polar "'+nr(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),e}};const NB=OB;var BB=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Hs(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Ws(r){var t=r.getRadiusAxis();return t.inverse?0:1}function s0(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var FB=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=z(a.getViewLabels(),function(f){f=tt(f);var h=a.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(v),f});s0(u),s0(s),M(BB,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&GB[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Jo),GB={axisLine:function(r,t,e,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Ws(e),h=f?0:1,v,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?v=new du[c]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Wo({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Ws(e)],u=z(n,function(f){return new Jt({shape:Hs(e,[l,l+s],f.coord)})});r.add(Be(u,{style:Z(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(!!a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Ws(e)],f=[],h=0;h<a.length;h++)for(var v=0;v<a[h].length;v++)f.push(new Jt({shape:Hs(e,[u,u+l],a[h][v].coord)}));r.add(Be(f,{style:Z(s.getModel("lineStyle").getLineStyle(),Z(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");M(o,function(h,v){var c=l,d=h.tickValue,p=i[Ws(e)],g=e.coordToPoint([p+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];X(w)&&w.textStyle&&(c=new Dt(w.textStyle,l,l.ecModel))}var x=new Tt({silent:ca.isLabelSilent(t),style:le(c,{x:g[0],y:g[1],fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=ca.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=h.rawLabel,it(x).eventData=b}},this)},splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<n.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Jt({shape:Hs(e,i,n[h].coord)}))}for(var h=0;h<f.length;h++)r.add(Be(f[h],{style:Z({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,a,i){if(!!a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new Jt({shape:Hs(e,i,a[u][f].coord)}));r.add(Be(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,a,i){if(!!n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,v=-n[0].coord*h,c=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new xe({shape:{cx:e.cx,cy:e.cy,r0:c,r:d,startAngle:v,endAngle:-m*h,clockwise:p},silent:!0})),v=-m*h}for(var g=0;g<f.length;g++)r.add(Be(f[g],{style:Z({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const zB=FB;var VB=["axisLine","axisTickLabel","axisName"],HB=["splitLine","splitArea","minorSplitLine"],WB=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=this._axisGroup,i=this._axisGroup=new ot;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),c=$B(s,e,h),d=new ca(e,c);M(VB,d.add,d),i.add(d.getGroup()),Oc(a,i,e),M(HB,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&UB[p](this.group,e,s,h,v,u,f)},this)}},t.type="radiusAxis",t}(Jo),UB={splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),h=Math.PI/180,v=f.getExtent(),c=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new du[c]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[p].coord,0),startAngle:-v[0]*h,endAngle:-v[1]*h,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Be(d[p],{style:Z({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,a,i,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new ma({shape:{cx:e.cx,cy:e.cy,r:o[f][h].coord}}));r.add(Be(u,{style:Z({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,a,i){if(!!i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=i[0].coord,v=1;v<i.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new xe({shape:{cx:e.cx,cy:e.cy,r0:h,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=i[v].coord}for(var v=0;v<f.length;v++)r.add(Be(f[v],{style:Z({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function $B(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const YB=WB;function pb(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function gb(r,t){return t.dim+r.model.componentIndex}function ZB(r,t,e){var n={},a=XB(bt(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=gb(s,l),f=pb(i),h=a[u][f],v=h.offset,c=h.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),w=_n(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),b=d.model,T=b.get("startValue"),C=d.dataToCoord(T||0),A=0,D=o.count();A<D;A++){var L=o.get(_,A),I=o.get(S,A),P=L>=0?"p":"n",R=C;w&&(n[f][I]||(n[f][I]={p:C,n:C}),R=n[f][I][P]);var E=void 0,O=void 0,k=void 0,N=void 0;if(d.dim==="radius"){var G=d.dataToCoord(L)-C,H=l.dataToCoord(I);Math.abs(G)<y&&(G=(G<0?-1:1)*y),E=R,O=R+G,k=H-v,N=k-c,w&&(n[f][I][P]=O)}else{var $=d.dataToCoord(L,x)-C,et=l.dataToCoord(I);Math.abs($)<m&&($=($<0?-1:1)*m),E=et+v,O=E+c,k=R,N=R+$,w&&(n[f][I][P]=N)}o.setItemLayout(A,{cx:p,cy:g,r0:E,r:O,startAngle:-k*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:k>=N})}}})}function XB(r){var t={};M(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=gb(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;t[l]=h;var c=pb(n);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=Y(n.get("barWidth"),f),p=Y(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!v[c].width&&(d=Math.min(h.remainedWidth,d),v[c].width=d,h.remainedWidth-=d),p&&(v[c].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var e={};return M(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=Y(n.categoryGap,o),l=Y(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),M(i,function(p,g){var y=p.maxWidth;y&&y<h&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var v=0,c;M(i,function(p,g){p.width||(p.width=h),c=p,v+=p.width*(1+l)}),c&&(v-=c.width*l);var d=-v/2;M(i,function(p,g){e[a][g]=e[a][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var qB={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},KB={splitNumber:5},jB=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Ht);function JB(r){ve(kd),Jo.registerAxisPointerClass("PolarAxisPointer",xB),r.registerCoordinateSystem("polar",NB),r.registerComponentModel(TB),r.registerComponentView(jB),Hl(r,"angle",CB,qB),Hl(r,"radius",AB,KB),r.registerComponentView(zB),r.registerComponentView(YB),r.registerLayout(ct(ZB,"bar"))}var l0=["x","y","radius","angle","single"],QB=["cartesian2d","polar","singleAxis"];function t5(r){var t=r.get("coordinateSystem");return ft(QB,t)>=0}function un(r){return J(r),r+"Axis"}function e5(r,t){var e=U(),n=[],a=U();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.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 yb(r){var t=r.ecModel,e={infoList:[],infoMap:U()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(un(n),a);if(!!i){var o=i.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(i)}}}),e}var gh=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}(),r5=function(r){B(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,a){var i=u0(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=u0(e);at(this.option,e,!0),at(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=U(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(l0,function(a){var i=this.getReferringComponents(un(a),SA);if(!!i.specified){n=!0;var o=new gh;M(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.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 gh;if(v.add(h.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",zt).models[0];c&&M(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",zt).models[0]&&v.add(d.componentIndex)})}}}i&&M(l0,function(u){if(!!i){var f=a.findComponents({mainType:un(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new gh;h.add(f[0].componentIndex),e.set(u,h),i=!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,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(un(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){J(e&&n!=null);var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(un(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},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 a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],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 J(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}(dt);function u0(r){var t={};return M(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const ko=r5;var n5=function(r){B(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}(ko);const a5=n5;var i5=function(r){B(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,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Ht);const Fd=i5;var o5=function(r){B(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}(Fd);const s5=o5;var Ha=M,f0=Ua,l5=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,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(t5(e)){var n=un(this._dimName),a=e.getReferringComponents(n,zt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return tt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Ha(["start","end"],function(v,c){var d=t[v],p=t[v+"Value"];i[c]==="percent"?(d==null&&(d=o[c]),p=a.parse(At(d,o,e))):(u=!0,p=p==null?e[c]:a.parse(p),d=At(p,e,o)),l[c]=p==null||isNaN(p)?e[c]:p,s[c]=d==null||isNaN(d)?o[c]:d}),f0(l),f0(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 y=g?"Span":"ValueSpan";Qo(0,v,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)c[m]=At(v[m],d,p,!0),g&&(c[m]=a.parse(c[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=u5(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,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Ha(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(!!f.length){if(i==="weakFilter"){var h=u.getStore(),v=z(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(v[y],c),_=!isNaN(m),S=m<o[0],w=m>o[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else Ha(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Ha(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;Ha(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=At(n[0]+o,n,[0,100],!0):i!=null&&(o=At(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var a=pc(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function u5(r,t,e){var n=[1/0,-1/0];Ha(e,function(o){nR(n,o.getData(),t)});var a=r.getAxisModel(),i=Fw(a.axis.scale,a,n).calculate();return[i.min,i.max]}const f5=l5;var h5={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(un(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new f5(a,i,s,r),e.push(o.__dzAxisProxy))});var n=U();return M(e,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const v5=h5;function c5(r){r.registerAction("dataZoom",function(t,e){var n=e5(e,t);M(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var h0=!1;function Gd(r){h0||(h0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,v5),c5(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function d5(r){r.registerComponentModel(a5),r.registerComponentView(s5),Gd(r)}var Je=function(){function r(){}return r}(),mb={};function Wi(r,t){mb[r]=t}function _b(r){return mb[r]}var p5=function(r){B(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;M(this.option.feature,function(n,a){var i=_b(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),at(n,i.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}(dt);const g5=p5;function y5(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=ir(n,i,a);ti(t.get("orient"),r,t.get("itemGap"),o.width,o.height),qD(r,n,i,a)}function Sb(r,t){var e=Xo(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new mt({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 m5=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){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=[];M(u,function(d,p){h.push(p)}),new Lo(this._featureNames||[],h).add(v).update(v).remove(ct(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new Dt(m,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(_5(g))S={onclick:_.option.onclick,featureName:g};else{var w=_b(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=pi("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Je;if(!g&&y){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}c(_,S,g),_.setIconStatus=function(b,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[b]=T,A[b]&&(T==="emphasis"?ua:fa)(A[b])},S instanceof Je&&S.render&&S.render(_,n,a,i)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Je&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;W(_)?(w={},w[g]=_):w=_,W(S)?(x={},x[g]=S):x=S;var b=d.iconPaths={};M(w,function(T,C){var A=$o(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var D=A.ensureState("emphasis");D.style=m.getItemStyle();var L=new Tt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:q1({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(L),ci({el:A,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var I=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",C])==="emphasis"?ua:fa)(A),o.add(A),A.on("click",K(p.onclick,p,n,a,C)),b[C]=A})}y5(o,e,a),o.add(Sb(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&p){var S=_.style||(_.style={}),w=Go(p,Tt.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>a.getHeight()&&(y.position="top",T=!0);var C=T?-5-w.height:s+10;x+w.width/2>a.getWidth()?(y.position=["100%",C],S.align="right"):x-w.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){M(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){M(this._features,function(a){a instanceof Je&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(Ht);function _5(r){return r.indexOf("my")===0}const S5=m5;var w5=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=lt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+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=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,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 x=a.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(b),T.document.title=i}},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}(Je);const x5=w5;var v0="__ec_magicType_stack__",b5=[["line","bar"],["stack"]],T5=function(r){B(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"),a={};return M(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},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,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!c0[a]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=c0[a](v,c,h,i);d&&(Z(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,zt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};M(b5,function(h){ft(h,a)>=0&&M(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=at({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Je),c0={line:function(r,t,e,n){if(r==="bar")return at({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 at({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 a=e.get("stack")===v0;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),at({id:t,stack:a?"":v0},n.get(["option","stack"])||{},!0)}};sr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const C5=T5;var Fu=new Array(60).join("-"),fi="	";function A5(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function M5(r){var t=[];return M(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(e.series,function(c){return c.name})),l=[a.model.getCategories()];M(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(fi)],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(fi))}t.push(u.join(`
`))}),t.join(`

`+Fu+`

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

`+Fu+`

`)}function L5(r){var t=A5(r);return{value:bt([M5(t.seriesGroupByCategoryAxis),D5(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+Fu+`

`),meta:t.meta}}function $l(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function I5(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(fi)>=0)return!0}var zv=new RegExp("["+fi+"]+","g");function P5(r){for(var t=r.split(/\n+/g),e=$l(t.shift()).split(zv),n=[],a=z(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=$l(t[i]).split(zv);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function R5(r){for(var t=r.split(/\n+/g),e=$l(t.shift()),n=[],a=0;a<t.length;a++){var i=$l(t[a]);if(!!i){var o=i.split(zv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function E5(r,t){var e=r.split(new RegExp(`
*`+Fu+`
*`,"g")),n={series:[]};return M(e,function(a,i){if(I5(a)){var o=P5(a),s=t[i],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=R5(a);n.series.push(o)}}),n}var k5=function(r){B(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 a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=L5(e);if(q(h)){var d=h(n.getOption());W(d)?u.innerHTML=d:cn(d)&&u.appendChild(d)}else{f.readOnly=i.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="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");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function x(){a.removeChild(o),w._dom=null}Nh(_,"click",x),Nh(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){Et("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var b;try{q(v)?b=v(u,n.getOption()):b=E5(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.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}(Je);function O5(r,t){return z(r,function(e,n){var a=t&&t[n];if(X(a)&&!V(a)){var i=X(e)&&!V(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=Z(e,a),o&&delete e.name,e}else return e})}sr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(F({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:O5(n.data,i)})}}),t.mergeOption(Z({series:e},r.newOption))});const N5=k5;var wb=M,xb=wt();function B5(r,t){var e=zd(r);wb(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function F5(r){var t=zd(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return wb(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function G5(r){xb(r).snapshots=null}function z5(r){return zd(r).length}function zd(r){var t=xb(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var V5=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){G5(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}(Je);sr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const H5=V5;var W5=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],U5=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=d0(e,t);M($5,function(o,s){(!n||!n.include||ft(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=yh[n.brushType](0,i,a);n.__rangeOffset={offset:m0[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&M(i.coordSyses,function(o){var s=yh[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var a=this.findTargetInfo(n,e);if(J(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),J(!a||a!==!0||n.range,"range must be specified in global brush."),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=yh[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?m0[n.brushType](i.values,o.offset,Y5(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:MN(a),isTargetByCursor:LN(a,t,n.coordSysModel),getLinearBrushOtherExtent:DN(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&ft(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=d0(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<p0.length;l++)if(p0[l](a,o))return o}return!0},r}();function Vv(r){return r[0]>r[1]&&r.reverse(),r}function d0(r,t){return ao(r,t,{includeMainTypes:W5})}var $5={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=U(),o={},s={};!e&&!n&&!a||(M(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(h,v){(ft(e,h.getAxis("x").model)>=0||ft(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:g0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:g0.geo})})}},p0=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],g0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Uo(r)),t}},yh={lineX:ct(y0,0),lineY:ct(y0,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Vv([a[0],i[0]]),Vv([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function y0(r,t,e,n){J(e.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=e.getAxis(["x","y"][r]),i=Vv(z([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var m0={lineX:ct(_0,0),lineY:ct(_0,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 z(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function _0(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function Y5(r,t){var e=S0(r),n=S0(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function S0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const bb=U5;var Hv=M,Z5=gA("toolbox-dataZoom_"),X5=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new AN(a.getZr()),this._brushController.on("brush",K(this._onBrush,this)).mount()),j5(e,n,this,i,a),K5(e,n)},t.prototype.onclick=function(e,n,a){q5[a].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 a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new bb(Vd(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,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)}}),B5(i,a),this._dispatchZoomAction(a);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,i),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=Qo(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[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=[];Hv(e,function(a,i){n.push(tt(a))}),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}(Je),q5={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(F5(this.ecModel))}};function Vd(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 K5(r,t){r.setIconStatus("back",z5(t)>1?"emphasis":"normal")}function j5(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new bb(Vd(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}aL("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=Vd(n),o=ao(r,i);Hv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Hv(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:Z5+u+h};v[f]=h,a.push(v)}return a});const J5=X5;function Q5(r){r.registerComponentModel(g5),r.registerComponentView(S5),Wi("saveAsImage",x5),Wi("magicType",C5),Wi("dataView",N5),Wi("dataZoom",J5),Wi("restore",H5),ve(d5)}var tF=function(r){B(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}(dt);const eF=tF;function Tb(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Cb(r){if(!!lt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var Ab=Cb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),rF=Cb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Mb(r,t){if(!r)return t;t=Uc(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function nF(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var aF=Mb(rF,"transition"),Hd=Mb(Ab,"transform"),iF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(lt.transform3dSupported?"will-change:transform;":"");function oF(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function sF(r,t,e){if(!W(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=ha(t);var i=oF(e),o=Math.max(Math.round(a)*1.5,6),s="",l=Hd+":",u;ft(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+a,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=t+" solid "+a+"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 lF(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=lt.transformSupported?","+Hd+n:",left"+n+",top"+n),aF+":"+a}function w0(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!lt.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=lt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+Hd+":"+o+";":[["top",0],["left",0],[Ab,o]]}function uF(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var a=rt(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),M(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function fF(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=GS(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&a&&n.push(lF(a,e)),i&&n.push("background-color:"+i),M(["width","color","radius"],function(c){var d="border-"+c,p=Uc(d),g=r.get(p);g!=null&&n.push(d+":"+g+(c==="color"?"":"px"))}),n.push(uF(f)),h!=null&&n.push("padding:"+Xo(h).join("px ")+"px"),n.join(";")+";"}function x0(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&MT(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var hF=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,lt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(W(i)?document.querySelector(i):cn(i)?i:q(i)&&i(t.getDom()));x0(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ee(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=nF(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=iF+fF(t,!this._firstShow,this._longHide)+w0(i[0],i[1],!0)+("border-color:"+ha(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(i)&&n.get("trigger")==="item"&&!Tb(n)&&(s=sF(n,a,i)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)cn(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(!!this.el){var n=this._styleCoord;if(x0(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=w0(n[0],n[1]);M(i,function(o){a[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",lt.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(K(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}();const vF=hF;var cF=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),T0(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,a,i){var o=this;X(t)&&pt("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:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:GS(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["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=b0(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 a=this._styleCoord;T0(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=rn(i.borderWidth||0),s=b0(i);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(K(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function rn(r){return Math.max(0,r)}function b0(r){var t=rn(r.shadowBlur||0),e=rn(r.shadowOffsetX||0),n=rn(r.shadowOffsetY||0);return{left:rn(t-e),right:rn(t+e),top:rn(t-n),bottom:rn(t+n)}}function T0(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const dF=cF;var pF=new mt({shape:{x:-1,y:-1,width:2,height:2}}),gF=function(r){B(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(!(lt.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=xA(a.get("renderMode"));this._tooltipContent=i==="richText"?new dF(n):new vF(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,n,a){if(!(lt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Au(this,"_updatePosition",50,"fixRate"):Ml(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");vb("itemTooltip",this._api,K(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||lt.node||!a.getDom())){var o=C0(i,a);this._ticket="";var s=i.dataByCoordSys,l=SF(i,n,a);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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=pF;f.x=i.x,f.y=i.y,f.update(),it(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var h=cb(i,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(C0(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.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=Ui([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=it(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ya(a,function(f){if(it(f).dataIndex!=null)return l=f,!0;if(it(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=K(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ui([n.tooltipOption],i),l=this._renderMode,u=[],f=mn("section",{blocks:[],noHeader:!0}),h=[],v=new Ef;M(e,function(m){M(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=ub(w,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),b=mn("section",{header:x,noHeader:!Ge(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,D=C.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=gd(S.axis,{value:w}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",ha(D.color),l);var L=Rg(C.formatTooltip(A,!0,null)),I=L.frag;if(I){var P=Ui([C],i).get("valueFormatter");b.blocks.push(P?F({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=Fg(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`

`:"<br/>",y=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,y,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=it(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,p=Ui([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Ef;y.marker=m.makeTooltipMarker("item",ha(y.color),c);var _=Rg(u.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?Fg(w?F({valueFormatter:w},x):x,m,c,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=it(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=tt(l),l.content=se(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=e.positionDefault,d=Ui(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",y=new Ef;this._showOrMove(d,function(){var m=tt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,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],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(W(v)){var g=e.ecModel.get("useUTC"),y=V(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Zo(y.axisValue,c,g)),c=$c(c,a,!0)}else if(q(v)){var _=K(function(S,w){S===this._ticket&&(h.setContent(w,f,e,p,l),this._updatePosition(e,l,o,s,h,a,u))},this);this._ticket=i,c=v(a,i,_)}else c=v;h.setContent(c,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||V(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,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),q(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),V(n))a=Y(n[0],u),i=Y(n[1],f);else if(X(n)){var p=n;p.width=h[0],p.height=h[1];var g=ir(p,{width:u,height:f});a=g.x,i=g.y,v=null,c=null}else if(W(n)&&l){var y=_F(n,d,h,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=yF(a,i,o,u,f,v?null:20,c?null:20);a=y[0],i=y[1]}if(v&&(a-=A0(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=A0(c)?h[1]/2:c==="bottom"?h[1]:0),Tb(e)){var y=mF(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&M(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&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&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){lt.node||!n.getDom()||(Ml(this,"_updatePosition"),this._tooltipContent.dispose(),Gv("itemTooltip",n))},t.type="tooltip",t}(Ht);function Ui(r,t,e){var n=t.ecModel,a;e?(a=new Dt(e,n,n),a=new Dt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Dt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new Dt(o,a,n)))}return a}function C0(r,t){return r.dispatchAction||K(t.dispatchAction,t)}function yF(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function mF(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function _F(r,t,e,n){var a=e[0],i=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-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function A0(r){return r==="center"||r==="middle"}function SF(r,t,e){var n=Sc(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Ho(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const wF=gF;function xF(r){ve(kd),r.registerComponentModel(eF),r.registerComponentView(wF),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qt)}var bF=function(r){B(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}(dt),TF=function(r){B(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,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=rt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Tt({style:le(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new Tt({style:le(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(){dg(d,"_"+e.get("target"))}),p&&c.on("click",function(){dg(p,"_"+e.get("subtarget"))}),it(f).eventData=it(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=ir(m,{width:a.getWidth(),height:a.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"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var w=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new mt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(Ht);function CF(r){r.registerComponentModel(bF),r.registerComponentView(TF)}var AF=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"])}},MF=function(r){B(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,a){this.mergeDefaultAndTheme(e,a),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,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),V(n)&&M(n,function(i,o){W(i)&&(i={type:i}),n[o]=at(i,AF(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&_c(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=U(),s=z(i,function(l){return(W(l)||gt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Dt(l,this,this.ecModel))},this);this._data=bt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;M(i,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;M(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;M(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&ft(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}(dt);const Wv=MF;var Ba=ct,Uv=M,Us=ot,DF=function(r){B(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 Us),this.group.add(this._selectorGroup=new Us),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=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,a,l,s,u);var f=e.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},v=e.get("padding"),c=ir(f,h,v),d=this.layoutInner(e,o,c,i,l,u),p=ir(Z({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=Sb(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,a,i,o,s,l){var u=this.getContentGroup(),f=U(),h=n.get("selectedMode"),v=[];a.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Uv(n.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new Us;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(p)[0];if(!f.get(p)){if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,c,n,e,_,w,S,h,i);x.on("click",Ba(M0,p,null,i,v)).on("mouseover",Ba($v,y.name,null,i,v)).on("mouseout",Ba(Yv,y.name,null,i,v)),a.ssr&&x.eachChild(function(b){var T=it(b);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else a.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),A=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=Ae(A.fill);L&&L[3]===0&&(L[3]=.2,A=F(F({},A),{fill:wn(L,"rgba")}));var I=this._createItem(b,p,d,c,n,e,{},A,D,h,i);I.on("click",Ba(M0,null,p,i,v)).on("mouseover",Ba($v,null,p,i,v)).on("mouseout",Ba(Yv,null,p,i,v)),a.ssr&&I.eachChild(function(P){var R=it(P);R.seriesIndex=b.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),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,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();Uv(e,function(u){var f=u.type,h=new Tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);xn(h,{normal:v,emphasis:c},{defaultText:u.title}),wo(h)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=LF(f,i,l,u,c,g,v),w=new Us,x=i.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(IF({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),D=n;W(A)&&A?D=A.replace("{name}",n!=null?n:""):q(A)&&(D=A(n));var L=g?x.getTextColor():i.get("inactiveColor");w.add(new Tt({style:le(x,{text:D,x:T,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new mt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&ci({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(I),w.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(w),wo(w),w.__legendDataIndex=a,w},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ti(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ti("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",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/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],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+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}(Ht);function LF(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Uv(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}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:Rl(h,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="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),!i){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 IF(r){var t=r.icon||"roundRect",e=he(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 M0(r,t,e,n){Yv(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),$v(r,t,e,n)}function Db(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;n<a&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function $v(r,t,e,n){Db(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Yv(r,t,e,n){Db(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const Lb=DF;function PF(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 $i(r,t,e){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),D0(s,a),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(a,function(l,u){s[l?"select":"unSelect"](u)}),D0(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function D0(r,t){var e=t||{};return M(r.getData(),function(n){var a=n.get("name");if(!(a===`
`||a==="")){var i=r.isSelected(a);re(e,a)?e[a]=e[a]&&i:e[a]=i}}),e}function RF(r){r.registerAction("legendToggleSelect","legendselectchanged",ct($i,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ct($i,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ct($i,"inverseSelect")),r.registerAction("legendSelect","legendselected",ct($i,"select")),r.registerAction("legendUnSelect","legendunselected",ct($i,"unSelect"))}function Ib(r){r.registerComponentModel(Wv),r.registerComponentView(Lb),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,PF),r.registerSubTypeDefaulter("legend",function(){return"plain"}),RF(r)}var EF=function(r){B(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,a){var i=qo(e);r.prototype.init.call(this,e,n,a),L0(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),L0(this,this.option,e)},t.type="legend.scroll",t.defaultOption=gu(Wv.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}(Wv);function L0(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,si(t,e,{type:"box",ignoreSize:!!a})}const kF=EF;var I0=ot,mh=["width","height"],_h=["x","y"],OF=function(r){B(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 I0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new I0)},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,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=V(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 y=p+"DataIndex",m=$o(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:K(u._pageGo,u,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=mh[u],h=_h[u],v=mh[1-u],c=_h[1-u];o&&ti("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=tt(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(e,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[c]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[c]=Math.min(m[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ti(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),ti("horizontal",v,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>a[o],g=[-c.x,-c.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=rt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?a[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new mt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Ct(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=a.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",W(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),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=mh[o],l=_h[o],u=this._findTargetItemIndex(n),f=a.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[a.x,a.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,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var b=x.getBoundingRect(),T=b[l]+x[l];return{s:T,e:T+b[s],i:x.__legendDataIndex}}}function w(x,b){return x.e>=b&&x.s<=b+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n!=null?n:i},t.type="legend.scroll",t}(Lb);const NF=OF;function BF(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function FF(r){ve(Ib),r.registerComponentModel(kF),r.registerComponentView(NF),BF(r)}function GF(r){ve(Ib),ve(FF)}var zF=function(r){B(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=gu(ko.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ko);const VF=zF;var Wd=wt();function HF(r,t,e){Wd(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function WF(r,t){for(var e=Wd(r).coordSysRecordMap,n=e.keys(),a=0;a<n.length;a++){var i=n[a],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Pb(e,o))}}}function Pb(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function UF(r,t){var e={model:t,containsPoint:ct(YF,t),dispatchAction:ct($F,r),dataZoomInfoMap:null,controller:null},n=e.controller=new kx(r.getZr());return M(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(!!i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!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 $F(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function YF(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function ZF(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function XF(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=Wd(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=U());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=yb(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,UF(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=U());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Pb(a,i);return}var f=ZF(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Au(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var qF=function(r){B(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,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),HF(a,e,{pan:K(Sh.pan,this),zoom:K(Sh.zoom,this),scrollMove:K(Sh.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){WF(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Fd),Sh={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(!!o){var s=wh[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*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Qo(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:P0(function(r,t,e,n,a,i){var o=wh[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:P0(function(r,t,e,n,a,i){var o=wh[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function P0(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(!!s){var l=r(o,s,t,e,n,a);if(Qo(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var wh={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.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=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const KF=qF;function jF(r){Gd(r),r.registerComponentModel(VF),r.registerComponentView(KF),XF(r)}var JF=function(r){B(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=gu(ko.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ko);const QF=JF;var Yi=mt,R0=7,tG=1,xh=30,eG=7,Zi="horizontal",E0="vertical",rG=5,nG=["line","bar","candlestick","scatter"],aG={easing:"cubicOut",duration:100,delay:0},iG=function(r){B(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=K(this._onBrush,this),this._onBrushEnd=K(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Au(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ml(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 ot;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?eG:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Zi?{right:s.width-o.x-o.width,top:s.height-xh-R0-i,width:o.width,height:xh}:{right:R0,top:o.y,width:xh,height:o.height},u=qo(e.option);M(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ir(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===E0&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Zi&&!o?{scaleY:l?1:-1,scaleX:1}:a===Zi&&o?{scaleY:l?1:-1,scaleX:-1}:a===E0&&!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,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Yi({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Yi({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:K(this._onClickPanel,this)}),s=this.api.getZr();i?(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)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[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=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var D=C==null||isNaN(C)||C==="",L=D?0:At(C,h,c,!0);D&&!S&&A?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,L]),g.push([m,L]),m+=y,S=D}),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 x(C){var A=w.getModel(C?"selectedDataBackground":"dataBackground"),D=new ot,L=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new We({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(I),D}for(var b=0;b<3;b++){var T=x(b===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 a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(n!==!0&&ft(nG,u.get("type"))<0)){var f=i.getComponent(un(o),s).axis,h=oG(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),a={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=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 Yi({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Yi({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:tG,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!Ll[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,Ve("handleIcon now needs 'path://' prefix when using a path string"));var w=he(S,-1,0,2,2,null,!0);w.attr({cursor:k0(this._orient),draggable:!0,drift:K(this._onDragMove,this,_),ondragend:K(this._onDragEnd,this),onmouseover:K(this._showDataInfo,this,!0),onmouseout:K(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=Y(b,this._size[1]),this._handleWidth=x.width/x.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(),wo(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(a[_]=w);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},D=A.show||!1;e.add(i[_]=new Tt({silent:!0,invisible:!D,style:le(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var d=Y(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new mt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=he(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));c=n.moveZone=new mt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:k0(this._orient),drift:K(this._onDragMove,this,"all"),ondragstart:K(this._showDataInfo,this,!0),ondragend:K(this._onDragEnd,this),onmouseover:K(this._showDataInfo,this,!0),onmouseout:K(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[At(e[0],[0,100],n,!0),At(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Qo(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?At(s.minSpan,l,o,!0):null,s.maxSpan!=null?At(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ua([At(i[0],o,l,!0),At(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=Ua(a.slice()),o=this._size;M([0,1],function(c){var d=n.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[c]+(c?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[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,i[0],i[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new mt,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,a=this._displayables,i=a.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=Ua(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(d){var p=Uo(a.handles[d].parent,this.group),g=kc(d===0?"right":"left",p),y=this._handleWidth/2+rG,m=oi([v[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Zi?"middle":g,align:o===Zi?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.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 q(i)?i(e,s):W(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,n,a,i){this._dragging=!0,ri(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=oi([n,a],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,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new j(n,a),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 a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ua([At(a.x,o,s,!0),At(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ri(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Yi({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.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?aG:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=yb(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Fd);function oG(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function k0(r){return r==="vertical"?"ns-resize":"ew-resize"}const sG=iG;function lG(r){r.registerComponentModel(QF),r.registerComponentView(sG),Gd(r)}function uG(r){ve(jF),ve(lG)}var O0={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fG=function(){function r(t){var e=this._condVal=W(t)?new RegExp(t):nc(t)?t:null;if(e==null){var n="";n=Se("Illegal regexp",t,"in"),pt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):gt(e)?this._condVal.test(t+""):!1},r}(),hG=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),vG=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),cG=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),dG=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),pG=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r}();function Ud(r,t){if(r===!0||r===!1){var e=new hG;return e.value=r,e}var n="";return Rb(r)||(n=Se("Illegal config. Expect a plain object but actually",r),pt(n)),r.and?N0("and",r,t):r.or?N0("or",r,t):r.not?gG(r,t):yG(r,t)}function N0(r,t,e){var n=t[r],a="";a=Se('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",t),V(n)||pt(a),n.length||pt(a);var i=r==="and"?new vG:new cG;return i.children=z(n,function(o){return Ud(o,e)}),i.children.length||pt(a),i}function gG(r,t){var e=r.not,n="";n=Se('"not" condition should only be `not: {}`.',"Illegal condition:",r),Rb(e)||pt(n);var a=new dG;return a.child=Ud(e,t),a.child||pt(n),a}function yG(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=St(r),o=r.parser,s=o?AS(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=re(O0,u)?O0[u]:u,h=r[u],v=s?s(h):h,c=$L(f,v)||f==="reg"&&new fG(v);c||(e=Se('Illegal relational operation: "'+u+'" in condition:',r),pt(e)),a.push(c)}}a.length||(e=Se("Relational condition must have at least one operator.","Illegal condition:",r),pt(e));var d=new pG;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function Rb(r){return X(r)&&!te(r)}var mG=function(){function r(t,e){this._cond=Ud(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function _G(r,t){return new mG(r,t)}var SG={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=_G(r.config,{valueGetterAttrMap:U({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;re(s,"dimension")||(l=Se('Relation condition must has prop "dimension" specified.',"Illegal condition:",s),pt(l));var f=t.getDimensionInfo(u);return f||(l=Se("Can not find dimension info via: "+u+`.
`,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
`,"Illegal condition:",s,`.
`),pt(l)),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},Zv="";Zv=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var wG={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=kt(e);a.length||(n="Empty `config` in sort transform.",pt(n));var i=[];M(a,function(f){var h=f.dimension,v=f.order,c=f.parser,d=f.incomparable;if(h==null&&(n='Sort transform config must has "dimension" specified.'+Zv,pt(n)),v!=="asc"&&v!=="desc"&&(n='Sort transform config must has "order" specified.'+Zv,pt(n)),d&&d!=="min"&&d!=="max"){var p="";p='incomparable must be "min" or "max" rather than "'+d+'".',pt(p)}if(v!=="asc"&&v!=="desc"){var g="";g='order must be "asc" or "desc" rather than "'+v+'".',pt(g)}var y=t.getDimensionInfo(h);y||(n=Se("Can not find dimension info via: "+h+`.
`,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
`,"Illegal config:",f,`.
`),pt(n));var m=c?AS(c):null;c&&!m&&(n=Se("Invalid parser name "+c+`.
`,"Illegal config:",f,`.
`),pt(n)),i.push({dimIdx:y.index,parser:m,comparator:new DS(v,d)})});var o=t.sourceFormat;o!==ue&&o!==Ye&&(n='sourceFormat "'+o+'" is not supported yet',pt(n));for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,h){for(var v=0;v<i.length;v++){var c=i[v],d=t.retrieveValueFromItem(f,c.dimIdx),p=t.retrieveValueFromItem(h,c.dimIdx);c.parser&&(d=c.parser(d),p=c.parser(p));var g=c.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function xG(r){r.registerTransform(SG),r.registerTransform(wG)}var bG=function(r){B(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,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new RS(this),Ng(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Ng(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:wr},t}(dt),TG=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Ht);function CG(r){r.registerComponentModel(bG),r.registerComponentView(TG)}var cr=zr.CMD;function Za(r,t){return Math.abs(r-t)<1e-5}function Xv(r){var t=r.data,e=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,R,E){Za(I,R)&&Za(P,E)||a.push(I,P,R,E,R,E)}function h(I,P,R,E,O,k){var N=Math.abs(P-I),G=Math.tan(N/4)*4/3,H=P<I?-1:1,$=Math.cos(I),et=Math.sin(I),st=Math.cos(P),ht=Math.sin(P),Bt=$*O+R,de=et*k+E,Zt=st*O+R,Ot=ht*k+E,Mt=O*G*H,Q=k*G*H;a.push(Bt-Mt*et,de+Q*$,Zt+Mt*ht,Ot-Q*st,Zt,Ot)}for(var v,c,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===cr.L||y===cr.C||y===cr.Q)&&(a=[s,l])),y){case cr.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case cr.L:v=t[g++],c=t[g++],f(i,o,v,c),i=v,o=c;break;case cr.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case cr.Q:v=t[g++],c=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(v-i),o+2/3*(c-o),d+2/3*(v-d),p+2/3*(c-p),d,p),i=d,o=p;break;case cr.A:var _=t[g++],S=t[g++],w=t[g++],x=t[g++],b=t[g++],T=t[g++]+b;g+=1;var C=!t[g++];v=Math.cos(b)*w+_,c=Math.sin(b)*x+S,m?(s=v,l=c,u(s,l)):f(i,o,v,c),i=Math.cos(T)*w+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,D=b;C?D>T:D<T;D+=A){var L=C?Math.max(D+A,T):Math.min(D+A,T);h(D,L,_,S,w,x)}break;case cr.R:s=i=t[g++],l=o=t[g++],v=s+t[g++],c=l+t[g++],u(v,l),f(v,l,v,c),f(v,c,s,c),f(s,c,s,l),f(s,l,v,l);break;case cr.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function qv(r,t,e,n,a,i,o,s,l,u){if(Za(r,e)&&Za(t,n)&&Za(a,o)&&Za(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-t,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=e-r,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<h&&S<h){l.push(o,s);return}var w=v*p+c*g,x=-v*y-c*m,b=_-w*w,T=S-x*x;if(b<h&&w>=0&&T<h&&x>=0){l.push(o,s);return}var C=[],A=[];dn(r,e,a,o,.5,C),dn(t,n,i,s,.5,A),qv(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),qv(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function AG(r,t){var e=Xv(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],v=i[u++],c=i[u++],d=i[u++],p=i[u++];qv(s,l,f,h,v,c,d,p,o,t),s=d,l=p}n.push(o)}return n}function Eb(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=e-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function B0(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),h=Eb([l,u],f?0:1,t),v=(f?s:u)/h.length,c=0;c<h.length;c++)for(var d=(f?u:s)/h[c],p=0;p<h[c];p++){var g={};f?(g.startAngle=i+v*c,g.endAngle=i+v*(c+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+v*c,g.r=n+v*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function MG(r,t,e){for(var n=r.width,a=r.height,i=n>a,o=Eb([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var c=r[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*h,p[f]=d*c,p[s]=h,p[l]=c,p.x+=r.x,p.y+=r.y,e.push(p)}}function F0(r,t,e,n){return r*n-e*t}function DG(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,h=s-i,v=F0(f,h,l,u);if(Math.abs(v)<1e-6)return null;var c=r-a,d=t-i,p=F0(c,d,f,h)/v;return p<0||p>1?null:new j(p*l+r,p*u+t)}function LG(r,t,e){var n=new j;j.sub(n,e,t),n.normalize();var a=new j;j.sub(a,r,t);var i=a.dot(n);return i}function Fa(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function IG(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=DG(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&a.push({projPt:LG(l,t,e),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var v=[u.pt.x,u.pt.y],c=[f.pt.x,f.pt.y],d=[v],p=[c],i=u.idx+1;i<=f.idx;i++)Fa(d,r[i].slice());Fa(d,c),Fa(d,v);for(var i=f.idx+1;i<=u.idx+n;i++)Fa(p,r[i%n].slice());return Fa(p,v),Fa(p,c),[{points:d},{points:p}]}function G0(r){var t=r.points,e=[],n=[];n1(t,e,n);var a=new nt(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new j,f=new j;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),IG(t,u,f)}function Yl(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);Yl(r,i[0],a,n),Yl(r,i[1],e-a,n)}return n}function PG(r,t){for(var e=[],n=0;n<t;n++)e.push(Dc(r));return e}function RG(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function EG(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function kG(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":MG(n,t,e),a=mt;break;case"sector":B0(n,t,e),a=xe;break;case"circle":B0({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=xe;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=z(AG(r.getUpdatedPathProxy(),o),function(y){return EG(y)}),l=s.length;if(l===0)Yl(G0,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,h=z(s,function(y){var m=[],_=[];n1(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var c=h[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(c.area/f*t);d<0||(Yl(G0,{points:c.poly},d,e),v-=d)}}a=xr;break}if(!a)return PG(r,t);for(var p=[],u=0;u<e.length;u++){var g=new a;g.setShape(e[u]),RG(r,g),p.push(g)}return p}function OG(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],v=l,c=2;c<s;){var d=o[c-2],p=o[c-1],g=o[c++],y=o[c++],m=o[c++],_=o[c++],S=o[c++],w=o[c++];if(v<=0){h.push(g,y,m,_,S,w);continue}for(var x=Math.min(v,f-1)+1,b=1;b<=x;b++){var T=b/x;dn(d,g,m,S,T,a),dn(p,y,_,w,T,i),d=a[3],p=i[3],h.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}v-=x-1}return o===r?[h,t]:[r,h]}function z0(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function NG(r,t){for(var e,n,a,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,h=void 0;l?u?(e=OG(l,u),f=e[0],h=e[1],n=f,a=h):(h=z0(a||l,l),f=l):(f=z0(n||u,u),h=u),i.push(f),o.push(h)}return[i,o]}function V0(r){for(var t=0,e=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],h=s*f-u*l;t+=h,e+=(s+u)*h,n+=(l+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function BG(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,h=0,v=0;v<s;v+=2){var c=v===0?f:(f+v-2)%l+2,d=r[c]-e[0],p=r[c+1]-e[1],g=t[v]-n[0],y=t[v+1]-n[1],m=g-d,_=y-p;h+=m*m+_*_}h<i&&(i=h,o=u)}return o}function FG(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function GG(r,t,e,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=V0(s),f=V0(l);i==null&&(i=u[2]<0!=f[2]<0);var h=[],v=[],c=0,d=1/0,p=[],g=s.length;i&&(s=FG(s));for(var y=BG(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],e>0)for(var w=n/e,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=h[_],D=h[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*T-I*b,R=L*b+I*T;p[_]=P,p[_+1]=R;var E=P-A,O=R-D;C+=E*E+O*O}if(C<d){d=C,c=x;for(var k=0;k<p.length;k++)v[k]=p[k]}}else for(var N=0;N<g;N+=2)v[N]=l[N]-f[0],v[N+1]=l[N+1]-f[1];a.push({from:h,to:v,fromCp:u,toCp:f,rotation:-c})}return a}function Zl(r){return r.__isCombineMorphing}var kb="__mOriginal_";function Xl(r,t,e){var n=kb+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function vo(r,t){var e=kb+t;r[e]&&(r[t]=r[e],r[e]=null)}function H0(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function Ob(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=NG(Xv(e),Xv(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&H0(i,s),l&&H0(o,l),Xl(t,"updateTransform",{replace:u}),t.transform=null;var f=GG(i,o,10,Math.PI),h=[];Xl(t,"buildPath",{replace:function(v){for(var c=t.__morphT,d=1-c,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*c,w=y.fromCp,x=y.toCp,b=Math.sin(S),T=Math.cos(S);ro(p,w,x,c);for(var C=0;C<m.length;C+=2){var A=m[C],D=m[C+1],L=_[C],I=_[C+1],P=A*d+L*c,R=D*d+I*c;h[C]=P*T-R*b+p[0],h[C+1]=P*b+R*T+p[1]}var E=h[0],O=h[1];v.moveTo(E,O);for(var C=2;C<m.length;){var L=h[C++],I=h[C++],k=h[C++],N=h[C++],G=h[C++],H=h[C++];E===L&&O===I&&k===G&&N===H?v.lineTo(G,H):v.bezierCurveTo(L,I,k,N,G,H),E=G,O=H}}}})}function $d(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;Ob(r,t),t.__morphT=0;function i(){vo(t,"buildPath"),vo(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Z({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},e)),t}function zG(r,t,e,n,a,i){var o=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function ql(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),a=Math.max(h,a),[f,h]}),o=z(i,function(s,l){return{cp:s,z:zG(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Nb(r){return kG(r.path,r.count)}function Kv(){return{fromIndividuals:[],toIndividuals:[],count:0}}function VG(r,t,e){var n=[];function a(w){for(var x=0;x<w.length;x++){var b=w[x];Zl(b)?a(b.childrenRef()):b instanceof ut&&n.push(b)}}a(r);var i=n.length;if(!i)return Kv();var o=e.dividePath||Nb,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Kv();n=ql(n),s=ql(s);for(var l=e.done,u=e.during,f=e.individualDelay,h=new Er,v=0;v<i;v++){var c=n[v],d=s[v];d.parent=t,d.copyTransform(h),f||Ob(c,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(w){for(var x=0;x<s.length;x++)s[x].addSelfToZr(w)}Xl(t,"addSelfToZr",{after:function(w){p(w)}}),Xl(t,"removeSelfFromZr",{after:function(w){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(w)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,vo(t,"addSelfToZr"),vo(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?Z({delay:(e.delay||0)+f(v,y,n[v],s[v]),done:_},e):e;$d(n[v],s[v],S)}else t.__morphT=0,t.animateTo({__morphT:1},Z({during:function(w){for(var x=0;x<y;x++){var b=s[x];b.__morphT=t.__morphT,b.dirtyShape()}u&&u(w)},done:function(){g();for(var w=0;w<r.length;w++)vo(r[w],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function HG(r,t,e){var n=t.length,a=[],i=e.dividePath||Nb;function o(c){for(var d=0;d<c.length;d++){var p=c[d];Zl(p)?o(p.childrenRef()):p instanceof ut&&a.push(p)}}if(Zl(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Dc(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Kv()}a=ql(a),t=ql(t);for(var h=e.individualDelay,u=0;u<n;u++){var v=h?Z({delay:(e.delay||0)+h(u,n,a[u],t[u])},e):e;$d(a[u],t[u],v)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function W0(r){return V(r[0])}function U0(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var WG={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Dc(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function bh(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=vu("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;W0(r)&&(u=r,f=t),W0(t)&&(u=t,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,C=m?b:x[0];if(Zl(T))h({many:[T],one:C},!0,_,S,!0);else{var A=s?Z({delay:s(_,S)},l):l;$d(T,C,A),i(T,C,T,C,A)}}else for(var D=Z({dividePath:WG[e],individualDelay:s&&function(O,k,N,G){return s(O+_,S)}},l),L=m?VG(x,b,D):HG(b,x,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var A=s?Z({delay:s(E,R)},l):l;i(I[E],P[E],m?x[E]:y.one,m?y.one:x[E],A)}}for(var v=u?u===r:r.length>t.length,c=u?U0(f,u):U0(v?t:r,[v?r:t]),d=0,p=0;p<c.length;p++)d+=c[p].many.length;for(var g=0,p=0;p<c.length;p++)h(c[p],v,g,d),g+=c[p].many.length}function Xn(r){if(!r)return[];if(V(r)){for(var t=[],e=0;e<r.length;e++)t.push(Xn(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof ut&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var Bb=1e4,UG=0,$0=1,Y0=2,$G=wt();function YG(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var a=r.getDimensionInfo(e[n]);if(a&&a.otherDims[t]===0)return e[n]}}function ZG(r,t,e){var n=r.getDimensionInfo(e),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,t);return a&&a.categories[i]||i+""}}function Z0(r,t,e,n){var a=n?"itemChildGroupId":"itemGroupId",i=YG(r,a);if(i){var o=ZG(r,t,i);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function X0(r){var t=[];return M(r,function(e){var n=e.data,a=e.dataGroupId;if(n.count()>Bb){Et("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:Z0(n,o,a,!1),childGroupId:Z0(n,o,a,!0),divide:e.divide,dataIndex:o})}),t}function Th(r,t,e){r.traverse(function(n){n instanceof ut&&Pt(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Ch(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Ga(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function XG(r,t,e){var n=vu("update",e,t);n&&r.traverse(function(a){if(a instanceof gn){var i=yD(a);i&&a.animateFrom({style:i},n)}})}function qG(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Fb(r,t,e){var n=X0(r),a=X0(t);function i(_,S,w,x,b){(w||_)&&S.animateFrom({style:w&&w!==_?F(F({},w.style),_.style):_.style},b)}var o=!1,s=UG,l=U(),u=U();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var h=a[f].groupId;if(u.get(h)){s=$0;break}var v=a[f].childGroupId;if(v&&l.get(v)){s=Y0;break}}function c(_,S){return function(w){var x=w.data,b=w.dataIndex;return S?x.getId(b):_?s===$0?w.childGroupId:w.groupId:s===Y0?w.childGroupId:w.groupId}}var d=qG(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var w=n[S],x=a[_],b=x.data.hostModel,T=w.data.getItemGraphicEl(w.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&XG(C,x.dataIndex,b);return}T&&p[T.id]||C&&(Ga(C),T?(Ga(T),Ch(T),o=!0,bh(Xn(T),Xn(C),x.divide,b,_,i)):Th(C,b,_))}new Lo(n,a,c(!0,d),c(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var w=a[_],x=w.data,b=x.hostModel,T=x.getItemGraphicEl(w.dataIndex),C=bt(z(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&(Ga(T),C.length?(M(C,function(A){Ga(A),Ch(A)}),o=!0,bh(Xn(C),Xn(T),w.divide,b,_,i)):Th(T,b,w.dataIndex))}).updateOneToMany(function(_,S){var w=n[S],x=w.data.getItemGraphicEl(w.dataIndex);if(!(x&&p[x.id])){var b=bt(z(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==x}),T=a[_[0]].data.hostModel;b.length&&(M(b,function(C){return Ga(C)}),x?(Ga(x),Ch(x),o=!0,bh(Xn(x),Xn(b),w.divide,T,_[0],i)):M(b,function(C){return Th(C,T,_[0])}))}}).updateManyToMany(function(_,S){new Lo(S,_,function(w){return n[w].data.getId(n[w].dataIndex)},function(w){return a[w].data.getId(a[w].dataIndex)}).update(function(w,x){m(_[w],S[x])}).execute()}).execute(),o&&M(t,function(_){var S=_.data,w=S.hostModel,x=w&&e.getViewOfSeriesModel(w),b=vu("update",w,0);x&&w.isAnimationEnabled()&&b&&b.duration>0&&x.group.traverse(function(T){T instanceof ut&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function q0(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function K0(r){return V(r)?r.sort().join(","):r}function an(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function KG(r,t){var e=U(),n=U(),a=U();M(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=q0(o),h=K0(f);n.set(h,{dataGroupId:l,data:u}),V(f)&&M(f,function(v){a.set(v,{key:h,dataGroupId:l,data:u})})});function i(o){e.get(o)&&Et("Duplicated seriesKey in universalTransition "+o)}return M(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=q0(o),f=K0(u),h=n.get(f);if(h)i(f),e.set(f,{oldSeries:[{dataGroupId:h.dataGroupId,divide:an(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:an(l),data:l}]});else if(V(u)){i(f);var v=[];M(u,function(p){var g=n.get(p);g.data&&v.push({dataGroupId:g.dataGroupId,divide:an(g.data),data:g.data})}),v.length&&e.set(f,{oldSeries:v,newSeries:[{dataGroupId:s,data:l,divide:an(l)}]})}else{var c=a.get(u);if(c){var d=e.get(c.key);d||(d={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:an(c.data)}],newSeries:[]},e.set(c.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:an(l)})}}}}),e}function j0(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function jG(r,t,e,n){var a=[],i=[];M(kt(r.from),function(o){var s=j0(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:an(t.oldData[s]),groupIdDim:o.dimension})}),M(kt(r.to),function(o){var s=j0(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:an(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&Fb(a,i,n)}function JG(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(kt(n.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][al]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=$G(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(kt(i),function(c){jG(c,a,n,e)});else{var o=KG(a,n);M(o.keys(),function(c){var d=o.get(c);Fb(d.oldSeries,d.newSeries,e)})}M(n.updatedSeries,function(c){c[al]&&(c[al]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<Bb&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(v))}})}function J0(r,t,e){var n=Fr.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*e,n.height=i*e,n}var QG=function(r){xt(t,r);function t(e,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||cl,typeof e=="string"?o=J0(e,n,a):X(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(ic(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}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=J0("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,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new nt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new nt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,x=0,b=0;b<o.length;++b){var T=o[b];if(T.intersect(m)){var C=new nt(0,0,0,0);C.copy(T),C.union(m),o[b]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var A=m.width*m.height,D=T.width*T.height,L=u.width*u.height,I=L-A-D;I<w&&(w=I,x=b)}}if(l&&(o[x].union(m),S=!0),!S){var _=new nt(0,0,0,0);_.copy(m),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(a,i,!0,!0),d=v.__isRendered&&(v.__dirty&Ce||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&Ce||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v&&v.shouldBePainted(a,i,!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 y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),i.width=e*a,i.height=n*a,s&&(s.width=e*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.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(i,0,0,s/h,l/h));var c=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Oo(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||mv(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else s_(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=_v(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&M(a,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(He);const Ah=QG;var Q0=1e5,Yn=314159,$s=.01,tz=.001;function ez(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function rz(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 nz=function(){function r(t,e,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||cl,this._singleCanvas=i,this.root=t;var o=t.style;o&&(ic(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){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 Ah(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Yn]=c,c.zlevel=Yn,s.push(Yn),this._domRoot=t}else{this._width=Ts(t,0,n),this._height=Ts(t,1,n);var u=this._domRoot=rz(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,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===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 a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Q0)),i||(i=n.ctx,i.save()),Qn(i,s,a,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Q0)},r.prototype.paintOne=function(t,e){ed(t,e)},r.prototype._paintList=function(t,e,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Bh(function(){l._paintList(t,e,n,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Yn).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var a=this,i=[],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)&&i.push(u)}for(var f=!0,h=!1,v=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,c._width,c._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,w=S&&Date.now(),x=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=!0),a._doPaintEl(R,g,o,I,P,T===g.__endIndex-1),S){var E=Date.now()-w;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=c.dpr,D=0;D<m.length;++D){var L=m[D];y.save(),y.beginPath(),y.rect(L.x*A,L.y*A,L.width*A,L.height*A),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<i.length;d++)v(d);return lt.wxa&&M(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,a,i,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Qn(s,t,i,o),t.setPrevPaintRect(l))}else Qn(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Yn);var n=this._layers[t];return n||(n=new Ah("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?at(n,this._layerConfig[t],!0):this._layerConfig[t-$s]&&at(n,this._layerConfig[t-$s],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[t]){fn("ZLevel "+t+" has been used already");return}if(!ez(e)){fn("Layer of zlevel "+t+" is not valid");return}if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.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||(e.painter=this)},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},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){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+tz,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?$s:0),this._needsManuallyCompositing),f.__builtin__||fn("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),a.__dirty&Ce&&!a.__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,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?at(n[t],e,!0):n[t]=e;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+$s){var o=this._layers[i];at(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,a=e[t];!a||(a.dom.parentNode.removeChild(a.dom),delete e[t],n.splice(ft(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),e!=null&&(a.height=e),t=Ts(i,0,a),e=Ts(i,1,a),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(Yn).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[Yn].dom;var e=new Ah("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 a=e.dom.width,i=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,a,i):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];Qn(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const az=nz;function iz(r){r.registerPainter("canvas",az)}ve([CF,xF,mB,CG,xG,GF,JB,ZO,Q5,uG,BE,_E,ZN,KE,Gk,rO,uN,XR,JG,iz]);const oz=Kl({name:"ECharts"}),sz=Kl({...oz,props:{option:{type:null,required:!0},renderer:{type:String,required:!1,default:"canvas"},resize:{type:Boolean,required:!1,default:!0},theme:{type:[Object,String],required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},onClick:{type:Function,required:!1}},setup(r,{expose:t}){const e=r,n=wi(()=>e.width||e.height?{height:e.height+"px",width:e.width+"px"}:{height:"100%",width:"100%"}),a=Mh(),i=Mh(),o=()=>{i.value&&i.value.setOption(e.option,{notMerge:!0})};Dh(e,()=>{o()});const s=g=>e.onClick&&e.onClick(g),l=()=>{!a.value||(i.value=Ey.getInstanceByDom(a.value),i.value||(i.value=Yb(Ey.init(a.value,e.theme,{renderer:e.renderer})),i.value.on("click",s),o()))},u=()=>{i.value&&e.resize&&i.value.resize({animation:{duration:300}})},f=qb(u,300,{maxWait:800}),h=Vb(),v=wi(()=>h.themeConfig.maximize),c=wi(()=>h.themeConfig.isCollapse),d=wi(()=>h.themeConfig.tabs),p=wi(()=>h.themeConfig.footer);return Dh(()=>[v,c,d,p],()=>{f()},{deep:!0}),Hb(()=>{Wb(()=>l()),window.addEventListener("resize",f)}),Ub(()=>{var g;(g=i.value)==null||g.dispose(),window.removeEventListener("resize",f)}),t({getInstance:()=>i.value,resize:u,draw:o}),(g,y)=>(t_(),e_("div",{id:"echarts",ref_key:"chartRef",ref:a,style:$b(n.value)},null,4))}}),lz=r_(sz,[["__file","D:/desktop/yunNan/vue-area-submit/src/components/ECharts/index.vue"]]),uz={class:"content-box"},fz=Kl({name:"pieChart"}),hz=Kl({...fz,props:{data:{type:Object,default:()=>({is_over:0,no_over:0})}},setup(r){const t=r,e=Mh({tooltip:{trigger:"item"},legend:{orient:"vertical",left:"right"},series:[{type:"pie",radius:["40%","70%"],data:[{value:t.data.is_over,name:"\u5DF2\u5B8C\u6210"},{value:t.data.no_over,name:"\u672A\u5B8C\u6210"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},itemStyle:{color:function(n){return["#42a1fb","#2ec4c4","#9A60B4","#ef6567","#f9c956","#3BA272"][n.dataIndex]}}}]});return Dh(()=>t.data,n=>{e.value.series[0].data=[{value:n.is_over,name:"\u5DF2\u5B8C\u6210"},{value:n.no_over,name:"\u672A\u5B8C\u6210"}]},{deep:!0}),(n,a)=>(t_(),e_("div",uz,[Zb(lz,{option:Xb(e)},null,8,["option"])]))}});const dz=r_(hz,[["__scopeId","data-v-cddb1996"],["__file","D:/desktop/yunNan/vue-area-submit/src/views/manage/workbench/components/pieChart/index.vue"]]);export{dz as default};
