/*! *****************************************************************************
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 Rs=function(e,t){return Rs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Rs(e,t)};function dt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rs(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ag=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),og=function(){function e(){this.browser=new ag,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 e}(),z=new og;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(z.wxa=!0,z.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?z.worker=!0:!z.hasGlobalWindow||"Deno"in window?(z.node=!0,z.svgSupported=!0):sg(navigator.userAgent,z);function sg(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var Du=12,ug="sans-serif",kr=Du+"px "+ug,lg=20,fg=100,hg="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vg(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-lg)/fg;t[i]=n}return t}var cg=vg(hg),gi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var n=gi.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||kr),e.measureText(r);r=r||"",i=i||kr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Du,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=cg[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},Nv=Ke(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Fv=Ke(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),yi=Object.prototype.toString,Xa=Array.prototype,dg=Xa.forEach,pg=Xa.filter,Au=Xa.slice,gg=Xa.map,Pl=(function(){}).constructor,Cn=Pl?Pl.prototype:null,Pu="__proto__",yg=2311;function zv(){return yg++}function Lu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function q(e){if(e==null||typeof e!="object")return e;var t=e,r=yi.call(e);if(r==="[object Array]"){if(!qi(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=q(e[i])}}else if(Fv[r]){if(!qi(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!Nv[r]&&!qi(e)&&!on(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Pu&&(t[o]=q(e[o]))}return t}function st(e,t,r){if(!N(t)||!N(e))return r?q(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Pu){var n=e[i],a=t[i];N(a)&&N(n)&&!k(a)&&!k(n)&&!on(a)&&!on(n)&&!Ll(a)&&!Ll(n)&&!qi(a)&&!qi(n)?st(n,a,r):(r||!(i in e))&&(e[i]=q(t[i]))}return e}function Eb(e,t){for(var r=e[0],i=1,n=e.length;i<n;i++)r=st(r,e[i],t);return r}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Pu&&(e[r]=t[r]);return e}function ot(e,t,r){for(var i=ut(t),n=0,a=i.length;n<a;n++){var o=i[n];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function at(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function _g(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Oe(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ot(e,t,r)}function Bt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function x(e,t,r){if(e&&t)if(e.forEach&&e.forEach===dg)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Y(e,t,r){if(!e)return[];if(!t)return Iu(e);if(e.map&&e.map===gg)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function Ke(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function Ht(e,t,r){if(!e)return[];if(!t)return Iu(e);if(e.filter&&e.filter===pg)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function Ob(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function ut(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function mg(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(Au.call(arguments)))}}var ft=Cn&&Z(Cn.bind)?Cn.call.bind(Cn.bind):mg;function ae(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Au.call(arguments)))}}function k(e){return Array.isArray?Array.isArray(e):yi.call(e)==="[object Array]"}function Z(e){return typeof e=="function"}function B(e){return typeof e=="string"}function Es(e){return yi.call(e)==="[object String]"}function lt(e){return typeof e=="number"}function N(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Ll(e){return!!Nv[yi.call(e)]}function Nt(e){return!!Fv[yi.call(e)]}function on(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function $a(e){return e.colorStops!=null}function wg(e){return e.image!=null}function kb(e){return yi.call(e)==="[object RegExp]"}function Sa(e){return e!==e}function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function W(e,t){return e??t}function oa(e,t,r){return e??t??r}function Iu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Au.apply(e,t)}function Hv(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function we(e,t){if(!e)throw new Error(t)}function ye(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Vv="__ec_primitive__";function Ta(e){e[Vv]=!0}function qi(e){return e[Vv]}var Sg=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return ut(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e}(),Wv=typeof Map=="function";function Tg(){return Wv?new Map:new Sg}var bg=function(){function e(t){var r=k(t);this.data=Tg();var i=this;t instanceof e?t.each(n):t&&x(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return Wv?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function X(e){return new bg(e)}function xg(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function qa(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&R(r,t),r}function Gv(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Br(e,t){return e.hasOwnProperty(t)}function kt(){}var sa=180/Math.PI;/*! *****************************************************************************
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 Os=function(e,t){return Os=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Os(e,t)};function j(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Os(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function _i(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Bb(e,t){return e[0]=t[0],e[1]=t[1],e}function Cg(e){return[e[0],e[1]]}function Nb(e,t,r){return e[0]=t,e[1]=r,e}function Il(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Fb(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}function Mg(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Dg(e){return Math.sqrt(Ag(e))}function Ag(e){return e[0]*e[0]+e[1]*e[1]}function To(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Pg(e,t){var r=Dg(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ks(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Lg=ks;function Ig(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ui=Ig;function zb(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function me(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function ni(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function ai(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Gr=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Rg=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Gr(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new Gr(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Gr(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Gr(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Gr(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Gr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Se=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Eg=Math.log(2);function Bs(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/Eg);return e[r][u]}for(var l=i|1<<r,f=r+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*e[r][c]*Bs(e,t-1,f,l,n|d,a),v++)}return a[o]=h,h}function Rl(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Bs(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Bs(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var El="___zrEVENTSAVED",bo=[];function Og(e,t,r,i,n){return Ns(bo,t,i,n,!0)&&Ns(e,r,bo[0],bo[1])}function Ns(e,t,r,i,n){if(t.getBoundingClientRect&&z.domSupported&&!Uv(t)){var a=t[El]||(t[El]={}),o=kg(t,a),s=Bg(o,a,n);if(s)return s(e,r,i),!0}return!1}function kg(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Bg(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?Rl(s,o):Rl(o,s))}function Uv(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ng=/([&<>"'])/g,Fg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function It(e){return e==null?"":(e+"").replace(Ng,function(t,r){return Fg[r]})}var zg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xo=[],Hg=z.browser.firefox&&+z.browser.version.split(".")[0]<39;function Fs(e,t,r,i){return r=r||{},i?Ol(e,t,r):Hg&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Ol(e,t,r),r}function Ol(e,t,r){if(z.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Uv(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Ns(xo,e,i,n)){r.zrX=xo[0],r.zrY=xo[1];return}}r.zrX=r.zrY=0}function Ru(e){return e||window.event}function $t(e,t,r){if(t=Ru(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Fs(e,o,t,r)}else{Fs(e,t,t,r);var a=Vg(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&zg.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Vg(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Wg(e,t,r,i){e.addEventListener(t,r,i)}function Gg(e,t,r,i){e.removeEventListener(t,r,i)}var Yv=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Hb(e){return e.which===2||e.which===3}var Ug=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=Fs(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Co)if(Co.hasOwnProperty(r)){var i=Co[r](this._track,t);if(i)return i}},e}();function kl(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Yg(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Co={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=kl(i)/kl(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Yg(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Pr(){return[1,0,0,1,0,0]}function Eu(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Xv(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function li(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function zs(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Ou(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=n*h+s*f,e[1]=-n*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-i[0])+f*(l-i[1])+i[0],e[5]=h*(l-i[1])-f*(o-i[0])+i[1],e}function Xg(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function $v(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}function Vb(e){var t=Pr();return Xv(t,e),t}var tt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),Mn=Math.min,Dn=Math.max,rr=new tt,ir=new tt,nr=new tt,ar=new tt,Ti=new tt,bi=new tt,Q=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=Mn(t.x,this.x),i=Mn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Dn(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Dn(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Pr();return zs(a,a,[-r.x,-r.y]),Xg(a,a,[i,n]),zs(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<n||s<f||h<o);if(r){var v=1/0,d=0,y=Math.abs(a-u),p=Math.abs(l-n),g=Math.abs(s-f),_=Math.abs(h-o),m=Math.min(y,p),w=Math.min(g,_);a<u||l<n?m>d&&(d=m,y<p?tt.set(bi,-y,0):tt.set(bi,p,0)):m<v&&(v=m,y<p?tt.set(Ti,y,0):tt.set(Ti,-p,0)),s<f||h<o?w>d&&(d=w,g<_?tt.set(bi,0,-g):tt.set(bi,0,_)):m<v&&(v=m,g<_?tt.set(Ti,0,g):tt.set(Ti,0,-_))}return r&&tt.copy(r,c?Ti:bi),c},e.prototype.contain=function(t,r){var i=this;return t>=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}rr.x=nr.x=r.x,rr.y=ar.y=r.y,ir.x=ar.x=r.x+r.width,ir.y=nr.y=r.y+r.height,rr.transform(i),ar.transform(i),ir.transform(i),nr.transform(i),t.x=Mn(rr.x,ir.x,nr.x,ar.x),t.y=Mn(rr.y,ir.y,nr.y,ar.y);var u=Dn(rr.x,ir.x,nr.x,ar.x),l=Dn(rr.y,ir.y,nr.y,ar.y);t.width=u-t.x,t.height=l-t.y},e}(),qv="silent";function $g(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:qg}}function qg(){Yv(this.event)}var Zg=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Se),xi=function(){function e(t,r){this.x=t,this.y=r}return e}(),Kg=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Mo=new Q(0,0,0,0),Zv=function(e){j(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new xi(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Zg,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Rg(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(x(Kg,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Kv(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new xi(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new xi(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=$g(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new xi(r,i);if(Bl(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new Q(r-l,i-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Mo.copy(c.getBoundingRect()),c.transform&&Mo.applyTransform(c.transform),Mo.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,p=0;p<l;p+=v)for(var g=0;g<y;g+=d){var _=r+p*Math.cos(g),m=i+p*Math.sin(g);if(Bl(s,o,_,m,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Ug);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new xi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Se);x(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Zv.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=Kv(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Lg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Qg(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?qv:!0}return!1}function Bl(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=Qg(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==qv)){t.target=o;break}}}function Kv(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var Qv=32,Ci=7;function Jg(e){for(var t=0;e>=Qv;)t|=e&1,e>>=1;return e+t}function Nl(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;jg(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function jg(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function Fl(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Do(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(e,t[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function Ao(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(e,t[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function ty(e,t){var r=Ci,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],y=n[v],p=i[v+1],g=n[v+1];n[v]=y+g,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var _=Ao(e[p],e,d,y,0,t);d+=_,y-=_,y!==0&&(g=Do(e[d+y-1],e,p,g,g-1,t),g!==0&&(y<=g?h(d,y,p,g):c(d,y,p,g)))}function h(v,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=e[v+g];var _=0,m=y,w=v;if(e[w++]=e[m++],--p===0){for(g=0;g<d;g++)e[w+g]=o[_+g];return}if(d===1){for(g=0;g<p;g++)e[w+g]=e[m+g];e[w+p]=o[_];return}for(var T=r,S,b,M;;){S=0,b=0,M=!1;do if(t(e[m],o[_])<0){if(e[w++]=e[m++],b++,S=0,--p===0){M=!0;break}}else if(e[w++]=o[_++],S++,b=0,--d===1){M=!0;break}while((S|b)<T);if(M)break;do{if(S=Ao(e[m],o,_,d,0,t),S!==0){for(g=0;g<S;g++)e[w+g]=o[_+g];if(w+=S,_+=S,d-=S,d<=1){M=!0;break}}if(e[w++]=e[m++],--p===0){M=!0;break}if(b=Do(o[_],e,m,p,0,t),b!==0){for(g=0;g<b;g++)e[w+g]=e[m+g];if(w+=b,m+=b,p-=b,p===0){M=!0;break}}if(e[w++]=o[_++],--d===1){M=!0;break}T--}while(S>=Ci||b>=Ci);if(M)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[w+g]=e[m+g];e[w+p]=o[_]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[w+g]=o[_+g]}}function c(v,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=e[y+g];var _=v+d-1,m=p-1,w=y+p-1,T=0,S=0;if(e[w--]=e[_--],--d===0){for(T=w-(p-1),g=0;g<p;g++)e[T+g]=o[g];return}if(p===1){for(w-=d,_-=d,S=w+1,T=_+1,g=d-1;g>=0;g--)e[S+g]=e[T+g];e[w]=o[m];return}for(var b=r;;){var M=0,C=0,D=!1;do if(t(o[m],e[_])<0){if(e[w--]=e[_--],M++,C=0,--d===0){D=!0;break}}else if(e[w--]=o[m--],C++,M=0,--p===1){D=!0;break}while((M|C)<b);if(D)break;do{if(M=d-Ao(o[m],e,v,d,d-1,t),M!==0){for(w-=M,_-=M,d-=M,S=w+1,T=_+1,g=M-1;g>=0;g--)e[S+g]=e[T+g];if(d===0){D=!0;break}}if(e[w--]=o[m--],--p===1){D=!0;break}if(C=p-Do(e[_],o,0,p,p-1,t),C!==0){for(w-=C,m-=C,p-=C,S=w+1,T=m+1,g=0;g<C;g++)e[S+g]=o[T+g];if(p<=1){D=!0;break}}if(e[w--]=e[_--],--d===0){D=!0;break}b--}while(M>=Ci||C>=Ci);if(D)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(w-=d,_-=d,S=w+1,T=_+1,g=d-1;g>=0;g--)e[S+g]=e[T+g];e[w]=o[m]}else{if(p===0)throw new Error;for(T=w-(p-1),g=0;g<p;g++)e[T+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function ua(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<Qv){a=Nl(e,r,i,t),Fl(e,r,i,r+a,t);return}var o=ty(e,t),s=Jg(n);do{if(a=Nl(e,r,i,t),a<s){var u=n;u>s&&(u=s),Fl(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Vt=1,Vi=2,ri=4,zl=!1;function Po(){zl||(zl=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hl(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ey=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hl}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,ua(i,Hl)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)r=null;else if(n){r?r=r.slice():r=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=Vt),this._updateAndAddDisplayable(l,r,i)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Po(),f.z=0),isNaN(f.z2)&&(Po(),f.z2=0),isNaN(f.zlevel)&&(Po(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=at(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),ba;ba=z.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Zi={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Zi.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Zi.bounceIn(e*2)*.5:Zi.bounceOut(e*2-1)*.5+.5}},An=Math.pow,qe=Math.sqrt,xa=1e-8,Jv=1e-4,Vl=qe(3),Pn=1/3,ge=_i(),Kt=_i(),fi=_i();function Ye(e){return e>-xa&&e<xa}function jv(e){return e>xa||e<-xa}function yt(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Wl(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function tc(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Ye(f)&&Ye(h))if(Ye(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(Ye(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var _=qe(y),m=f*s+1.5*o*(-h+_),w=f*s+1.5*o*(-h-_);m<0?m=-An(-m,Pn):m=An(m,Pn),w<0?w=-An(-w,Pn):w=An(w,Pn);var d=(-s-(m+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*f*s-3*o*h)/(2*qe(f*f*f)),S=Math.acos(T)/3,b=qe(f),M=Math.cos(S),d=(-s-2*b*M)/(3*o),g=(-s+b*(M+Vl*Math.sin(S)))/(3*o),C=(-s+b*(M-Vl*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),C>=0&&C<=1&&(a[v++]=C)}}return v}function ec(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(Ye(o)){if(jv(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(Ye(f))n[0]=-a/(2*o);else if(f>0){var h=qe(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function Ca(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function ry(e,t,r,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,y,p,g;ge[0]=u,ge[1]=l;for(var _=0;_<1;_+=.05)Kt[0]=yt(e,r,n,o,_),Kt[1]=yt(t,i,a,s,_),p=ui(ge,Kt),p<v&&(h=_,v=p);v=1/0;for(var m=0;m<32&&!(c<Jv);m++)d=h-c,y=h+c,Kt[0]=yt(e,r,n,o,d),Kt[1]=yt(t,i,a,s,d),p=ui(Kt,ge),d>=0&&p<v?(h=d,v=p):(fi[0]=yt(e,r,n,o,y),fi[1]=yt(t,i,a,s,y),g=ui(fi,ge),y<=1&&g<v?(h=y,v=g):c*=.5);return f&&(f[0]=yt(e,r,n,o,h),f[1]=yt(t,i,a,s,h)),qe(v)}function iy(e,t,r,i,n,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,y=yt(e,r,n,o,d),p=yt(t,i,a,s,d),g=y-l,_=p-f;h+=Math.sqrt(g*g+_*_),l=y,f=p}return h}function xt(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function Gl(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function ny(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(Ye(a)){if(jv(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(Ye(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=qe(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function rc(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function Ma(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function ay(e,t,r,i,n,a,o,s,u){var l,f=.005,h=1/0;ge[0]=o,ge[1]=s;for(var c=0;c<1;c+=.05){Kt[0]=xt(e,r,n,c),Kt[1]=xt(t,i,a,c);var v=ui(ge,Kt);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Jv);d++){var y=l-f,p=l+f;Kt[0]=xt(e,r,n,y),Kt[1]=xt(t,i,a,y);var v=ui(Kt,ge);if(y>=0&&v<h)l=y,h=v;else{fi[0]=xt(e,r,n,p),fi[1]=xt(t,i,a,p);var g=ui(fi,ge);p<=1&&g<h?(l=p,h=g):f*=.5}}return u&&(u[0]=xt(e,r,n,l),u[1]=xt(t,i,a,l)),qe(h)}function oy(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=xt(e,r,n,c),d=xt(t,i,a,c),y=v-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=v,u=d}return l}var sy=/cubic-bezier\(([0-9,\.e ]+)\)/;function ic(e){var t=e&&sy.exec(e);if(t){var r=t[1].split(","),i=+ye(r[0]),n=+ye(r[1]),a=+ye(r[2]),o=+ye(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:tc(0,i,a,1,u,s)&&yt(0,n,o,1,s[0])}}}var uy=function(){function e(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||kt,this.ondestroy=t.ondestroy||kt,this.onrestart=t.onrestart||kt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:Zi[t]||ic(t)},e}(),nc=function(){function e(t){this.value=t}return e}(),ly=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new nc(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mn=function(){function e(t){this._list=new ly,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new nc(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Ul={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 oe(e){return e=Math.round(e),e<0?0:e>255?255:e}function fy(e){return e=Math.round(e),e<0?0:e>360?360:e}function un(e){return e<0?0:e>1?1:e}function Lo(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?oe(parseFloat(t)/100*255):oe(parseInt(t,10))}function Lr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?un(parseFloat(t)/100):un(parseFloat(t))}function Io(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Xe(e,t,r){return e+(t-e)*r}function Xt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Hs(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ac=new mn(20),Ln=null;function Ur(e,t){Ln&&Hs(Ln,t),Ln=ac.put(e,Ln||t.slice())}function se(e,t){if(e){t=t||[];var r=ac.get(e);if(r)return Hs(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Ul)return Hs(t,Ul[i]),Ur(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Xt(t,0,0,0,1);return}return Xt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ur(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Xt(t,0,0,0,1);return}return Xt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ur(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?Xt(t,+l[0],+l[1],+l[2],1):Xt(t,0,0,0,1);f=Lr(l.pop());case"rgb":if(l.length>=3)return Xt(t,Lo(l[0]),Lo(l[1]),Lo(l[2]),l.length===3?f:Lr(l[3])),Ur(e,t),t;Xt(t,0,0,0,1);return;case"hsla":if(l.length!==4){Xt(t,0,0,0,1);return}return l[3]=Lr(l[3]),Vs(l,t),Ur(e,t),t;case"hsl":if(l.length!==3){Xt(t,0,0,0,1);return}return Vs(l,t),Ur(e,t),t;default:return}}Xt(t,0,0,0,1)}}function Vs(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Lr(e[1]),n=Lr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Xt(t,oe(Io(o,a,r+1/3)*255),oe(Io(o,a,r)*255),oe(Io(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function hy(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function Yl(e,t){var r=se(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return wn(r,r.length===4?"rgba":"rgb")}}function Wb(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],u=i-n;return r[0]=oe(Xe(o[0],s[0],u)),r[1]=oe(Xe(o[1],s[1],u)),r[2]=oe(Xe(o[2],s[2],u)),r[3]=un(Xe(o[3],s[3],u)),r}}function Gb(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=se(t[n]),s=se(t[a]),u=i-n,l=wn([oe(Xe(o[0],s[0],u)),oe(Xe(o[1],s[1],u)),oe(Xe(o[2],s[2],u)),un(Xe(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Ub(e,t,r,i){var n=se(e);if(e)return n=hy(n),t!=null&&(n[0]=fy(t)),r!=null&&(n[1]=Lr(r)),i!=null&&(n[2]=Lr(i)),wn(Vs(n),"rgba")}function Yb(e,t){var r=se(e);if(r&&t!=null)return r[3]=un(t),wn(r,"rgba")}function wn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Da(e,t){var r=se(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Xl=new mn(100);function $l(e){if(B(e)){var t=Xl.get(e);return t||(t=Yl(e,-.1),Xl.put(e,t)),t}else if($a(e)){var r=R({},e);return r.colorStops=Y(e.colorStops,function(i){return{offset:i.offset,color:Yl(i.color,-.1)}}),r}return e}var Aa=Math.round;function Xb(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=se(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var ql=1e-4;function $b(e){return e<ql&&e>-ql}function In(e){return Aa(e*1e3)/1e3}function Zl(e){return Aa(e*1e4)/1e4}function qb(e){return"matrix("+In(e[0])+","+In(e[1])+","+In(e[2])+","+In(e[3])+","+Zl(e[4])+","+Zl(e[5])+")"}var Zb={left:"start",right:"end",center:"middle",middle:"middle"};function Kb(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Qb(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Jb(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function vy(e){return e&&!!e.image}function cy(e){return e&&!!e.svgElement}function jb(e){return vy(e)||cy(e)}function dy(e){return e.type==="linear"}function py(e){return e.type==="radial"}function tx(e){return e&&(e.type==="linear"||e.type==="radial")}function ex(e){return"url(#"+e+")"}function rx(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function ix(e){var t=e.x||0,r=e.y||0,i=(e.rotation||0)*sa,n=W(e.scaleX,1),a=W(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),i&&u.push("rotate("+i+")"),(n!==1||a!==1)&&u.push("scale("+n+","+a+")"),(o||s)&&u.push("skew("+Aa(o*sa)+"deg, "+Aa(s*sa)+"deg)"),u.join(" ")}var nx=function(){return z.hasGlobalWindow&&Z(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Ws=Array.prototype.slice;function De(e,t,r){return(t-e)*r+e}function Ro(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=De(t[a],r[a],i);return e}function gy(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=De(t[o][s],r[o][s],i)}return e}function Rn(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function Kl(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function yy(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function _y(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(r===1?n[u]:Ws.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function la(e){if(Bt(e)){var t=e.length;if(Bt(e[0])){for(var r=[],i=0;i<t;i++)r.push(Ws.call(e[i]));return r}return Ws.call(e)}return e}function fa(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function my(e){return Bt(e&&e[0])?2:1}var En=0,ha=1,oc=2,Wi=3,Gs=4,Us=5,Ql=6;function Jl(e){return e===Gs||e===Us}function On(e){return e===ha||e===oc}var Mi=[0,0,0,0],wy=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ql,u=r;if(Bt(r)){var l=my(r);s=l,(l===1&&!lt(r[0])||l===2&&!lt(r[0][0]))&&(o=!0)}else if(lt(r)&&!Sa(r))s=En;else if(B(r))if(!isNaN(+r))s=En;else{var f=se(r);f&&(u=f,s=Wi)}else if($a(r)){var h=R({},u);h.colorStops=Y(r.colorStops,function(v){return{offset:v.offset,color:se(v.color)}}),dy(r)?s=Gs:py(r)&&(s=Us),u=h}a===0?this.valType=s:(s!==this.valType||s===Ql)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return i&&(c.easing=i,c.easingFunc=Z(i)?i:Zi[i]||ic(i)),n.push(c),c},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,p){return y.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=On(n),l=Jl(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?_y(c,v,n):l&&yy(c.colorStops,v.colorStops))}if(!s&&n!==Us&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===En?i[f].additiveValue=i[f].value-d:n===Wi?i[f].additiveValue=Rn([],i[f].value,d,-1):On(n)&&(i[f].additiveValue=n===ha?Rn([],i[f].value,d,-1):Kl([],i[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Wi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,g=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var _=i?this._additiveValue:l?Mi:t[u];if((On(a)||l)&&!_&&(_=this._additiveValue=[]),this.discrete)t[u]=g<1?v.rawValue:d.rawValue;else if(On(a))a===ha?Ro(_,v[n],d[n],g):gy(_,v[n],d[n],g);else if(Jl(a)){var m=v[n],w=d[n],T=a===Gs;t[u]={type:T?"linear":"radial",x:De(m.x,w.x,g),y:De(m.y,w.y,g),colorStops:Y(m.colorStops,function(b,M){var C=w.colorStops[M];return{offset:De(b.offset,C.offset,g),color:fa(Ro([],b.color,C.color,g))}}),global:w.global},T?(t[u].x2=De(m.x2,w.x2,g),t[u].y2=De(m.y2,w.y2,g)):t[u].r=De(m.r,w.r,g)}else if(l)Ro(_,v[n],d[n],g),i||(t[u]=fa(_));else{var S=De(v[n],d[n],g);i?this._additiveValue=S:t[u]=S}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===En?t[i]=t[i]+n:r===Wi?(se(t[i],Mi),Rn(Mi,Mi,n,1),t[i]=fa(Mi)):r===ha?Rn(t[i],t[i],n,1):r===oc&&Kl(t[i],t[i],n,1)},e}(),ku=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){Lu("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,ut(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new wy(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Wi&&l&&(l=fa(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,la(l),n),this._trackKeys.push(s)}u.addKeyframe(t,la(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new uy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var p=0;p<i.length;p++)i[p].step(r._target,v);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Y(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=la(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||ut(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function oi(){return new Date().getTime()}var Sy=function(e){j(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=oi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(ba(i),!r._paused&&r.update())}ba(i)},t.prototype.start=function(){this._running||(this._time=oi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=oi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=oi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new ku(r,i.loop);return this.addAnimator(n),n},t}(Se),Ty=300,Eo=z.domSupported,Oo=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Y(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),jl={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tf=!1;function Ys(e){var t=e.pointerType;return t==="pen"||t==="touch"}function by(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ko(e){e&&(e.zrByTouch=!0)}function xy(e,t){return $t(e.dom,new Cy(e,t),!0)}function sc(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Cy=function(){function e(t,r){this.stopPropagation=kt,this.stopImmediatePropagation=kt,this.preventDefault=kt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ie={mousedown:function(e){e=$t(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=$t(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=$t(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=$t(this.dom,e);var t=e.toElement||e.relatedTarget;sc(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){tf=!0,e=$t(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){tf||(e=$t(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=$t(this.dom,e),ko(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ie.mousemove.call(this,e),ie.mousedown.call(this,e)},touchmove:function(e){e=$t(this.dom,e),ko(e),this.handler.processGesture(e,"change"),ie.mousemove.call(this,e)},touchend:function(e){e=$t(this.dom,e),ko(e),this.handler.processGesture(e,"end"),ie.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Ty&&ie.click.call(this,e)},pointerdown:function(e){ie.mousedown.call(this,e)},pointermove:function(e){Ys(e)||ie.mousemove.call(this,e)},pointerup:function(e){ie.mouseup.call(this,e)},pointerout:function(e){Ys(e)||ie.mouseout.call(this,e)}};x(["click","dblclick","contextmenu"],function(e){ie[e]=function(t){t=$t(this.dom,t),this.trigger(e,t)}});var Xs={pointermove:function(e){Ys(e)||Xs.mousemove.call(this,e)},pointerup:function(e){Xs.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function My(e,t){var r=t.domHandlers;z.pointerEventsSupported?x(Oo.pointer,function(i){va(t,i,function(n){r[i].call(e,n)})}):(z.touchEventsSupported&&x(Oo.touch,function(i){va(t,i,function(n){r[i].call(e,n),by(t)})}),x(Oo.mouse,function(i){va(t,i,function(n){n=Ru(n),t.touching||r[i].call(e,n)})}))}function Dy(e,t){z.pointerEventsSupported?x(jl.pointer,r):z.touchEventsSupported||x(jl.mouse,r);function r(i){function n(a){a=Ru(a),sc(e,a.target)||(a=xy(e,a),t.domHandlers[i].call(e,a))}va(t,i,n,{capture:!0})}}function va(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,Wg(e.domTarget,t,r,i)}function Bo(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Gg(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var ef=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Ay=function(e){j(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new ef(r,ie),Eo&&(n._globalHandlerScope=new ef(document,Xs)),My(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Bo(this._localHandlerScope),Eo&&Bo(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Eo&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?Dy(this,i):Bo(i)}},t}(Se),uc=1;z.hasGlobalWindow&&(uc=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Pa=uc,$s=.4,qs="#333",Zs="#ccc",Py="#eee",rf=Eu,nf=5e-5;function or(e){return e>nf||e<-nf}var sr=[],Yr=[],No=Pr(),Fo=Math.abs,Bu=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return or(this.rotation)||or(this.x)||or(this.y)||or(this.scaleX-1)||or(this.scaleY-1)||or(this.skewX)||or(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(rf(i),this.invTransform=null);return}i=i||Pr(),r?this.getLocalTransform(i):rf(i),t&&(r?li(i,t,i):Xv(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(sr);var i=sr[0]<0?-1:1,n=sr[1]<0?-1:1,a=((sr[0]-i)*r+i)/sr[0]||0,o=((sr[1]-n)*r+n)/sr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pr(),$v(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Pr(),li(Yr,t.invTransform,r),r=Yr);var i=this.originX,n=this.originY;(i||n)&&(No[4]=i,No[5]=n,li(Yr,r,No),Yr[4]-=i,Yr[5]-=n,r=Yr),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&me(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&me(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Fo(t[0]-1)>1e-10&&Fo(t[3]-1)>1e-10?Math.sqrt(Fo(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ly(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;r[4]=-d*a-c*y*o,r[5]=-y*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&Ou(r,r,l),r[4]+=i+f,r[5]+=n+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ln=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ly(e,t){for(var r=0;r<ln.length;r++){var i=ln[r];e[i]=t[i]}}var af={};function Wt(e,t){t=t||kr;var r=af[t];r||(r=af[t]=new mn(500));var i=r.get(e);return i==null&&(i=gi.measureText(e,t).width,r.put(e,i)),i}function of(e,t,r,i){var n=Wt(e,t),a=Nu(t),o=Gi(0,n,r),s=ii(0,a,i),u=new Q(o,s,n,a);return u}function lc(e,t,r,i){var n=((e||"")+"").split(`
`),a=n.length;if(a===1)return of(n[0],t,r,i);for(var o=new Q(0,0,0,0),s=0;s<n.length;s++){var u=of(n[s],t,r,i);s===0?o.copy(u):o.union(u)}return o}function Gi(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function ii(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Nu(e){return Wt("国",e)}function Nr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function fc(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(i instanceof Array)u+=Nr(i[0],r.width),l+=Nr(i[1],r.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var zo="__zr_normal__",Ho=ln.concat(["ignore"]),Iy=Ke(ln,function(e,t){return e[t]=!0,e},{ignore:!1}),Xr={},Ry=new Q(0,0,0,0),Za=function(){function e(t){this.id=zv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;if(a.copyTransform(r),i.position!=null){var f=Ry;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xr,i,f):fc(Xr,i,f),a.x=Xr.x,a.y=Xr.y,o=Xr.align,s=Xr.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Nr(h[0],f.width),v=Nr(h[1],f.height)),l=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,_=void 0,m=void 0;y&&this.canBeInsideText()?(g=i.insideFill,_=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(g),m=!0)):(g=i.outsideFill,_=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||_!==p.stroke||m!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=g,p.stroke=_,p.autoStroke=m,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Vt,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zs:qs},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&se(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,wn(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},R(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(N(t))for(var i=t,n=ut(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==zo)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Ho)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(zo,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===zo,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(at(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Lu("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,i,f),c&&c.useState(t,r,i,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),l}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=at(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=at(n,t),o=at(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];R(r,a),a.textConfig&&(i=i||{},R(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=R({},n?this.textConfig:i.textConfig),R(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Ho.length;f++){var h=Ho[f],c=a&&Iy[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&i[h]!=null&&(c?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||i)[d]:r||i)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Bu,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Vt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new ku(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=at(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){Vo(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){Vo(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=Vo(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Vt;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Oe(Za,Se);Oe(Za,Bu);function Vo(e,t,r,i,n){r=r||{};var a=[];hc(e,"",e,t,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var c=0;c<a.length;c++){var v=a[c];v.done(f),v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Wo(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function Ey(e){return Bt(e[0])}function Oy(e,t,r){if(Bt(t[r]))if(Bt(e[r])||(e[r]=[]),Nt(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),Wo(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(Ey(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Wo(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Wo(a,n,o);a.length=n.length}else e[r]=t[r]}function ky(e,t){return e===t||Bt(e)&&Bt(t)&&By(e,t)}function By(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function hc(e,t,r,i,n,a,o,s){for(var u=ut(i),l=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!N(a),d=e.animators,y=[],p=0;p<u.length;p++){var g=u[p],_=i[g];if(_!=null&&r[g]!=null&&(v||a[g]))if(N(_)&&!Bt(_)&&!$a(_)){if(t){s||(r[g]=_,e.updateDuringAnimation(t));continue}hc(e,g,r[g],_,n,a&&a[g],o,s)}else y.push(g);else s||(r[g]=_,e.updateDuringAnimation(t),y.push(g))}var m=y.length;if(!h&&m)for(var w=0;w<d.length;w++){var T=d[w];if(T.targetName===t){var S=T.stopTracks(y);if(S){var b=at(d,T);d.splice(b,1)}}}if(n.force||(y=Ht(y,function(A){return!ky(i[A],r[A])}),m=y.length),m>0||n.force&&!o.length){var M=void 0,C=void 0,D=void 0;if(s){C={},c&&(M={});for(var w=0;w<m;w++){var g=y[w];C[g]=r[g],c?M[g]=i[g]:r[g]=i[g]}}else if(c){D={};for(var w=0;w<m;w++){var g=y[w];D[g]=la(r[g]),Oy(r,i,g)}}var T=new ku(r,!1,!1,h?Ht(d,function(L){return L.targetName===t}):null);T.targetName=t,n.scope&&(T.scope=n.scope),c&&M&&T.whenWithKeys(0,M,y),D&&T.whenWithKeys(0,D,y),T.whenWithKeys(l??500,s?C:i,y).delay(f||0),e.addAnimator(T,t),o.push(T)}}var Ie=function(e){j(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=at(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=at(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new Q(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(Q.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t}(Za);Ie.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var ca={},vc={};function Ny(e){delete vc[e]}function Fy(e){if(!e)return!1;if(typeof e=="string")return Da(e,1)<$s;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=Da(t[n].color,1);return r/=i,r<$s}return!1}var zy=function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new ey,o=i.renderer||"canvas";ca[o]||(o=ut(ca)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ca[o](r,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!z.node&&!z.worker&&!u?new Ay(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?z.touchEventsSupported:!!f,c=44,v;h&&(v=W(i.pointerSize,c)),this.handler=new Zv(a,s,l,s.root,v),this.animation=new Sy({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Fy(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=oi();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=oi();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Ie&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,Ny(this.id))},e}();function sf(e,t){var r=new zy(zv(),e,t);return vc[r.id]=r,r}function Hy(e,t){ca[e]=t}var Ks;function ax(e){if(typeof Ks=="function")return Ks(e)}function Vy(e){Ks=e}var uf=1e-4,cc=20;function Wy(e){return e.replace(/^\s+|\s+$/g,"")}function ox(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/u*l+o}function ct(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return B(e)?Wy(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function ue(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),cc),e=(+e).toFixed(t),r?e:+e}function sx(e){return e.sort(function(t,r){return t-r}),e}function Ae(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Gy(e)}function Gy(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function ux(e,t){var r=Math.log,i=Math.LN10,n=Math.floor(r(e[1]-e[0])/i),a=Math.round(r(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function lx(e,t){var r=Ke(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=Math.pow(10,t),n=Y(e,function(v){return(isNaN(v)?0:v)/r*i*100}),a=i*100,o=Y(n,function(v){return Math.floor(v)}),s=Ke(o,function(v,d){return v+d},0),u=Y(n,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return Y(o,function(v){return v/i})}function Uy(e,t){var r=Math.max(Ae(e),Ae(t)),i=e+t;return r>cc?i:ue(i,r)}var fx=9007199254740991;function dc(e){var t=Math.PI*2;return(e%t+t)%t}function La(e){return e>-uf&&e<uf}var Yy=/^(?:(\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 Re(e){if(e instanceof Date)return e;if(B(e)){var t=Yy.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(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(e==null)return new Date(NaN);return new Date(Math.round(e))}function Xy(e){return Math.pow(10,Fu(e))}function Fu(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function pc(e,t){var r=Fu(e),i=Math.pow(10,r),n=e/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,e=a*i,r>=-20?+e.toFixed(r<0?-r:0):e}function hx(e,t){var r=(e.length-1)*t+1,i=Math.floor(r),n=+e[i-1],a=r-i;return a?n+a*(e[i]-n):n}function vx(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,i=0;i<e.length;){for(var n=e[i].interval,a=e[i].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,a[o]=o?1:1-r),t=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?e.splice(i,1):i++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Qe(e){var t=parseFloat(e);return t==e&&(t!==0||!B(e)||e.indexOf("x")<=0)?t:NaN}function $y(e){return!isNaN(Qe(e))}function gc(){return Math.round(Math.random()*9)}function yc(e,t){return t===0?e:yc(t,e%t)}function lf(e,t){return e==null?t:t==null?e:e*t/yc(e,t)}function At(e){throw new Error(e)}function ff(e,t,r){return(t-e)*r+e}var _c="series\0",mc="\0_ec_\0";function _t(e){return e instanceof Array?e:e==null?[]:[e]}function hf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var vf=["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 Ka(e){return N(e)&&!k(e)&&!(e instanceof Date)?e.value:e}function qy(e){return N(e)&&!(e instanceof Array)}function Zy(e,t,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=X();x(t,function(u,l){if(!N(u)){t[l]=null;return}});var s=Ky(e,o,r);return(i||n)&&Qy(s,e,o,t),i&&Jy(s,t),i||n?jy(s,t,n):a&&t_(s,t),e_(s),s}function Ky(e,t,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r==="replaceMerge"||fn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function Qy(e,t,r,i){x(i,function(n,a){if(!(!n||n.id==null)){var o=Ki(n.id),s=r.get(o);if(s!=null){var u=e[s];we(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function Jy(e,t){x(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!fn(r)&&!fn(a)&&wc("name",a,r)){e[n].newOption=r,t[i]=null;return}}})}function jy(e,t,r){x(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||fn(n.existing)||n.existing&&i.id!=null&&!wc("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function t_(e,t){x(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function e_(e){var t=X();x(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),x(e,function(r){var i=r.newOption;we(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),x(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(N(a)){if(o.name=a.name!=null?Ki(a.name):n?n.name:_c+i,n)o.id=Ki(n.id);else if(a.id!=null)o.id=Ki(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function wc(e,t,r){var i=le(t[e],null),n=le(r[e],null);return i!=null&&n!=null&&i===n}function Ki(e){return le(e,"")}function le(e,t){return e==null?t:B(e)?e:lt(e)||Es(e)?e+"":t}function Sc(e){var t=e.name;return!!(t&&t.indexOf(_c))}function fn(e){return e&&e.id!=null&&Ki(e.id).indexOf(mc)===0}function cx(e){return mc+e}function r_(e,t,r){x(e,function(i){var n=i.newOption;N(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=i_(t,n,i.existing,r))})}function i_(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function dx(e,t){var r={},i={};return n(e||[],r),n(t||[],i,r),[a(r),a(i)];function n(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=le(o[l].seriesId,null);if(h==null)return;for(var c=_t(o[l].dataIndex),v=u&&u[h],d=0,y=c.length;d<y;d++){var p=c[d];v&&v[p]?v[p]=null:(s[h]||(s[h]={}))[p]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function Sn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return k(t.dataIndex)?Y(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return k(t.name)?Y(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function mt(){var e="__ec_inner_"+n_++;return function(t){return t[e]||(t[e]={})}}var n_=gc();function Go(e,t,r){var i=zu(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=Tn(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function zu(e,t){var r;if(B(e)){var i={};i[e+"Index"]=0,r=i}else r=e;var n=X(),a={},o=!1;return x(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&at(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Qa={useDefault:!0,enableAll:!1,enableNone:!1},px={useDefault:!1,enableAll:!0,enableNone:!0};function Tn(e,t,r,i){i=i||Qa;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],s}return n==="none"||n===!1?(we(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(we(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function Tc(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function a_(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function o_(e){return e==="auto"?z.domSupported?"html":"richText":e||"html"}function gx(e,t){var r=X(),i=[];return x(e,function(n){var a=t(n);(r.get(a)||(i.push(a),r.set(a,[]))).push(n)}),{keys:i,buckets:r}}function s_(e,t,r,i,n){var a=t==null||t==="auto";if(i==null)return i;if(lt(i)){var o=ff(r||0,i,n);return ue(o,a?Math.max(Ae(r||0),Ae(i)):t)}else{if(B(i))return n<1?r:i;for(var s=[],u=r,l=i,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=ff(v,d,n);s[h]=ue(o,a?Math.max(Ae(v),Ae(d)):t)}}return s}}var u_=".",ur="___EC__COMPONENT__CONTAINER___",bc="___EC__EXTENDED_CLASS___";function _e(e){var t={main:"",sub:""};if(e){var r=e.split(u_);t.main=r[0]||"",t.sub=r[1]||""}return t}function l_(e){we(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function f_(e){return!!(e&&e[bc])}function Hu(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return h_(i)?n=function(a){dt(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(r.$constructor||i).apply(this,arguments)},_g(n,this)),R(n.prototype,r),n[bc]=!0,n.extend=this.extend,n.superCall=d_,n.superApply=p_,n.superClass=i,n}}function h_(e){return Z(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function xc(e,t){e.extend=t.extend}var v_=Math.round(Math.random()*10);function c_(e){var t=["__\0is_clz",v_++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function d_(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function p_(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ja(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){l_(n),i.prototype.type=n;var a=_e(n);if(!a.sub)t[a.main]=i;else if(a.sub!==ur){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[ur]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},e.getClassesByMainType=function(i){var n=_e(i),a=[],o=t[n.main];return o&&o[ur]?x(o,function(s,u){u!==ur&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=_e(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return x(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=_e(i),a=t[n.main];return a&&a[ur]};function r(i){var n=t[i.main];return(!n||!n[ur])&&(n=t[i.main]={},n[ur]=!0),n}}function hn(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(n&&at(n,u)>=0||a&&at(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var g_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],y_=hn(g_),__=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return y_(this,t,r)},e}(),Qs=new mn(50);function m_(e){if(typeof e=="string"){var t=Qs.get(e);return t&&t.image}else return e}function Cc(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Qs.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!ja(t)&&a.pending.push(o)):(t=gi.loadImage(e,cf,cf),t.__zrImageSrc=e,Qs.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function cf(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function ja(e){return e&&e.width&&e.height}var Uo=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function w_(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
`);a=Mc(r,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Dc(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function Mc(e,t,r,i){i=i||{};var n=R({},i);n.font=t,r=W(r,"..."),n.maxIterations=W(i.maxIterations,2);var a=n.minChar=W(i.minChar,0);n.cnCharWidth=Wt("国",t);var o=n.ascCharWidth=Wt("a",t);n.placeholder=W(i.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<a&&s>=o;u++)s-=o;var l=Wt(r,t);return l>s&&(r="",l=0),s=e-l,n.ellipsis=r,n.ellipsisWidth=l,n.contentWidth=s,n.containerWidth=e,n}function Dc(e,t,r){var i=r.containerWidth,n=r.font,a=r.contentWidth;if(!i){e.textLine="",e.isTruncated=!1;return}var o=Wt(t,n);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?S_(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=Wt(t,n)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function S_(e,t,r,i){for(var n=0,a=0,o=e.length;a<o&&n<t;a++){var s=e.charCodeAt(a);n+=0<=s&&s<=127?r:i}return a}function T_(e,t){e!=null&&(e+="");var r=t.overflow,i=t.padding,n=t.font,a=r==="truncate",o=Nu(n),s=W(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(r==="break"||r==="breakAll")?c=e?Ac(e,t.font,h,r==="breakAll",0).lines:[]:c=e?e.split(`
`):[];var v=c.length*s,d=W(t.height,v);if(v>d&&l){var y=Math.floor(d/s);f=f||c.length>y,c=c.slice(0,y)}if(e&&a&&h!=null)for(var p=Mc(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},_=0;_<c.length;_++)Dc(g,c[_],p),c[_]=g.textLine,f=f||g.isTruncated;for(var m=d,w=0,_=0;_<c.length;_++)w=Math.max(Wt(c[_],n),w);h==null&&(h=w);var T=w;return i&&(m+=i[0]+i[2],T+=i[1]+i[3],h+=i[1]+i[3]),u&&(T=h),{lines:c,height:d,outerWidth:T,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:v,width:h,isTruncated:f}}var b_=function(){function e(){}return e}(),df=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),x_=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function C_(e,t){var r=new x_;if(e!=null&&(e+=""),!e)return r;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=Uo.lastIndex=0,u;(u=Uo.exec(e))!=null;){var l=u.index;l>s&&Yo(r,e.substring(s,l),t,o),Yo(r,u[2],t,o,u[1]),s=Uo.lastIndex}s<e.length&&Yo(r,e.substring(s,e.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",y=t.lineOverflow==="truncate",p={};function g(U,et,J){U.width=et,U.lineHeight=J,h+=J,c=Math.max(c,et)}t:for(var _=0;_<r.lines.length;_++){for(var m=r.lines[_],w=0,T=0,S=0;S<m.tokens.length;S++){var b=m.tokens[S],M=b.styleName&&t.rich[b.styleName]||{},C=b.textPadding=M.padding,D=C?C[1]+C[3]:0,A=b.font=M.font||t.font;b.contentHeight=Nu(A);var L=W(M.height,b.contentHeight);if(b.innerHeight=L,C&&(L+=C[0]+C[2]),b.height=L,b.lineHeight=oa(M.lineHeight,t.lineHeight,L),b.align=M&&M.align||t.align,b.verticalAlign=M&&M.verticalAlign||"middle",y&&n!=null&&h+b.lineHeight>n){var I=r.lines.length;S>0?(m.tokens=m.tokens.slice(0,S),g(m,T,w),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<I;break t}var P=M.width,O=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,f.push(b),b.contentWidth=Wt(b.text,A);else{if(O){var E=M.backgroundColor,G=E&&E.image;G&&(G=m_(G),ja(G)&&(b.width=Math.max(b.width,G.width*L/G.height)))}var F=d&&i!=null?i-T:null;F!=null&&F<b.width?!O||F<D?(b.text="",b.width=b.contentWidth=0):(w_(p,b.text,F-D,A,t.ellipsis,{minChar:t.truncateMinChar}),b.text=p.text,r.isTruncated=r.isTruncated||p.isTruncated,b.width=b.contentWidth=Wt(b.text,A)):b.contentWidth=Wt(b.text,A)}b.width+=D,T+=b.width,M&&(w=Math.max(w,b.lineHeight))}g(m,T,w)}r.outerWidth=r.width=W(i,c),r.outerHeight=r.height=W(n,h),r.contentHeight=h,r.contentWidth=c,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var _=0;_<f.length;_++){var b=f[_],H=b.percentWidth;b.width=parseInt(H,10)/100*r.width}return r}function Yo(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Nr(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
`),l=!0),i.accumWidth=d}else{var y=Ac(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var g=f[p],_=new b_;if(_.styleName=n,_.text=g,_.isLineHolder=!g&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:Wt(g,u),!p&&!l){var m=(s[s.length-1]||(s[0]=new df)).tokens,w=m.length;w===1&&m[0].isLineHolder?m[0]=_:(g||!w||a)&&m.push(_)}else s.push(new df([_]))}}function M_(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var D_=Ke(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function A_(e){return M_(e)?!!D_[e]:!0}function Ac(e,t,r,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<e.length;h++){var c=e.charAt(h);if(c===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=Wt(c,t),d=i?!1:!A_(c);if(a.length?f+v>r:n+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Js="__zr_style_"+Math.round(Math.random()*10),Ir={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},to={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ir[Js]=!0;var pf=["z","z2","invisible"],P_=["invisible"],bn=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=ut(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&L_(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Q(0,0,0,0)),i?Q.applyTransform(r,n,i):r.copy(n),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Q(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:R(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Vi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Vi)},t.prototype.styleUpdated=function(){this.__dirty&=~Vi},t.prototype.createStyle=function(r){return qa(Ir,r)},t.prototype.useStyle=function(r){r[Js]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Js]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,pf)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=ut(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=ut(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var y=this.__inHover?P_:pf,c=0;c<y.length;c++){var v=y[c];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return R(r,i),r},t.prototype.getAnimationStyleProps=function(){return to},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Vt|Vi}(),t}(Za),Xo=new Q(0,0,0,0),$o=new Q(0,0,0,0);function L_(e,t,r){return Xo.copy(e.getBoundingRect()),e.transform&&Xo.applyTransform(e.transform),$o.width=t,$o.height=r,!Xo.intersect($o)}var Rt=Math.min,Et=Math.max,qo=Math.sin,Zo=Math.cos,lr=Math.PI*2,kn=_i(),Bn=_i(),Nn=_i();function yx(e,t,r){if(e.length!==0){for(var i=e[0],n=i[0],a=i[0],o=i[1],s=i[1],u=1;u<e.length;u++)i=e[u],n=Rt(n,i[0]),a=Et(a,i[0]),o=Rt(o,i[1]),s=Et(s,i[1]);t[0]=n,t[1]=o,r[0]=a,r[1]=s}}function gf(e,t,r,i,n,a){n[0]=Rt(e,r),n[1]=Rt(t,i),a[0]=Et(e,r),a[1]=Et(t,i)}var yf=[],_f=[];function I_(e,t,r,i,n,a,o,s,u,l){var f=ec,h=yt,c=f(e,r,n,o,yf);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,n,o,yf[v]);u[0]=Rt(d,u[0]),l[0]=Et(d,l[0])}c=f(t,i,a,s,_f);for(var v=0;v<c;v++){var y=h(t,i,a,s,_f[v]);u[1]=Rt(y,u[1]),l[1]=Et(y,l[1])}u[0]=Rt(e,u[0]),l[0]=Et(e,l[0]),u[0]=Rt(o,u[0]),l[0]=Et(o,l[0]),u[1]=Rt(t,u[1]),l[1]=Et(t,l[1]),u[1]=Rt(s,u[1]),l[1]=Et(s,l[1])}function R_(e,t,r,i,n,a,o,s){var u=rc,l=xt,f=Et(Rt(u(e,r,n),1),0),h=Et(Rt(u(t,i,a),1),0),c=l(e,r,n,f),v=l(t,i,a,h);o[0]=Rt(e,n,c),o[1]=Rt(t,a,v),s[0]=Et(e,n,c),s[1]=Et(t,a,v)}function E_(e,t,r,i,n,a,o,s,u){var l=ni,f=ai,h=Math.abs(n-a);if(h%lr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-i,u[0]=e+r,u[1]=t+i;return}if(kn[0]=Zo(n)*r+e,kn[1]=qo(n)*i+t,Bn[0]=Zo(a)*r+e,Bn[1]=qo(a)*i+t,l(s,kn,Bn),f(u,kn,Bn),n=n%lr,n<0&&(n=n+lr),a=a%lr,a<0&&(a=a+lr),n>a&&!o?a+=lr:n<a&&o&&(n+=lr),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Nn[0]=Zo(v)*r+e,Nn[1]=qo(v)*i+t,l(s,Nn,s),f(u,Nn,u))}var K={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fr=[],hr=[],ve=[],Ne=[],ce=[],de=[],Ko=Math.min,Qo=Math.max,vr=Math.cos,cr=Math.sin,Ce=Math.abs,js=Math.PI,Ge=js*2,Jo=typeof Float32Array<"u",Di=[];function jo(e){var t=Math.round(e/js*1e8)/1e8;return t%2*js}function O_(e,t){var r=jo(e[0]);r<0&&(r+=Ge);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=Ge?n=r+Ge:t&&r-n>=Ge?n=r-Ge:!t&&r>n?n=r+(Ge-jo(r-n)):t&&r<n&&(n=r-(Ge-jo(n-r))),e[0]=r,e[1]=n}var pi=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,i){i=i||0,i>0&&(this._ux=Ce(i/Pa/t)||0,this._uy=Ce(i/Pa/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(K.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=Ce(t-this._xi),n=Ce(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(K.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(K.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(K.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),Di[0]=n,Di[1]=a,O_(Di,o),n=Di[0],a=Di[1];var s=a-n;return this.addData(K.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=vr(a)*i+t,this._yi=cr(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(K.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(K.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Jo&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();Jo&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},e.prototype.addData=function(t,r,i,n,a,o,s,u,l){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]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Jo&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ve[0]=ve[1]=ce[0]=ce[1]=Number.MAX_VALUE,Ne[0]=Ne[1]=de[0]=de[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],i=t[o+1],n=r,a=i),s){case K.M:r=n=t[o++],i=a=t[o++],ce[0]=n,ce[1]=a,de[0]=n,de[1]=a;break;case K.L:gf(r,i,t[o],t[o+1],ce,de),r=t[o++],i=t[o++];break;case K.C:I_(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ce,de),r=t[o++],i=t[o++];break;case K.Q:R_(r,i,t[o++],t[o++],t[o],t[o+1],ce,de),r=t[o++],i=t[o++];break;case K.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var y=!t[o++];u&&(n=vr(v)*h+l,a=cr(v)*c+f),E_(l,f,h,c,v,d,y,ce,de),r=vr(d)*h+l,i=cr(d)*c+f;break;case K.R:n=r=t[o++],a=i=t[o++];var p=t[o++],g=t[o++];gf(n,a,n+p,a+g,ce,de);break;case K.Z:r=n,i=a;break}ni(ve,ve,ce),ai(Ne,Ne,de)}return o===0&&(ve[0]=ve[1]=Ne[0]=Ne[1]=0),new Q(ve[0],ve[1],Ne[0]-ve[0],Ne[1]-ve[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var y=-1;switch(v){case K.M:a=s=t[c++],o=u=t[c++];break;case K.L:{var p=t[c++],g=t[c++],_=p-a,m=g-o;(Ce(_)>i||Ce(m)>n||c===r-1)&&(y=Math.sqrt(_*_+m*m),a=p,o=g);break}case K.C:{var w=t[c++],T=t[c++],p=t[c++],g=t[c++],S=t[c++],b=t[c++];y=iy(a,o,w,T,p,g,S,b,10),a=S,o=b;break}case K.Q:{var w=t[c++],T=t[c++],p=t[c++],g=t[c++];y=oy(a,o,w,T,p,g,10),a=p,o=g;break}case K.A:var M=t[c++],C=t[c++],D=t[c++],A=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,d&&(s=vr(L)*D+M,u=cr(L)*A+C),y=Qo(D,A)*Ko(Ge,Math.abs(I)),a=vr(P)*D+M,o=cr(P)*A+C;break;case K.R:{s=a=t[c++],u=o=t[c++];var O=t[c++],E=t[c++];y=O*2+E*2;break}case K.Z:{var _=s-a,m=u-o;y=Math.sqrt(_*_+m*m),a=s,o=u;break}}y>=0&&(l[h++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,y,p=0,g=0,_,m=0,w,T;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,_=r*y,!_)))t:for(var S=0;S<o;){var b=i[S++],M=S===1;switch(M&&(l=i[S],f=i[S+1],s=l,u=f),b!==K.L&&m>0&&(t.lineTo(w,T),m=0),b){case K.M:s=l=i[S++],u=f=i[S++],t.moveTo(l,f);break;case K.L:{h=i[S++],c=i[S++];var C=Ce(h-l),D=Ce(c-f);if(C>n||D>a){if(v){var A=d[g++];if(p+A>_){var L=(_-p)/A;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}p+=A}t.lineTo(h,c),l=h,f=c,m=0}else{var I=C*C+D*D;I>m&&(w=h,T=c,m=I)}break}case K.C:{var P=i[S++],O=i[S++],E=i[S++],G=i[S++],F=i[S++],H=i[S++];if(v){var A=d[g++];if(p+A>_){var L=(_-p)/A;Ca(l,P,E,F,L,fr),Ca(f,O,G,H,L,hr),t.bezierCurveTo(fr[1],hr[1],fr[2],hr[2],fr[3],hr[3]);break t}p+=A}t.bezierCurveTo(P,O,E,G,F,H),l=F,f=H;break}case K.Q:{var P=i[S++],O=i[S++],E=i[S++],G=i[S++];if(v){var A=d[g++];if(p+A>_){var L=(_-p)/A;Ma(l,P,E,L,fr),Ma(f,O,G,L,hr),t.quadraticCurveTo(fr[1],hr[1],fr[2],hr[2]);break t}p+=A}t.quadraticCurveTo(P,O,E,G),l=E,f=G;break}case K.A:var U=i[S++],et=i[S++],J=i[S++],wt=i[S++],Gt=i[S++],Be=i[S++],je=i[S++],tr=!i[S++],Wr=J>wt?J:wt,zt=Ce(J-wt)>.001,pt=Gt+Be,V=!1;if(v){var A=d[g++];p+A>_&&(pt=Gt+Be*(_-p)/A,V=!0),p+=A}if(zt&&t.ellipse?t.ellipse(U,et,J,wt,je,Gt,pt,tr):t.arc(U,et,Wr,Gt,pt,tr),V)break t;M&&(s=vr(Gt)*J+U,u=cr(Gt)*wt+et),l=vr(pt)*J+U,f=cr(pt)*wt+et;break;case K.R:s=l=i[S],u=f=i[S+1],h=i[S++],c=i[S++];var $=i[S++],er=i[S++];if(v){var A=d[g++];if(p+A>_){var Mt=_-p;t.moveTo(h,c),t.lineTo(h+Ko(Mt,$),c),Mt-=$,Mt>0&&t.lineTo(h+$,c+Ko(Mt,er)),Mt-=er,Mt>0&&t.lineTo(h+Qo($-Mt,0),c+er),Mt-=$,Mt>0&&t.lineTo(h,c+Qo(er-Mt,0));break t}p+=A}t.rect(h,c,$,er);break;case K.Z:if(v){var A=d[g++];if(p+A>_){var L=(_-p)/A;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}p+=A}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=K,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function $r(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-i)/(e-r),l=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function k_(e,t,r,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>n+h&&l>o+h||l<e-h&&l<r-h&&l<n-h&&l<o-h)return!1;var c=ry(e,t,r,i,n,a,o,s,l,f,null);return c<=h/2}function B_(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>e+l&&s>r+l&&s>n+l||s<e-l&&s<r-l&&s<n-l)return!1;var f=ay(e,t,r,i,n,a,s,u,null);return f<=l/2}var mf=Math.PI*2;function Fn(e){return e%=mf,e<0&&(e+=mf),e}var Ai=Math.PI*2;function N_(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(i-n)%Ai<1e-4)return!0;if(a){var h=i;i=Fn(n),n=Fn(h)}else i=Fn(i),n=Fn(n);i>n&&(n+=Ai);var c=Math.atan2(u,s);return c<0&&(c+=Ai),c>=i&&c<=n||c+Ai>=i&&c+Ai<=n}function dr(e,t,r,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(r-e)+e;return u===n?1/0:u>n?s:0}var Fe=pi.CMD,pr=Math.PI*2,F_=1e-4;function z_(e,t){return Math.abs(e-t)<F_}var Dt=[-1,-1,-1],Zt=[-1,-1];function H_(){var e=Zt[0];Zt[0]=Zt[1],Zt[1]=e}function V_(e,t,r,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=tc(t,i,a,s,l,Dt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,y=0;y<f;y++){var p=Dt[y],g=p===0||p===1?.5:1,_=yt(e,r,n,o,p);_<u||(c<0&&(c=ec(t,i,a,s,Zt),Zt[1]<Zt[0]&&c>1&&H_(),v=yt(t,i,a,s,Zt[0]),c>1&&(d=yt(t,i,a,s,Zt[1]))),c===2?p<Zt[0]?h+=v<t?g:-g:p<Zt[1]?h+=d<v?g:-g:h+=s<d?g:-g:p<Zt[0]?h+=v<t?g:-g:h+=s<v?g:-g)}return h}function W_(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=ny(t,i,a,s,Dt);if(u===0)return 0;var l=rc(t,i,a);if(l>=0&&l<=1){for(var f=0,h=xt(t,i,a,l),c=0;c<u;c++){var v=Dt[c]===0||Dt[c]===1?.5:1,d=xt(e,r,n,Dt[c]);d<o||(Dt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Dt[0]===0||Dt[0]===1?.5:1,d=xt(e,r,n,Dt[0]);return d<o?0:a<t?v:-v}}function G_(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Dt[0]=-u,Dt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=pr-1e-4){i=0,n=pr;var f=a?1:-1;return o>=Dt[0]+e&&o<=Dt[1]+e?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=pr,n+=pr);for(var c=0,v=0;v<2;v++){var d=Dt[v];if(d+e>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=pr+y),(y>=i&&y<=n||y+pr>=i&&y+pr<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Pc(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var y=a[d++],p=d===1;switch(y===Fe.M&&d>1&&(r||(s+=dr(u,l,f,h,i,n))),p&&(u=a[d],l=a[d+1],f=u,h=l),y){case Fe.M:f=a[d++],h=a[d++],u=f,l=h;break;case Fe.L:if(r){if($r(u,l,a[d],a[d+1],t,i,n))return!0}else s+=dr(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Fe.C:if(r){if(k_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=V_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Fe.Q:if(r){if(B_(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=W_(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Fe.A:var g=a[d++],_=a[d++],m=a[d++],w=a[d++],T=a[d++],S=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(T)*m+g,v=Math.sin(T)*w+_,p?(f=c,h=v):s+=dr(u,l,c,v,i,n);var M=(i-g)*w/m+g;if(r){if(N_(g,_,w,T,T+S,b,t,M,n))return!0}else s+=G_(g,_,w,T,T+S,b,M,n);u=Math.cos(T+S)*m+g,l=Math.sin(T+S)*w+_;break;case Fe.R:f=u=a[d++],h=l=a[d++];var C=a[d++],D=a[d++];if(c=f+C,v=h+D,r){if($r(f,h,c,h,t,i,n)||$r(c,h,c,v,t,i,n)||$r(c,v,f,v,t,i,n)||$r(f,v,f,h,t,i,n))return!0}else s+=dr(c,h,c,v,i,n),s+=dr(f,v,f,h,i,n);break;case Fe.Z:if(r){if($r(u,l,f,h,t,i,n))return!0}else s+=dr(u,l,f,h,i,n);u=f,l=h;break}}return!r&&!z_(l,h)&&(s+=dr(u,l,f,h,i,n)||0),s!==0}function U_(e,t,r){return Pc(e,0,!1,t,r)}function Y_(e,t,r,i){return Pc(e,t,!0,r,i)}var Lc=ot({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ir),X_={style:ot({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},to.style)},ts=ln.concat(["invisible","culling","z","z2","zlevel","parent"]),it=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){r.buildPath(u,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<ts.length;++s)n[ts[s]]=this[ts[s]];n.__dirty|=Vt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=ut(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?R(this.style,s):this.useStyle(s):o==="shape"?R(this.shape,s):e.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 r=this.style.fill;if(r!=="none"){if(B(r)){var i=Da(r,0);return i>.5?qs:i>.2?Py:Zs}else if(r)return Zs}return qs},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(B(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Da(r,0)<$s;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~ri},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new pi(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ri)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),Y_(s,u/l,r,i)))return!0}if(this.hasFill())return U_(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ri,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:R(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ri)},t.prototype.createStyle=function(r){return qa(Lc,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=R({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=R({},n.shape),R(l,i.shape)):(l=R({},a?this.shape:n.shape),R(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=R({},this.shape);for(var f={},h=ut(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return X_},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=function(a){j(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return q(r.style)},o.prototype.getDefaultShape=function(){return q(r.shape)},o}(t);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Vt|Vi|ri}(),t}(bn),$_=ot({strokeFirst:!0,font:kr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Lc),Ia=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return i!=null&&i!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return qa($_,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=lc(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(bn);Ia.prototype.type="tspan";var q_=ot({x:0,y:0},Ir),Z_={style:ot({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},to.style)};function K_(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Hr=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return qa(q_,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=K_(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Z_},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Q(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(bn);Hr.prototype.type="image";function Q_(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,i),e.lineTo(r+n-u,i),u!==0&&e.arc(r+n-u,i+u,u,-Math.PI/2,0),e.lineTo(r+n,i+a-l),l!==0&&e.arc(r+n-l,i+a-l,l,0,Math.PI/2),e.lineTo(r+f,i+a),f!==0&&e.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var si=Math.round;function Ic(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(si(i*2)===si(n*2)&&(e.x1=e.x2=Cr(i,s,!0)),si(a*2)===si(o*2)&&(e.y1=e.y2=Cr(a,s,!0))),e}}function Rc(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Cr(i,s,!0),e.y=Cr(n,s,!0),e.width=Math.max(Cr(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Cr(n+o,s,!1)-e.y,o===0?0:1)),e}}function Cr(e,t,r){if(!t)return e;var i=si(e*2);return(i+si(t))%2===0?i/2:(i+(r?1:-1))/2}var J_=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),j_={},Jt=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new J_},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=Rc(j_,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Q_(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(it);Jt.prototype.type="rect";var wf={fill:"#000"},Sf=2,t0={style:ot({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},to.style)},jt=function(e){j(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=wf,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,a0(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Q(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||wf},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return R(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=ut(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},R(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return t0},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||kr,n=r.padding,a=Af(r),o=T_(a,r),s=es(r),u=!!r.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=r.x||0,p=r.y||0,g=r.align||d.align||"left",_=r.verticalAlign||d.verticalAlign||"top",m=y,w=ii(p,o.contentHeight,_);if(s||n){var T=Gi(y,f,g),S=ii(p,l,_);s&&this._renderBackground(r,r,T,S,f,l)}w+=v/2,n&&(m=Df(y,g,n),_==="top"?w+=n[0]:_==="bottom"&&(w-=n[2]));for(var b=0,M=!1,C=Mf("fill"in r?r.fill:(M=!0,d.fill)),D=Cf("stroke"in r?r.stroke:!u&&(!d.autoStroke||M)?(b=Sf,d.stroke):null),A=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<c.length;P++){var O=this._getOrCreateChild(Ia),E=O.createStyle();O.useStyle(E),E.text=c[P],E.x=m,E.y=w,E.textAlign=g,E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=D,E.fill=C,D&&(E.lineWidth=r.lineWidth||b,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=i,bf(E,r),w+=v,L&&O.setBoundingRect(new Q(Gi(E.x,h,E.textAlign),ii(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var r=this.style,i=Af(r),n=C_(i,r),a=n.width,o=n.outerWidth,s=n.outerHeight,u=r.padding,l=r.x||0,f=r.y||0,h=this._defaultStyle,c=r.align||h.align,v=r.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var d=Gi(l,o,c),y=ii(f,s,v),p=d,g=y;u&&(p+=u[3],g+=u[0]);var _=p+a;es(r)&&this._renderBackground(r,r,d,y,o,s);for(var m=!!r.backgroundColor,w=0;w<n.lines.length;w++){for(var T=n.lines[w],S=T.tokens,b=S.length,M=T.lineHeight,C=T.width,D=0,A=p,L=_,I=b-1,P=void 0;D<b&&(P=S[D],!P.align||P.align==="left");)this._placeToken(P,r,M,g,A,"left",m),C-=P.width,A+=P.width,D++;for(;I>=0&&(P=S[I],P.align==="right");)this._placeToken(P,r,M,g,L,"right",m),C-=P.width,L-=P.width,I--;for(A+=(a-(A-p)-(_-L)-C)/2;D<=I;)P=S[D],this._placeToken(P,r,M,g,A+P.width/2,"center",m),A+=P.width,D++;g+=M}},t.prototype._placeToken=function(r,i,n,a,o,s,u){var l=i.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+n/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+n-r.height/2);var c=!r.isLineHolder&&es(l);c&&this._renderBackground(l,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Df(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(Ia),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,_=!1,m=0,w=Mf("fill"in l?l.fill:"fill"in i?i.fill:(_=!0,g.fill)),T=Cf("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!g.autoStroke||_)?(m=Sf,g.stroke):null),S=l.textShadowBlur>0||i.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,S&&(p.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,p.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||kr,p.opacity=oa(l.opacity,i.opacity,1),bf(p,l),T&&(p.lineWidth=oa(l.lineWidth,i.lineWidth,m),p.lineDash=W(l.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=T),w&&(p.fill=w);var b=r.contentWidth,M=r.contentHeight;y.setBoundingRect(new Q(Gi(p.x,b,p.textAlign),ii(p.y,M,p.textBaseline),b,M))},t.prototype._renderBackground=function(r,i,n,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,y,p;if(c||r.lineHeight||l&&f){y=this._getOrCreateChild(Jt),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(c){var _=y.style;_.fill=u||null,_.fillOpacity=W(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Hr),p.onload=function(){d.dirtyStyle()};var m=p.style;m.image=u.image,m.x=n,m.y=a,m.width=o,m.height=s}if(l&&f){var _=y.style;_.lineWidth=l,_.stroke=f,_.strokeOpacity=W(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var w=(y||p).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=oa(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return n0(r)&&(i=[r.fontStyle,r.fontWeight,i0(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&ye(i)||r.textFont||r.font},t}(bn),e0={left:!0,right:1,center:1},r0={top:1,bottom:1,middle:1},Tf=["fontStyle","fontWeight","fontSize","fontFamily"];function i0(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Du+"px":e+"px"}function bf(e,t){for(var r=0;r<Tf.length;r++){var i=Tf[r],n=t[i];n!=null&&(e[i]=n)}}function n0(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function a0(e){return xf(e),x(e.rich,xf),e}function xf(e){if(e){e.font=jt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||e0[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||r0[r]?r:"top";var i=e.padding;i&&(e.padding=Hv(e.padding))}}function Cf(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Mf(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Df(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Af(e){var t=e.text;return t!=null&&(t+=""),t}function es(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var nt=mt(),o0=function(e,t,r,i){if(i){var n=nt(i);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=nt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Pf=1,Lf={},Ec=mt(),Vu=mt(),Wu=0,eo=1,ro=2,Je=["emphasis","blur","select"],If=["normal","emphasis","blur","select"],s0=10,u0=9,Rr="highlight",da="downplay",Qi="select",pa="unselect",Ji="toggleSelect";function qr(e){return e!=null&&e!=="none"}function io(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Oc(e){io(e,"emphasis",ro)}function kc(e){e.hoverState===ro&&io(e,"normal",Wu)}function Gu(e){io(e,"blur",eo)}function Bc(e){e.hoverState===eo&&io(e,"normal",Wu)}function l0(e){e.selected=!0}function f0(e){e.selected=!1}function Rf(e,t,r){t(e,r)}function ke(e,t,r){Rf(e,t,r),e.isGroup&&e.traverse(function(i){Rf(i,t,r)})}function _x(e,t){switch(t){case"emphasis":e.hoverState=ro;break;case"normal":e.hoverState=Wu;break;case"blur":e.hoverState=eo;break;case"select":e.selected=!0}}function h0(e,t,r,i){for(var n=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??i[s]}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function v0(e,t,r,i){var n=r&&at(r,"select")>=0,a=!1;if(e instanceof it){var o=Ec(e),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(qr(s)||qr(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=R({},i),l=R({},l),l.fill=s):!qr(l.fill)&&qr(s)?(a=!0,i=R({},i),l=R({},l),l.fill=$l(s)):!qr(l.stroke)&&qr(u)&&(a||(i=R({},i),l=R({},l)),l.stroke=$l(u)),i.style=l}}if(i&&i.z2==null){a||(i=R({},i));var f=e.z2EmphasisLift;i.z2=e.z2+(f??s0)}return i}function c0(e,t,r){if(r&&r.z2==null){r=R({},r);var i=e.z2SelectLift;r.z2=e.z2+(i??u0)}return r}function d0(e,t,r){var i=at(e.currentStates,t)>=0,n=e.style.opacity,a=i?null:h0(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=R({},r),o=R({opacity:i?n:a.opacity*.1},o),r.style=o),r}function rs(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return v0(this,e,t,r);if(e==="blur")return d0(this,e,r);if(e==="select")return c0(this,e,r)}return r}function p0(e){e.stateProxy=rs;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=rs),r&&(r.stateProxy=rs)}function Ef(e,t){!Hc(e,t)&&!e.__highByOuter&&ke(e,Oc)}function Of(e,t){!Hc(e,t)&&!e.__highByOuter&&ke(e,kc)}function tu(e,t){e.__highByOuter|=1<<(t||0),ke(e,Oc)}function eu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ke(e,kc)}function g0(e){ke(e,Gu)}function Nc(e){ke(e,Bc)}function Fc(e){ke(e,l0)}function zc(e){ke(e,f0)}function Hc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Vc(e){var t=e.getModel(),r=[],i=[];t.eachComponent(function(n,a){var o=Vu(a),s=n==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){Bc(l)}),s&&r.push(a)),o.isBlured=!1}),x(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function ru(e,t,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Nc(c)}}if(e!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Gu(p)}),Bt(t))a(l.getData(),t);else if(N(t))for(var d=ut(t),y=0;y<d.length;y++)a(l.getData(d[y]),t[d[y]]);u.push(l),Vu(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function iu(e,t,r){if(!(e==null||t==null)){var i=r.getModel().getComponent(e,t);if(i){Vu(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Gu(a)})}}}function y0(e,t,r){var i=e.seriesIndex,n=e.getData(t.dataType);if(n){var a=Sn(n,t);a=(k(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=nt(o);ru(i,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&ru(i,f,h,r)}}}function Uu(e,t,r,i){var n={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return n;var a=i.getModel().getComponent(e,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(nt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function _0(e,t,r){var i=nt(e),n=Uu(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&iu(i.componentMainType,i.componentIndex,r),x(a,function(s){return Ef(s,t)})):(ru(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&iu(i.componentMainType,i.componentIndex,r),Ef(e,t))}function m0(e,t,r){Vc(r);var i=nt(e),n=Uu(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?x(n,function(a){return Of(a,t)}):Of(e,t)}function w0(e,t,r){if(au(t)){var i=t.dataType,n=e.getData(i),a=Sn(n,t);k(a)||(a=[a]),e[t.type===Ji?"toggleSelect":t.type===Qi?"select":"unselect"](a,i)}}function kf(e){var t=e.getAllData();x(t,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){e.isSelected(o,n)?Fc(a):zc(a)})})}function S0(e){var t=[];return e.eachSeries(function(r){var i=r.getAllData();x(i,function(n){n.data;var a=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function T0(e,t,r){Wc(e,!0),ke(e,p0),x0(e,t,r)}function b0(e){Wc(e,!1)}function mx(e,t,r,i){i?b0(e):T0(e,t,r)}function x0(e,t,r){var i=nt(e);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var Bf=["emphasis","blur","select"],C0={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Sx(e,t,r,i){r=r||"itemStyle";for(var n=0;n<Bf.length;n++){var a=Bf[n],o=t.getModel([a,r]),s=e.ensureState(a);s.style=i?i(o):o[C0[r]]()}}function Wc(e,t){var r=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function nu(e){return!!(e&&e.__highDownDispatcher)}function Tx(e,t,r){var i=nt(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=r}function M0(e){var t=Lf[e];return t==null&&Pf<=32&&(t=Lf[e]=Pf++),t}function au(e){var t=e.type;return t===Qi||t===pa||t===Ji}function Nf(e){var t=e.type;return t===Rr||t===da}function D0(e){var t=Ec(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Zr=pi.CMD,A0=[[],[],[]],Ff=Math.sqrt,P0=Math.atan2;function Gc(e,t){if(t){var r=e.data,i=e.len(),n,a,o,s,u,l,f=Zr.M,h=Zr.C,c=Zr.L,v=Zr.R,d=Zr.A,y=Zr.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case y:a=2;break;case d:var p=t[4],g=t[5],_=Ff(t[0]*t[0]+t[1]*t[1]),m=Ff(t[2]*t[2]+t[3]*t[3]),w=P0(-t[1]/m,t[0]/_);r[o]*=_,r[o++]+=p,r[o]*=m,r[o++]+=g,r[o++]*=_,r[o++]*=m,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],me(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],me(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var T=A0[u];T[0]=r[o++],T[1]=r[o++],me(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var is=Math.sqrt,zn=Math.sin,Hn=Math.cos,Pi=Math.PI;function zf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ou(e,t){return(e[0]*t[0]+e[1]*t[1])/(zf(e)*zf(t))}function Hf(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ou(e,t))}function Vf(e,t,r,i,n,a,o,s,u,l,f){var h=u*(Pi/180),c=Hn(h)*(e-r)/2+zn(h)*(t-i)/2,v=-1*zn(h)*(e-r)/2+Hn(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=is(d),s*=is(d));var y=(n===a?-1:1)*is((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=y*o*v/s,g=y*-s*c/o,_=(e+r)/2+Hn(h)*p-zn(h)*g,m=(t+i)/2+zn(h)*p+Hn(h)*g,w=Hf([1,0],[(c-p)/o,(v-g)/s]),T=[(c-p)/o,(v-g)/s],S=[(-1*c-p)/o,(-1*v-g)/s],b=Hf(T,S);if(ou(T,S)<=-1&&(b=Pi),ou(T,S)>=1&&(b=0),b<0){var M=Math.round(b/Pi*1e6)/1e6;b=Pi*2+M%2*Pi}f.addData(l,_,m,o,s,w,b,h,a)}var L0=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,I0=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function R0(e){var t=new pi;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=pi.CMD,u=e.match(L0);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(I0)||[],d=v.length,y=0;y<d;y++)v[y]=parseFloat(v[y]);for(var p=0;p<d;){var g=void 0,_=void 0,m=void 0,w=void 0,T=void 0,S=void 0,b=void 0,M=r,C=i,D=void 0,A=void 0;switch(h){case"l":r+=v[p++],i+=v[p++],c=s.L,t.addData(c,r,i);break;case"L":r=v[p++],i=v[p++],c=s.L,t.addData(c,r,i);break;case"m":r+=v[p++],i+=v[p++],c=s.M,t.addData(c,r,i),n=r,a=i,h="l";break;case"M":r=v[p++],i=v[p++],c=s.M,t.addData(c,r,i),n=r,a=i,h="L";break;case"h":r+=v[p++],c=s.L,t.addData(c,r,i);break;case"H":r=v[p++],c=s.L,t.addData(c,r,i);break;case"v":i+=v[p++],c=s.L,t.addData(c,r,i);break;case"V":i=v[p++],c=s.L,t.addData(c,r,i);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],i=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+r,v[p++]+i,v[p++]+r,v[p++]+i,v[p++]+r,v[p++]+i),r+=v[p-2],i+=v[p-1];break;case"S":g=r,_=i,D=t.len(),A=t.data,o===s.C&&(g+=r-A[D-4],_+=i-A[D-3]),c=s.C,M=v[p++],C=v[p++],r=v[p++],i=v[p++],t.addData(c,g,_,M,C,r,i);break;case"s":g=r,_=i,D=t.len(),A=t.data,o===s.C&&(g+=r-A[D-4],_+=i-A[D-3]),c=s.C,M=r+v[p++],C=i+v[p++],r+=v[p++],i+=v[p++],t.addData(c,g,_,M,C,r,i);break;case"Q":M=v[p++],C=v[p++],r=v[p++],i=v[p++],c=s.Q,t.addData(c,M,C,r,i);break;case"q":M=v[p++]+r,C=v[p++]+i,r+=v[p++],i+=v[p++],c=s.Q,t.addData(c,M,C,r,i);break;case"T":g=r,_=i,D=t.len(),A=t.data,o===s.Q&&(g+=r-A[D-4],_+=i-A[D-3]),r=v[p++],i=v[p++],c=s.Q,t.addData(c,g,_,r,i);break;case"t":g=r,_=i,D=t.len(),A=t.data,o===s.Q&&(g+=r-A[D-4],_+=i-A[D-3]),r+=v[p++],i+=v[p++],c=s.Q,t.addData(c,g,_,r,i);break;case"A":m=v[p++],w=v[p++],T=v[p++],S=v[p++],b=v[p++],M=r,C=i,r=v[p++],i=v[p++],c=s.A,Vf(M,C,r,i,S,b,m,w,T,c,t);break;case"a":m=v[p++],w=v[p++],T=v[p++],S=v[p++],b=v[p++],M=r,C=i,r+=v[p++],i+=v[p++],c=s.A,Vf(M,C,r,i,S,b,m,w,T,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=n,i=a),o=c}return t.toStatic(),t}var Uc=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(it);function Yc(e){return e.setData!=null}function Xc(e,t){var r=R0(e),i=R({},t);return i.buildPath=function(n){if(Yc(n)){n.setData(r.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;r.rebuildPath(a,1)}},i.applyTransform=function(n){Gc(r,n),this.dirtyShape()},i}function E0(e,t){return new Uc(Xc(e,t))}function O0(e,t){var r=Xc(e,t),i=function(n){j(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Uc);return i}function k0(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new it(t);return o.createPathProxy(),o.buildPath=function(s){if(Yc(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function bx(e,t){t=t||{};var r=new it;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?Gc(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var B0=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),no=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new B0},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(it);no.prototype.type="circle";var N0=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Yu=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new N0},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t}(it);Yu.prototype.type="ellipse";var $c=Math.PI,ns=$c*2,gr=Math.sin,Kr=Math.cos,F0=Math.acos,St=Math.atan2,Wf=Math.abs,ji=Math.sqrt,Ui=Math.max,pe=Math.min,re=1e-4;function z0(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,f=o-n,h=s-a,c=h*u-f*l;if(!(c*c<re))return c=(f*(t-a)-h*(e-n))/c,[e+c*u,t+c*l]}function Vn(e,t,r,i,n,a,o){var s=e-r,u=t-i,l=(o?a:-a)/ji(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,y=i+h,p=(c+d)/2,g=(v+y)/2,_=d-c,m=y-v,w=_*_+m*m,T=n-a,S=c*y-d*v,b=(m<0?-1:1)*ji(Ui(0,T*T*w-S*S)),M=(S*m-_*b)/w,C=(-S*_-m*b)/w,D=(S*m+_*b)/w,A=(-S*_+m*b)/w,L=M-p,I=C-g,P=D-p,O=A-g;return L*L+I*I>P*P+O*O&&(M=D,C=A),{cx:M,cy:C,x0:-f,y0:-h,x1:M*(n/T-1),y1:C*(n/T-1)}}function H0(e){var t;if(k(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function V0(e,t){var r,i=Ui(t.r,0),n=Ui(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Wf(l-u),d=v>ns&&v%ns;if(d>re&&(v=d),!(i>re))e.moveTo(f,h);else if(v>ns-re)e.moveTo(f+i*Kr(u),h+i*gr(u)),e.arc(f,h,i,u,l,!c),n>re&&(e.moveTo(f+n*Kr(l),h+n*gr(l)),e.arc(f,h,n,l,u,c));else{var y=void 0,p=void 0,g=void 0,_=void 0,m=void 0,w=void 0,T=void 0,S=void 0,b=void 0,M=void 0,C=void 0,D=void 0,A=void 0,L=void 0,I=void 0,P=void 0,O=i*Kr(u),E=i*gr(u),G=n*Kr(l),F=n*gr(l),H=v>re;if(H){var U=t.cornerRadius;U&&(r=H0(U),y=r[0],p=r[1],g=r[2],_=r[3]);var et=Wf(i-n)/2;if(m=pe(et,g),w=pe(et,_),T=pe(et,y),S=pe(et,p),C=b=Ui(m,w),D=M=Ui(T,S),(b>re||M>re)&&(A=i*Kr(l),L=i*gr(l),I=n*Kr(u),P=n*gr(u),v<$c)){var J=z0(O,E,I,P,A,L,G,F);if(J){var wt=O-J[0],Gt=E-J[1],Be=A-J[0],je=L-J[1],tr=1/gr(F0((wt*Be+Gt*je)/(ji(wt*wt+Gt*Gt)*ji(Be*Be+je*je)))/2),Wr=ji(J[0]*J[0]+J[1]*J[1]);C=pe(b,(i-Wr)/(tr+1)),D=pe(M,(n-Wr)/(tr-1))}}}if(!H)e.moveTo(f+O,h+E);else if(C>re){var zt=pe(g,C),pt=pe(_,C),V=Vn(I,P,O,E,i,zt,c),$=Vn(A,L,G,F,i,pt,c);e.moveTo(f+V.cx+V.x0,h+V.cy+V.y0),C<b&&zt===pt?e.arc(f+V.cx,h+V.cy,C,St(V.y0,V.x0),St($.y0,$.x0),!c):(zt>0&&e.arc(f+V.cx,h+V.cy,zt,St(V.y0,V.x0),St(V.y1,V.x1),!c),e.arc(f,h,i,St(V.cy+V.y1,V.cx+V.x1),St($.cy+$.y1,$.cx+$.x1),!c),pt>0&&e.arc(f+$.cx,h+$.cy,pt,St($.y1,$.x1),St($.y0,$.x0),!c))}else e.moveTo(f+O,h+E),e.arc(f,h,i,u,l,!c);if(!(n>re)||!H)e.lineTo(f+G,h+F);else if(D>re){var zt=pe(y,D),pt=pe(p,D),V=Vn(G,F,A,L,n,-pt,c),$=Vn(O,E,I,P,n,-zt,c);e.lineTo(f+V.cx+V.x0,h+V.cy+V.y0),D<M&&zt===pt?e.arc(f+V.cx,h+V.cy,D,St(V.y0,V.x0),St($.y0,$.x0),!c):(pt>0&&e.arc(f+V.cx,h+V.cy,pt,St(V.y0,V.x0),St(V.y1,V.x1),!c),e.arc(f,h,n,St(V.cy+V.y1,V.cx+V.x1),St($.cy+$.y1,$.cx+$.x1),c),zt>0&&e.arc(f+$.cx,h+$.cy,zt,St($.y1,$.x1),St($.y0,$.x0),!c))}else e.lineTo(f+G,h+F),e.arc(f,h,n,l,u,c)}e.closePath()}}}var W0=function(){function e(){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 e}(),Xu=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new W0},t.prototype.buildPath=function(r,i){V0(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(it);Xu.prototype.type="sector";var G0=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),$u=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new G0},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(it);$u.prototype.type="ring";function U0(e,t,r,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)ni(f,f,e[c]),ai(h,h,e[c]);ni(f,f,i[0]),ai(h,h,i[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){n.push(Cg(e[c]));continue}else u=e[c-1],l=e[c+1];Mg(a,l,u),To(a,a,t);var y=ks(d,u),p=ks(d,l),g=y+p;g!==0&&(y/=g,p/=g),To(o,a,-y),To(s,a,p);var _=Il([],d,o),m=Il([],d,s);i&&(ai(_,_,f),ni(_,_,h),ai(m,m,f),ni(m,m,h)),n.push(_),n.push(m)}return r&&n.push(n.shift()),n}function qc(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=U0(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var Y0=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),qu=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Y0},t.prototype.buildPath=function(r,i){qc(r,i,!0)},t}(it);qu.prototype.type="polygon";var X0=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Zu=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new X0},t.prototype.buildPath=function(r,i){qc(r,i,!1)},t}(it);Zu.prototype.type="polyline";var $0={},q0=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),mi=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new q0},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=Ic($0,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(r.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t}(it);mi.prototype.type="line";var Pt=[],Z0=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Gf(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?Wl:yt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Wl:yt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Gl:xt)(e.x1,e.cpx1,e.x2,t),(r?Gl:xt)(e.y1,e.cpy1,e.y2,t)]}var Ku=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Z0},t.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(r.moveTo(n,a),f==null||h==null?(c<1&&(Ma(n,u,o,c,Pt),u=Pt[1],o=Pt[2],Ma(a,l,s,c,Pt),l=Pt[1],s=Pt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Ca(n,u,f,o,c,Pt),u=Pt[1],f=Pt[2],o=Pt[3],Ca(a,l,h,s,c,Pt),l=Pt[1],h=Pt[2],s=Pt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Gf(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=Gf(this.shape,r,!0);return Pg(i,i)},t}(it);Ku.prototype.type="bezier-curve";var K0=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ao=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new K0},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+n,h*o+a),r.arc(n,a,o,s,u,!l)},t}(it);ao.prototype.type="arc";var Q0=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),it.prototype.getBoundingRect.call(this)},t}(it),Zc=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),J0=function(e){j(t,e);function t(r,i,n,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t}(Zc),j0=function(e){j(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(Zc),yr=[0,0],_r=[0,0],Wn=new tt,Gn=new tt,Ra=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new tt;for(var i=0;i<2;i++)this._axes[i]=new tt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),r)for(var l=0;l<4;l++)i[l].transform(r);tt.sub(n[0],i[1],i[0]),tt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},e.prototype.intersect=function(t,r){var i=!0,n=!r;return Wn.set(1/0,1/0),Gn.set(0,0),!this._intersectCheckOneSide(this,t,Wn,Gn,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,Wn,Gn,n,-1)&&(i=!1,n)||n||tt.copy(r,i?Wn:Gn),i},e.prototype._intersectCheckOneSide=function(t,r,i,n,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,yr),this._getProjMinMaxOnAxis(u,r._corners,_r),yr[1]<_r[0]||yr[0]>_r[1]){if(s=!1,a)return s;var f=Math.abs(_r[0]-yr[1]),h=Math.abs(yr[0]-_r[1]);Math.min(f,h)>n.len()&&(f<h?tt.scale(n,l,-f*o):tt.scale(n,l,h*o))}else if(i){var f=Math.abs(_r[0]-yr[1]),h=Math.abs(yr[0]-_r[1]);Math.min(f,h)<i.len()&&(f<h?tt.scale(i,l,f*o):tt.scale(i,l,-h*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(n)+a[t];s=Math.min(f,s),u=Math.max(f,u)}i[0]=s,i[1]=u},e}(),tm=[],em=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.call(i,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(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Q(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(tm)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},t}(bn),Kc=mt();function rm(e,t,r,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=W(i.duration,200),f=W(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Z(h)&&(h=h(r,n)),Z(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function Qu(e,t,r,i,n,a,o){var s=!1,u;Z(n)?(o=a,a=n,n=null):N(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=rm(e,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function oo(e,t,r,i,n,a){Qu("update",e,t,r,i,n,a)}function Qc(e,t,r,i,n,a){Qu("enter",e,t,r,i,n,a)}function tn(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Jc(e,t,r,i,n,a){tn(e)||Qu("leave",e,t,r,i,n,a)}function Uf(e,t,r,i){e.removeTextContent(),e.removeTextGuideLine(),Jc(e,{style:{opacity:0}},t,r,i)}function im(e,t,r){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||Uf(n,t,r,i)}):Uf(e,t,r,i)}function xx(e){Kc(e).oldStyle=e.style}function Cx(e){return Kc(e).oldStyle}var Ea=Math.max,Oa=Math.min,su={};function nm(e){return it.extend(e)}var am=O0;function om(e,t){return am(e,t)}function fe(e,t){su[e]=t}function sm(e){if(su.hasOwnProperty(e))return su[e]}function Ju(e,t,r,i){var n=E0(e,t);return r&&(i==="center"&&(r=td(r,n.getBoundingRect())),ed(n,r)),n}function jc(e,t,r){var i=new Hr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(td(t,a))}}});return i}function td(e,t){var r=t.width/t.height,i=e.height*r,n;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var um=k0;function ed(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}}function ju(e,t){return Ic(e,e,{lineWidth:t}),e}function lm(e){return Rc(e.shape,e.shape,e.style),e}var fm=Cr;function hm(e,t){for(var r=Eu([]);e&&e!==t;)li(r,e.getLocalTransform(),r),e=e.parent;return r}function tl(e,t,r){return t&&!Bt(t)&&(t=Bu.getLocalTransform(t)),r&&(t=$v([],t)),me([],e,t)}function vm(e,t,r){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-i:e==="right"?i:0,e==="top"?-n:e==="bottom"?n:0];return a=tl(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Yf(e){return!e.isGroup}function cm(e){return e.shape!=null}function dm(e,t,r){if(!e||!t)return;function i(o){var s={};return o.traverse(function(u){Yf(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cm(o)&&(s.shape=R({},o.shape)),s}var a=i(e);t.traverse(function(o){if(Yf(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),oo(o,u,r,nt(o).dataIndex)}}})}function pm(e,t){return Y(e,function(r){var i=r[0];i=Ea(i,t.x),i=Oa(i,t.x+t.width);var n=r[1];return n=Ea(n,t.y),n=Oa(n,t.y+t.height),[i,n]})}function gm(e,t){var r=Ea(e.x,t.x),i=Oa(e.x+e.width,t.x+t.width),n=Ea(e.y,t.y),a=Oa(e.y+e.height,t.y+t.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function rd(e,t,r){var i=R({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(n.image=e.slice(8),ot(n,r),new Hr(i)):Ju(e.replace("path://",""),i,r,"center")}function ym(e,t,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(id(e,t,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function id(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,f=o-n,h=s-a,c=as(f,h,u,l);if(_m(c))return!1;var v=e-n,d=t-a,y=as(v,d,u,l)/c;if(y<0||y>1)return!1;var p=as(v,d,f,h)/c;return!(p<0||p>1)}function as(e,t,r,i){return e*i-r*t}function _m(e){return e<=1e-6&&e>=-1e-6}function el(e){var t=e.itemTooltipOption,r=e.componentModel,i=e.itemName,n=B(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&x(ut(u),function(f){Br(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=nt(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:ot({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Xf(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function nd(e,t){if(e)if(k(e))for(var r=0;r<e.length;r++)Xf(e[r],t);else Xf(e,t)}fe("circle",no);fe("ellipse",Yu);fe("sector",Xu);fe("ring",$u);fe("polygon",qu);fe("polyline",Zu);fe("rect",Jt);fe("line",mi);fe("bezierCurve",Ku);fe("arc",ao);const mm=Object.freeze(Object.defineProperty({__proto__:null,Arc:ao,BezierCurve:Ku,BoundingRect:Q,Circle:no,CompoundPath:Q0,Ellipse:Yu,Group:Ie,Image:Hr,IncrementalDisplayable:em,Line:mi,LinearGradient:J0,OrientedBoundingRect:Ra,Path:it,Point:tt,Polygon:qu,Polyline:Zu,RadialGradient:j0,Rect:Jt,Ring:$u,Sector:Xu,Text:jt,applyTransform:tl,clipPointsByRect:pm,clipRectByRect:gm,createIcon:rd,extendPath:om,extendShape:nm,getShapeClass:sm,getTransform:hm,groupTransition:dm,initProps:Qc,isElementRemoved:tn,lineLineIntersect:id,linePolygonIntersect:ym,makeImage:jc,makePath:Ju,mergePath:um,registerShape:fe,removeElement:Jc,removeElementWithFadeOut:im,resizePath:ed,setTooltipConfig:el,subPixelOptimize:fm,subPixelOptimizeLine:ju,subPixelOptimizeRect:lm,transformDirection:vm,traverseElements:nd,updateProps:oo},Symbol.toStringTag,{value:"Module"}));var so={};function ad(e,t){for(var r=0;r<Je.length;r++){var i=Je[r],n=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function uu(e,t,r){var i=e.labelFetcher,n=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Z(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var u={normal:s},l=0;l<Je.length;l++){var f=Je[l],h=t[f];u[f]=W(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function Mx(e,t,r,i){r=r||so;for(var n=e instanceof jt,a=!1,o=0;o<If.length;o++){var s=t[If[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?e:e.getTextContent();if(a){n||(u||(u=new jt,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=uu(r,t),f=t.normal,h=!!f.getShallow("show"),c=Fr(f,i&&i.normal,r,!1,!n);c.text=l.normal,n||e.setTextConfig($f(f,r,!1));for(var o=0;o<Je.length;o++){var v=Je[o],s=t[v];if(s){var d=u.ensureState(v),y=!!W(s.getShallow("show"),h);if(y!==h&&(d.ignore=!y),d.style=Fr(s,i&&i[v],r,!0,!n),d.style.text=l[v],!n){var p=e.ensureState(v);p.textConfig=$f(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(rl(u).setLabelText=function(g){var _=uu(r,t,g);ad(u,_)})}else u&&(u.ignore=!0);e.dirty()}function Dx(e,t){t=t||"label";for(var r={normal:e.getModel(t)},i=0;i<Je.length;i++){var n=Je[i];r[n]=e.getModel([n,t])}return r}function Fr(e,t,r,i,n){var a={};return wm(a,e,r,i,n),t&&R(a,t),a}function $f(e,t,r){t=t||{};var i={},n,a=e.getShallow("rotate"),o=W(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return n=e.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",i}function wm(e,t,r,i,n){r=r||so;var a=t.ecModel,o=a&&a.option.textStyle,s=Sm(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);Qf(u[l]={},f,o,r,i,n,!1,!0)}}u&&(e.rich=u);var h=t.get("overflow");h&&(e.overflow=h);var c=t.get("minMargin");c!=null&&(e.margin=c),Qf(e,t,o,r,i,n,!0,!1)}function Sm(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||so).rich;if(r){t=t||{};for(var i=ut(r),n=0;n<i.length;n++){var a=i[n];t[a]=1}}e=e.parentModel}return t}var qf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Kf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Qf(e,t,r,i,n,a,o,s){r=!n&&r||so;var u=i&&i.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=W(t.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||r.color,f=f||r.textBorderColor),l!=null&&(e.fill=l),f!=null&&(e.stroke=f);var c=W(t.getShallow("textBorderWidth"),r.textBorderWidth);c!=null&&(e.lineWidth=c);var v=W(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=W(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(e.opacity=h),!n&&!a&&e.fill==null&&i.inheritColor&&(e.fill=i.inheritColor);for(var y=0;y<qf.length;y++){var p=qf[y],g=W(t.getShallow(p),r[p]);g!=null&&(e[p]=g)}for(var y=0;y<Zf.length;y++){var p=Zf[y],g=t.getShallow(p);g!=null&&(e[p]=g)}if(e.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(e.verticalAlign=_)}if(!o||!i.disableBox){for(var y=0;y<Kf.length;y++){var p=Kf[y],g=t.getShallow(p);g!=null&&(e[p]=g)}var m=t.getShallow("borderType");m!=null&&(e.borderDash=m),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function Tm(e,t){var r=t&&t.getModel("textStyle");return ye([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var rl=mt();function Ax(e,t,r,i){if(e){var n=rl(e);n.prevValue=n.value,n.value=r;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}function Px(e,t,r,i,n){var a=rl(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=W(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=s_(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=uu({labelDataIndex:t,labelFetcher:n,defaultText:o?o(h):h+""},a.statesModels,h);ad(e,c)}e.percent=0,(a.prevValue==null?Qc:oo)(e,{percent:1},i,t,null,l)}var bm=["textStyle","color"],os=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ss=new jt,xm=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(bm):null)},e.prototype.getFont=function(){return Tm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<os.length;i++)r[os[i]]=this.getShallow(os[i]);return ss.useStyle(r),ss.update(),ss.getBoundingRect()},e}(),od=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cm=hn(od),Mm=function(){function e(){}return e.prototype.getLineStyle=function(t){return Cm(this,t)},e}(),sd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dm=hn(sd),Am=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Dm(this,t,r)},e}(),vt=function(){function e(t,r,i){this.parentModel=r,this.ecModel=i,this.option=t}return e.prototype.init=function(t,r,i){},e.prototype.mergeOption=function(t,r){st(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var i=this.option,n=i==null?i:i[t];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},e.prototype.getModel=function(t,r){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(q(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!z.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(t),r.parentModel)),i},e}();Hu(vt);c_(vt);Oe(vt,Mm);Oe(vt,Am);Oe(vt,__);Oe(vt,xm);var Pm=Math.round(Math.random()*10);function uo(e){return[e||"",Pm++].join("_")}function Lm(e){var t={};e.registerSubTypeDefaulter=function(r,i){var n=_e(r);t[n.main]=i},e.determineSubType=function(r,i){var n=i.type;if(!n){var a=_e(r).main;e.hasSubTypes(r)&&t[a]&&(n=t[a](i))}return n}}function Im(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(x(a,function(_){c[_]=!0});h.length;){var v=h.pop(),d=f[v],y=!!c[v];y&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),x(d.successor,y?g:p)}x(c,function(){var _="";throw new Error(_)});function p(_){f[_].entryCount--,f[_].entryCount===0&&h.push(_)}function g(_){c[_]=!0,p(_)}};function r(a){var o={},s=[];return x(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),x(h,function(c){at(l.predecessor,c)<0&&l.predecessor.push(c);var v=i(o,c);at(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return x(a,function(u){at(o,u)>=0&&s.push(u)}),s}}function Lx(e,t){return st(st({},e,!0),t,!0)}const Rm={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:". "}}}},Em={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var ka="ZH",il="EN",hi=il,ga={},nl={},ud=z.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||hi).toUpperCase();return e.indexOf(ka)>-1?ka:hi}():hi;function ld(e,t){e=e.toUpperCase(),nl[e]=new vt(t),ga[e]=t}function Om(e){if(B(e)){var t=ga[e.toUpperCase()]||{};return e===ka||e===il?q(t):st(q(t),q(ga[hi]),!1)}else return st(q(e),q(ga[hi]),!1)}function km(e){return nl[e]}function Bm(){return nl[hi]}ld(il,Rm);ld(ka,Em);var al=1e3,ol=al*60,en=ol*60,Qt=en*24,Jf=Qt*365,Yi={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}"},Un="{yyyy}-{MM}-{dd}",jf={year:"{yyyy}",month:"{yyyy}-{MM}",day:Un,hour:Un+" "+Yi.hour,minute:Un+" "+Yi.minute,second:Un+" "+Yi.second,millisecond:Yi.none},us=["year","month","day","hour","minute","second","millisecond"],fd=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ze(e,t){return e+="","0000".substr(0,t-e.length)+e}function vi(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Nm(e){return e===vi(e)}function Fm(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function lo(e,t,r,i){var n=Re(e),a=n[sl(r)](),o=n[ci(r)]()+1,s=Math.floor((o-1)/3)+1,u=n[fo(r)](),l=n["get"+(r?"UTC":"")+"Day"](),f=n[vn(r)](),h=(f-1)%12+1,c=n[ho(r)](),v=n[vo(r)](),d=n[co(r)](),y=f>=12?"pm":"am",p=y.toUpperCase(),g=i instanceof vt?i:km(i||ud)||Bm(),_=g.getModel("time"),m=_.get("month"),w=_.get("monthAbbr"),T=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ze(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,ze(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ze(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,ze(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ze(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ze(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ze(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ze(d,3)).replace(/{S}/g,d+"")}function zm(e,t,r,i,n){var a=null;if(B(r))a=r;else if(Z(r))a=r(e.value,t,{level:e.level});else{var o=R({},Yi);if(e.level>0)for(var s=0;s<us.length;++s)o[us[s]]="{primary|"+o[us[s]]+"}";var u=r?r.inherit===!1?r:ot(r,o):o,l=hd(e.value,n);if(u[l])a=u[l];else if(u.inherit){for(var f=fd.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(k(a)){var h=e.level==null?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return lo(new Date(e.value),a,n,i)}function hd(e,t){var r=Re(e),i=r[ci(t)]()+1,n=r[fo(t)](),a=r[vn(t)](),o=r[ho(t)](),s=r[vo(t)](),u=r[co(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function th(e,t,r){var i=lt(e)?Re(e):e;switch(t=t||hd(e,r),t){case"year":return i[sl(r)]();case"half-year":return i[ci(r)]()>=6?1:0;case"quarter":return Math.floor((i[ci(r)]()+1)/4);case"month":return i[ci(r)]();case"day":return i[fo(r)]();case"half-day":return i[vn(r)]()/24;case"hour":return i[vn(r)]();case"minute":return i[ho(r)]();case"second":return i[vo(r)]();case"millisecond":return i[co(r)]()}}function sl(e){return e?"getUTCFullYear":"getFullYear"}function ci(e){return e?"getUTCMonth":"getMonth"}function fo(e){return e?"getUTCDate":"getDate"}function vn(e){return e?"getUTCHours":"getHours"}function ho(e){return e?"getUTCMinutes":"getMinutes"}function vo(e){return e?"getUTCSeconds":"getSeconds"}function co(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Hm(e){return e?"setUTCFullYear":"setFullYear"}function vd(e){return e?"setUTCMonth":"setMonth"}function cd(e){return e?"setUTCDate":"setDate"}function dd(e){return e?"setUTCHours":"setHours"}function pd(e){return e?"setUTCMinutes":"setMinutes"}function gd(e){return e?"setUTCSeconds":"setSeconds"}function yd(e){return e?"setUTCMilliseconds":"setMilliseconds"}function _d(e){if(!$y(e))return B(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function md(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var po=Hv;function lu(e,t,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&ye(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?Re(e):e;if(isNaN(+u)){if(s)return"-"}else return lo(u,i,r)}if(t==="ordinal")return Es(e)?n(e):lt(e)&&a(e)?e+"":"-";var l=Qe(e);return a(l)?_d(l):Es(e)?n(e):typeof e=="boolean"?e+"":"-"}var eh=["a","b","c","d","e","f","g"],ls=function(e,t){return"{"+e+(t??"")+"}"};function wd(e,t,r){k(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=eh[a];e=e.replace(ls(o),ls(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];e=e.replace(ls(eh[u],s),r?It(l):l)}return e}function Ix(e,t,r){return x(t,function(i,n){e=e.replace("{"+n+"}",i)}),e}function Vm(e,t){var r=B(e)?{color:e,extraCssText:t}:e||{},i=r.color,n=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+It(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+It(i)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function cn(e,t){return t=t||"transparent",B(e)?e:N(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function rh(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ya=x,Wm=["left","right","top","bottom","width","height"],Mr=[["width","left","right"],["height","top","bottom"]];function ul(e,t,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>i||u.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>n||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var Rx=ul;ae(ul,"vertical");ae(ul,"horizontal");function Ex(e,t,r){var i=t.width,n=t.height,a=ct(e.left,i),o=ct(e.top,n),s=ct(e.right,i),u=ct(e.bottom,n);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=n),r=po(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(u-o-r[0]-r[2],0)}}function ll(e,t,r){r=po(r||0);var i=t.width,n=t.height,a=ct(e.left,i),o=ct(e.top,n),s=ct(e.right,i),u=ct(e.bottom,n),l=ct(e.width,i),f=ct(e.height,n),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=i-s-c-a),isNaN(f)&&(f=n-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=i-s-l-c),isNaN(o)&&(o=n-u-f-h),e.left||e.right){case"center":a=i/2-l/2-r[3];break;case"right":a=i-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new Q(a+r[3],o+r[0],l,f);return d.margin=r,d}function Ox(e,t,r,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],u=n&&n.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new Q(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=ll(ot({width:l.width,height:l.height},t),r,i),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===e&&e.markRedraw(),!0}function kx(e,t){return e[Mr[t][0]]!=null||e[Mr[t][1]]!=null&&e[Mr[t][2]]!=null}function Ba(e){var t=e.layoutMode||e.constructor.layoutMode;return N(t)?t:t?{type:t}:null}function Na(e,t,r){var i=r&&r.ignoreSize;!k(i)&&(i=[i,i]);var n=o(Mr[0],0),a=o(Mr[1],1);l(Mr[0],e,n),l(Mr[1],e,a);function o(f,h){var c={},v=0,d={},y=0,p=2;if(ya(f,function(m){d[m]=e[m]}),ya(f,function(m){s(t,m)&&(c[m]=d[m]=t[m]),u(c,m)&&v++,u(d,m)&&y++}),i[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return c;for(var g=0;g<f.length;g++){var _=f[g];if(!s(c,_)&&s(e,_)){c[_]=e[_];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){ya(f,function(v){h[v]=c[v]})}}function Sd(e){return Gm({},e)}function Gm(e,t){return t&&e&&ya(Wm,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Um=mt(),rt=function(e){dt(t,e);function t(r,i,n){var a=e.call(this,r,i,n)||this;return a.uid=uo("ec_cpt_model"),a}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=Ba(this),a=n?Sd(r):{},o=i.getTheme();st(r,o.get(this.mainType)),st(r,this.getDefaultOption()),n&&Na(r,a,n)},t.prototype.mergeOption=function(r,i){st(this.option,r,!0);var n=Ba(this);n&&Na(this.option,r,n)},t.prototype.optionUpdated=function(r,i){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!f_(r))return r.defaultOption;var i=Um(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=st(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return Tn(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(vt);xc(rt,vt);Ja(rt);Lm(rt);Im(rt,Ym);function Ym(e){var t=[];return x(rt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Y(t,function(r){return _e(r).main}),e!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}var Td="";typeof navigator<"u"&&(Td=navigator.platform||"");var Qr="rgba(0, 0, 0, 0.2)";const Xm={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Qr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Td.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 bd=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Te="original",Ft="arrayRows",he="objectRows",be="keyedColumns",Ze="typedArray",xd="unknown",Le="column",wi="row",gt={Must:1,Might:2,Not:3},Cd=mt();function $m(e){Cd(e).datasetMap=X()}function Bx(e,t,r){var i={},n=fl(t);if(!n||!e)return i;var a=[],o=[],s=t.ecModel,u=Cd(s).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),x(e,function(y,p){var g=N(y)?y:e[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),i[g.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});x(e,function(y,p){var g=y.name,_=d(y);if(f==null){var m=c.valueWayDim;v(i[g],m,_),v(o,m,_),c.valueWayDim+=_}else if(f===p)v(i[g],0,_),v(a,0,_);else{var m=c.categoryWayDim;v(i[g],m,_),v(o,m,_),c.categoryWayDim+=_}});function v(y,p,g){for(var _=0;_<g;_++)y.push(p+_)}function d(y){var p=y.dimsDef;return p?p.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Nx(e,t,r){var i={},n=fl(e);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===he||a===be)&&x(o,function(f,h){(N(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var y=Dd(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(y);var p=y===gt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===gt.Not)&&(f.n=v),g(f)&&c[f.n]!==gt.Not)return f;p||(y===gt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function g(_){return _.v!=null&&_.n!=null}return g(f)?f:g(h)?h:null}();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function fl(e){var t=e.get("data",!0);if(!t)return Tn(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Qa).models[0]}function qm(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Tn(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Qa).models}function Md(e,t){return Dd(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Dd(e,t,r,i,n,a){var o,s=5;if(Nt(e))return gt.Not;var u,l;if(i){var f=i[a];N(f)?(u=f.name,l=f.type):B(f)&&(u=f)}if(l!=null)return l==="ordinal"?gt.Must:gt.Not;if(t===Ft){var h=e;if(r===wi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=w(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=w(d[a]))!=null)return o}}else if(t===he){var y=e;if(!u)return gt.Not;for(var v=0;v<y.length&&v<s;v++){var p=y[v];if(p&&(o=w(p[u]))!=null)return o}}else if(t===be){var g=e;if(!u)return gt.Not;var c=g[u];if(!c||Nt(c))return gt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=w(c[v]))!=null)return o}else if(t===Te)for(var _=e,v=0;v<_.length&&v<s;v++){var p=_[v],m=Ka(p);if(!k(m))return gt.Not;if((o=w(m[a]))!=null)return o}function w(T){var S=B(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return S?gt.Might:gt.Not;if(S&&T!=="-")return gt.Must}return gt.Not}var fu=X();function Fx(e,t){we(fu.get(e)==null&&t),fu.set(e,t)}function Zm(e,t,r){var i=fu.get(t);if(!i)return r;var n=i(e);return n?r.concat(n):r}var ih=mt(),Km=mt(),hl=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,i){var n=_t(this.get("color",!0)),a=this.get("colorLayer",!0);return Ad(this,ih,n,a,t,r,i)},e.prototype.clearColorPalette=function(){Jm(this,ih)},e}();function zx(e,t,r,i){var n=_t(e.get(["aria","decal","decals"]));return Ad(e,Km,n,null,t,r,i)}function Qm(e,t){for(var r=e.length,i=0;i<r;i++)if(e[i].length>t)return e[i];return e[r-1]}function Ad(e,t,r,i,n,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?r:Qm(i,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function Jm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Yn,Li,nh,ah="\0_ec_inner",jm=1,vl=function(e){dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new vt(a),this._locale=new vt(o),this._optionManager=s},t.prototype.setOption=function(r,i,n){var a=uh(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,i){return this._resetOption(r,uh(i))},t.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?nh(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&x(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=X(),l=i&&i.replaceMergeMainTypeMap;$m(this),x(r,function(h,c){h!=null&&(rt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?q(h):st(n[c],h,!0))}),l&&l.each(function(h,c){rt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),rt.topologicalTravel(s,rt.getAllClassMainTypes(),f,this);function f(h){var c=Zm(this,h,_t(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=Zy(v,c,d);r_(y,h,rt),n[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],_=0,m;x(y,function(w,T){var S=w.existing,b=w.newOption;if(!b)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var M=h==="series",C=rt.getClass(h,w.keyInfo.subType,!M);if(!C)return;if(h==="tooltip"){if(m)return;m=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(b,this),S.optionUpdated(b,!1);else{var D=R({componentIndex:T},w.keyInfo);S=new C(b,this,this,D),R(S,D),w.brandNew&&(S.__requireNewView=!0),S.init(b,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),g.push(S),_++):(p.push(void 0),g.push(void 0))},this),n[h]=p,a.set(h,g),o.set(h,_),h==="series"&&Yn(this)}this._seriesIndices||Yn(this)},t.prototype.getOption=function(){var r=q(this.option);return x(r,function(i,n){if(rt.hasClass(n)){for(var a=_t(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!fn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[ah],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],x(_t(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=oh("id",a,s):o!=null?u=oh("name",o,s):u=Ht(s,function(l){return!!l}),sh(u,r)},t.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Ht(this._componentsMap.get(n),function(l){return!!l});return u(sh(o,r));function s(l){var f=n+"Index",h=n+"Id",c=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:n,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?Ht(l,r.filter):l}},t.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(Z(r)){var o=i,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=B(r)?a.get(r):N(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var i=le(r,null);return Ht(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ht(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},t.prototype.getSeries=function(){return Ht(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,i){Li(this),x(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},t.prototype.eachRawSeries=function(r,i){x(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,i,n){Li(this),x(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,i,n){return x(this.getSeriesByType(r),i,n)},t.prototype.isSeriesFiltered=function(r){return Li(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,i){Li(this);var n=[];x(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=X(n)},t.prototype.restoreData=function(r){Yn(this);var i=this._componentsMap,n=[];i.each(function(a,o){rt.hasClass(o)&&n.push(o)}),rt.topologicalTravel(n,rt.getAllClassMainTypes(),function(a){x(i.get(a),function(o){o&&(a!=="series"||!t1(o,r))&&o.restoreData()})})},t.internalField=function(){Yn=function(r){var i=r._seriesIndices=[];x(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=X(i)},Li=function(r){},nh=function(r,i){r.option={},r.option[ah]=jm,r._componentsMap=X({series:[]}),r._componentsCount=X();var n=i.aria;N(n)&&n.enabled==null&&(n.enabled=!0),e1(i,r._theme.option),st(i,Xm,!1),r._mergeOption(i,null)}}(),t}(vt);function t1(e,t){if(t){var r=t.seriesIndex,i=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||i!=null&&e.id!==i||n!=null&&e.name!==n}}function e1(e,t){var r=e.color&&!e.colorLayer;x(t,function(i,n){n==="colorLayer"&&r||rt.hasClass(n)||(typeof i=="object"?e[n]=e[n]?st(e[n],i,!1):q(i):e[n]==null&&(e[n]=i))})}function oh(e,t,r){if(k(t)){var i=X();return x(t,function(a){if(a!=null){var o=le(a,null);o!=null&&i.set(a,!0)}}),Ht(r,function(a){return a&&i.get(a[e])})}else{var n=le(t,null);return Ht(r,function(a){return a&&n!=null&&a[e]===n})}}function sh(e,t){return t.hasOwnProperty("subType")?Ht(e,function(r){return r&&r.subType===t.subType}):e}function uh(e){var t=X();return e&&x(_t(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Oe(vl,hl);var r1=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Pd=function(){function e(t){x(r1,function(r){this[r]=ft(t[r],t)},this)}return e}(),fs={},Ld=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var i=[];x(fs,function(n,a){var o=n.create(t,r);i=i.concat(o||[])}),this._coordinateSystems=i},e.prototype.update=function(t,r){x(this._coordinateSystems,function(i){i.update&&i.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){fs[t]=r},e.get=function(t){return fs[t]},e}(),i1=/^(min|max)?(.+)$/,n1=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,i){t&&(x(_t(t.series),function(o){o&&o.data&&Nt(o.data)&&Ta(o.data)}),x(_t(t.dataset),function(o){o&&o.source&&Nt(o.source)&&Ta(o.source)})),t=q(t);var n=this._optionBackup,a=a1(t,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],q(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(r=q(i[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)o1(n[u].query,r,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!u1(o,this._currentMediaIndices)&&(s=Y(o,function(f){return q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},e}();function a1(e,t,r){var i=[],n,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&k(l)&&x(l,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),x(u,function(v){return c(v)}),x(i,function(v){return c(v.option)});function c(v){x(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function o1(e,t,r){var i={width:t,height:r,aspectratio:t/r},n=!0;return x(e,function(a,o){var s=o.match(i1);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();s1(i[l],a,u)||(n=!1)}}),n}function s1(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function u1(e,t){return e.join(",")===t.join(",")}var te=x,dn=N,lh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hs(e){var t=e&&e.itemStyle;if(t)for(var r=0,i=lh.length;r<i;r++){var n=lh[r],a=t.normal,o=t.emphasis;a&&a[n]&&(e[n]=e[n]||{},e[n].normal?st(e[n].normal,a[n]):e[n].normal=a[n],a[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?st(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function Ct(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,n=e[t].emphasis;i&&(r?(e[t].normal=e[t].emphasis=null,ot(e[t],i)):e[t]=i),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function Xi(e){Ct(e,"itemStyle"),Ct(e,"lineStyle"),Ct(e,"areaStyle"),Ct(e,"label"),Ct(e,"labelLine"),Ct(e,"upperLabel"),Ct(e,"edgeLabel")}function ht(e,t){var r=dn(e)&&e[t],i=dn(r)&&r.textStyle;if(i)for(var n=0,a=vf.length;n<a;n++){var o=vf[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function qt(e){e&&(Xi(e),ht(e,"label"),e.emphasis&&ht(e.emphasis,"label"))}function l1(e){if(dn(e)){hs(e),Xi(e),ht(e,"label"),ht(e,"upperLabel"),ht(e,"edgeLabel"),e.emphasis&&(ht(e.emphasis,"label"),ht(e.emphasis,"upperLabel"),ht(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(hs(t),qt(t));var r=e.markLine;r&&(hs(r),qt(r));var i=e.markArea;i&&qt(i);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var a=e.links||e.edges;if(a&&!Nt(a))for(var o=0;o<a.length;o++)qt(a[o]);x(e.categories,function(l){Xi(l)})}if(n&&!Nt(n))for(var o=0;o<n.length;o++)qt(n[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)qt(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)k(u[o])?(qt(u[o][0]),qt(u[o][1])):qt(u[o]);e.type==="gauge"?(ht(e,"axisLabel"),ht(e,"title"),ht(e,"detail")):e.type==="treemap"?(Ct(e.breadcrumb,"itemStyle"),x(e.levels,function(l){Xi(l)})):e.type==="tree"&&Xi(e.leaves)}}function Me(e){return k(e)?e:e?[e]:[]}function fh(e){return(k(e)?e[0]:e)||{}}function f1(e,t){te(Me(e.series),function(i){dn(i)&&l1(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),te(r,function(i){te(Me(e[i]),function(n){n&&(ht(n,"axisLabel"),ht(n.axisPointer,"label"))})}),te(Me(e.parallel),function(i){var n=i&&i.parallelAxisDefault;ht(n,"axisLabel"),ht(n&&n.axisPointer,"label")}),te(Me(e.calendar),function(i){Ct(i,"itemStyle"),ht(i,"dayLabel"),ht(i,"monthLabel"),ht(i,"yearLabel")}),te(Me(e.radar),function(i){ht(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),te(Me(e.geo),function(i){dn(i)&&(qt(i),te(Me(i.regions),function(n){qt(n)}))}),te(Me(e.timeline),function(i){qt(i),Ct(i,"label"),Ct(i,"itemStyle"),Ct(i,"controlStyle",!0);var n=i.data;k(n)&&x(n,function(a){N(a)&&(Ct(a,"label"),Ct(a,"itemStyle"))})}),te(Me(e.toolbox),function(i){Ct(i,"iconStyle"),te(i.feature,function(n){Ct(n,"iconStyle")})}),ht(fh(e.axisPointer),"label"),ht(fh(e.tooltip).axisPointer,"label")}function h1(e,t){for(var r=t.split(","),i=e,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function v1(e,t,r,i){for(var n=t.split(","),a=e,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=r)}function hh(e){e&&x(c1,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var c1=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],d1=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vs=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ii(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<vs.length;r++){var i=vs[r][1],n=vs[r][0];t[i]!=null&&(t[n]=t[i])}}function vh(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function ch(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function p1(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Id(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Id(e[r].children,t)}function Rd(e,t){f1(e,t),e.series=_t(e.series),x(e.series,function(r){if(N(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),vh(r.label);var n=r.data;if(n&&!Nt(n))for(var a=0;a<n.length;a++)vh(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=h1(r,"pointer.color");o!=null&&v1(r,"itemStyle.color",o)}else if(i==="bar"){Ii(r),Ii(r.backgroundStyle),Ii(r.emphasis);var n=r.data;if(n&&!Nt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Ii(n[a]),Ii(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),ch(r),Id(r.data,ch)}else i==="graph"||i==="sankey"?p1(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ot(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),hh(r)}}),e.dataRange&&(e.visualMap=e.dataRange),x(d1,function(r){var i=e[r];i&&(k(i)||(i=[i]),x(i,function(n){hh(n)}))})}function g1(e){var t=X();e.eachSeries(function(r){var i=r.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(y1)}function y1(e){x(e,function(t,r){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var y=NaN,p=r-1;p>=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var _=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&_>0||u==="negative"&&_<0||u==="samesign"&&c>=0&&_>0||u==="samesign"&&c<=0&&_<0){c=Uy(c,_),y=_;break}}}return i[0]=c,i[1]=y,i})})}var go=function(){function e(t){this.data=t.data||(t.sourceFormat===be?{}:[]),this.sourceFormat=t.sourceFormat||xd,this.seriesLayoutBy=t.seriesLayoutBy||Le,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&Md(this,i)===gt.Must&&(n.type="ordinal")}}return e}();function cl(e){return e instanceof go}function hu(e,t,r){r=r||Od(e);var i=t.seriesLayoutBy,n=m1(e,r,i,t.sourceHeader,t.dimensions),a=new go({data:e,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(t)});return a}function Ed(e){return new go({data:e,sourceFormat:Nt(e)?Ze:Te})}function _1(e){return new go({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:q(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Od(e){var t=xd;if(Nt(e))t=Ze;else if(k(e)){e.length===0&&(t=Ft);for(var r=0,i=e.length;r<i;r++){var n=e[r];if(n!=null){if(k(n)||Nt(n)){t=Ft;break}else if(N(n)){t=he;break}}}}else if(N(e)){for(var a in e)if(Br(e,a)&&Bt(e[a])){t=be;break}}return t}function m1(e,t,r,i,n){var a,o;if(!e)return{dimensionsDefine:dh(n),startIndex:o,dimensionsDetectedCount:a};if(t===Ft){var s=e;i==="auto"||i==null?ph(function(l){l!=null&&l!=="-"&&(B(l)?o==null&&(o=1):o=0)},r,s,10):o=lt(i)?i:i?1:0,!n&&o===1&&(n=[],ph(function(l,f){n[f]=l!=null?l+"":""},r,s,1/0)),a=n?n.length:r===wi?s.length:s[0]?s[0].length:null}else if(t===he)n||(n=w1(e));else if(t===be)n||(n=[],x(e,function(l,f){n.push(f)}));else if(t===Te){var u=Ka(e[0]);a=k(u)&&u.length||1}return{startIndex:o,dimensionsDefine:dh(n),dimensionsDetectedCount:a}}function w1(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return ut(r)}function dh(e){if(e){var t=X();return Y(e,function(r,i){r=N(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function ph(e,t,r,i){if(t===wi)for(var n=0;n<r.length&&n<i;n++)e(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)e(a[n],n)}function kd(e){var t=e.sourceFormat;return t===he||t===be}var mr,wr,Sr,gh,yh,Bd=function(){function e(t,r){var i=cl(t)?t:Ed(t);this._source=i;var n=this._data=i.data;i.sourceFormat===Ze&&(this._offset=0,this._dimSize=r,this._data=n),yh(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;yh=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=gh[dl(l,f)];if(R(o,v),l===Ze)o.getItem=r,o.count=n,o.fillStorage=i;else{var d=Nd(l,f);o.getItem=ft(d,null,s,h,c);var y=Fd(l,f);o.count=ft(y,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],p=s-o,g=u[c],_=0;_<p;_++){var m=f[_*h+c];g[o+_]=m,m<d&&(d=m),m>y&&(y=m)}v[0]=d,v[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};gh=(t={},t[Ft+"_"+Le]={pure:!0,appendData:a},t[Ft+"_"+wi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[he]={pure:!0,appendData:a},t[be]={pure:!0,appendData:function(o){var s=this._data;x(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Te]={appendData:a},t[Ze]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),_h=function(e,t,r,i){return e[i]},S1=(mr={},mr[Ft+"_"+Le]=function(e,t,r,i){return e[i+t]},mr[Ft+"_"+wi]=function(e,t,r,i,n){i+=t;for(var a=n||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},mr[he]=_h,mr[be]=function(e,t,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,u=e[s];a[o]=u?u[i]:null}return a},mr[Te]=_h,mr);function Nd(e,t){var r=S1[dl(e,t)];return r}var mh=function(e,t,r){return e.length},T1=(wr={},wr[Ft+"_"+Le]=function(e,t,r){return Math.max(0,e.length-t)},wr[Ft+"_"+wi]=function(e,t,r){var i=e[0];return i?Math.max(0,i.length-t):0},wr[he]=mh,wr[be]=function(e,t,r){var i=r[0].name,n=e[i];return n?n.length:0},wr[Te]=mh,wr);function Fd(e,t){var r=T1[dl(e,t)];return r}var cs=function(e,t,r){return e[t]},b1=(Sr={},Sr[Ft]=cs,Sr[he]=function(e,t,r){return e[r]},Sr[be]=cs,Sr[Te]=function(e,t,r){var i=Ka(e);return i instanceof Array?i[t]:i},Sr[Ze]=cs,Sr);function zd(e){var t=b1[e];return t}function dl(e,t){return e===Ft?e+"_"+t:e}function Fa(e,t,r){if(e){var i=e.getRawDataItem(t);if(i!=null){var n=e.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=n.getDimensionProperty(o);return zd(a)(i,o,s)}else{var u=i;return a===Te&&(u=Ka(i)),u}}}}var x1=/\{@(.+?)\}/g,C1=function(){function e(){}return e.prototype.getDataParams=function(t,r){var i=this.getData(r),n=this.getRawValue(t,r),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,i,n,a,o){r=r||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&k(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Z(a))return u.status=r,u.dimensionIndex=n,a(u);if(B(a)){var f=wd(a,u);return f.replace(x1,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var y=Fa(s,t,d);if(o&&k(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,r){return Fa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,i){},e}();function wh(e){var t,r;return N(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function rn(e){return new M1(e)}var M1=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var y=this._progress;if(k(y))for(var p=0;p<y.length;p++)this._doProgress(y[p],v,d,u,l);else this._doProgress(y,v,d,u,l)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,i,n,a){Sh.reset(r,i,n,a),this._callingProgress=t,this._callingProgress({start:r,end:i,count:i-r,next:Sh.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Sh=function(){var e,t,r,i,n,a={reset:function(u,l,f,h){t=u,e=l,r=f,i=h,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%n*r+Math.ceil(t/n),l=t>=e?null:u<i?u:t;return t++,l}}();function _a(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!lt(e)&&e!=null&&e!=="-"&&(e=+Re(e)),e==null||e===""?NaN:Number(e))}var D1=X({number:function(e){return parseFloat(e)},time:function(e){return+Re(e)},trim:function(e){return B(e)?ye(e):e}});function Hx(e){return D1.get(e)}var Hd={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},A1=function(){function e(t,r){if(!lt(r)){var i="";At(i)}this._opFn=Hd[t],this._rvalFloat=Qe(r)}return e.prototype.evaluate=function(t){return lt(t)?this._opFn(t,this._rvalFloat):this._opFn(Qe(t),this._rvalFloat)},e}(),P1=function(){function e(t,r){var i=t==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var i=lt(t)?t:Qe(t),n=lt(r)?r:Qe(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=B(t),u=B(r);s&&(i=u?t:0),u&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},e}(),L1=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Qe(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=Qe(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Vx(e,t){return e==="eq"||e==="ne"?new L1(e==="eq",t):Br(Hd,e)?new A1(e,t):null}var I1=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return _a(t,r)},e}();function R1(e,t){var r=new I1,i=e.data,n=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Le&&At(o);var s=[],u={},l=e.dimensionsDefine;if(l)x(l,function(y,p){var g=y.name,_={index:p,name:g,displayName:y.displayName};if(s.push(_),g!=null){var m="";Br(u,g)&&At(m),u[g]=_}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=Nd(n,Le);t.__isBuiltIn&&(r.getRawDataItem=function(y){return h(i,a,s,y)},r.getRawData=ft(E1,null,e)),r.cloneRawData=ft(O1,null,e);var c=Fd(n,Le);r.count=ft(c,null,i,a,s);var v=zd(n);r.retrieveValue=function(y,p){var g=h(i,a,s,y);return d(g,p)};var d=r.retrieveValueFromItem=function(y,p){if(y!=null){var g=s[p];if(g)return v(y,p,g.name)}};return r.getDimensionInfo=ft(k1,null,s,u),r.cloneAllDimensionInfo=ft(B1,null,s),r}function E1(e){var t=e.sourceFormat;if(!pl(t)){var r="";At(r)}return e.data}function O1(e){var t=e.sourceFormat,r=e.data;if(!pl(t)){var i="";At(i)}if(t===Ft){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(t===he){for(var n=[],a=0,o=r.length;a<o;a++)n.push(R({},r[a]));return n}}function k1(e,t,r){if(r!=null){if(lt(r)||!isNaN(r)&&!Br(t,r))return e[r];if(Br(t,r))return t[r]}}function B1(e){return q(e)}var Vd=X();function N1(e){e=q(e);var t=e.type,r="";t||At(r);var i=t.split(":");i.length!==2&&At(r);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),e.__isBuiltIn=n,Vd.set(t,e)}function F1(e,t,r){var i=_t(e),n=i.length,a="";n||At(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=z1(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function z1(e,t,r,i){var n="";t.length||At(n),N(e)||At(n);var a=e.type,o=Vd.get(a);o||At(n);var s=Y(t,function(l){return R1(l,o)}),u=_t(o.transform({upstream:s[0],upstreamList:s,config:q(e.config)}));return Y(u,function(l,f){var h="";N(l)||At(h),l.data||At(h);var c=Od(l.data);pl(c)||At(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var y=d.startIndex;y&&(l.data=d.data.slice(0,y).concat(l.data)),v={seriesLayoutBy:Le,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Le,sourceHeader:0,dimensions:l.dimensions};return hu(l.data,v,null)})}function pl(e){return e===Ft||e===he}var yo="undefined",H1=typeof Uint32Array===yo?Array:Uint32Array,V1=typeof Uint16Array===yo?Array:Uint16Array,Wd=typeof Int32Array===yo?Array:Int32Array,Th=typeof Float64Array===yo?Array:Float64Array,Gd={float:Th,int:Wd,ordinal:Array,number:Array,time:Th},ds;function Jr(e){return e>65535?H1:V1}function jr(){return[1/0,-1/0]}function W1(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function bh(e,t,r,i,n){var a=Gd[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(i)}var vu=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return e.prototype.initData=function(t,r,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=ds[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],kd(n),this._dimensions=Y(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(t,a),this._chunks[a]=new Gd[r||"float"](this._rawCount),this._rawExtent[a]=jr(),a},e.prototype.collectOrdinalMeta=function(t,r){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=jr());for(var u=a[t],l=o;l<s;l++){var f=i[l]=r.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],i=r.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,i=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},e.prototype.appendValues=function(t,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=n[l];bh(i,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],y=ds.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=y;var p=o[d];y<p[0]&&(p[0]=y),y>p[1]&&(p[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Y(o,function(_){return _.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=jr()),bh(a,f,h.type,r,i)}if(n.fillStorage)n.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var y=a[d],p=this._dimValueGetter(c,l[d],v,d);y[v]=p;var g=u[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var i=[],n=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[t];return i?i[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var i=r.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,i=r[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<t)n=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=r-a[c],d=Math.abs(v);d<=i&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=r[a]}else t=new i(r.buffer,0,n)}else{var i=Jr(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Jr(i._rawCount),o=new a(n),s=[],u=t.length,l=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var y=h[f][d];v=r(y,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var r=this.clone(),i=r._count;if(!i)return this;var n=ut(t),a=n.length;if(!a)return this;var o=r.count(),s=Jr(r._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var y=0;if(a===1){for(var p=v[n[0]],g=0;g<i;g++){var _=p[g];(_>=h&&_<=c||isNaN(_))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var p=v[n[0]],m=v[n[1]],w=t[n[1]][0],T=t[n[1]][1],g=0;g<i;g++){var _=p[g],S=m[g];(_>=h&&_<=c||isNaN(_))&&(S>=w&&S<=T||isNaN(S))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var b=r.getRawIndex(g),_=v[n[0]][b];(_>=h&&_<=c||isNaN(_))&&(u[l++]=b)}else for(var g=0;g<o;g++){for(var M=!0,b=r.getRawIndex(g),C=0;C<a;C++){var D=n[C],_=v[D][b];(_<t[D][0]||_>t[D][1])&&(M=!1)}M&&(u[l++]=r.getRawIndex(g))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var i=this.clone(t);return this._updateDims(i,t,r),i},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,i){for(var n=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=jr();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=n[r[v]][c];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var y=r[f],p=d[f],g=l[y],_=n[y];_&&(_[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Jr(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var y=Math.min(d+u,o-1),p=Math.min(d+u*2,o),g=(p+y)/2,_=0,m=y;m<p;m++){var w=this.getRawIndex(m),T=a[w];isNaN(T)||(_+=T)}_/=p-y;var S=d,b=Math.min(d+u,o),M=d-1,C=a[l];f=-1,c=S;for(var D=-1,A=0,m=S;m<b;m++){var w=this.getRawIndex(m),T=a[w];if(isNaN(T)){A++,D<0&&(D=w);continue}h=Math.abs((M-g)*(T-C)-(M-m)*(_-C)),h>f&&(f=h,c=w)}A>0&&A<b-S&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,r){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/r),o=n[t],s=this.count(),u=new(Jr(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],y=a;f+a>s&&(y=s-f);for(var p=0;p<y;p++){var g=this.getRawIndex(f+p),_=o[g];_<c&&(c=_,h=f+p),_>d&&(d=_,v=f+p)}var m=this.getRawIndex(h),w=this.getRawIndex(v);h<v?(u[l++]=m,u[l++]=w):(u[l++]=w,u[l++]=m)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,r,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=jr(),c=new(Jr(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var y=0;y<u;y++){var p=this.getRawIndex(d+y);s[y]=l[p]}var g=i(s),_=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));l[_]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[v++]=_}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[t[0]][s],a);break;case 2:r(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],i=jr();if(!r)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},e.prototype.clone=function(t,r){var i=new e,n=this._chunks,a=t&&Ke(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?W1(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=q(this._extent),t._rawExtent=q(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var i=this._indices.length;r=new t(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,i,n,a){return _a(r[a],this._dimensions[a])}ds={arrayRows:t,objectRows:function(r,i,n,a){return _a(r[i],this._dimensions[a])},keyedColumns:t,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return _a(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}}(),e}(),G1=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Xn(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Nt(s)?Ze:Te,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=W(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=W(h.sourceHeader,c.sourceHeader),y=W(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;n=p?[hu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},u)]:[]}else{var g=t;if(i){var _=this._applyTransform(r);n=_.sourceList,a=_.upstreamSignList}else{var m=g.get("source",!0);n=[hu(m,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&xh(a)}var o,s=[],u=[];return x(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&xh(h),s.push(f),u.push(l._getVersionSign())}),i?o=F1(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[_1(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var i=t[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];Xn(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,i):(s=new vu,s.initData(new Bd(r,t.length),t)),o[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xn(t)){var r=fl(t);return r?[r.getSourceManager()]:[]}else return Y(qm(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,i,n;if(Xn(t))r=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},e}();function Wx(e){var t=e.option.transform;t&&Ta(e.option.transform)}function Xn(e){return e.mainType==="series"}function xh(e){throw new Error(e)}var U1="line-height:1";function Ud(e){var t=e.lineHeight;return t==null?U1:"line-height:"+It(t+"")+"px"}function Yd(e,t){var r=e.color||"#6e7079",i=e.fontSize||12,n=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+It(i+"")+"px;color:"+It(r)+";font-weight:"+It(n+""),valueStyle:"font-size:"+It(o+"")+"px;color:"+It(a)+";font-weight:"+It(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Y1=[0,10,20,30],X1=["",`
`,`

`,`


`];function pn(e,t){return t.type=e,t}function cu(e){return e.type==="section"}function Xd(e){return cu(e)?$1:q1}function $d(e){if(cu(e)){var t=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return x(e.blocks,function(n){var a=$d(n);a>=t&&(t=a+ +(i&&(!a||cu(n)&&!n.noHeader)))}),t}return 0}function $1(e,t,r,i){var n=t.noHeader,a=Z1($d(t)),o=[],s=t.blocks||[];we(!s||k(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Br(l,u)){var f=new P1(l[u],null);s.sort(function(y,p){return f.evaluate(y.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}x(s,function(y,p){var g=t.valueFormatter,_=Xd(y)(g?R(R({},e),{valueFormatter:g}):e,y,p>0?a.html:0,i);_!=null&&o.push(_)});var h=e.renderMode==="richText"?o.join(a.richText):du(i,o.join(""),n?r:a.html);if(n)return h;var c=lu(t.header,"ordinal",e.useUTC),v=Yd(i,e.renderMode).nameStyle,d=Ud(i);return e.renderMode==="richText"?qd(e,c,v)+a.richText+h:du(i,'<div style="'+v+";"+d+';">'+It(c)+"</div>"+h,r)}function q1(e,t,r,i){var n=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(w){return w=k(w)?w:[w],Y(w,function(T,S){return lu(T,k(v)?v[S]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":lu(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,p=!s&&a,g=Yd(i,n),_=g.nameStyle,m=g.valueStyle;return n==="richText"?(s?"":h)+(a?"":qd(e,c,_))+(o?"":J1(e,d,y,p,m)):du(i,(s?"":h)+(a?"":K1(c,!s,_))+(o?"":Q1(d,y,p,m)),r)}}function Ch(e,t,r,i,n,a){if(e){var o=Xd(e),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Z1(e){return{html:Y1[e],richText:X1[e]}}function du(e,t,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=Ud(e);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function K1(e,t,r){var i=t?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+It(e)+"</span>"}function Q1(e,t,r,i){var n=r?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return e=k(e)?e:[e],'<span style="'+a+";"+i+'">'+Y(e,function(o){return It(o)}).join("&nbsp;&nbsp;")+"</span>"}function qd(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function J1(e,t,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(k(t)?t.join("  "):t,a)}function j1(e,t){var r=e.getData().getItemVisual(t,"style"),i=r[e.visualDrawType];return cn(i)}function Zd(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var ps=function(){function e(){this.richTextStyles={},this._nextStyleNameId=gc()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,i){var n=i==="richText"?this._generateStyleName():null,a=Vm({color:r,type:t,renderMode:i,markerId:n});return B(a)?a:(this.richTextStyles[n]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var i={};k(r)?x(r,function(a){return R(i,a)}):R(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},e}();function tw(e){var t=e.series,r=e.dataIndex,i=e.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=k(s),l=j1(t,r),f,h,c,v;if(o>1||u&&!o){var d=ew(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);v=f=Fa(n,r,a[0]),h=y.type}else v=f=u?s[0]:s;var p=Sc(t),g=p&&t.name||"",_=n.getName(r),m=i?g:_;return pn("section",{header:g,noHeader:i||!p,sortParam:v,blocks:[pn("nameValue",{markerType:"item",markerColor:l,name:m,noName:!ye(m),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function ew(e,t,r,i,n){var a=t.getData(),o=Ke(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?x(i,function(h){f(Fa(a,r,h),h)}):x(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(pn("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var He=mt();function $n(e,t){return e.getName(t)||e.getId(t)}var rw="__universalTransitionEnabled",zr=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=rn({count:nw,reset:aw}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=He(this).sourceManager=new G1(this);a.prepareSource();var o=this.getInitialData(r,n);Dh(o,this),this.dataTask.context.data=o,He(this).dataBeforeProcessed=o,Mh(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=Ba(this),a=n?Sd(r):{},o=this.subType;rt.hasClass(o)&&(o+="Series"),st(r,i.getTheme().get(this.subType)),st(r,this.getDefaultOption()),hf(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Na(r,a,n)},t.prototype.mergeOption=function(r,i){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Ba(this);n&&Na(this.option,r,n);var a=He(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);Dh(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,He(this).dataBeforeProcessed=o,Mh(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Nt(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&hf(r[n],"label",i)},t.prototype.getInitialData=function(r,i){},t.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},t.prototype.getData=function(r){var i=pu(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return He(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var i=pu(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}He(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return X(r)},t.prototype.getSourceManager=function(){return He(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return He(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,i,n){return tw({series:this,dataIndex:r,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(z.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=hl.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=$n(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=ut(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[$n(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[rw])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){N(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],c=$n(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[u-1],c=$n(r,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},t.registerClass=function(r){return rt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(rt);Oe(zr,C1);Oe(zr,hl);xc(zr,rt);function Mh(e){var t=e.name;Sc(e)||(e.name=iw(e)||t)}function iw(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),i=[];return x(r,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function nw(e){return e.model.getRawData().count()}function aw(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ow}function ow(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dh(e,t){x(xg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,ae(sw,t))})}function sw(e,t){var r=pu(e);return r&&r.setOutputEnd((t||this).count()),t}function pu(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(e.uid))}return i}}var Ee=function(){function e(){this.group=new Ie,this.uid=uo("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){},e.prototype.updateLayout=function(t,r,i,n){},e.prototype.updateVisual=function(t,r,i,n){},e.prototype.toggleBlurSeries=function(t,r,i){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Hu(Ee);Ja(Ee);function Kd(){var e=mt();return function(t){var r=e(t),i=t.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Qd=mt(),uw=Kd(),Er=function(){function e(){this.group=new Ie,this.uid=uo("viewChart"),this.renderTask=rn({plan:lw,reset:fw}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.highlight=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&Ph(a,n,"emphasis")},e.prototype.downplay=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&Ph(a,n,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateLayout=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.eachRendered=function(t){nd(this.group,t)},e.markUpdateMethod=function(t,r){Qd(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ah(e,t,r){e&&nu(e)&&(t==="emphasis"?tu:eu)(e,r)}function Ph(e,t,r){var i=Sn(e,t),n=t&&t.highlightKey!=null?M0(t.highlightKey):null;i!=null?x(_t(i),function(a){Ah(e.getItemGraphicEl(a),r,n)}):e.eachItemGraphicEl(function(a){Ah(a,r,n)})}Hu(Er);Ja(Er);function lw(e){return uw(e.model)}function fw(e){var t=e.model,r=e.ecModel,i=e.api,n=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=n&&Qd(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,i,n),hw[u]}var hw={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},za="\0__throttleOriginMethod",Lh="\0__throttleRate",Ih="\0__throttleType";function Jd(e,t,r){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),u=this,l=v;var y=f||t,p=f||r;f=null,s=i-(p?n:a)-y,clearTimeout(o),p?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function jd(e,t,r,i){var n=e[t];if(n){var a=n[za]||n,o=n[Ih],s=n[Lh];if(s!==r||o!==i){if(r==null||!i)return e[t]=a;n=e[t]=Jd(a,r,i==="debounce"),n[za]=a,n[Ih]=i,n[Lh]=r}return n}}function gu(e,t){var r=e[t];r&&r[za]&&(r.clear&&r.clear(),e[t]=r[za])}var Rh=mt(),Eh={itemStyle:hn(sd,!0),lineStyle:hn(od,!0)},vw={lineStyle:"stroke",itemStyle:"fill"};function tp(e,t){var r=e.visualStyleMapper||Eh[t];return r||(console.warn("Unknown style type '"+t+"'."),Eh.itemStyle)}function ep(e,t){var r=e.visualDrawType||vw[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var cw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=e.getModel(i),a=tp(e,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=ep(e,i),l=o[u],f=Z(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=e.getDataParams(d),p=R({},o);p[u]=f(y),v.setItemVisual(d,"style",p)}}}},Ri=new vt,dw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=tp(e,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){Ri.option=u[i];var l=n(Ri),f=o.ensureUniqueItemVisual(s,"style");R(f,l),Ri.option.decal&&(o.setItemVisual(s,"decal",Ri.option.decal),Ri.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},pw={performRawSeries:!0,overallReset:function(e){var t=X();e.eachSeries(function(r){var i=r.getColorBy();if(!r.isColorBySeries()){var n=r.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Rh(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var i=r.getRawData(),n={},a=r.getData(),o=Rh(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=ep(r,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(l)||l+"",d=i.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},qn=Math.PI;function gw(e,t){t=t||{},ot(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 r=new Ie,i=new Jt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var n=new jt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Jt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new ao({shape:{startAngle:-qn/2,endAngle:-qn/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:qn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:qn*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var rp=function(){function e(t,r,i,n){this._stageTaskMap=X(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&r.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,i=r._pipelineMap=X();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(n,n.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;x(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";we(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},e.prototype.prepareView=function(t,r,i,n){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,i){this._performStageTasks(this._visualHandlers,t,r,i)},e.prototype._performStageTasks=function(t,r,i,n){n=n||{};var a=!1,o=this;x(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var y=o.getPerformArgs(c,n.block);d.each(function(p){p.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(p,g){s(n,p)&&p.dirty();var _=o.getPerformArgs(p,n.block);_.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(_)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=X(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||rn({plan:Sw,reset:Tw,count:xw}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,i,n){var a=this,o=r.overallTask=r.overallTask||rn({reset:yw});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=X(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";we(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,x(i.getSeries(),d));function d(y){var p=y.uid,g=u.set(p,s&&s.get(p)||(c=!0,rn({reset:_w,onDirty:ww})));g.context={model:y,overallProgress:h},g.agent=o,g.__block=h,a._pipe(y,g)}c&&o.dirty()},e.prototype._pipe=function(t,r){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return Z(t)&&(t={overallReset:t,seriesType:Cw(t)}),t.uid=uo("stageHandler"),r&&(t.visualType=r),t},e}();function yw(e){e.overallReset(e.ecModel,e.api,e.payload)}function _w(e){return e.overallProgress&&mw}function mw(){this.agent.dirty(),this.getDownstream().dirty()}function ww(){this.agent&&this.agent.dirty()}function Sw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Tw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=_t(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Y(t,function(r,i){return ip(i)}):bw}var bw=ip(0);function ip(e){return function(t,r){var i=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function xw(e){return e.data.count()}function Cw(e){Ha=null;try{e(gn,np)}catch{}return Ha}var gn={},np={},Ha;ap(gn,vl);ap(np,Pd);gn.eachSeriesByType=gn.eachRawSeriesByType=function(e){Ha=e};gn.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ha=e.subType)};function ap(e,t){for(var r in t.prototype)e[r]=kt}var Oh=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Mw={color:Oh,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Oh]};var bt="#B9B8CE",kh="#100C2A",Zn=function(){return{axisLine:{lineStyle:{color:bt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Bh=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],op={darkMode:!0,color:Bh,backgroundColor:kh,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:bt},pageTextStyle:{color:bt}},textStyle:{color:bt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:bt}},dataZoom:{borderColor:"#71708A",textStyle:{color:bt},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:bt}},timeline:{lineStyle:{color:bt},label:{color:bt},controlStyle:{color:bt,borderColor:bt}},calendar:{itemStyle:{color:kh},dayLabel:{color:bt},monthLabel:{color:bt},yearLabel:{color:bt}},timeAxis:Zn(),logAxis:Zn(),valueAxis:Zn(),categoryAxis:Zn(),line:{symbol:"circle"},graph:{color:Bh},gauge:{title:{color:bt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:bt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};op.categoryAxis.splitLine.show=!1;var Dw=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},i={},n={};if(B(t)){var a=_e(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};x(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},e.prototype.filter=function(t,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),yu=["symbol","symbolSize","symbolRotate","symbolOffset"],Nh=yu.concat(["symbolKeepAspect"]),Aw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<yu.length;o++){var s=yu[o],u=e.get(s);Z(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||e.defaultSymbol,r.setVisual(R({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var l=ut(n);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),y=0;y<l.length;y++){var p=l[y];h.setItemVisual(c,p,n[p](v,d))}}return{dataEach:a?f:null}}},Pw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Nh.length;s++){var u=Nh[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?i:null}}};function Lw(e,t,r){switch(r){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Iw(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Gx(e,t,r,i){switch(r){case"color":var n=e.ensureUniqueItemVisual(t,"style");n[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,i);break}}function Ux(e,t){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:e,query:n},function(o){a.push(o.seriesIndex)}),a}x([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=R({},n),o.dispatchAction(R(n,{type:i[1],seriesIndex:r(a,n)}))})})}function ti(e,t,r,i,n){var a=e+t;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=Sn(h,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(c)?h.getName(c[0]):h.getName(c),selected:B(u)?u:R({},u)})}})}function Rw(e,t,r){e.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(ti("map","selectchanged",t,n,i),ti("pie","selectchanged",t,n,i)):i.fromAction==="select"?(ti("map","selected",t,n,i),ti("pie","selected",t,n,i)):i.fromAction==="unselect"&&(ti("map","unselected",t,n,i),ti("pie","unselected",t,n,i))})}function $i(e,t,r){for(var i;e&&!(t(e)&&(i=e,r));)e=e.__hostTarget||e.parent;return i}var Ew=Math.round(Math.random()*9),Ow=typeof Object.defineProperty=="function",kw=function(){function e(){this._id="__ec_inner_"+Ew++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return Ow?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),Bw=it.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i+a),e.lineTo(r-n,i+a),e.closePath()}}),Nw=it.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i),e.lineTo(r,i+a),e.lineTo(r-n,i),e.closePath()}}),Fw=it.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,i-d,r,i),e.bezierCurveTo(r,i-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),zw=it.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;e.moveTo(n,a),e.lineTo(n+o,a+r),e.lineTo(n,a+r/4*3),e.lineTo(n-o,a+r),e.lineTo(n,a),e.closePath()}}),Hw={line:mi,rect:Jt,roundRect:Jt,square:Jt,circle:no,diamond:Nw,pin:Fw,arrow:zw,triangle:Bw},Vw={line:function(e,t,r,i,n){n.x1=e,n.y1=t+i/2,n.x2=e+r,n.y2=t+i/2},rect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i},roundRect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(e,t,r,i,n){var a=Math.min(r,i);n.x=e,n.y=t,n.width=a,n.height=a},circle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.r=Math.min(r,i)/2},diamond:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i},pin:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},arrow:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},triangle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i}},_u={};x(Hw,function(e,t){_u[t]=new e});var Ww=it.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var i=fc(e,t,r),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(e,t,r){var i=t.symbolType;if(i!=="none"){var n=_u[i];n||(i="rect",n=_u[i]),Vw[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function Gw(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function sp(e,t,r,i,n,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=jc(e.slice(8),new Q(t,r,i,n),o?"center":"cover"):e.indexOf("path://")===0?u=Ju(e.slice(7),{},new Q(t,r,i,n),o?"center":"cover"):u=new Ww({shape:{symbolType:e,x:t,y:r,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=Gw,a&&u.setColor(a),u}function Yx(e){return k(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Uw(e,t){if(e!=null)return k(e)||(e=[e,e]),[ct(e[0],t[0])||0,ct(W(e[1],e[0]),t[1])||0]}function Dr(e){return isFinite(e)}function Yw(e,t,r){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Dr(i)?i:0,n=Dr(n)?n:1,a=Dr(a)?a:0,o=Dr(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function Xw(e,t,r){var i=r.width,n=r.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+r.x,s=s*n+r.y,u=u*a),o=Dr(o)?o:.5,s=Dr(s)?s:.5,u=u>=0&&Dr(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function mu(e,t,r){for(var i=t.type==="radial"?Xw(e,t,r):Yw(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function $w(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Kn(e){return parseInt(e,10)}function Qn(e,t,r){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||Kn(s[i])||Kn(e.style[i]))-(Kn(s[a])||0)-(Kn(s[o])||0)|0}function qw(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:lt(e)?[e]:k(e)?e:null}function up(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&qw(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=Y(r,function(a){return a/n}),i/=n)}return[r,i]}var Zw=new pi(!0);function Va(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Fh(e){return typeof e=="string"&&e!=="none"}function Wa(e){var t=e.fill;return t!=null&&t!=="none"}function zh(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Hh(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function wu(e,t,r){var i=Cc(t.image,t.__image,r);if(ja(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*sa),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Kw(e,t,r,i){var n,a=Va(r),o=Wa(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||Zw,h=t.__dirty;if(!i){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,_=void 0,m=void 0,w=void 0,T=void 0,S=void 0;(d||y)&&(S=t.getBoundingRect()),d&&(_=h?mu(e,c,S):t.__canvasFillGradient,t.__canvasFillGradient=_),y&&(m=h?mu(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=h||!t.__canvasFillPattern?wu(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(T=h||!t.__canvasStrokePattern?wu(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=_:p&&(w?e.fillStyle=w:o=!1),y?e.strokeStyle=m:g&&(T?e.strokeStyle=T:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var M,C;e.setLineDash&&r.lineDash&&(n=up(t),M=n[0],C=n[1]);var D=!0;(l||h&ri)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(e,u?s:1),M&&(e.setLineDash(M),e.lineDashOffset=C),i||(r.strokeFirst?(a&&Hh(e,r),o&&zh(e,r)):(o&&zh(e,r),a&&Hh(e,r))),M&&e.setLineDash([])}function Qw(e,t,r){var i=t.__image=Cc(r.image,t.__image,t,t.onload);if(!(!i||!ja(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(i,l,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(i,l,f,h,c,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function Jw(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||kr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=up(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Va(r)&&e.strokeText(n,r.x,r.y),Wa(r)&&e.fillText(n,r.x,r.y)):(Wa(r)&&e.fillText(n,r.x,r.y),Va(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var Vh=["shadowBlur","shadowOffsetX","shadowOffsetY"],Wh=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lp(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){Ot(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ir.opacity:o}(i||t.blend!==r.blend)&&(a||(Ot(e,n),a=!0),e.globalCompositeOperation=t.blend||Ir.blend);for(var s=0;s<Vh.length;s++){var u=Vh[s];(i||t[u]!==r[u])&&(a||(Ot(e,n),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(Ot(e,n),a=!0),e.shadowColor=t.shadowColor||Ir.shadowColor),a}function Gh(e,t,r,i,n){var a=yn(t,n.inHover),o=i?null:r&&yn(r,n.inHover)||{};if(a===o)return!1;var s=lp(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Ot(e,n),s=!0),Fh(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Ot(e,n),s=!0),Fh(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Ot(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Ot(e,n),s=!0),e.lineWidth=l)}for(var f=0;f<Wh.length;f++){var h=Wh[f],c=h[0];(i||a[c]!==o[c])&&(s||(Ot(e,n),s=!0),e[c]=a[c]||h[1])}return s}function jw(e,t,r,i,n){return lp(e,yn(t,n.inHover),r&&yn(r,n.inHover),i,n)}function fp(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function tS(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),fp(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function eS(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Uh=1,Yh=2,Xh=3,$h=4;function rS(e){var t=Wa(e),r=Va(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ot(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function yn(e,t){return t&&e.__hoverStyle||e.style}function hp(e,t){Ar(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ar(e,t,r,i){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Vt,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||$w(a,o))&&(o&&o.length&&(Ot(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ot(e,r),e.save(),tS(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof it&&t.autoBatch&&rS(t.style);s||eS(n,l.transform)?(Ot(e,r),fp(e,t)):f||Ot(e,r);var h=yn(t,r.inHover);t instanceof it?(r.lastDrawType!==Uh&&(u=!0,r.lastDrawType=Uh),Gh(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Kw(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Ia?(r.lastDrawType!==Xh&&(u=!0,r.lastDrawType=Xh),Gh(e,t,l,u,r),Jw(e,t,h)):t instanceof Hr?(r.lastDrawType!==Yh&&(u=!0,r.lastDrawType=Yh),jw(e,t,l,u,r),Qw(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==$h&&(u=!0,r.lastDrawType=$h),iS(e,t,r)),f&&i&&Ot(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function iS(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Ar(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Ar(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var gs=new kw,qh=new mn(100),Zh=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Kh(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";e.dirty&&gs.delete(e);var a=gs.get(e);if(a)return a;var o=ot(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,gs.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<Zh.length;++c){var v=o[Zh[c]];if(v!=null&&!k(v)&&!B(v)&&!lt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var y=qh.get(d);y&&(n?l.svgElement=y:l.image=y)}var p=cp(o.dashArrayX),g=nS(o.dashArrayY),_=vp(o.symbol),m=aS(p),w=dp(g),T=!n&&gi.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),M;T&&(T.width=b.width*r,T.height=b.height*r,M=T.getContext("2d")),D(),h&&qh.put(d,T||S),l.image=T,l.svgElement=S,l.svgWidth=b.width,l.svgHeight=b.height;function C(){for(var A=1,L=0,I=m.length;L<I;++L)A=lf(A,m[L]);for(var P=1,L=0,I=_.length;L<I;++L)P=lf(P,_[L].length);A*=P;var O=w*m.length*_.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function D(){M&&(M.clearRect(0,0,T.width,T.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,T.width,T.height)));for(var A=0,L=0;L<g.length;++L)A+=g[L];if(A<=0)return;for(var I=-w,P=0,O=0,E=0;I<b.height;){if(P%2===0){for(var G=O/2%_.length,F=0,H=0,U=0;F<b.width*2;){for(var et=0,L=0;L<p[E].length;++L)et+=p[E][L];if(et<=0)break;if(H%2===0){var J=(1-o.symbolSize)*.5,wt=F+p[E][H]*J,Gt=I+g[P]*J,Be=p[E][H]*o.symbolSize,je=g[P]*o.symbolSize,tr=U/2%_[G].length;Wr(wt,Gt,Be,je,_[G][tr])}F+=p[E][H],++U,++H,H===p[E].length&&(H=0)}++E,E===p.length&&(E=0)}I+=g[P],++O,++P,P===g.length&&(P=0)}function Wr(zt,pt,V,$,er){var Mt=n?1:r,Dl=sp(er,zt*Mt,pt*Mt,V*Mt,$*Mt,o.color,o.symbolKeepAspect);if(n){var Al=i.painter.renderOneToVNode(Dl);Al&&S.children.push(Al)}else hp(M,Dl)}}}}function vp(e){if(!e||e.length===0)return[["rect"]];if(B(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!B(e[r])){t=!1;break}if(t)return vp([e]);for(var i=[],r=0;r<e.length;++r)B(e[r])?i.push([e[r]]):i.push(e[r]);return i}function cp(e){if(!e||e.length===0)return[[0,0]];if(lt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,i=0;i<e.length;++i)if(!lt(e[i])){r=!1;break}if(r)return cp([e]);for(var n=[],i=0;i<e.length;++i)if(lt(e[i])){var t=Math.ceil(e[i]);n.push([t,t])}else{var t=Y(e[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function nS(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(lt(e)){var t=Math.ceil(e);return[t,t]}var r=Y(e,function(i){return Math.ceil(i)});return e.length%2?r.concat(r):r}function aS(e){return Y(e,function(t){return dp(t)})}function dp(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function oS(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Kh(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Kh(n,t)}}})}var ne=new Se,pp={};function sS(e,t){pp[e]=t}function uS(e){return pp[e]}var lS=1,fS=800,hS=900,vS=1e3,cS=2e3,dS=5e3,gp=1e3,pS=1100,gl=2e3,yp=3e3,gS=4e3,_o=4500,yS=4600,_S=5e3,mS=6e3,_p=7e3,wS={PROCESSOR:{FILTER:vS,SERIES_FILTER:fS,STATISTIC:dS},VISUAL:{LAYOUT:gp,PROGRESSIVE_LAYOUT:pS,GLOBAL:gl,CHART:yp,POST_CHART_LAYOUT:yS,COMPONENT:gS,BRUSH:_S,CHART_ITEM:_o,ARIA:mS,DECAL:_p}},Tt="__flagInMainProcess",Lt="__pendingUpdate",ys="__needsUpdateStatus",Qh=/^[a-zA-Z0-9_]+$/,_s="__connectUpdateStatus",Jh=0,SS=1,TS=2;function mp(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Sp(this,e,t)}}function wp(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Sp(this,e,t)}}function Sp(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Se.prototype[t].apply(e,r)}var Tp=function(e){dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Se),bp=Tp.prototype;bp.on=wp("on");bp.off=wp("off");var ei,ms,Jn,Ve,ws,Ss,Ts,Ei,Oi,jh,tv,bs,ev,jn,rv,xp,Ut,iv,Ga=function(e){dt(t,e);function t(r,i,n){var a=e.call(this,new Dw)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},B(i)&&(i=Cp[i]),a._dom=r;var o="canvas",s="auto",u=!1;n.ssr&&Vy(function(c){var v=nt(c),d=v.dataIndex;if(d!=null){var y=X();return y.set("series_index",v.seriesIndex),y.set("data_index",d),v.ssrType&&y.set("ssr_type",v.ssrType),y}});var l=a._zr=sf(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:W(n.useDirtyRect,u),useCoarsePointer:W(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Jd(ft(l.flush,l),17),i=q(i),i&&Rd(i,!0),a._theme=i,a._locale=Om(n.locale||ud),a._coordSysMgr=new Ld;var f=a._api=rv(a);function h(c,v){return c.__prio-v.__prio}return ua(Ya,h),ua(Su,h),a._scheduler=new rp(a,f,Su,Ya),a._messageCenter=new Tp,a._initEvents(),a.resize=ft(a.resize,a),l.animation.on("frame",a._onframe,a),jh(l,a),tv(l,a),Ta(a),a}return t.prototype._onframe=function(){if(!this._disposed){iv(this);var r=this._scheduler;if(this[Lt]){var i=this[Lt].silent;this[Tt]=!0;try{ei(this),Ve.update.call(this,null,this[Lt].updateParams)}catch(u){throw this[Tt]=!1,this[Lt]=null,u}this._zr.flush(),this[Tt]=!1,this[Lt]=null,Ei.call(this,i),Oi.call(this,i)}else if(r.unfinished){var n=lS,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Ss(this,a),r.performVisualTasks(a),jn(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&r.unfinished);r.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(r,i,n){if(!this[Tt]){if(this._disposed){this.id;return}var a,o,s;if(N(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Tt]=!0,!this._model||i){var u=new n1(this._api),l=this._theme,f=this._model=new vl;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Tu);var h={seriesTransition:s,optionChanged:!0};if(n)this[Lt]={silent:a,updateParams:h},this[Tt]=!1,this.getZr().wakeUp();else{try{ei(this),Ve.update.call(this,null,h)}catch(c){throw this[Lt]=null,this[Tt]=!1,c}this._ssr||this._zr.flush(),this[Lt]=null,this[Tt]=!1,Ei.call(this,a),Oi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||z.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(z.svgSupported){var r=this._zr,i=r.storage.getDisplayList();return x(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;x(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return x(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(nv[n]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();x(di,function(m,w){if(m.group===n){var T=i?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(q(r)),S=m.getDom().getBoundingClientRect();u=a(S.left,u),l=a(S.top,l),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:T,left:S.left,top:S.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,y=h-l,p=gi.createCanvas(),g=sf(p,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:y}),i){var _="";return x(c,function(m){var w=m.left-u,T=m.top-l;_+='<g transform="translate('+w+","+T+')">'+m.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Jt({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),x(c,function(m){var w=new Hr({style:{x:m.left*v-u,y:m.top*v-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i){return ws(this,"convertToPixel",r,i)},t.prototype.convertFromPixel=function(r,i){return ws(this,"convertFromPixel",r,i)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Go(n,r);return x(o,function(s,u){u.indexOf("Models")>=0&&x(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(r,i){var n=this._model,a=Go(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?Lw(s,u,i):Iw(s,i)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;x(bS,function(i){var n=function(a){var o=r.getModel(),s=a.target,u,l=i==="globalout";if(l?u={}:s&&$i(s,function(d){var y=nt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return u=p&&p.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return u=R({},y.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=i,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(i,u)}};n.zrEventfulCallAtLast=!0,r._zr.on(i,n,r)}),x(nn,function(i,n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),x(["selectchanged"],function(i){r._messageCenter.on(i,function(n){this.trigger(i,n)},r)}),Rw(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Tc(this.getDom(),_l,"");var i=this,n=i._api,a=i._model;x(i._componentsViews,function(o){o.dispose(a,n)}),x(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete di[i.id]},t.prototype.resize=function(r){if(!this[Tt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[Lt]&&(a==null&&(a=this[Lt].silent),n=!0,this[Lt]=null),this[Tt]=!0;try{n&&ei(this),Ve.update.call(this,{type:"resize",animation:R({duration:0},r&&r.animation)})}catch(o){throw this[Tt]=!1,o}this[Tt]=!1,Ei.call(this,a),Oi.call(this,a)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(N(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!bu[r]){var n=bu[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var i=R({},r);return i.type=nn[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(N(i)||(i={silent:!!i}),!!Ua[r.type]&&this._model){if(this[Tt]){this._pendingActions.push(r);return}var n=i.silent;Ts.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&z.browser.weChat&&this._throttledZrFlush(),Ei.call(this,n),Oi.call(this,n)}},t.prototype.updateLabelLayout=function(){ne.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ei=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),ms(h,!0),ms(h,!1),c.plan()},ms=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,_=h._api,m=0;m<y.length;m++)y[m].__alive=!1;c?v.eachComponent(function(S,b){S!=="series"&&w(b)}):v.eachSeries(w);function w(S){var b=S.__requireNewView;S.__requireNewView=!1;var M="_ec_"+S.id+"_"+S.type,C=!b&&p[M];if(!C){var D=_e(S.type),A=c?Ee.getClass(D.main,D.sub):Er.getClass(D.sub);C=new A,C.init(v,_),p[M]=C,y.push(C),g.add(C.group)}S.__viewId=C.__id=M,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(C,S,v,_)}for(var m=0;m<y.length;){var T=y[m];T.__alive?m++:(!c&&T.renderTask.dispose(),g.remove(T.group),T.dispose(v,_),y.splice(m,1),p[T.__id]===T&&delete p[T.__id],T.__id=T.group.__ecComponentInfo=null)}},Jn=function(h,c,v,d,y){var p=h._model;if(p.setUpdatePayload(v),!d){x([].concat(h._componentsViews).concat(h._chartsViews),T);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var _={mainType:d,query:g};y&&(_.subType=y);var m=v.excludeSeriesId,w;m!=null&&(w=X(),x(_t(m),function(S){var b=le(S,null);b!=null&&w.set(b,!0)})),p&&p.eachComponent(_,function(S){var b=w&&w.get(S.id)!=null;if(!b)if(Nf(v))if(S instanceof zr)v.type===Rr&&!v.notBlur&&!S.get(["emphasis","disabled"])&&y0(S,v,h._api);else{var M=Uu(S.mainType,S.componentIndex,v.name,h._api),C=M.focusSelf,D=M.dispatchers;v.type===Rr&&C&&!v.notBlur&&iu(S.mainType,S.componentIndex,h._api),D&&x(D,function(A){v.type===Rr?tu(A):eu(A)})}else au(v)&&S instanceof zr&&(w0(S,v,h._api),kf(S),Ut(h))},h),p&&p.eachComponent(_,function(S){var b=w&&w.get(S.id)!=null;b||T(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function T(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},Ve={prepareAndUpdate:function(h){ei(this),Ve.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,y=this._zr,p=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(h),g.restoreData(v,h),g.performSeriesTasks(v),p.create(v,d),g.performDataProcessorTasks(v,h),Ss(this,v),p.update(v,d),r(v),g.performVisualTasks(v,h),bs(this,v,d,h,c);var _=v.get("backgroundColor")||"transparent",m=v.get("darkMode");y.setBackgroundColor(_),m!=null&&m!=="auto"&&y.setDarkMode(m),ne.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var y=[];v.eachComponent(function(g,_){if(g!=="series"){var m=c.getViewOfComponentModel(_);if(m&&m.__alive)if(m.updateTransform){var w=m.updateTransform(_,v,d,h);w&&w.update&&y.push(m)}else y.push(m)}});var p=X();v.eachSeries(function(g){var _=c._chartsMap[g.__viewId];if(_.updateTransform){var m=_.updateTransform(g,v,d,h);m&&m.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),r(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),jn(this,v,d,h,{},p),ne.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Er.markUpdateMethod(h,"updateView"),r(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),bs(this,c,this._api,h,{}),ne.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),Er.markUpdateMethod(h,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,y){if(d!=="series"){var p=c.getViewOfComponentModel(y);p&&p.__alive&&p.updateVisual(y,v,c._api,h)}}),v.eachSeries(function(d){var y=c._chartsMap[d.__viewId];y.updateVisual(d,v,c._api,h)}),ne.trigger("afterupdate",v,this._api))},updateLayout:function(h){Ve.update.call(this,h)}},ws=function(h,c,v,d){if(h._disposed){h.id;return}for(var y=h._model,p=h._coordSysMgr.getCoordinateSystems(),g,_=Go(y,v),m=0;m<p.length;m++){var w=p[m];if(w[c]&&(g=w[c](y,_,d))!=null)return g}},Ss=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(y){d.updateStreamModes(y,v[y.__viewId])})},Ts=function(h,c){var v=this,d=this.getModel(),y=h.type,p=h.escapeConnect,g=Ua[y],_=g.actionInfo,m=(_.update||"update").split(":"),w=m.pop(),T=m[0]!=null&&_e(m[0]);this[Tt]=!0;var S=[h],b=!1;h.batch&&(b=!0,S=Y(h.batch,function(P){return P=ot(R({},P),h),P.batch=null,P}));var M=[],C,D=au(h),A=Nf(h);if(A&&Vc(this._api),x(S,function(P){if(C=g.action(P,v._model,v._api),C=C||R({},P),C.type=_.event||C.type,M.push(C),A){var O=zu(h),E=O.queryOptionMap,G=O.mainTypeSpecified,F=G?E.keys()[0]:"series";Jn(v,w,P,F),Ut(v)}else D?(Jn(v,w,P,"series"),Ut(v)):T&&Jn(v,w,P,T.main,T.sub)}),w!=="none"&&!A&&!D&&!T)try{this[Lt]?(ei(this),Ve.update.call(this,h),this[Lt]=null):Ve[w].call(this,h)}catch(P){throw this[Tt]=!1,P}if(b?C={type:_.event||y,escapeConnect:p,batch:M}:C=M[0],this[Tt]=!1,!c){var L=this._messageCenter;if(L.trigger(C.type,C),D){var I={type:"selectchanged",escapeConnect:p,selected:S0(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},Ei=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Ts.call(this,v,h)}},Oi=function(h){!h&&this.trigger("updated")},jh=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Lt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},tv=function(h,c){h.on("mouseover",function(v){var d=v.target,y=$i(d,nu);y&&(_0(y,v,c._api),Ut(c))}).on("mouseout",function(v){var d=v.target,y=$i(d,nu);y&&(m0(y,v,c._api),Ut(c))}).on("click",function(v){var d=v.target,y=$i(d,function(_){return nt(_).dataIndex!=null},!0);if(y){var p=y.selected?"unselect":"select",g=nt(y);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(_,m){var w=m.get("zlevel")||0,T=m.get("z")||0,S=m.getZLevelKey();d=d||!!S,(_==="series"?v:c).push({zlevel:w,z:T,idx:m.componentIndex,type:_,key:S})}),d){var y=c.concat(v),p,g;ua(y,function(_,m){return _.zlevel===m.zlevel?_.z-m.z:_.zlevel-m.zlevel}),x(y,function(_){var m=h.getComponent(_.type,_.idx),w=_.zlevel,T=_.key;p!=null&&(w=Math.max(p,w)),T?(w===p&&T!==g&&w++,g=T):g&&(w===p&&w++,g=""),p=w,m.setZLevel(w)})}}bs=function(h,c,v,d,y){i(c),ev(h,c,v,d,y),x(h._chartsViews,function(p){p.__alive=!1}),jn(h,c,v,d,y),x(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},ev=function(h,c,v,d,y,p){x(p||h._componentsViews,function(g){var _=g.__model;l(_,g),g.render(_,c,v,d),s(_,g),f(_,g)})},jn=function(h,c,v,d,y,p){var g=h._scheduler;y=R(y||{},{updatedSeries:c.getSeries()}),ne.trigger("series:beforeupdate",c,v,y);var _=!1;c.eachSeries(function(m){var w=h._chartsMap[m.__viewId];w.__alive=!0;var T=w.renderTask;g.updatePayload(T,d),l(m,w),p&&p.get(m.uid)&&T.dirty(),T.perform(g.getPerformArgs(T))&&(_=!0),w.group.silent=!!m.get("silent"),o(m,w),kf(m)}),g.unfinished=_||g.unfinished,ne.trigger("series:layoutlabels",c,v,y),ne.trigger("series:transition",c,v,y),c.eachSeries(function(m){var w=h._chartsMap[m.__viewId];s(m,w),f(m,w)}),a(h,c),ne.trigger("series:afterupdate",c,v,y)},Ut=function(h){h[ys]=!0,h.getZr().wakeUp()},iv=function(h){h[ys]&&(h.getZr().storage.traverse(function(c){tn(c)||n(c)}),h[ys]=!1)};function n(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var y=v[d];y==="emphasis"||y==="blur"||y==="select"||c.push(y)}h.selected&&h.states.select&&c.push("select"),h.hoverState===ro&&h.states.emphasis?c.push("emphasis"):h.hoverState===eo&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,y=0;d.traverse(function(p){p.isGroup||y++}),y>c.get("hoverLayerThreshold")&&!z.node&&!z.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(y){return u(y,v,d,-1/0),!0})}}function u(h,c,v,d){var y=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var _=h.childrenRef(),m=0;m<_.length;m++)d=Math.max(u(_[m],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(y&&(y.z=c,y.zlevel=v,isFinite(d)&&(y.z2=d+2)),p){var w=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(w&&w.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!tn(v)){var d=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=v.get("duration"),p=y>0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(tn(g))return;if(g instanceof it&&D0(g),g.__dirty){var _=g.prevStates;_&&g.useStates(_)}if(d){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&n(g)}})}rv=function(h){return new(function(c){dt(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){tu(d,y),Ut(h)},v.prototype.leaveEmphasis=function(d,y){eu(d,y),Ut(h)},v.prototype.enterBlur=function(d){g0(d),Ut(h)},v.prototype.leaveBlur=function(d){Nc(d),Ut(h)},v.prototype.enterSelect=function(d){Fc(d),Ut(h)},v.prototype.leaveSelect=function(d){zc(d),Ut(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Pd))(h)},xp=function(h){function c(v,d){for(var y=0;y<v.length;y++){var p=v[y];p[_s]=d}}x(nn,function(v,d){h._messageCenter.on(d,function(y){if(nv[h.group]&&h[_s]!==Jh){if(y&&y.escapeConnect)return;var p=h.makeActionFromEvent(y),g=[];x(di,function(_){_!==h&&_.group===h.group&&g.push(_)}),c(g,Jh),x(g,function(_){_[_s]!==SS&&_.dispatchAction(p)}),c(g,TS)}})})}}(),t}(Se),yl=Ga.prototype;yl.on=mp("on");yl.off=mp("off");yl.one=function(e,t,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(e,n)}this.on.call(this,e,n,r)};var bS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ua={},nn={},Su=[],Tu=[],Ya=[],Cp={},bu={},di={},nv={},xS=+new Date-0,_l="_echarts_instance_";function Xx(e,t,r){{var i=Mp(e);if(i)return i}var n=new Ga(e,t,r);return n.id="ec_"+xS++,di[n.id]=n,Tc(e,_l,n.id),xp(n),ne.trigger("afterinit",n),n}function $x(e){B(e)?e=di[e]:e instanceof Ga||(e=Mp(e)),e instanceof Ga&&!e.isDisposed()&&e.dispose()}function Mp(e){return di[a_(e,_l)]}function Dp(e,t){Cp[e]=t}function Ap(e){at(Tu,e)<0&&Tu.push(e)}function Pp(e,t){wl(Su,e,t,cS)}function CS(e){ml("afterinit",e)}function MS(e){ml("afterupdate",e)}function ml(e,t){ne.on(e,t)}function Si(e,t,r){Z(t)&&(r=t,t="");var i=N(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,!nn[t]&&(we(Qh.test(i)&&Qh.test(t)),Ua[i]||(Ua[i]={action:r,actionInfo:e}),nn[t]=i)}function DS(e,t){Ld.register(e,t)}function AS(e,t){wl(Ya,e,t,gp,"layout")}function Vr(e,t){wl(Ya,e,t,yp,"visual")}var av=[];function wl(e,t,r,i,n){if((Z(t)||N(t))&&(r=t,t=i),!(at(av,r)>=0)){av.push(r);var a=rp.wrapStageHandler(r,n);a.__prio=t,a.__raw=r,e.push(a)}}function Lp(e,t){bu[e]=t}function PS(e,t,r){var i=uS("registerMap");i&&i(e,t,r)}var LS=N1;Vr(gl,cw);Vr(_o,dw);Vr(_o,pw);Vr(gl,Aw);Vr(_o,Pw);Vr(_p,oS);Ap(Rd);Pp(hS,g1);Lp("default",gw);Si({type:Rr,event:Rr,update:Rr},kt);Si({type:da,event:da,update:da},kt);Si({type:Qi,event:Qi,update:Qi},kt);Si({type:pa,event:pa,update:pa},kt);Si({type:Ji,event:Ji,update:Ji},kt);Dp("light",Mw);Dp("dark",op);var ov=[],IS={registerPreprocessor:Ap,registerProcessor:Pp,registerPostInit:CS,registerPostUpdate:MS,registerUpdateLifecycle:ml,registerAction:Si,registerCoordinateSystem:DS,registerLayout:AS,registerVisual:Vr,registerTransform:LS,registerLoading:Lp,registerMap:PS,registerImpl:sS,PRIORITY:wS,ComponentModel:rt,ComponentView:Ee,SeriesModel:zr,ChartView:Er,registerComponentModel:function(e){rt.registerClass(e)},registerComponentView:function(e){Ee.registerClass(e)},registerSeriesModel:function(e){zr.registerClass(e)},registerChartView:function(e){Er.registerClass(e)},registerSubTypeDefaulter:function(e,t){rt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Hy(e,t)}};function Ip(e){if(k(e)){x(e,function(t){Ip(t)});return}at(ov,e)>=0||(ov.push(e),Z(e)&&(e={install:e}),e.install(IS))}function ki(e){return e==null?0:e.length||1}function sv(e){return e}var RS=function(){function e(t,r,i,n,a,o){this._old=t,this._new=r,this._oldKeyGetter=i||sv,this._newKeyGetter=n||sv,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,i={},n=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=ki(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=ki(l),c=ki(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},e.prototype._performRestAdd=function(t,r){for(var i=0;i<t.length;i++){var n=t[i],a=r[n],o=ki(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},e.prototype._initIndexMap=function(t,r,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!r){var u=r[s],l=ki(u);l===0?(r[s]=o,a&&i.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e}(),ES=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function OS(e,t){var r={},i=r.encode={},n=X(),a=[],o=[],s={};x(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var y=v.coordDimIndex;xs(i,d)[y]=c,v.isExtraCoord||(n.set(d,1),kS(v.type)&&(a[0]=c),xs(s,d)[y]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}bd.each(function(p,g){var _=xs(i,g),m=v.otherDims[g];m!=null&&m!==!1&&(_[m]=v.name)})});var u=[],l={};n.each(function(c,v){var d=i[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=Y(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new ES(s,t),r}function xs(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function qx(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function kS(e){return!(e==="ordinal"||e==="time")}var ma=function(){function e(t){this.otherDims={},t!=null&&R(this,t)}return e}(),BS=mt(),NS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Rp=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=kp(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return W(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=kd(this.source),i=!Bp(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=NS[l]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Ep(e){return e instanceof Rp}function Op(e){for(var t=X(),r=0;r<(e||[]).length;r++){var i=e[r],n=N(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function kp(e){var t=BS(e);return t.dimNameMap||(t.dimNameMap=Op(e.dimensionsDefine))}function Bp(e){return e>30}var Bi=N,We=Y,FS=typeof Int32Array>"u"?Array:Int32Array,zS="e\0\0",uv=-1,HS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],VS=["_approximateExtent"],lv,ta,Ni,Fi,Cs,zi,Ms,Zx=function(){function e(t,r){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 i,n=!1;Ep(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],c=B(h)?new ma({name:h}):h instanceof ma?h:new ma(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=X();x(o,function(p){y.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(lt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,i=r.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,i){var n=this,a;if(t instanceof vu&&(a=t),!a){var o=this.dimensions,s=cl(t)||Bt(t)?new Bd(t,o.length):t;a=new vu;var u=We(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=OS(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var i=this._store.appendValues(t,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=r[u],o&&Ms(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ze&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===Te;if(u&&!n.pure)for(var l=[],f=t;f<r;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&qy(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=le(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=le(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Ms(this,f);lv(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Bi(t)?R(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Ni(this,this._nameDimIdx,r)),i==null&&(i=""),i},e.prototype._getCategory=function(t,r){var i=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},e.prototype.getId=function(t){return ta(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var i=this,n=this._store;return k(t)?n.getValues(We(t,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var i=t&&this._invertedIndicesMap[t],n=i&&i[r];return n==null||isNaN(n)?uv:n},e.prototype.indicesOfNearest=function(t,r,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,i)},e.prototype.each=function(t,r,i){Z(t)&&(i=r,r=t,t=[]);var n=i||this,a=We(Fi(t),this._getStoreDimIndex,this);this._store.each(a,n?ft(r,n):r)},e.prototype.filterSelf=function(t,r,i){Z(t)&&(i=r,r=t,t=[]);var n=i||this,a=We(Fi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ft(r,n):r),this},e.prototype.selectRange=function(t){var r=this,i={},n=ut(t);return x(n,function(a){var o=r._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,r,i){Z(t)&&(i=r,r=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},i),n},e.prototype.map=function(t,r,i,n){var a=i||n||this,o=We(Fi(t),this._getStoreDimIndex,this),s=zi(this);return s._store=this._store.map(o,a?ft(r,a):r),s},e.prototype.modify=function(t,r,i,n){var a=i||n||this,o=We(Fi(t),this._getStoreDimIndex,this);this._store.modify(o,a?ft(r,a):r)},e.prototype.downSample=function(t,r,i,n){var a=zi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,i,n),a},e.prototype.minmaxDownSample=function(t,r){var i=zi(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),i},e.prototype.lttbDownSample=function(t,r){var i=zi(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,i=this.getRawDataItem(t);return new vt(i,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new RS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ta(t,i)},function(i){return ta(r,i)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Bi(t)?R(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var i=this._itemVisuals[t],n=i&&i[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Bi(a)&&(a=R({},a)),n[r]=a),a},e.prototype.setItemVisual=function(t,r,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Bi(r)?R(n,r):n[r]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Bi(t)?R(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,i){this._itemLayouts[t]=i?R(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;o0(i,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){x(this._graphicEls,function(i,n){i&&t&&t.call(r,i,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:We(this.dimensions,this._getDimInfo,this),this.hostModel)),Cs(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var i=this[t];Z(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Iu(arguments)))})},e.internalField=function(){lv=function(t){var r=t._invertedIndicesMap;x(r,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=r[n]=new FS(o.categories.length);for(var u=0;u<i.length;u++)i[u]=uv;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},Ni=function(t,r,i){return le(t._getCategory(r,i),null)},ta=function(t,r){var i=t._idList[r];return i==null&&t._idDimIdx!=null&&(i=Ni(t,t._idDimIdx,r)),i==null&&(i=zS+r),i},Fi=function(t){return k(t)||(t=t!=null?[t]:[]),t},zi=function(t){var r=new e(t._schema?t._schema:We(t.dimensions,t._getDimInfo,t),t.hostModel);return Cs(r,t),r},Cs=function(t,r){x(HS.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(t[i]=r[i])}),t.__wrappedMethods=r.__wrappedMethods,x(VS,function(i){t[i]=q(r[i])}),t._calculationInfo=R({},r._calculationInfo)},Ms=function(t,r){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[r],u=n[r];if(s==null&&a!=null&&(i[r]=s=Ni(t,a,r)),u==null&&o!=null&&(n[r]=u=Ni(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[r]=u}}}(),e}();function Kx(e,t){cl(e)||(e=Ed(e)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],n=X(),a=[],o=GS(e,r,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Bp(o),u=i===e.dimensionsDefine,l=u?kp(e):Op(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=X(f),c=new Wd(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var D=c[C];if(D<0){var A=i[C],L=N(A)?A:{name:A},I=new ma,P=L.name;P!=null&&l.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var O=a.length;return c[C]=O,I.storeDimIndex=C,a.push(I),I}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,D){var A=_t(C).slice();if(A.length===1&&!B(A[0])&&A[0]<0){h.set(D,!1);return}var L=h.set(D,[]);x(A,function(I,P){var O=B(I)?l.get(I):I;O!=null&&O<o&&(L[P]=O,p(d(O),D,P))})});var y=0;x(r,function(C){var D,A,L,I;if(B(C))D=C,I={};else{I=C,D=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=R({},I),I.ordinalMeta=P,A=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var O=h.get(D);if(O!==!1){if(O=_t(O),!O.length)for(var E=0;E<(A&&A.length||1);E++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&O.push(y++)}x(O,function(G,F){var H=d(G);if(u&&I.type!=null&&(H.type=I.type),p(ot(H,I),D,F),H.name==null&&A){var U=A[F];!N(U)&&(U={name:U}),H.name=H.displayName=U.name,H.defaultTooltip=U.defaultTooltip}L&&ot(H.otherDims,L)})}});function p(C,D,A){bd.get(D)!=null?C.otherDims[D]=A:(C.coordDim=D,C.coordDimIndex=A,n.set(D,!0))}var g=t.generateCoord,_=t.generateCoordCount,m=_!=null;_=g?_||1:0;var w=g||"value";function T(C){C.name==null&&(C.name=C.coordDim)}if(s)x(a,function(C){T(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var b=d(S),M=b.coordDim;M==null&&(b.coordDim=US(w,n,m),b.coordDimIndex=0,(!g||_<=0)&&(b.isExtraCoord=!0),_--),T(b),b.type==null&&(Md(e,S)===gt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return WS(a),new Rp({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function WS(e){for(var t=X(),r=0;r<e.length;r++){var i=e[r],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function GS(e,t,r,i){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,i||0);return x(t,function(a){var o;N(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function US(e,t,r){if(r||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}function Qx(e,t,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;YS(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(x(a,function(_,m){B(_)&&(a[m]=_={name:_}),u&&!_.isExtraCoord&&(!i&&!l&&_.ordinalMeta&&(l=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!n||n===_.coordDim)&&(f=_))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;x(a,function(_){_.coordDim===v&&y++});var p={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function YS(e){return!Ep(e.schema)}function Np(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function XS(e,t){return Np(e,t)?e.getCalculationInfo("stackResultDimension"):t}var xe=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(r)||(i[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ja(xe);var $S=0,fv=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$S}return e.createByAxisModel=function(t){var r=t.option,i=r.data,n=i&&Y(i,qS);return new e({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,i=this._needCollect;if(!B(t)&&!i)return t;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var n=this._getOrCreateMap();return r=n.get(t),r==null&&(i?(r=this.categories.length,this.categories[r]=t,n.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},e}();function qS(e){return N(e)&&e.value!=null?e.value:e+""}function Jx(e){return e.type==="interval"||e.type==="log"}function ZS(e,t,r,i){var n={},a=e[1]-e[0],o=n.interval=pc(a/t);r!=null&&o<r&&(o=n.interval=r),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=Fp(o),u=n.niceTickExtent=[ue(Math.ceil(e[0]/o)*o,s),ue(Math.floor(e[1]/o)*o,s)];return KS(u,e),n}function jx(e){var t=Math.pow(10,Fu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,ue(r*t)}function Fp(e){return Ae(e)+2}function hv(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function KS(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),hv(e,0,t),hv(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function mo(e,t){return e>=t[0]&&e<=t[1]}function wo(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function So(e,t){return e*(t[1]-t[0])+t[0]}var Sl=function(e){dt(t,e);function t(r){var i=e.call(this,r)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new fv({})),k(n)&&(n=new fv({categories:Y(n,function(a){return N(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(r){return r==null?NaN:B(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),mo(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),wo(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(So(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],i=this._extent,n=i[0];n<=i[1];)r.push({value:n}),n++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,i.length);o<u;++o){var l=i[o];n[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,i){this.unionExtent(r.getApproximateExtent(i))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(xe);xe.registerClass(Sl);var Tr=ue,xn=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return mo(r,this._extent)},t.prototype.normalize=function(r){return wo(r,this._extent)},t.prototype.scale=function(r){return So(r,this._extent)},t.prototype.setExtent=function(r,i){var n=this._extent;isNaN(r)||(n[0]=parseFloat(r)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(r){var i=this._extent;r[0]<i[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Fp(r)},t.prototype.getTicks=function(r){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var u=1e4;n[0]<a[0]&&(r?s.push({value:Tr(a[0]-i,o)}):s.push({value:n[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=Tr(l+i,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(r?s.push({value:Tr(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(r){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],u=i[o-1],l=0,f=[],h=s.value-u.value,c=h/r;l<r-1;){var v=Tr(u.value+(l+1)*c);v>a[0]&&v<a[1]&&f.push(v),l++}n.push(f)}return n},t.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Ae(r.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Tr(r.value,n,!0);return _d(a)},t.prototype.calcNiceTicks=function(r,i,n){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=ZS(a,r,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);r.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(i[0]=Tr(Math.floor(i[0]/o)*o)),r.fixMax||(i[1]=Tr(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(r,i){this._niceExtent=[r,i]},t.type="interval",t}(xe);xe.registerClass(xn);var zp=typeof Float32Array<"u",QS=zp?Float32Array:Array;function Ds(e){return k(e)?zp?new Float32Array(e):e:new QS(e)}var xu="__ec_stack_";function Hp(e){return e.get("stack")||xu+e.seriesIndex}function Tl(e){return e.dim+e.index}function tC(e){var t=[],r=e.axis,i="axis0";if(r.type==="category"){for(var n=r.getBandWidth(),a=0;a<e.count;a++)t.push(ot({bandWidth:n,axisKey:i,stackId:xu+a},e));for(var o=Gp(t),s=[],a=0;a<e.count;a++){var u=o[i][xu+a];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function Vp(e,t){var r=[];return t.eachSeriesByType(e,function(i){Up(i)&&r.push(i)}),r}function JS(e){var t={};x(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),y=0,p=d.count();y<p;++y){var g=d.get(v,y);t[c]?t[c].push(g):t[c]=[g]}});var r={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(u,l){return u-l});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[i]=a}}return r}function Wp(e){var t=JS(e),r=[];return x(e,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ct(i.get("barWidth"),s),y=ct(i.get("barMaxWidth"),s),p=ct(i.get("barMinWidth")||(Yp(i)?.5:1),s),g=i.get("barGap"),_=i.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:_,axisKey:Tl(a),stackId:Hp(i)})}),Gp(r)}function Gp(e){var t={};x(e,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=i.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=i.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(u[l].maxWidth=h);var c=i.barMinWidth;c&&(u[l].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return x(t,function(i,n){r[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=ut(a).length;s=Math.max(35-u*4,15)+"%"}var l=ct(s,o),f=ct(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),x(a,function(g){var _=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;_&&(w=Math.min(w,_)),m&&(w=Math.max(w,m)),g.width=w,h-=w+f*w,c--}else{var w=v;_&&_<w&&(w=Math.min(_,h)),m&&m>w&&(w=m),w!==v&&(g.width=w,h-=w+f*w,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;x(a,function(g,_){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;x(a,function(g,_){r[n][_]=r[n][_]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function jS(e,t,r){if(e&&t){var i=e[Tl(t)];return i}}function eC(e,t){var r=Vp(e,t),i=Wp(r);x(r,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),u=Hp(n),l=i[Tl(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function rC(e){return{seriesType:e,plan:Kd(),reset:function(t){if(Up(t)){var r=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Np(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=tT(n,a),d=Yp(t),y=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(m,w){for(var T=m.count,S=d&&Ds(T*3),b=d&&u&&Ds(T*3),M=d&&Ds(T),C=i.master.getRect(),D=c?C.width:C.height,A,L=w.getStore(),I=0;(A=m.next())!=null;){var P=L.get(h?p:o,A),O=L.get(s,A),E=v,G=void 0;h&&(G=+P-L.get(o,A));var F=void 0,H=void 0,U=void 0,et=void 0;if(c){var J=i.dataToPoint([P,O]);if(h){var wt=i.dataToPoint([G,O]);E=wt[0]}F=E,H=J[1]+_,U=J[0]-E,et=g,Math.abs(U)<y&&(U=(U<0?-1:1)*y)}else{var J=i.dataToPoint([O,P]);if(h){var wt=i.dataToPoint([O,G]);E=wt[1]}F=J[0]+_,H=E,U=g,et=J[1]-E,Math.abs(et)<y&&(et=(et<=0?-1:1)*y)}d?(S[I]=F,S[I+1]=H,S[I+2]=c?U:et,b&&(b[I]=c?C.x:F,b[I+1]=c?H:C.y,b[I+2]=D),M[A]=A):w.setItemLayout(A,{x:F,y:H,width:U,height:et}),I+=3}d&&w.setLayout({largePoints:S,largeDataIndices:M,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function Up(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Yp(e){return e.pipelineContext&&e.pipelineContext.large}function tT(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var eT=function(e,t,r,i){for(;r<i;){var n=r+i>>>1;e[n][1]<t?r=n+1:i=n}return r},Xp=function(e){dt(t,e);function t(r){var i=e.call(this,r)||this;return i.type="time",i}return t.prototype.getLabel=function(r){var i=this.getSetting("useUTC");return lo(r.value,jf[Fm(vi(this._minLevelUnit))]||jf.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return zm(r,i,n,o,a)},t.prototype.getTicks=function(){var r=this._interval,i=this._extent,n=[];if(!r)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=uT(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(r){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Qt,i[1]+=Qt),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-Qt}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,i,n){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ea.length,u=Math.min(eT(ea,this._approxInterval,0,s),s-1);this._interval=ea[u][1],this._minLevelUnit=ea[Math.max(u-1,0)][0]},t.prototype.parse=function(r){return lt(r)?r:+Re(r)},t.prototype.contain=function(r){return mo(this.parse(r),this._extent)},t.prototype.normalize=function(r){return wo(this.parse(r),this._extent)},t.prototype.scale=function(r){return So(r,this._extent)},t.type="time",t}(xn),ea=[["second",al],["minute",ol],["hour",en],["quarter-day",en*6],["half-day",en*12],["day",Qt*1.2],["half-week",Qt*3.5],["week",Qt*7],["month",Qt*31],["quarter",Qt*95],["half-year",Jf/2],["year",Jf]];function rT(e,t,r,i){var n=Re(t),a=Re(r),o=function(d){return th(n,d,i)===th(a,d,i)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function iT(e,t){return e/=Qt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nT(e){var t=30*Qt;return e/=t,e>6?6:e>3?3:e>2?2:1}function aT(e){return e/=en,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function vv(e,t){return e/=t?ol:al,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function oT(e){return pc(e)}function sT(e,t,r){var i=new Date(e);switch(vi(t)){case"year":case"month":i[vd(r)](0);case"day":i[cd(r)](1);case"hour":i[dd(r)](0);case"minute":i[pd(r)](0);case"second":i[gd(r)](0),i[yd(r)](0)}return i.getTime()}function uT(e,t,r,i){var n=1e4,a=fd,o=0;function s(D,A,L,I,P,O,E){for(var G=new Date(A),F=A,H=G[I]();F<L&&F<=i[1];)E.push({value:F}),H+=D,G[P](H),F=G.getTime();E.push({value:F,notAdd:!0})}function u(D,A,L){var I=[],P=!A.length;if(!rT(vi(D),i[0],i[1],r)){P&&(A=[{value:sT(new Date(i[0]),D,r)},{value:i[1]}]);for(var O=0;O<A.length-1;O++){var E=A[O].value,G=A[O+1].value;if(E!==G){var F=void 0,H=void 0,U=void 0,et=!1;switch(D){case"year":F=Math.max(1,Math.round(t/Qt/365)),H=sl(r),U=Hm(r);break;case"half-year":case"quarter":case"month":F=nT(t),H=ci(r),U=vd(r);break;case"week":case"half-week":case"day":F=iT(t),H=fo(r),U=cd(r),et=!0;break;case"half-day":case"quarter-day":case"hour":F=aT(t),H=vn(r),U=dd(r);break;case"minute":F=vv(t,!0),H=ho(r),U=pd(r);break;case"second":F=vv(t,!1),H=vo(r),U=gd(r);break;case"millisecond":F=oT(t),H=co(r),U=yd(r);break}s(F,E,G,H,U,et,I),D==="year"&&L.length>1&&O===0&&L.unshift({value:L[0].value-F})}}for(var O=0;O<I.length;O++)L.push(I[O]);return I}}for(var l=[],f=[],h=0,c=0,v=0;v<a.length&&o++<n;++v){var d=vi(a[v]);if(Nm(a[v])){u(a[v],l[l.length-1]||[],f);var y=a[v+1]?vi(a[v+1]):null;if(d!==y){if(f.length){c=h,f.sort(function(D,A){return D.value-A.value});for(var p=[],g=0;g<f.length;++g){var _=f[g].value;(g===0||f[g-1].value!==_)&&(p.push(f[g]),_>=i[0]&&_<=i[1]&&h++)}var m=(i[1]-i[0])/t;if(h>m*1.5&&c>m/1.5||(l.push(p),h>m||e===a[v]))break}f=[]}}}for(var w=Ht(Y(l,function(D){return Ht(D,function(A){return A.value>=i[0]&&A.value<=i[1]&&!A.notAdd})}),function(D){return D.length>0}),T=[],S=w.length-1,v=0;v<w.length;++v)for(var b=w[v],M=0;M<b.length;++M)T.push({value:b[M].value,level:S-v});T.sort(function(D,A){return D.value-A.value});for(var C=[],v=0;v<T.length;++v)(v===0||T[v].value!==T[v-1].value)&&C.push(T[v]);return C}xe.registerClass(Xp);var cv=xe.prototype,an=xn.prototype,lT=ue,fT=Math.floor,hT=Math.ceil,ra=Math.pow,ee=Math.log,bl=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new xn,r._interval=0,r}return t.prototype.getTicks=function(r){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=an.getTicks.call(this,r);return Y(o,function(s){var u=s.value,l=ue(ra(this.base,u));return l=u===n[0]&&this._fixMin?ia(l,a[0]):l,l=u===n[1]&&this._fixMax?ia(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(r,i){var n=ee(this.base);r=ee(Math.max(0,r))/n,i=ee(Math.max(0,i))/n,an.setExtent.call(this,r,i)},t.prototype.getExtent=function(){var r=this.base,i=cv.getExtent.call(this);i[0]=ra(r,i[0]),i[1]=ra(r,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=ia(i[0],a[0])),this._fixMax&&(i[1]=ia(i[1],a[1])),i},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var i=this.base;r[0]=ee(r[0])/ee(i),r[1]=ee(r[1])/ee(i),cv.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,i){this.unionExtent(r.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(r){r=r||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=Xy(n),o=r/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[ue(hT(i[0]/a)*a),ue(fT(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){an.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=ee(r)/ee(this.base),mo(r,this._extent)},t.prototype.normalize=function(r){return r=ee(r)/ee(this.base),wo(r,this._extent)},t.prototype.scale=function(r){return r=So(r,this._extent),ra(this.base,r)},t.type="log",t}(xe),$p=bl.prototype;$p.getMinorTicks=an.getMinorTicks;$p.getLabel=an.getLabel;function ia(e,t){return lT(e,Ae(t))}xe.registerClass(bl);var vT=function(){function e(t,r,i){this._prepareParams(t,r,i)}return e.prototype._prepareParams=function(t,r,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Z(o)?this._modelMinNum=na(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=na(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Z(s)?this._modelMaxNum=na(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=na(t,s)),n)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=k(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Nr(l[0],1),Nr(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?n?0:NaN:r-a[0]*o),u==null&&(u=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=Sa(s)||Sa(u)||t&&!n;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[dT[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var i=cT[t];this[i]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),cT={min:"_determinedMin",max:"_determinedMax"},dT={min:"_dataMin",max:"_dataMax"};function pT(e,t,r){var i=e.rawExtentInfo;return i||(i=new vT(e,t,r),e.rawExtentInfo=i,i)}function na(e,t){return t==null?null:Sa(t)?NaN:e.parse(t)}function gT(e,t){var r=e.type,i=pT(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&r==="time"){var s=Vp("bar",o),u=!1;if(x(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=Wp(s),f=yT(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function yT(e,t,r,i){var n=r.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=jS(i,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;x(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;x(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function iC(e,t){var r=t,i=gT(e,r),n=i.extent,a=r.get("splitNumber");e instanceof bl&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function nC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Sl({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Xp({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(xe.getClass(t)||xn)}}function aC(e){var t=e.scale.getExtent(),r=t[0],i=t[1];return!(r>0&&i>0||r<0&&i<0)}function _T(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(i){return function(n,a){return e.scale.getFormattedLabel(n,a,i)}}(t):B(t)?function(i){return function(n){var a=e.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):Z(t)?function(i){return function(n,a){return r!=null&&(a=n.value-r),i(xl(e,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return e.scale.getLabel(i)}}function xl(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function oC(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var i,n,a=r.getExtent();r instanceof Sl?n=r.count():(i=r.getTicks(),n=i.length);var o=e.getLabelModel(),s=_T(e),u,l=1;n>40&&(l=Math.ceil(n/40));for(var f=0;f<n;f+=l){var h=i?i[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=mT(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function mT(e,t){var r=t*Math.PI/180,i=e.width,n=e.height,a=i*Math.abs(Math.cos(r))+Math.abs(n*Math.sin(r)),o=i*Math.abs(Math.sin(r))+Math.abs(n*Math.cos(r)),s=new Q(e.x,e.y,a,o);return s}function wT(e){var t=e.get("interval");return t??"auto"}function ST(e){return e.type==="category"&&wT(e.getLabelModel())===0}function TT(e,t){var r={};return x(e.mapDimensionsAll(t),function(i){r[XS(e,i)]=!0}),ut(r)}function sC(e,t,r){t&&x(TT(t,r),function(i){var n=t.getApproximateExtent(i);n[0]<e[0]&&(e[0]=n[0]),n[1]>e[1]&&(e[1]=n[1])})}function bT(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=n.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new Ra(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:l,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function qp(e,t,r,i,n,a){var o=e.length;if(o<2)return;e.sort(function(S,b){return S.rect[t]-b.rect[t]});for(var s=0,u,l=!1,f=0;f<o;f++){var h=e[f],c=h.rect;u=c[t]-s,u<0&&(c[t]-=u,h.label[t]-=u,l=!0),s=c[t]+c[r]}var v=e[0],d=e[o-1],y,p;g(),y<0&&w(-y,.8),p<0&&w(p,.8),g(),_(y,p,1),_(p,y,-1),g(),y<0&&T(-y),p<0&&T(p);function g(){y=v.rect[t]-i,p=n-d.rect[t]-d.rect[r]}function _(S,b,M){if(S<0){var C=Math.min(b,-S);if(C>0){m(C*M,0,o);var D=C+S;D<0&&w(-D*M,1)}else w(-S*M,1)}}function m(S,b,M){S!==0&&(l=!0);for(var C=b;C<M;C++){var D=e[C],A=D.rect;A[t]+=S,D.label[t]+=S}}function w(S,b){for(var M=[],C=0,D=1;D<o;D++){var A=e[D-1].rect,L=Math.max(e[D].rect[t]-A[t]-A[r],0);M.push(L),C+=L}if(C){var I=Math.min(Math.abs(S)/C,b);if(S>0)for(var D=0;D<o-1;D++){var P=M[D]*I;m(P,0,D+1)}else for(var D=o-1;D>0;D--){var P=M[D-1]*I;m(-P,D,o)}}}function T(S){var b=S<0?-1:1;S=Math.abs(S);for(var M=Math.ceil(S/(o-1)),C=0;C<o-1;C++)if(b>0?m(M,0,C+1):m(-M,o-C-1,o),S-=M,S<=0)return}return l}function uC(e,t,r,i){return qp(e,"x","width",t,r)}function lC(e,t,r,i){return qp(e,"y","height",t,r)}function xT(e){var t=[];e.sort(function(y,p){return p.priority-y.priority});var r=new Q(0,0,0,0);function i(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var n=0;n<e.length;n++){var a=e[n],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Ra(d.localRect,d.transform)),h||(h=new Ra(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(i(l),f&&i(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function dv(e,t,r){var i=gi.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=n*r,i.height=a*r,i}var As=function(e){j(t,e);function t(r,i,n){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Pa,typeof r=="string"?o=dv(r,i,n):N(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Gv(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=dv("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new Q(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var m=new Q(0,0,0,0);m.copy(_),o.push(m)}else{for(var w=!1,T=1/0,S=0,b=0;b<o.length;++b){var M=o[b];if(M.intersect(_)){var C=new Q(0,0,0,0);C.copy(M),C.union(_),o[b]=C,w=!0;break}else if(u){l.copy(_),l.union(M);var D=_.width*_.height,A=M.width*M.height,L=l.width*l.height,I=L-D-A;I<T&&(T=I,S=b)}}if(u&&(o[S].union(_),w=!0),!w){var m=new Q(0,0,0,0);m.copy(_),o.push(m)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(n,a,!0,!0),d=c.__isRendered&&(c.__dirty&Vt||!v)?c.getPrevPaintRect():null;d&&f(d);var y=v&&(c.__dirty&Vt||!c.__isRendered)?c.getPaintRect():null;y&&f(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=i[h],v=c&&c.shouldBePainted(n,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(y,p,g,_){if(o.clearRect(y,p,g,_),i&&i!=="transparent"){var m=void 0;if($a(i)){var w=i.global||i.__width===g&&i.__height===_;m=w&&i.__canvasGradient||mu(o,i,{x:0,y:0,width:g,height:_}),i.__canvasGradient=m,i.__width=g,i.__height=_}else wg(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,m=wu(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=m||i,o.fillRect(y,p,g,_),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,y,p,g,_),o.restore())}!n||l?d(0,0,s,u):n.length&&x(n,function(y){d(y.x*h,y.y*h,y.width*h,y.height*h)})},t}(Se),pv=1e5,br=314159,aa=.01,CT=.001;function MT(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function DT(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var AT=function(){function e(t,r,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=R({},i||{}),this.dpr=i.devicePixelRatio||Pa,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Gv(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;i.width!=null&&(h=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new As(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[br]=v,v.zlevel=br,s.push(br),this._domRoot=t}else{this._width=Qn(t,0,i),this._height=Qn(t,1,i);var l=this._domRoot=DT(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,i=this._hoverlayer;if(i&&i.clear(),!!r){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(pv)),a||(a=i.ctx,a.save()),Ar(a,s,n,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(pv)},e.prototype.paintOne=function(t,r){hp(t,r)},e.prototype._paintList=function(t,r,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;ba(function(){u._paintList(t,r,i,n)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(br).ctx,r=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,r,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,r,i)})},e.prototype._doPaintList=function(t,r,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,c=function(y){var p=a[y],g=p.ctx,_=o&&p.createRepaintRects(t,r,v._width,v._height),m=i?p.__startIndex:p.__drawIndex,w=!i&&p.incremental&&Date.now,T=w&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,_);else if(m===p.__startIndex){var b=t[m];(!b.incremental||!b.notClear||i)&&p.clear(!1,S,_)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var M,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(M=m;M<p.__endIndex;M++){var O=t[M];if(O.__inHover&&(h=!0),n._doPaintEl(O,p,o,I,P,M===p.__endIndex-1),w){var E=Date.now()-T;if(E>15)break}}P.prevElClipPaths&&g.restore()};if(_)if(_.length===0)M=p.__endIndex;else for(var D=v.dpr,A=0;A<_.length;++A){var L=_[A];g.save(),g.beginPath(),g.rect(L.x*D,L.y*D,L.width*D,L.height*D),g.clip(),C(L),g.restore()}else g.save(),C(),g.restore();p.__drawIndex=M,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return z.wxa&&x(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,i,n,a,o){var s=r.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(Ar(s,t,a,o),t.setPrevPaintRect(u))}else Ar(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=br);var i=this._layers[t];return i||(i=new As("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?st(i,this._layerConfig[t],!0):this._layerConfig[t-aa]&&st(i,this._layerConfig[t-aa],!0),r&&(i.virtual=r),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,r){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(!i[t]&&MT(r)){if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+CT,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?aa:0),this._needsManuallyCompositing),f.__builtin__||Lu("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),n.__dirty&Vt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,x(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?st(i[t],r,!0):i[t]=r;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+aa){var o=this._layers[a];st(o,i[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,i=this._zlevelList,n=r[t];n&&(n.dom.parentNode.removeChild(n.dom),delete r[t],i.splice(at(i,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),r!=null&&(n.height=r),t=Qn(a,0,n),r=Qn(a,1,n),i.style.display="",this._width!==t||r!==this._height){i.style.width=t+"px",i.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(br).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[br].dom;var r=new As("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var i=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];Ar(i,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function fC(e){e.registerPainter("canvas",AT)}function gv(e,t,r){r=r||{};var i=e.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,u=o?"onZero":s,l=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),sn(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-g:g,a.z2=1,a}function hC(e){return e.get("coordinateSystem")==="cartesian2d"}function vC(e){var t={xAxisModel:null,yAxisModel:null};return x(t,function(r,i){var n=i.replace(/Model$/,""),a=e.getReferringComponents(n,Qa).models[0];t[i]=a}),t}var $e=Math.PI,Or=function(){function e(t,r){this.group=new Ie,this.opt=r,this.axisModel=t,ot(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Ie({x:r.position[0],y:r.position[1],rotation:r.rotation});i.updateTransform(),this._transformGroup=i}return e.prototype.hasBuilder=function(t){return!!yv[t]},e.prototype.add=function(t){yv[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,i){var n=dc(r-t),a,o;return La(n)?(o=i>0?"top":"bottom",a="center"):La(n-$e)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<$e?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),yv={axisLine:function(e,t,r,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&e.handleAutoShown&&(n=e.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(me(s,s,o),me(u,u,o));var f=R({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new mi({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ju(h.shape,h.style.lineWidth),h.anid="line",r.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);B(c)&&(c=[c,c]),(B(v)||lt(v))&&(v=[v,v]);var d=Uw(t.get(["axisLine","symbolOffset"])||0,v),y=v[0],p=v[1];x([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(g,_){if(c[_]!=="none"&&c[_]!=null){var m=sp(c[_],-y/2,-p/2,y,p,f.stroke,!0),w=g.r+g.offset,T=l?u:s;m.attr({rotation:g.rotate,x:T[0]+w*Math.cos(e.rotation),y:T[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(m)}})}}},axisTickLabel:function(e,t,r,i){var n=IT(r,i,t,e),a=ET(r,i,t,e);if(LT(t,a,n),RT(r,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=bT(Y(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));xT(o)}},axisName:function(e,t,r,i){var n=sn(e.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,mv(a)?e.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*$e/180);var d;mv(a)?c=Or.innerTextLayout(e.rotation,v??e.rotation,o):(c=PT(e.rotation,a,v||0,l),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,_=sn(e.nameTruncateMaxWidth,p.maxWidth,d),m=new jt({x:h[0],y:h[1],rotation:c.rotation,silent:Or.isLabelSilent(t),style:Fr(s,{text:n,font:y,overflow:"truncate",width:_,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(el({el:m,componentModel:t,itemName:n}),m.__fullText=n,m.anid="name",t.get("triggerEvent")){var w=Or.makeAxisEventDataBase(t);w.targetType="axisName",w.name=n,nt(m).eventData=w}i.add(m),m.updateTransform(),r.add(m),m.decomposeTransform()}}};function PT(e,t,r,i){var n=dc(r-e),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return La(n-$e/2)?(o=u?"bottom":"top",a="center"):La(n-$e*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<$e*1.5&&n>$e/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function LT(e,t,r){if(!ST(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),n=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=r[0],f=r[1],h=r[r.length-1],c=r[r.length-2];i===!1?(Yt(a),Yt(l)):_v(a,o)&&(i?(Yt(o),Yt(f)):(Yt(a),Yt(l))),n===!1?(Yt(s),Yt(h)):_v(u,s)&&(n?(Yt(u),Yt(c)):(Yt(s),Yt(h)))}}function Yt(e){e&&(e.ignore=!0)}function _v(e,t){var r=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!r||!i)){var n=Eu([]);return Ou(n,n,-e.rotation),r.applyTransform(li([],n,e.getLocalTransform())),i.applyTransform(li([],n,t.getLocalTransform())),r.intersect(i)}}function mv(e){return e==="middle"||e==="center"}function Zp(e,t,r,i,n){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(me(o,o,t),me(s,s,t));var f=new mi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ju(f.shape,f.style.lineWidth),f.anid=n+"_"+e[u].tickValue,a.push(f)}return a}function IT(e,t,r,i){var n=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),u=i.tickDirection*a.get("length"),l=n.getTicksCoords(),f=Zp(l,t.transform,u,ot(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}}function RT(e,t,r,i){var n=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),u=i*a.get("length"),l=ot(s.getLineStyle(),ot(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Zp(o[f],t.transform,u,l,"minorticks_"+f),c=0;c<h.length;c++)e.add(h[c])}}function ET(e,t,r,i){var n=r.axis,a=sn(i.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),u=n.getViewLabels(),l=(sn(i.labelRotate,o.get("rotate"))||0)*$e/180,f=Or.innerTextLayout(i.rotation,l,i.labelDirection),h=r.getCategories&&r.getCategories(!0),c=[],v=Or.isLabelSilent(r),d=r.get("triggerEvent");return x(u,function(y,p){var g=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,_=y.formattedLabel,m=y.rawLabel,w=o;if(h&&h[g]){var T=h[g];N(T)&&T.textStyle&&(w=new vt(T.textStyle,o,r.ecModel))}var S=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=n.dataToCoord(g),M=w.getShallow("align",!0)||f.textAlign,C=W(w.getShallow("alignMinLabel",!0),M),D=W(w.getShallow("alignMaxLabel",!0),M),A=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||f.textVerticalAlign,L=W(w.getShallow("verticalAlignMinLabel",!0),A),I=W(w.getShallow("verticalAlignMaxLabel",!0),A),P=new jt({x:b,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(y.level||0),style:Fr(w,{text:_,align:p===0?C:p===u.length-1?D:M,verticalAlign:p===0?L:p===u.length-1?I:A,fill:Z(S)?S(n.type==="category"?m:n.type==="value"?g+"":g,p):S})});if(P.anid="label_"+g,el({el:P,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:m,tickIndex:p}}),d){var O=Or.makeAxisEventDataBase(r);O.targetType="axisLabel",O.value=m,O.tickIndex=p,n.type==="category"&&(O.dataIndex=g),nt(P).eventData=O}t.add(P),P.updateTransform(),c.push(P),e.add(P),P.decomposeTransform()}),c}}function OT(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kT(r,e,t),r.seriesInvolved&&NT(r,e),r}function kT(e,t,r){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];x(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=_n(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(x(s.getAxes(),ae(y,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&x(d.baseAxes,ae(y,v?"cross":!0,c)),v&&x(d.otherAxes,ae(y,"cross",!1))}function y(p,g,_){var m=_.model.getModel("axisPointer",n),w=m.get("show");if(!(!w||w==="auto"&&!p&&!Cu(m))){g==null&&(g=m.get("triggerTooltip")),m=p?BT(_,h,n,t,p,g):m;var T=m.get("snap"),S=m.get("triggerEmphasis"),b=_n(_.model),M=g||T||_.type==="category",C=e.axesInfo[b]={key:b,axis:_,coordSys:s,axisPointerModel:m,triggerTooltip:g,triggerEmphasis:S,involveSeries:M,snap:T,useHandle:Cu(m),seriesModels:[],linkGroup:null};l[b]=C,e.seriesInvolved=e.seriesInvolved||M;var D=FT(a,_);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[b]=C,A.mapper=a[D].mapper,C.linkGroup=A}}}})}function BT(e,t,r,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};x(s,function(c){u[c]=q(o.get(c))}),u.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&ot(l,h.textStyle)}}return e.model.getModel("axisPointer",new vt(u,r,i))}function NT(e,t){t.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||x(e.coordSysAxesInfo[_n(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function FT(e,t){for(var r=t.model,i=t.dim,n=0;n<e.length;n++){var a=e[n]||{};if(Ps(a[i+"AxisId"],r.id)||Ps(a[i+"AxisIndex"],r.componentIndex)||Ps(a[i+"AxisName"],r.name))return n}}function Ps(e,t){return e==="all"||k(e)&&at(e,t)>=0||e===t}function zT(e){var t=Cl(e);if(t){var r=t.axisPointerModel,i=t.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Cu(r);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Cl(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[_n(e)]}function HT(e){var t=Cl(e);return t&&t.axisPointerModel}function Cu(e){return!!e.get(["handle","show"])}function _n(e){return e.type+"||"+e.id}var wv={},VT=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n,a){this.axisPointerClass&&zT(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(r,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=HT(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,i){wv[r]=i},t.getAxisPointerClass=function(r){return r&&wv[r]},t.type="axis",t}(Ee),xr=mt(),Sv=q,Ls=ft,WT=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ie,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),i.getZr().add(s);else{var c=ae(Tv,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}xv(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var i=r.get("animation"),n=t.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var u=Cl(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},e.prototype.makeElOption=function(t,r,i,n,a){},e.prototype.createPointerEl=function(t,r,i,n){var a=r.pointer;if(a){var o=xr(t).pointerEl=new mm[a.type](Sv(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,i,n){if(r.label){var a=xr(t).labelEl=new jt(Sv(r.label));t.add(a),bv(a,n)}},e.prototype.updatePointerEl=function(t,r,i){var n=xr(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,i,n){var a=xr(t).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),bv(a,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=rd(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Yv(l.event)},onmousedown:Ls(this._onHandleDragMove,this,0,0),drift:Ls(this._onHandleDragMove,this),ondragend:Ls(this._onHandleDragEnd,this)}),i.add(n)),xv(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");k(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,jd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Tv(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Is(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Is(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Is(n)),xr(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),gu(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},e}();function Tv(e,t,r,i){Kp(xr(r).lastProp,i)||(xr(r).lastProp=i,t?oo(r,i,e):(r.stopAnimation(),r.attr(i)))}function Kp(e,t){if(N(e)&&N(t)){var r=!0;return x(t,function(i,n){r=r&&Kp(e[n],i)}),!!r}else return e===t}function bv(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Is(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function xv(e,t,r){var i=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}function GT(e){var t=e.get("type"),r=e.getModel(t+"Style"),i;return t==="line"?(i=r.getLineStyle(),i.fill=null):t==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function UT(e,t,r,i,n){var a=r.get("value"),o=Qp(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=po(s.get("padding")||0),l=s.getFont(),f=lc(o,l),h=n.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=v),y==="middle"&&(h[1]-=v/2),YT(h,c,v,i);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Fr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function YT(e,t,r,i){var n=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Qp(e,t,r,i,n){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:xl(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};x(i,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),B(o)?a=o.replace("{value}",a):Z(o)&&(a=o(s))}return a}function Jp(e,t,r){var i=Pr();return Ou(i,i,r.rotation),zs(i,i,r.position),tl([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function XT(e,t,r,i,n,a){var o=Or.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),UT(t,i,n,a,{position:Jp(i.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $T(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function qT(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function cC(e,t,r,i,n,a){return{cx:e,cy:t,r0:r,r:i,startAngle:n,endAngle:a,clockwise:!0}}var ZT=function(e){dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=Cv(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=GT(a),v=KT[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=gv(u.model,n);XT(i,r,d,n,a,o)},t.prototype.getHandleTransform=function(r,i,n){var a=gv(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Jp(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Cv(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(WT);function Cv(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var KT={line:function(e,t,r){var i=$T([t,r[0]],[t,r[1]],Mv(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,r){var i=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:qT([t-i/2,r[0]],[i,n],Mv(e))}}};function Mv(e){return e.dim==="x"?0:1}var QT=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(rt),Pe=mt(),JT=x;function jp(e,t,r){if(!z.node){var i=t.getZr();Pe(i).records||(Pe(i).records={}),jT(i,t);var n=Pe(i).records[e]||(Pe(i).records[e]={});n.handler=r}}function jT(e,t){if(Pe(e).initialized)return;Pe(e).initialized=!0,r("click",ae(Dv,"click")),r("mousemove",ae(Dv,"mousemove")),r("globalout",eb);function r(i,n){e.on(i,function(a){var o=rb(t);JT(Pe(e).records,function(s){s&&n(s,a,o.dispatchAction)}),tb(o.pendings,t)})}}function tb(e,t){var r=e.showTip.length,i=e.hideTip.length,n;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function eb(e,t,r){e.handler("leave",null,r)}function Dv(e,t,r,i){t.handler(e,r,i)}function rb(e){var t={showTip:[],hideTip:[]},r=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=r,e.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function Mu(e,t){if(!z.node){var r=t.getZr(),i=(Pe(r).records||{})[e];i&&(Pe(r).records[e]=null)}}var ib=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";jp("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,i){Mu("axisPointer",i)},t.prototype.dispose=function(r,i){Mu("axisPointer",i)},t.type="axisPointer",t}(Ee);function tg(e,t){var r=[],i=e.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Sn(a,e);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(y)||[]}else r=u.dataToPoint(a.getValues(Y(u.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Av=mt();function nb(e,t,r){var i=e.currTrigger,n=[e.x,e.y],a=e,o=e.dispatchAction||ft(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){wa(n)&&(n=tg({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=wa(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||wa(n),c={},v={},d={list:[],map:{}},y={showPointer:ae(ob,v),showTooltip:ae(sb,d)};x(s.coordSysMap,function(g,_){var m=u||g.containPoint(n);x(s.coordSysAxesInfo[_],function(w,T){var S=w.axis,b=hb(l,w);if(!h&&m&&(!l||b)){var M=b&&b.value;M==null&&!u&&(M=S.pointToData(n)),M!=null&&Pv(w,M,y,!1,c)}})});var p={};return x(f,function(g,_){var m=g.linkGroup;m&&!v[_]&&x(m.axesInfo,function(w,T){var S=v[T];if(w!==g&&S){var b=S.value;m.mapper&&(b=g.axis.scale.parse(m.mapper(b,Lv(w),Lv(g)))),p[g.key]=b}})}),x(p,function(g,_){Pv(f[_],g,y,!0,c)}),ub(v,f,c),lb(d,n,e,o),fb(f,o,r),c}}function Pv(e,t,r,i,n){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=ab(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function ab(e,t){var r=t.axis,i=r.dim,n=e,a=[],o=Number.MAX_VALUE,s=-1;return x(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,n=h,a.length=0),x(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function ob(e,t,r,i){e[t.key]={value:r,payloadBatch:i}}function sb(e,t,r,i){var n=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=_n(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function ub(e,t,r){var i=r.axesInfo=[];x(t,function(n,a){var o=n.axisPointerModel.option,s=e[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function lb(e,t,r,i){if(wa(t)||!e.list.length){i({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function fb(e,t,r){var i=r.getZr(),n="axisPointerLastHighlights",a=Av(i)[n]||{},o=Av(i)[n]={};x(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&x(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];x(a,function(l,f){!o[f]&&u.push(l)}),x(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function hb(e,t){for(var r=0;r<(e||[]).length;r++){var i=e[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Lv(e){var t=e.axis.model,r={},i=r.axisDim=e.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=t.componentIndex,r.axisName=r[i+"AxisName"]=t.name,r.axisId=r[i+"AxisId"]=t.id,r}function wa(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function vb(e){VT.registerAxisPointerClass("CartesianAxisPointer",ZT),e.registerComponentModel(QT),e.registerComponentView(ib),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!k(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=OT(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nb)}var cb=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(rt);function eg(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function rg(e){if(z.domSupported){for(var t=document.documentElement.style,r=0,i=e.length;r<i;r++)if(e[r]in t)return e[r]}}var ig=rg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),db=rg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ng(e,t){if(!e)return t;t=md(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function pb(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var gb=ng(db,"transition"),Ml=ng(ig,"transform"),yb="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(z.transform3dSupported?"will-change:transform;":"");function _b(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function mb(e,t,r){if(!B(r)||r==="inside")return"";var i=e.get("backgroundColor"),n=e.get("borderWidth");t=cn(t);var a=_b(r),o=Math.max(Math.round(n)*1.5,6),s="",u=Ml+":",l;at(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function wb(e,t){var r="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+r,n="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+r,n+=z.transformSupported?","+Ml+i:",left"+i+",top"+i),gb+":"+n}function Iv(e,t,r){var i=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!z.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=z.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Ml+":"+o+";":[["top",0],["left",0],[ig,o]]}function Sb(e){var t=[],r=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var n=W(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+n+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),x(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function Tb(e,t,r){var i=[],n=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),f=e.getModel("textStyle"),h=Zd(e,"html"),c=u+"px "+l+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(wb(n,r)),a&&i.push("background-color:"+a),x(["width","color","radius"],function(v){var d="border-"+v,y=md(d),p=e.get(y);p!=null&&i.push(d+":"+p+(v==="color"?"":"px"))}),i.push(Sb(f)),h!=null&&i.push("padding:"+po(h).join("px ")+"px"),i.join(";")+";"}function Rv(e,t,r,i,n){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Og(e,o,r,i,n)}else{e[0]=i,e[1]=n;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var bb=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,z.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=r.appendTo,o=a&&(B(a)?document.querySelector(a):on(a)?a:Z(a)&&a(t.getDom()));Rv(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();$t(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),i=pb(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=yb+Tb(t,!this._firstShow,this._longHide)+Iv(a[0],a[1],!0)+("border-color:"+cn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(B(a)&&i.get("trigger")==="item"&&!eg(i)&&(s=mb(i,n,a)),B(t))o.innerHTML=t+s;else if(t){o.innerHTML="",k(t)||(t=[t]);for(var u=0;u<t.length;u++)on(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var i=this._styleCoord;if(Rv(i,this._zr,this._container,t,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Iv(i[0],i[1]);x(a,function(o){n[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",z.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ft(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),xb=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Ov(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,i,n,a){var o=this;N(t)&&At(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new jt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Zd(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),x(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),x(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),i=Ev(t.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},e.prototype.moveTo=function(t,r){var i=this.el;if(i){var n=this._styleCoord;Ov(n,this._zr,t,r),t=n[0],r=n[1];var a=i.style,o=Ue(a.borderWidth||0),s=Ev(a);i.x=t+o+s.left,i.y=r+o+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ft(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Ue(e){return Math.max(0,e)}function Ev(e){var t=Ue(e.shadowBlur||0),r=Ue(e.shadowOffsetX||0),i=Ue(e.shadowOffsetY||0);return{left:Ue(t-r),right:Ue(t+r),top:Ue(t-i),bottom:Ue(t+i)}}function Ov(e,t,r,i){e[0]=r,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Cb=new Jt({shape:{x:-1,y:-1,width:2,height:2}}),Mb=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,i){if(!(z.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=o_(n.get("renderMode"));this._tooltipContent=a==="richText"?new xb(i):new bb(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(r,i,n){if(!(z.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?jd(this,"_updatePosition",50,"fixRate"):gu(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");jp("itemTooltip",this._api,ft(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||z.node||!n.getDom())){var o=kv(a,n);this._ticket="";var s=a.dataByCoordSys,u=Lb(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Cb;f.x=a.x,f.y=a.y,f.update(),nt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var h=tg(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(kv(a,n))},t.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=Hi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=nt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;$i(n,function(f){if(nt(f).dataIndex!=null)return u=f,!0;if(nt(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(r,u,i):l?this._showComponentItemTooltip(r,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=ft(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Hi([i.tooltipOption],a),u=this._renderMode,l=[],f=pn("section",{blocks:[],noHeader:!0}),h=[],c=new ps;x(r,function(_){x(_.dataByAxis,function(m){var w=n.getComponent(m.axisDim+"Axis",m.axisIndex),T=m.value;if(!(!w||T==null)){var S=Qp(T,w.axis,n,m.seriesDataIndices,m.valueLabelOpt),b=pn("section",{header:S,noHeader:!ye(S),sortBlocks:!0,blocks:[]});f.blocks.push(b),x(m.seriesDataIndices,function(M){var C=n.getSeriesByIndex(M.seriesIndex),D=M.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=m.axisDim,A.axisIndex=m.axisIndex,A.axisType=m.axisType,A.axisId=m.axisId,A.axisValue=xl(w.axis,{value:T}),A.axisValueLabel=S,A.marker=c.makeTooltipMarker("item",cn(A.color),u);var L=wh(C.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=Hi([C],a).get("valueFormatter");b.blocks.push(P?R({valueFormatter:P},I):I)}L.text&&h.push(L.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),y=Ch(f,c,u,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var p=u==="richText"?`

`:"<br/>",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=nt(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=r.positionDefault,y=Hi([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(f,h),_=new ps;g.marker=_.makeTooltipMarker("item",cn(g.color),v);var m=wh(l.formatTooltip(f,!1,h)),w=y.get("order"),T=y.get("valueFormatter"),S=m.frag,b=S?Ch(T?R({valueFormatter:T},S):S,_,v,w,a.get("useUTC"),y.get("textStyle")):m.text,M="item_"+l.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,b,g,M,r.offsetX,r.offsetY,r.position,r.target,_)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=nt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(B(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=q(u),u.content=It(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=r.positionDefault,d=Hi(h,this._tooltipModel,v?{position:v}:null),y=d.get("content"),p=Math.random()+"",g=new ps;this._showOrMove(d,function(){var _=q(d.get("formatterParams")||{});this._showTooltipContent(d,y,_,p,r.offsetX,r.offsetY,r.position,i,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,i,n,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=i,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor")),y=d.color;if(c)if(B(c)){var p=r.ecModel.get("useUTC"),g=k(n)?n[0]:n,_=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,_&&(v=lo(g.axisValue,v,p)),v=wd(v,n,!0)}else if(Z(c)){var m=ft(function(w,T){w===this._ticket&&(h.setContent(T,f,r,y,u),this._updatePosition(r,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,m)}else v=c;h.setContent(v,f,r,y,u),h.show(r,y),this._updatePosition(r,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(r,i,n,a){if(n==="axis"||k(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!k(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Z(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),k(i))n=ct(i[0],l),a=ct(i[1],f);else if(N(i)){var y=i;y.width=h[0],y.height=h[1];var p=ll(y,{width:l,height:f});n=p.x,a=p.y,c=null,v=null}else if(B(i)&&u){var g=Pb(i,d,h,r.get("borderWidth"));n=g[0],a=g[1]}else{var g=Db(n,a,o,l,f,c?null:20,v?null:20);n=g[0],a=g[1]}if(c&&(n-=Bv(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Bv(v)?h[1]/2:v==="bottom"?h[1]:0),eg(r)){var g=Ab(n,a,o,l,f);n=g[0],a=g[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&x(n,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&x(l,function(c,v){var d=h[v]||{},y=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&y.length===p.length,o&&x(y,function(g,_){var m=p[_];o=o&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),a&&x(c.seriesDataIndices,function(g){var _=g.seriesIndex,m=i[_],w=a[_];m&&w&&w.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,i){z.node||!i.getDom()||(gu(this,"_updatePosition"),this._tooltipContent.dispose(),Mu("itemTooltip",i))},t.type="tooltip",t}(Ee);function Hi(e,t,r){var i=t.ecModel,n;r?(n=new vt(r,i,i),n=new vt(t.option,n,i)):n=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof vt&&(o=o.get("tooltip",!0)),B(o)&&(o={formatter:o}),o&&(n=new vt(o,n,i)))}return n}function kv(e,t){return e.dispatchAction||ft(t.dispatchAction,t)}function Db(e,t,r,i,n,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>i?e-=u+a:e+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[e,t]}function Ab(e,t,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,i)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Pb(e,t,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function Bv(e){return e==="center"||e==="middle"}function Lb(e,t,r){var i=zu(e).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Tn(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=nt(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function dC(e){Ip(vb),e.registerComponentModel(cb),e.registerComponentView(Mb),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},kt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},kt)}var Ib=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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}(rt),Rb=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=W(r.get("textBaseline"),r.get("textVerticalAlign")),f=new jt({style:Fr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new jt({style:Fr(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),y=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!y&&!p,d&&f.on("click",function(){rh(d,"_"+r.get("target"))}),y&&v.on("click",function(){rh(y,"_"+r.get("subtarget"))}),nt(f).eventData=nt(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),c&&a.add(v);var g=a.getBoundingRect(),_=r.getBoxLayoutParams();_.width=g.width,_.height=g.height;var m=ll(_,{width:n.getWidth(),height:n.getHeight()},r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?m.x+=m.width:u==="center"&&(m.x+=m.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),a.x=m.x,a.y=m.y,a.markRedraw();var w={align:u,verticalAlign:l};f.setStyle(w),v.setStyle(w),g=a.getBoundingRect();var T=m.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var b=new Jt({shape:{x:g.x-T[3],y:g.y-T[0],width:g.width+T[1]+T[3],height:g.height+T[0]+T[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(Ee);function pC(e){e.registerComponentModel(Ib),e.registerComponentView(Rb)}export{rx as $,lC as A,Q as B,xT as C,If as D,tn as E,rl as F,Qc as G,at as H,oo as I,Px as J,mt as K,$b as L,Xb as M,up as N,Lc as O,tt as P,It as Q,Q0 as R,Je as S,Bu as T,B as U,ic as V,Ly as W,R as X,ix as Y,Hr as Z,dt as _,$v as a,rt as a$,lt as a0,$l as a1,Ia as a2,dy as a3,py as a4,Zl as a5,ex as a6,vy as a7,we as a8,Cc as a9,Mx as aA,Dx as aB,oa as aC,Xu as aD,im as aE,Er as aF,Kx as aG,Zx as aH,ft as aI,ae as aJ,Nx as aK,lx as aL,hf as aM,zr as aN,Ux as aO,Ie as aP,sp as aQ,Ip as aR,Ob as aS,qu as aT,mm as aU,Yx as aV,j1 as aW,pn as aX,st as aY,vt as aZ,Oe as a_,q as aa,kr as ab,Kb as ac,Nu as ad,Zb as ae,n0 as af,i0 as ag,ug as ah,tx as ai,jb as aj,ax as ak,qb as al,Qb as am,Jb as an,k as ao,N as ap,Qn as aq,nx as ar,kt as as,O_ as at,ox as au,ll as av,jt as aw,xx as ax,Sx as ay,mx as az,me as b,_t as b$,Or as b0,no as b1,$u as b2,um as b3,Ee as b4,xn as b5,Jt as b6,Br as b7,mi as b8,Yu as b9,eo as bA,Ku as bB,Jc as bC,Cg as bD,Pg as bE,To as bF,_i as bG,Mg as bH,Dg as bI,Nb as bJ,Fb as bK,ue as bL,tu as bM,eu as bN,Uw as bO,nd as bP,Ma as bQ,xt as bR,ui as bS,le as bT,Ld as bU,tw as bV,Fr as bW,o0 as bX,Ax as bY,Qe as bZ,Sa as b_,E0 as ba,J0 as bb,j0 as bc,ye as bd,Ou as be,Xg as bf,zs as bg,Pr as bh,X as bi,uo as bj,bn as bk,p0 as bl,Kh as bm,el as bn,Tx as bo,s0 as bp,_x as bq,Xv as br,Bb as bs,Qa as bt,Eb as bu,sn as bv,Ke as bw,$i as bx,yx as by,xg as bz,ni as c,Zy as c$,jd as c0,gu as c1,nC as c2,iC as c3,tl as c4,hn as c5,sx as c6,RS as c7,Se as c8,vm as c9,Bt as cA,rm as cB,$f as cC,tC as cD,Tm as cE,Ju as cF,sm as cG,GT as cH,UT as cI,WT as cJ,$T as cK,cC as cL,lc as cM,TT as cN,VT as cO,Np as cP,vb as cQ,ju as cR,XT as cS,Jp as cT,qT as cU,Sd as cV,kx as cW,Na as cX,Ix as cY,km as cZ,Re as c_,hm as ca,pm as cb,dm as cc,gx as cd,qx as ce,Bx as cf,hx as cg,Ft as ch,At as ci,Kd as cj,fm as ck,Ds as cl,Vb as cm,Gl as cn,$r as co,B_ as cp,gi as cq,$y as cr,Lx as cs,rC as ct,eC as cu,La as cv,rh as cw,Yl as cx,ln as cy,la as cz,ai as d,wT as d$,Gm as d0,Ox as d1,Wm as d2,px as d3,ux as d4,sC as d5,pT as d6,rd as d7,z as d8,Si as d9,dx as dA,vx as dB,Rx as dC,zx as dD,Hx as dE,Vx as dF,kb as dG,P1 as dH,he as dI,G1 as dJ,Wx as dK,Le as dL,Ca as dM,bx as dN,rw as dO,Cx as dP,fC as dQ,dC as dR,pC as dS,Xx as dT,$x as dU,fc as dV,Jd as dW,Ed as dX,Te as dY,Qx as dZ,_T as d_,on as da,Wg as db,Go as dc,Fx as dd,cx as de,Lw as df,Gx as dg,ym as dh,Ka as di,C1 as dj,T0 as dk,Nr as dl,Xp as dm,Sl as dn,Ae as dp,_a as dq,g0 as dr,Nc as ds,Iw as dt,XS as du,Yb as dv,_u as dw,Yv as dx,po as dy,Wc as dz,x as e,ST as e0,Fa as e1,tc as e2,yt as e3,cn as e4,Sn as e5,s_ as e6,Gb as e7,Ba as e8,fv as e9,gT as ea,jx as eb,oC as ec,hC as ed,vC as ee,aC as ef,Jx as eg,gv as eh,Sc as ei,se as ej,wn as ek,Hb as el,Ex as em,nu as en,x0 as eo,Hv as ep,Wb as eq,Ub as er,fx as es,Y as f,Ht as g,Zu as h,Eu as i,ot as j,it as k,Lg as l,li as m,zb as n,ry as o,pi as p,ay as q,W as r,Fn as s,Z as t,ut as u,nt as v,dr as w,ct as x,bT as y,uC as z};
