import{t as U_,u as X_,a as oC}from"./index-2ed9b35c-1763717014417.js";import{a5 as nv,r as gl,bh as on,bi as sC,bj as lC,J as ji,ak as uC}from"./index-8ca08701-1763717014417.js";const fC=Object.prototype.toString;function ad(r,e){return fC.call(r)==="[object ".concat(e,"]")}function hC(r){return ad(r,"Function")||ad(r,"AsyncFunction")}function Zu(r,e,t=!1){if(!hC(r))throw new Error("handle is not Function!");const{readyRef:n,stop:i,start:a}=cC(e);return t?r():nv(n,o=>{o&&r()},{immediate:!1}),{readyRef:n,stop:i,start:a}}function cC(r){const e=gl(!1);let t;function n(){e.value=!1,t&&window.clearTimeout(t)}function i(){n(),t=setTimeout(()=>{e.value=!0},r)}return i(),U_(n),{readyRef:e,stop:n,start:i}}function vC({el:r=window,name:e,listener:t,options:n,autoRemove:i=!0,isDebounce:a=!0,wait:o=80}){let s=()=>{};const l=gl(!1);if(r){const u=gl(r),f=a?X_(t,o):oC(t,o),h=o?f:t,v=d=>{l.value=!0,d.removeEventListener(e,h,n)},c=d=>d.addEventListener(e,h,n),p=nv(u,(d,g,y)=>{d&&(!on(l)&&c(d),y(()=>{i&&v(d)}))},{immediate:!0});s=()=>{v(u.value),p()}}return{removeEvent:s}}/*! ***************************************************************************** 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 Bh=function(r,e){return Bh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Bh(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bh(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var pC=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),dC=function(){function r(){this.browser=new pC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),rn=new dC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(rn.wxa=!0,rn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?rn.worker=!0:!rn.hasGlobalWindow||"Deno"in window?(rn.node=!0,rn.svgSupported=!0):gC(navigator.userAgent,rn);function gC(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ft=rn;var iv=12,Z_="sans-serif",mn=iv+"px "+Z_,yC=20,mC=100,_C="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function SC(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function qC(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?sd(s,o):sd(o,s))}function u1(r){return r.nodeName.toUpperCase()==="CANVAS"}var KC=/([&<>"'])/g,jC={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ht(r){return r==null?"":(r+"").replace(KC,function(e,t){return jC[t]})}var JC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ku=[],QC=ft.browser.firefox&&+ft.browser.version.split(".")[0]<39;function Gh(r,e,t,n){return t=t||{},n?ud(r,e,t):QC&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):ud(r,e,t),t}function ud(r,e,t){if(ft.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(u1(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(Fh(Ku,r,n,i)){t.zrX=Ku[0],t.zrY=Ku[1];return}}t.zrX=t.zrY=0}function vv(r){return r||window.event}function Le(r,e,t){if(e=vv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Gh(r,o,e,t)}else{Gh(r,e,e,t);var a=tA(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&JC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function tA(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function Hh(r,e,t,n){r.addEventListener(e,t,n)}function eA(r,e,t,n){r.removeEventListener(e,t,n)}var Nr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fd(r){return r.which===2||r.which===3}var rA=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&n&&n.length>1){var a=hd(n)/hd(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=nA(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function xe(){return[1,0,0,1,0,0]}function Zo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function au(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function _r(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function zr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Cn(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function pv(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function da(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function iA(r){var e=xe();return au(e,r),e}const aA=Object.freeze(Object.defineProperty({__proto__:null,clone:iA,copy:au,create:xe,identity:Zo,invert:da,mul:_r,rotate:Cn,scale:pv,translate:zr},Symbol.toStringTag,{value:"Module"}));var oA=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}();const rt=oA;var os=Math.min,ss=Math.max,Dn=new rt,Ln=new rt,Pn=new rt,In=new rt,Aa=new rt,Ma=new rt,sA=function(){function r(e,t,n,i){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return r.prototype.union=function(e){var t=os(e.x,this.x),n=os(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ss(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ss(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=xe();return zr(a,a,[-t.x,-t.y]),pv(a,a,[n,i]),zr(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ap&&(p=_,dp&&(p=S,y=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Dn.x=Pn.x=t.x,Dn.y=In.y=t.y,Ln.x=In.x=t.x+t.width,Ln.y=Pn.y=t.y+t.height,Dn.transform(n),In.transform(n),Ln.transform(n),Pn.transform(n),e.x=os(Dn.x,Ln.x,Pn.x,In.x),e.y=os(Dn.y,Ln.y,Pn.y,In.y);var l=ss(Dn.x,Ln.x,Pn.x,In.x),u=ss(Dn.y,Ln.y,Pn.y,In.y);e.width=l-e.x,e.height=u-e.y},r}();const ct=sA;var f1="silent";function lA(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:uA}}function uA(){Nr(this.event)}var fA=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(rr),Da=function(){function r(e,t){this.x=e,this.y=t}return r}(),hA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ju=new ct(0,0,0,0),h1=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Da(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fA,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new $C(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(hA,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=c1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Da(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Da(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=lA(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new Da(t,n);if(cd(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ct(t-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ju.copy(v.getBoundingRect()),v.transform&&Ju.applyTransform(v.transform),Ju.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function cA(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?f1:!0}return!1}function cd(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=cA(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==f1)){e.target=o;break}}}function c1(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}const vA=h1;var v1=32,La=7;function pA(r){for(var e=0;r>=v1;)e|=r&1,r>>=1;return r+e}function vd(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i=0;)i++;return i-e}function dA(r,e,t){for(t--;e>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Qu(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function tf(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function gA(r,e){var t=La,n,i,a=0,o=[];n=[],i=[];function s(c,p){n[a]=c,i[a]=p,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]=La||b>=La);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=t;;){var C=0,A=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,A=0,--p===0){M=!0;break}}else if(r[S--]=o[_--],A++,C=0,--g===1){M=!0;break}while((C|A)=0;y--)r[x+y]=r[w+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(A=g-Qu(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,w=_+1,y=0;y=La||A>=La);if(M)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,w=m+1,y=p-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;ys&&(l=s),pd(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var vr=1,Ja=2,Yi=4,dd=!1;function ef(){dd||(dd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gd(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var yA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gd}return r.prototype.traverse=function(e,t){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(ef(),f.z=0),isNaN(f.z2)&&(ef(),f.z2=0),isNaN(f.zlevel)&&(ef(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,n);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const mA=yA;var p1;p1=ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const yd=p1;var tl={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-tl.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?tl.bounceIn(r*2)*.5:tl.bounceOut(r*2-1)*.5+.5}};const d1=tl;var ls=Math.pow,pn=Math.sqrt,xl=1e-8,g1=1e-4,md=pn(3),us=1/3,pr=wi(),Ee=wi(),ta=wi();function sn(r){return r>-xl&&rxl||r<-xl}function kt(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function _d(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function wl(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(sn(f)&&sn(h))if(sn(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[c++]=p)}else{var d=h*h-4*f*v;if(sn(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[c++]=p),y>=0&&y<=1&&(a[c++]=y)}else if(d>0){var m=pn(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ls(-_,us):_=ls(_,us),S<0?S=-ls(-S,us):S=ls(S,us);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(a[c++]=p)}else{var w=(2*f*s-3*o*h)/(2*pn(f*f*f)),x=Math.acos(w)/3,b=pn(f),C=Math.cos(x),p=(-s-2*b*C)/(3*o),y=(-s+b*(C+md*Math.sin(x)))/(3*o),A=(-s+b*(C-md*Math.sin(x)))/(3*o);p>=0&&p<=1&&(a[c++]=p),y>=0&&y<=1&&(a[c++]=y),A>=0&&A<=1&&(a[c++]=A)}}return c}function m1(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(sn(o)){if(y1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(sn(f))i[0]=-a/(2*o);else if(f>0){var h=pn(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function bl(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function _A(r,e,t,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;pr[0]=l,pr[1]=u;for(var m=0;m<1;m+=.05)Ee[0]=kt(r,t,i,o,m),Ee[1]=kt(e,n,a,s,m),g=li(pr,Ee),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(sn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=pn(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function _1(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Tl(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function wA(r,e,t,n,i,a,o,s,l){var u,f=.005,h=1/0;pr[0]=o,pr[1]=s;for(var v=0;v<1;v+=.05){Ee[0]=qt(r,t,i,v),Ee[1]=qt(e,n,a,v);var c=li(pr,Ee);c=0&&c=1?1:wl(0,n,a,1,l,s)&&kt(0,i,o,1,s[0])}}}var CA=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||zt,this.ondestroy=e.ondestroy||zt,this.onrestart=e.onrestart||zt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:d1[e]||dv(e)},r}();const AA=CA;var S1=function(){function r(e){this.value=e}return r}(),MA=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new S1(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),DA=function(){function r(e){this._list=new MA,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new S1(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const qo=DA;var xd={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 Je(r){return r=Math.round(r),r<0?0:r>255?255:r}function LA(r){return r=Math.round(r),r<0?0:r>360?360:r}function bo(r){return r<0?0:r>1?1:r}function rf(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Je(parseFloat(e)/100*255):Je(parseInt(e,10))}function ui(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?bo(parseFloat(e)/100):bo(parseFloat(e))}function nf(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function ln(r,e,t){return r+(e-r)*t}function De(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Wh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var x1=new qo(20),fs=null;function Di(r,e){fs&&Wh(fs,e),fs=x1.put(r,fs||e.slice())}function ae(r,e){if(r){e=e||[];var t=x1.get(r);if(t)return Wh(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in xd)return Wh(e,xd[n]),Di(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){De(e,0,0,0,1);return}return De(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Di(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){De(e,0,0,0,1);return}return De(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Di(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?De(e,+u[0],+u[1],+u[2],1):De(e,0,0,0,1);f=ui(u.pop());case"rgb":if(u.length>=3)return De(e,rf(u[0]),rf(u[1]),rf(u[2]),u.length===3?f:ui(u[3])),Di(r,e),e;De(e,0,0,0,1);return;case"hsla":if(u.length!==4){De(e,0,0,0,1);return}return u[3]=ui(u[3]),$h(u,e),Di(r,e),e;case"hsl":if(u.length!==3){De(e,0,0,0,1);return}return $h(u,e),Di(r,e),e;default:return}}De(e,0,0,0,1)}}function $h(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=ui(r[1]),i=ui(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],De(e,Je(nf(o,a,t+1/3)*255),Je(nf(o,a,t)*255),Je(nf(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function PA(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-h:t===a?l=1/3+f-v:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Yh(r,e){var t=ae(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Qe(t,t.length===4?"rgba":"rgb")}}function IA(r){var e=ae(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function lo(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=Je(ln(o[0],s[0],l)),t[1]=Je(ln(o[1],s[1],l)),t[2]=Je(ln(o[2],s[2],l)),t[3]=bo(ln(o[3],s[3],l)),t}}var RA=lo;function gv(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=ae(e[i]),s=ae(e[a]),l=n-i,u=Qe([Je(ln(o[0],s[0],l)),Je(ln(o[1],s[1],l)),Je(ln(o[2],s[2],l)),bo(ln(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var EA=gv;function el(r,e,t,n){var i=ae(r);if(r)return i=PA(i),e!=null&&(i[0]=LA(e)),t!=null&&(i[1]=ui(t)),n!=null&&(i[2]=ui(n)),Qe($h(i),"rgba")}function w1(r,e){var t=ae(r);if(t&&e!=null)return t[3]=bo(e),Qe(t,"rgba")}function Qe(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function To(r,e){var t=ae(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function kA(){return Qe([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var wd=new qo(100);function Cl(r){if(G(r)){var e=wd.get(r);return e||(e=Yh(r,-.1),wd.put(r,e)),e}else if(nu(r)){var t=O({},r);return t.colorStops=V(r.colorStops,function(n){return{offset:n.offset,color:Yh(n.color,-.1)}}),t}return r}const OA=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:lo,fastMapToColor:RA,lerp:gv,lift:Yh,liftColor:Cl,lum:To,mapToColor:EA,modifyAlpha:w1,modifyHSL:el,parse:ae,random:kA,stringify:Qe,toHex:IA},Symbol.toStringTag,{value:"Module"}));var Al=Math.round;function Co(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=ae(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var bd=1e-4;function un(r){return r-bd}function hs(r){return Al(r*1e3)/1e3}function Uh(r){return Al(r*1e4)/1e4}function BA(r){return"matrix("+hs(r[0])+","+hs(r[1])+","+hs(r[2])+","+hs(r[3])+","+Uh(r[4])+","+Uh(r[5])+")"}var NA={left:"start",right:"end",center:"middle",middle:"middle"};function zA(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function VA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function FA(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function b1(r){return r&&!!r.image}function GA(r){return r&&!!r.svgElement}function yv(r){return b1(r)||GA(r)}function T1(r){return r.type==="linear"}function C1(r){return r.type==="radial"}function A1(r){return r&&(r.type==="linear"||r.type==="radial")}function ou(r){return"url(#"+r+")"}function M1(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function D1(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*so,i=j(r.scaleX,1),a=j(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Al(o*so)+"deg, "+Al(s*so)+"deg)"),l.join(" ")}var HA=function(){return ft.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Xh=Array.prototype.slice;function Lr(r,e,t){return(e-r)*t+r}function af(r,e,t,n){for(var i=e.length,a=0;an?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Cd,l=t;if(Qt(t)){var u=UA(t);s=u,(u===1&&!_t(t[0])||u===2&&!_t(t[0][0]))&&(o=!0)}else if(_t(t)&&!wo(t))s=vs;else if(G(t))if(!isNaN(+t))s=vs;else{var f=ae(t);f&&(l=f,s=Qa)}else if(nu(t)){var h=O({},l);h.colorStops=V(t.colorStops,function(c){return{offset:c.offset,color:ae(c.color)}}),T1(t)?s=Zh:C1(t)&&(s=qh),l=h}a===0?this.valType=s:(s!==this.valType||s===Cd)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return n&&(v.easing=n,v.easingFunc=K(n)?n:d1[n]||dv(n)),i.push(v),v},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(d,g){return d.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ps(i),u=Ad(i),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?Pa:e[l];if((ps(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(ps(a))a===nl?af(m,c[i],p[i],y):WA(m,c[i],p[i],y);else if(Ad(a)){var _=c[i],S=p[i],w=a===Zh;e[l]={type:w?"linear":"radial",x:Lr(_.x,S.x,y),y:Lr(_.y,S.y,y),colorStops:V(_.colorStops,function(b,C){var A=S.colorStops[C];return{offset:Lr(b.offset,A.offset,y),color:rl(af([],b.color,A.color,y))}}),global:S.global},w?(e[l].x2=Lr(_.x2,S.x2,y),e[l].y2=Lr(_.y2,S.y2,y)):e[l].r=Lr(_.r,S.r,y)}else if(u)af(m,c[i],p[i],y),n||(e[l]=rl(m));else{var x=Lr(c[i],p[i],y);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===vs?e[n]=e[n]+i:t===Qa?(ae(e[n],Pa),cs(Pa,Pa,i,1),e[n]=rl(Pa)):t===nl?cs(e[n],e[n],i,1):t===L1&&Td(e[n],e[n],i,1)},r}(),ZA=function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){lv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,at(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,uo(u),i),this._trackKeys.push(s)}l.addKeyframe(e,uo(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const mv=ZA;function qi(){return new Date().getTime()}var qA=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=qi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(yd(n),!t._paused&&t.update())}yd(n)},e.prototype.start=function(){this._running||(this._time=qi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=qi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=qi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new mv(t,n.loop);return this.addAnimator(i),i},e}(rr);const KA=qA;var jA=300,of=ft.domSupported,sf=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=V(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}}(),Md={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dd=!1;function Kh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function JA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function lf(r){r&&(r.zrByTouch=!0)}function QA(r,e){return Le(r.dom,new tM(r,e),!0)}function P1(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var tM=function(){function r(e,t){this.stopPropagation=zt,this.stopImmediatePropagation=zt,this.preventDefault=zt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),qe={mousedown:function(r){r=Le(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Le(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Le(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Le(this.dom,r);var e=r.toElement||r.relatedTarget;P1(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Dd=!0,r=Le(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Dd||(r=Le(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Le(this.dom,r),lf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),qe.mousemove.call(this,r),qe.mousedown.call(this,r)},touchmove:function(r){r=Le(this.dom,r),lf(r),this.handler.processGesture(r,"change"),qe.mousemove.call(this,r)},touchend:function(r){r=Le(this.dom,r),lf(r),this.handler.processGesture(r,"end"),qe.mouseup.call(this,r),+new Date-+this.__lastTouchMomentRd||r<-Rd}var En=[],Li=[],ff=xe(),hf=Math.abs,oM=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Rn(this.rotation)||Rn(this.x)||Rn(this.y)||Rn(this.scaleX-1)||Rn(this.scaleY-1)||Rn(this.skewX)||Rn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Id(n),this.invTransform=null);return}n=n||xe(),t?this.getLocalTransform(n):Id(n),e&&(t?_r(n,e,n):au(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(En);var n=En[0]<0?-1:1,i=En[1]<0?-1:1,a=((En[0]-n)*t+n)/En[0]||0,o=((En[1]-i)*t+i)/En[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xe(),da(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||xe(),_r(Li,e.invTransform,t),t=Li);var n=this.originX,i=this.originY;(n||i)&&(ff[4]=n,ff[5]=i,_r(Li,t,ff),Li[4]-=n,Li[5]-=i,t=Li),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Vt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Vt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&hf(e[0]-1)>1e-10&&hf(e[3]-1)>1e-10?Math.sqrt(hf(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){R1(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,d=i+l;t[4]=-p*a-v*d*o,t[5]=-d*o-c*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=c*a,t[2]=v*o,u&&Cn(t,t,u),t[4]+=n+f,t[5]+=i+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Sr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function R1(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function Ml(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",h="top";if(n instanceof Array)l+=er(n[0],t.width),u+=er(n[1],t.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var cf="__zr_normal__",vf=Sr.concat(["ignore"]),sM=Ve(Sr,function(r,e){return r[e]=!0,r},{ignore:!1}),Pi={},lM=new ct(0,0,0,0),_v=function(){function r(e){this.id=sv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(t),n.position!=null){var f=lM;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pi,n,f):Ml(Pi,n,f),a.x=Pi.x,a.y=Pi.y,o=Pi.align,s=Pi.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=er(h[0],f.width),c=er(h[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=vr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tc:Qh},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&ae(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Qe(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},O(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(U(e))for(var n=e,i=at(n),a=0;a0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(cf,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===cf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){lv("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,n,f),v&&v.useState(e,t,n,f),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vr),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vr)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=st(i,e),o=st(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o0&&t.during&&a[0].during(function(p,d){t.during(d)});for(var v=0;v0||i.force&&!o.length){var C=void 0,A=void 0,M=void 0;if(s){A={},v&&(C={});for(var S=0;S<_;S++){var y=d[S];A[y]=t[y],v?C[y]=n[y]:t[y]=n[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=uo(t[y]),fM(t,n,y)}}var w=new mv(t,!1,!1,h?xt(p,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),v&&C&&w.whenWithKeys(0,C,d),M&&w.whenWithKeys(0,M,d),w.whenWithKeys(u==null?500:u,s?A:n,d).delay(f||0),r.addAnimator(w,e),o.push(w)}}const k1=_v;var O1=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,i=0;i=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=st(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=st(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function et(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?xM(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Pt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),V1),r=(+r).toFixed(e),t?r:+r}function gr(r){return r.sort(function(e,t){return e-t}),r}function yr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return F1(r)}function F1(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Sv(r,e){var t=Math.log,n=Math.LN10,i=Math.floor(t(r[1]-r[0])/n),a=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function wM(r,e,t){if(!r[e])return 0;var n=G1(r,t);return n[e]||0}function G1(r,e){var t=Ve(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var n=Math.pow(10,e),i=V(r,function(c){return(isNaN(c)?0:c)/t*n*100}),a=n*100,o=V(i,function(c){return Math.floor(c)}),s=Ve(o,function(c,p){return c+p},0),l=V(i,function(c,p){return c-o[p]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return V(o,function(c){return c/n})}function bM(r,e){var t=Math.max(yr(r),yr(e)),n=r+e;return t>V1?n:Pt(n,t)}var TM=9007199254740991;function xv(r){var e=Math.PI*2;return(r%e+e)%e}function Ao(r){return r>-Od&&r=10&&e++,e}function wv(r,e){var t=lu(r),n=Math.pow(10,t),i=r/n,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,t>=-20?+r.toFixed(t<0?-t:0):r}function AM(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),i=+r[n-1],a=t-n;return a?i+a*(r[n]-i):i}function nc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n=0||a&&st(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var jM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],JM=aa(jM),QM=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return JM(this,e,t)},r}(),ic=new qo(50);function tD(r){if(typeof r=="string"){var e=ic.get(r);return e&&e.image}else return r}function Mv(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=ic.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!fu(e)&&a.pending.push(o)):(e=_n.loadImage(r,Vd,Vd),e.__zrImageSrc=r,ic.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Vd(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=we(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function tS(r,e,t){var n=t.containerWidth,i=t.font,a=t.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=we(e,i);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?rD(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=we(e,i)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function rD(r,e,t,n){for(var i=0,a=0,o=r.length;ap&&u){var d=Math.floor(p/s);f=f||v.length>d,v=v.slice(0,d)}if(r&&a&&h!=null)for(var g=Q1(h,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;ms&&yf(t,r.substring(s,u),e,o),yf(t,l[2],e,o,l[1]),s=gf.lastIndex}si){var P=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,w,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length0&&p+n.accumWidth>n.width&&(f=e.split("\n"),u=!0),n.accumWidth=p}else{var d=eS(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split("\n");for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var lD=Ve(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function uD(r){return sD(r)?!!lD[r]:!0}function eS(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;ht:i+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):p?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var ac="__zr_style_"+Math.round(Math.random()*10),fi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fi[ac]=!0;var Gd=["z","z2","invisible"],fD=["invisible"],hD=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=at(t),i=0;i1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(ds[0]=xf(i)*t+r,ds[1]=Sf(i)*n+e,gs[0]=xf(a)*t+r,gs[1]=Sf(a)*n+e,u(s,ds,gs),f(l,ds,gs),i=i%On,i<0&&(i=i+On),a=a%On,a<0&&(a=a+On),i>a&&!o?a+=On:ii&&(ys[0]=xf(c)*t+r,ys[1]=Sf(c)*n+e,u(s,ys,s),f(l,ys,l))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bn=[],Nn=[],or=[],Zr=[],sr=[],lr=[],wf=Math.min,bf=Math.max,zn=Math.cos,Vn=Math.sin,Ar=Math.abs,oc=Math.PI,nn=oc*2,Tf=typeof Float32Array<"u",Ia=[];function Cf(r){var e=Math.round(r/oc*1e8)/1e8;return e%2*oc}function rS(r,e){var t=Cf(r[0]);t<0&&(t+=nn);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=nn?i=t+nn:e&&t-i>=nn?i=t-nn:!e&&t>i?i=t+(nn-Cf(t-i)):e&&t0&&(this._ux=Ar(n/Pd/e)||0,this._uy=Ar(n/Pd/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(mt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=Ar(e-this._xi),i=Ar(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mt.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(mt.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(mt.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),Ia[0]=i,Ia[1]=a,rS(Ia,o),i=Ia[0],a=Ia[1];var s=a-i;return this.addData(mt.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=zn(a)*n+e,this._yi=Vn(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(mt.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Tf&&(this.data=new Float32Array(t));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){or[0]=or[1]=sr[0]=sr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;on||Ar(_)>i||v===t-1)&&(d=Math.sqrt(m*m+_*_),a=g,o=y);break}case mt.C:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++],x=e[v++],b=e[v++];d=SA(a,o,S,w,g,y,x,b,10),a=x,o=b;break}case mt.Q:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++];d=bA(a,o,S,w,g,y,10),a=g,o=y;break}case mt.A:var C=e[v++],A=e[v++],M=e[v++],D=e[v++],L=e[v++],P=e[v++],I=P+L;v+=1,p&&(s=zn(L)*M+C,l=Vn(L)*D+A),d=bf(M,D)*wf(nn,Math.abs(P)),a=zn(I)*M+C,o=Vn(I)*D+A;break;case mt.R:{s=a=e[v++],l=o=e[v++];var R=e[v++],k=e[v++];d=R*2+k*2;break}case mt.Z:{var m=s-a,_=l-o;d=Math.sqrt(m*m+_*_),a=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m)))t:for(var x=0;x0&&(e.lineTo(S,w),_=0),b){case mt.M:s=u=n[x++],l=f=n[x++],e.moveTo(u,f);break;case mt.L:{h=n[x++],v=n[x++];var A=Ar(h-u),M=Ar(v-f);if(A>i||M>a){if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=D}e.lineTo(h,v),u=h,f=v,_=0}else{var P=A*A+M*M;P>_&&(S=h,w=v,_=P)}break}case mt.C:{var I=n[x++],R=n[x++],k=n[x++],F=n[x++],B=n[x++],N=n[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;bl(u,I,k,B,L,Bn),bl(f,R,F,N,L,Nn),e.bezierCurveTo(Bn[1],Nn[1],Bn[2],Nn[2],Bn[3],Nn[3]);break t}g+=D}e.bezierCurveTo(I,R,k,F,B,N),u=B,f=N;break}case mt.Q:{var I=n[x++],R=n[x++],k=n[x++],F=n[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Tl(u,I,k,L,Bn),Tl(f,R,F,L,Nn),e.quadraticCurveTo(Bn[1],Nn[1],Bn[2],Nn[2]);break t}g+=D}e.quadraticCurveTo(I,R,k,F),u=k,f=F;break}case mt.A:var H=n[x++],X=n[x++],Y=n[x++],ot=n[x++],vt=n[x++],yt=n[x++],Yt=n[x++],he=!n[x++],Nt=Y>ot?Y:ot,Mt=Ar(Y-ot)>.001,bt=vt+yt,J=!1;if(c){var D=p[y++];g+D>m&&(bt=vt+yt*(m-g)/D,J=!0),g+=D}if(Mt&&e.ellipse?e.ellipse(H,X,Y,ot,Yt,vt,bt,he):e.arc(H,X,Nt,vt,bt,he),J)break t;C&&(s=zn(vt)*Y+H,l=Vn(vt)*ot+X),u=zn(bt)*Y+H,f=Vn(bt)*ot+X;break;case mt.R:s=u=n[x],l=f=n[x+1],h=n[x++],v=n[x++];var lt=n[x++],ce=n[x++];if(c){var D=p[y++];if(g+D>m){var Dt=m-g;e.moveTo(h,v),e.lineTo(h+wf(Dt,lt),v),Dt-=lt,Dt>0&&e.lineTo(h+lt,v+wf(Dt,ce)),Dt-=ce,Dt>0&&e.lineTo(h+bf(lt-Dt,0),v+ce),Dt-=lt,Dt>0&&e.lineTo(h,v+bf(ce-Dt,0));break t}g+=D}e.rect(h,v,lt,ce);break;case mt.Z:if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=mt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();const Fr=gD;function Ii(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||or+s&&a>t+s||ae+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&u>t+h&&u>i+h&&u>o+h||ue+u&&l>n+u&&l>a+u||lr+u&&s>t+u&&s>i+u||st||f+ui&&(i+=Ra);var v=Math.atan2(l,s);return v<0&&(v+=Ra),v>=n&&v<=i||v+Ra>=n&&v+Ra<=i}function Pr(r,e,t,n,i,a){if(a>e&&a>n||ai?s:0}var qr=Fr.CMD,Fn=Math.PI*2,SD=1e-4;function xD(r,e){return Math.abs(r-e)e&&u>n&&u>a&&u>s||u1&&wD(),c=kt(e,n,a,s,Ie[0]),v>1&&(p=kt(e,n,a,s,Ie[1]))),v===2?ge&&s>n&&s>a||s=0&&u<=1){for(var f=0,h=qt(e,n,a,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);ee[0]=-l,ee[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Fn-1e-4){n=0,i=Fn;var f=a?1:-1;return o>=ee[0]+r&&o<=ee[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Fn,i+=Fn);for(var v=0,c=0;c<2;c++){var p=ee[c];if(p+r>o){var d=Math.atan2(s,p),f=a?1:-1;d<0&&(d=Fn+d),(d>=n&&d<=i||d+Fn>=n&&d+Fn<=i)&&(d>Math.PI/2&&d1&&(t||(s+=Pr(l,u,f,h,n,i))),g&&(l=a[p],u=a[p+1],f=l,h=u),d){case qr.M:f=a[p++],h=a[p++],l=f,u=h;break;case qr.L:if(t){if(Ii(l,u,a[p],a[p+1],e,n,i))return!0}else s+=Pr(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qr.C:if(t){if(yD(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=bD(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qr.Q:if(t){if(mD(l,u,a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=TD(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qr.A:var y=a[p++],m=a[p++],_=a[p++],S=a[p++],w=a[p++],x=a[p++];p+=1;var b=!!(1-a[p++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=Pr(l,u,v,c,n,i);var C=(n-y)*S/_+y;if(t){if(_D(y,m,S,w,w+x,b,e,C,i))return!0}else s+=CD(y,m,S,w,w+x,b,C,i);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case qr.R:f=l=a[p++],h=u=a[p++];var A=a[p++],M=a[p++];if(v=f+A,c=h+M,t){if(Ii(f,h,v,h,e,n,i)||Ii(v,h,v,c,e,n,i)||Ii(v,c,f,c,e,n,i)||Ii(f,c,f,h,e,n,i))return!0}else s+=Pr(v,h,v,c,n,i),s+=Pr(f,c,f,h,n,i);break;case qr.Z:if(t){if(Ii(l,u,f,h,e,n,i))return!0}else s+=Pr(l,u,f,h,n,i);l=f,u=h;break}}return!t&&!xD(u,h)&&(s+=Pr(l,u,f,h,n,i)||0),s!==0}function AD(r,e,t){return nS(r,0,!1,e,t)}function MD(r,e,t,n){return nS(r,e,!0,t,n)}var Ll=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fi),DD={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hu.style)},Af=Sr.concat(["invisible","culling","z","z2","zlevel","parent"]),LD=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Qh:n>.2?aM:tc}else if(t)return tc}return Qh},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=To(t,0)0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Yi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),MD(s,l/u,t,n)))return!0}if(this.hasFill())return AD(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Yi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:O(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Yi)},e.prototype.createStyle=function(t){return Xo(Ll,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=O({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=O({},i.shape),O(u,n.shape)):(u=O({},a?this.shape:i.shape),O(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=at(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return Xo(PD,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var i=Ko(n,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Vr);iS.prototype.type="tspan";const Lo=iS;var ID=q({x:0,y:0},fi),RD={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hu.style)};function ED(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var aS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Xo(ID,t)},e.prototype._getSize=function(t){var n=this.style,i=n[t];if(i!=null)return i;var a=ED(n.image)?n.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return RD},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ct(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Vr);aS.prototype.type="image";const fe=aS;function kD(r,e){var t=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+f,n+a),f!==0&&r.arc(t+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var Ki=Math.round;function oS(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(Ki(n*2)===Ki(i*2)&&(r.x1=r.x2=ii(n,s,!0)),Ki(a*2)===Ki(o*2)&&(r.y1=r.y2=ii(a,s,!0))),r}}function sS(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ii(n,s,!0),r.y=ii(i,s,!0),r.width=Math.max(ii(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(ii(i+o,s,!1)-r.y,o===0?0:1)),r}}function ii(r,e,t){if(!e)return r;var n=Ki(r*2);return(n+Ki(e))%2===0?n/2:(n+(t?1:-1))/2}var OD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),BD={},lS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new OD},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=sS(BD,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?kD(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(gt);lS.prototype.type="rect";const pt=lS;var Ud={fill:"#000"},Xd=2,ND={style:q({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},hu.style)},uS=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ud,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),P=o.calculatedLineHeight,I=0;I=0&&(I=x[P],I.align==="right");)this._placeToken(I,t,C,y,L,"right",_),A-=I.width,L-=I.width,P--;for(D+=(a-(D-g)-(m-L)-A)/2;M<=P;)I=x[M],this._placeToken(I,t,C,y,D+I.width/2,"center",_),D+=I.width,M++;y+=C}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=a+i/2;f==="top"?h=a+t.height/2:f==="bottom"&&(h=a+i-t.height/2);var v=!t.isLineHolder&&Mf(u);v&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Qd(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(Lo),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Jd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=jd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Xd,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||mn,g.opacity=Ji(u.opacity,n.opacity,1),qd(g,u),w&&(g.lineWidth=Ji(u.lineWidth,n.lineWidth,_),g.lineDash=j(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new ct(to(g.x,b,g.textAlign),Ui(g.y,C,g.textBaseline),b,C))},e.prototype._renderBackground=function(t,n,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=j(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(fe),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=j(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ji(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return hS(t)&&(n=[t.fontStyle,t.fontWeight,fS(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&ze(n)||t.textFont||t.font},e}(Vr),zD={left:!0,right:1,center:1},VD={top:1,bottom:1,middle:1},Zd=["fontStyle","fontWeight","fontSize","fontFamily"];function fS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?iv+"px":r+"px"}function qd(r,e){for(var t=0;t=0,a=!1;if(r instanceof gt){var o=cS(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ri(s)||Ri(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=O({},n),u=O({},u),u.fill=s):!Ri(u.fill)&&Ri(s)?(a=!0,n=O({},n),u=O({},u),u.fill=Cl(s)):!Ri(u.stroke)&&Ri(l)&&(a||(n=O({},n),u=O({},u)),u.stroke=Cl(l)),n.style=u}}if(n&&n.z2==null){a||(n=O({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:vS)}return n}function XD(r,e,t){if(t&&t.z2==null){t=O({},t);var n=r.z2SelectLift;t.z2=r.z2+(n!=null?n:HD)}return t}function ZD(r,e,t){var n=st(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:YD(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=O({},t),o=O({opacity:n?i:a.opacity*.1},o),t.style=o),t}function Df(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return UD(this,r,e,t);if(r==="blur")return ZD(this,r,t);if(r==="select")return XD(this,r,t)}return t}function Iv(r){r.stateProxy=Df;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Df),t&&(t.stateProxy=Df)}function ig(r,e){!SS(r,e)&&!r.__highByOuter&&Hr(r,pS)}function ag(r,e){!SS(r,e)&&!r.__highByOuter&&Hr(r,dS)}function oa(r,e){r.__highByOuter|=1<<(e||0),Hr(r,pS)}function sa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Hr(r,dS)}function qD(r){Hr(r,Pv)}function yS(r){Hr(r,gS)}function mS(r){Hr(r,WD)}function _S(r){Hr(r,$D)}function SS(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function xS(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=Dv(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){gS(u)}),s&&t.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function lc(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function dn(r,e,t){Ev(r,!0),Hr(r,Iv),r2(r,e,t)}function e2(r){Ev(r,!1)}function Sn(r,e,t,n){n?e2(r):dn(r,e,t)}function r2(r,e,t){var n=nt(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var sg=["emphasis","blur","select"],n2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function la(r,e,t,n){t=t||"itemStyle";for(var i=0;i1&&(o*=Lf(p),s*=Lf(p));var d=(i===a?-1:1)*Lf((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Ss(h)*g-_s(h)*y,_=(e+n)/2+_s(h)*g+Ss(h)*y,S=hg([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=hg(w,x);if(cc(w,x)<=-1&&(b=Ea),cc(w,x)>=1&&(b=0),b<0){var C=Math.round(b/Ea*1e6)/1e6;b=Ea*2+C%2*Ea}f.addData(u,m,_,o,s,S,b,h,a)}var f2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,h2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function c2(r){var e=new Fr;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=Fr.CMD,l=r.match(f2);if(!l)return e;for(var u=0;uI*I+R*R&&(C=M,A=D),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(i/w-1),y1:A*(i/w-1)}}function _2(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function S2(r,e){var t,n=eo(e.r,0),i=eo(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=vg(u-l),p=c>Pf&&c%Pf;if(p>Ze&&(c=p),!(n>Ze))r.moveTo(f,h);else if(c>Pf-Ze)r.moveTo(f+n*ki(l),h+n*Gn(l)),r.arc(f,h,n,l,u,!v),i>Ze&&(r.moveTo(f+i*ki(u),h+i*Gn(u)),r.arc(f,h,i,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=void 0,A=void 0,M=void 0,D=void 0,L=void 0,P=void 0,I=void 0,R=n*ki(l),k=n*Gn(l),F=i*ki(u),B=i*Gn(u),N=c>Ze;if(N){var H=e.cornerRadius;H&&(t=_2(H),d=t[0],g=t[1],y=t[2],m=t[3]);var X=vg(n-i)/2;if(_=ur(X,y),S=ur(X,m),w=ur(X,d),x=ur(X,g),A=b=eo(_,S),M=C=eo(w,x),(b>Ze||C>Ze)&&(D=n*ki(u),L=n*Gn(u),P=i*ki(l),I=i*Gn(l),cZe){var Mt=ur(y,A),bt=ur(m,A),J=xs(P,I,R,k,n,Mt,v),lt=xs(D,L,F,B,n,bt,v);r.moveTo(f+J.cx+J.x0,h+J.cy+J.y0),A0&&r.arc(f+J.cx,h+J.cy,Mt,Ut(J.y0,J.x0),Ut(J.y1,J.x1),!v),r.arc(f,h,n,Ut(J.cy+J.y1,J.cx+J.x1),Ut(lt.cy+lt.y1,lt.cx+lt.x1),!v),bt>0&&r.arc(f+lt.cx,h+lt.cy,bt,Ut(lt.y1,lt.x1),Ut(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+k),r.arc(f,h,n,l,u,!v);if(!(i>Ze)||!N)r.lineTo(f+F,h+B);else if(M>Ze){var Mt=ur(d,M),bt=ur(g,M),J=xs(F,B,D,L,i,-bt,v),lt=xs(R,k,P,I,i,-Mt,v);r.lineTo(f+J.cx+J.x0,h+J.cy+J.y0),M0&&r.arc(f+J.cx,h+J.cy,bt,Ut(J.y0,J.x0),Ut(J.y1,J.x1),!v),r.arc(f,h,i,Ut(J.cy+J.y1,J.cx+J.x1),Ut(lt.cy+lt.y1,lt.cx+lt.x1),v),Mt>0&&r.arc(f+lt.cx,h+lt.cy,Mt,Ut(lt.y1,lt.x1),Ut(lt.y0,lt.x0),!v))}else r.lineTo(f+F,h+B),r.arc(f,h,i,u,l,v)}r.closePath()}}}var x2=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),LS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new x2},e.prototype.buildPath=function(t,n){S2(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(gt);LS.prototype.type="sector";const wr=LS;var w2=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),PS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new w2},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e}(gt);PS.prototype.type="ring";const Jo=PS;function b2(r,e,t,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(n){var a=b2(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sWn[1]){if(s=!1,a)return s;var f=Math.abs(Wn[0]-Hn[1]),h=Math.abs(Hn[0]-Wn[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function It(r,e,t,n,i,a){Nv("update",r,e,t,n,i,a)}function oe(r,e,t,n,i,a){Nv("enter",r,e,t,n,i,a)}function go(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function gg(r){return!r.isGroup}function G2(r){return r.shape!=null}function Su(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){gg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return G2(o)&&(s.shape=O({},o.shape)),s}var a=n(r);e.traverse(function(o){if(gg(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),It(o,l,t,nt(o).dataIndex)}}})}function Gv(r,e){return V(r,function(t){var n=t[0];n=El(n,e.x),n=kl(n,e.x+e.width);var i=t[1];return i=El(i,e.y),i=kl(i,e.y+e.height),[n,i]})}function HS(r,e){var t=El(r.x,e.x),n=kl(r.x+r.width,e.x+e.width),i=El(r.y,e.y),a=kl(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function ya(r,e,t){var n=O({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),q(i,t),new fe(n)):mu(r.replace("path://",""),n,t,"center")}function H2(r,e,t,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=If(c,p,f,h)/v;return!(g<0||g>1)}function If(r,e,t,n){return r*n-t*e}function W2(r){return r<=1e-6&&r>=-1e-6}function bi(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=G(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(at(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:q({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function yg(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function xu(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function An(r,e){return Q(Q({},r,!0),e,!0)}const iL={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:". "}}}},aL={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 Ol="ZH",Hv="EN",ea=Hv,ll={},Wv={},XS=ft.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ea).toUpperCase();return r.indexOf(Ol)>-1?Ol:ea}():ea;function $v(r,e){r=r.toUpperCase(),Wv[r]=new Tt(e),ll[r]=e}function oL(r){if(G(r)){var e=ll[r.toUpperCase()]||{};return r===Ol||r===Hv?Z(e):Q(Z(e),Z(ll[ea]),!1)}else return Q(Z(r),Z(ll[ea]),!1)}function pc(r){return Wv[r]}function sL(){return Wv[ea]}$v(Hv,iL);$v(Ol,aL);var Yv=1e3,Uv=Yv*60,yo=Uv*60,Ne=yo*24,Tg=Ne*365,ro={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}"},Ts="{yyyy}-{MM}-{dd}",Cg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ts,hour:Ts+" "+ro.hour,minute:Ts+" "+ro.minute,second:Ts+" "+ro.second,millisecond:ro.none},kf=["year","month","day","hour","minute","second","millisecond"],ZS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function re(r,e){return r+="","0000".substr(0,e-r.length)+r}function ra(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function lL(r){return r===ra(r)}function uL(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ts(r,e,t,n){var i=be(r),a=i[Xv(t)](),o=i[na(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[Tu(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[Eo(t)](),h=(f-1)%12+1,v=i[Cu(t)](),c=i[Au(t)](),p=i[Mu(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=n instanceof Tt?n:pc(n||XS)||sL(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,re(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,re(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,re(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,re(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,re(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,re(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,re(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,re(p,3)).replace(/{S}/g,p+"")}function fL(r,e,t,n,i){var a=null;if(G(t))a=t;else if(K(t))a=t(r.value,e,{level:r.level});else{var o=O({},ro);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return ts(new Date(r.value),a,i,n)}function qS(r,e){var t=be(r),n=t[na(e)]()+1,i=t[Tu(e)](),a=t[Eo(e)](),o=t[Cu(e)](),s=t[Au(e)](),l=t[Mu(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,p=c&&n===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Ag(r,e,t){var n=_t(r)?be(r):r;switch(e=e||qS(r,t),e){case"year":return n[Xv(t)]();case"half-year":return n[na(t)]()>=6?1:0;case"quarter":return Math.floor((n[na(t)]()+1)/4);case"month":return n[na(t)]();case"day":return n[Tu(t)]();case"half-day":return n[Eo(t)]()/24;case"hour":return n[Eo(t)]();case"minute":return n[Cu(t)]();case"second":return n[Au(t)]();case"millisecond":return n[Mu(t)]()}}function Xv(r){return r?"getUTCFullYear":"getFullYear"}function na(r){return r?"getUTCMonth":"getMonth"}function Tu(r){return r?"getUTCDate":"getDate"}function Eo(r){return r?"getUTCHours":"getHours"}function Cu(r){return r?"getUTCMinutes":"getMinutes"}function Au(r){return r?"getUTCSeconds":"getSeconds"}function Mu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function hL(r){return r?"setUTCFullYear":"setFullYear"}function KS(r){return r?"setUTCMonth":"setMonth"}function jS(r){return r?"setUTCDate":"setDate"}function JS(r){return r?"setUTCHours":"setHours"}function QS(r){return r?"setUTCMinutes":"setMinutes"}function tx(r){return r?"setUTCSeconds":"setSeconds"}function ex(r){return r?"setUTCMilliseconds":"setMilliseconds"}function cL(r,e,t,n,i,a,o,s){var l=new dt({style:{text:r,font:e,align:t,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Zv(r){if(!bv(r))return G(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qv(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Sa=fv;function dc(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&ze(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?be(r):r;if(isNaN(+l)){if(s)return"-"}else return ts(l,n,t)}if(e==="ordinal")return yl(r)?i(r):_t(r)&&a(r)?r+"":"-";var u=Mo(r);return a(u)?Zv(u):yl(r)?i(r):typeof r=="boolean"?r+"":"-"}var Mg=["a","b","c","d","e","f","g"],Of=function(r,e){return"{"+r+(e==null?"":e)+"}"};function Kv(r,e,t){z(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a':'';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function pL(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r="MM-dd\nyyyy");var n=be(e),i=t?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",re(o,2)).replace("M",o).replace("yyyy",a).replace("yy",re(a%100+"",2)).replace("dd",re(s,2)).replace("d",s).replace("hh",re(l,2)).replace("h",l).replace("mm",re(u,2)).replace("m",u).replace("ss",re(f,2)).replace("s",f).replace("SSS",re(h,3)),r}function dL(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function _i(r,e){return e=e||"transparent",G(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Dg(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var ul=T,nx=["left","right","top","bottom","width","height"],ai=[["width","left","right"],["height","top","bottom"]];function jv(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=a+d,c>n||l.newline?(a=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>i||l.newline?(a+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+t:o=p+t)})}var ci=jv;ht(jv,"vertical");ht(jv,"horizontal");function ue(r,e,t){t=Sa(t||0);var n=e.width,i=e.height,a=et(r.left,n),o=et(r.top,i),s=et(r.right,n),l=et(r.bottom,i),u=et(r.width,n),f=et(r.height,i),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var p=new ct(a+t[3],o+t[0],u,f);return p.margin=t,p}function Jv(r,e,t,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ct(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=ue(q({width:u.width,height:u.height},e),t,n),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(a.x=v,a.y=c):(a.x+=v,a.y+=c),a===r&&r.markRedraw(),!0}function gL(r,e){return r[ai[e][0]]!=null||r[ai[e][1]]!=null&&r[ai[e][2]]!=null}function ko(r){var e=r.layoutMode||r.constructor.layoutMode;return U(e)?e:e?{type:e}:null}function xn(r,e,t){var n=t&&t.ignoreSize;!z(n)&&(n=[n,n]);var i=o(ai[0],0),a=o(ai[1],1);u(ai[0],r,i),u(ai[1],r,a);function o(f,h){var v={},c=0,p={},d=0,g=2;if(ul(f,function(_){p[_]=r[_]}),ul(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),n[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=Q(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return jo(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Tt);j1(wa,Tt);uu(wa);rL(wa);nL(wa,mL);function mL(r){var e=[];return T(wa.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=V(e,function(t){return mr(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}const ut=wa;var ax="";typeof navigator<"u"&&(ax=navigator.platform||"");var Oi="rgba(0, 0, 0, 0.2)";const _L={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Oi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Oi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Oi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Oi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Oi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Oi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ax.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 ox=$(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),We="original",_e="arrayRows",nr="objectRows",Tr="keyedColumns",yn="typedArray",sx="unknown",Or="column",ba="row",Ft={Must:1,Might:2,Not:3},lx=St();function SL(r){lx(r).datasetMap=$()}function xL(r,e,t){var n={},i=Qv(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=lx(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),T(r,function(d,g){var y=U(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(n[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(n[y],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(n[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[n];return r[t-1]}function cx(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?t:AL(n,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function ML(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Cs,ka,Ig,Rg="\0_ec_inner",DL=1,vx=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Tt(a),this._locale=new Tt(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){var a=Og(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,Og(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?Ig(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=$(),u=n&&n.replaceMergeMainTypeMap;SL(this),T(t,function(h,v){h!=null&&(ut.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?Z(h):Q(i[v],h,!0))}),u&&u.each(function(h,v){ut.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),f,this);function f(h){var v=TL(this,h,Ct(t[h])),c=a.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=X1(c,v,p);OM(d,h,ut),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(d,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",A=ut.getClass(h,S.keyInfo.subType,!C);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var M=O({componentIndex:w},S.keyInfo);x=new A(b,this,this,M),O(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Cs(this)}this._seriesIndices||Cs(this)},e.prototype.getOption=function(){var t=Z(this.option);return T(t,function(n,i){if(ut.hasClass(i)){for(var a=Ct(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Do(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[Rg],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function VL(r,e){return r.join(",")===e.join(",")}const FL=OL;var Ue=T,Oo=U,Bg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nf(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=Bg.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=bM(v,m),d=m;break}}}return n[0]=v,n[1]=d,n})})}var Lu=function(){function r(e){this.data=e.data||(e.sourceFormat===Tr?{}:[]),this.sourceFormat=e.sourceFormat||sx,this.seriesLayoutBy=e.seriesLayoutBy||Or,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nd&&(d=_)}c[0]=p,c[1]=d}},i=function(){return this._data?this._data.length/this._dimSize:0};Wg=(e={},e[_e+"_"+Or]={pure:!0,appendData:a},e[_e+"_"+ba]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[nr]={pure:!0,appendData:a},e[Tr]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[We]={appendData:a},e[yn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return ua(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function Xg(r){var e,t;return U(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function mo(r){return new nP(r)}var nP=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c1&&n>0?s:o}};return a;function o(){return e=r?null:li?-this._resultLT:0},r}(),aP=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return fl(e,t)},r}();function oP(r,e){var t=new aP,n=r.data,i=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Or&&ge(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";tt(l,y)&&ge(_),l[y]=m}});else for(var f=0;f65535?pP:dP}function Ni(){return[1/0,-1/0]}function gP(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Kg(r,e,t,n,i){var a=Dx[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(a===2){for(var g=c[i[0]],_=c[i[1]],S=e[i[1]][0],w=e[i[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(a===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;ye[M][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Bi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}D>0&&Ds&&(d=s-f);for(var g=0;gp&&(p=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);hf-p&&(l=f-p,s.length=l);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,i,a){return fl(t[a],this._dimensions[a])}Ff={arrayRows:e,objectRows:function(t,n,i,a){return fl(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return fl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}}(),r}();const mc=yP;var mP=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,i,a;if(As(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=se(s)?yn:We,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=j(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=j(h.sourceHeader,v.sourceHeader),d=j(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;i=g?[yc(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[yc(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&jg(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&jg(h),s.push(f),l.push(u._getVersionSign())}),n?o=cP(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[KL(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return T(r.blocks,function(i){var a=Rx(i);a>=e&&(e=a+ +(n&&(!a||_c(i)&&!i.noHeader)))}),e}return 0}function wP(r,e,t,n){var i=e.noHeader,a=TP(Rx(e)),o=[],s=e.blocks||[];le(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new iP(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,g){var y=e.valueFormatter,m=Ix(d)(y?O(O({},r),{valueFormatter:y}):r,d,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Sc(n,o.join(""),i?t:a.html);if(i)return h;var v=dc(e.header,"ordinal",r.useUTC),c=Px(n,r.renderMode).nameStyle,p=Lx(n);return r.renderMode==="richText"?Ex(r,v,c)+a.richText+h:Sc(n,'
'+Ht(v)+"
"+h,t)}function bP(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],V(S,function(w,x){return dc(w,z(c)?c[x]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),v=a?"":dc(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!a,g=!s&&a,y=Px(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":Ex(r,v,m))+(o?"":MP(r,p,d,g,_)):Sc(n,(s?"":h)+(a?"":CP(v,!s,m))+(o?"":AP(p,d,g,_)),t)}}function Jg(r,e,t,n,i,a){if(r){var o=Ix(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function TP(r){return{html:SP[r],richText:xP[r]}}function Sc(r,e,t){var n='
',i="margin: "+t+"px 0 0",a=Lx(r);return'
'+e+n+"
"}function CP(r,e,t){var n=e?"margin-left:2px":"";return''+Ht(r)+""}function AP(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],''+V(r,function(o){return Ht(o)}).join("  ")+""}function Ex(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function MP(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,a)}function kx(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return _i(n)}function Ox(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Gf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=W1()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=rx({color:t,type:e,renderMode:n,markerId:i});return G(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};z(t)?T(t,function(a){return O(n,a)}):O(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function DP(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=z(s),u=kx(e,t),f,h,v,c;if(o>1||l&&!o){var p=LP(s,e,t,a,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=i.getDimensionInfo(a[0]);c=f=ua(i,t,a[0]),h=d.type}else c=f=l?s[0]:s;var g=Tv(e),y=g&&e.name||"",m=i.getName(t),_=n?y:m;return xr("section",{header:y,noHeader:n||!g,sortParam:c,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function LP(r,e,t,n,i){var a=e.getData(),o=Ve(r,function(h,v,c){var p=a.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?T(n,function(h){f(ua(a,t,h),h)}):T(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Kr=St();function Ms(r,e){return r.getName(e)||r.getId(e)}var PP="__universalTransitionEnabled",Iu=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=mo({count:RP,reset:EP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=Kr(this).sourceManager=new mP(this);a.prepareSource();var o=this.getInitialData(t,i);ty(o,this),this.dataTask.context.data=o,Kr(this).dataBeforeProcessed=o,Qg(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=ko(this),a=i?xa(t):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),Q(t,n.getTheme().get(this.subType)),Q(t,this.getDefaultOption()),Dl(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&xn(t,a,i)},e.prototype.mergeOption=function(t,n){t=Q(this.option,t,!0),this.fillDataTextStyle(t.data);var i=ko(this);i&&xn(this.option,t,i);var a=Kr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);ty(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kr(this).dataBeforeProcessed=o,Qg(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!se(t))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,i){var a=this.ecModel,o=tp.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ms(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[PP])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,n)}},e.registerClass=function(t){return ut.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ut);$t(Iu,Cx);$t(Iu,tp);j1(Iu,ut);function Qg(r){var e=r.name;Tv(r)||(r.name=IP(r)||e)}function IP(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return T(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function RP(r){return r.model.getRawData().count()}function EP(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),kP}function kP(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ty(r,e){T(n1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ht(OP,e))})}function OP(r,e){var t=xc(r);return t&&t.setOutputEnd((e||this).count()),e}function xc(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const Te=Iu;var ap=function(){function r(){this.group=new it,this.uid=_a("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Av(ap);uu(ap);const At=ap;function op(){var r=St();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Bx=St(),BP=op(),sp=function(){function r(){this.group=new it,this.uid=_a("viewChart"),this.renderTask=mo({plan:NP,reset:zP}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&ry(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&ry(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){xu(this.group,e)},r.markUpdateMethod=function(e,t){Bx(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function ey(r,e,t){r&&fc(r)&&(e==="emphasis"?oa:sa)(r,t)}function ry(r,e,t){var n=mi(r,e),i=e&&e.highlightKey!=null?a2(e.highlightKey):null;n!=null?T(Ct(n),function(a){ey(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){ey(a,t,i)})}Av(sp);uu(sp);function NP(r){return BP(r.model)}function zP(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&Bx(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),VP[l]}var VP={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Jt=sp;var Bl="\0__throttleOriginMethod",ny="\0__throttleRate",iy="\0__throttleType";function Ru(r,e,t){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function es(r,e,t,n){var i=r[e];if(i){var a=i[Bl]||i,o=i[iy],s=i[ny];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=Ru(a,t,n==="debounce"),i[Bl]=a,i[iy]=n,i[ny]=t}return i}}function Bo(r,e){var t=r[e];t&&t[Bl]&&(t.clear&&t.clear(),r[e]=t[Bl])}var ay=St(),oy={itemStyle:aa(US,!0),lineStyle:aa(YS,!0)},FP={lineStyle:"stroke",itemStyle:"fill"};function Nx(r,e){var t=r.visualStyleMapper||oy[e];return t||(console.warn("Unknown style type '"+e+"'."),oy.itemStyle)}function zx(r,e){var t=r.visualDrawType||FP[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var GP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=Nx(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=zx(r,n),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=O({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},Ba=new Tt,HP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=Nx(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ba.option=l[n];var u=i(Ba),f=o.ensureUniqueItemVisual(s,"style");O(f,u),Ba.option.decal&&(o.setItemVisual(s,"decal",Ba.option.decal),Ba.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},WP={performRawSeries:!0,overallReset:function(r){var e=$();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),ay(t).scope=a}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),i={},a=t.getData(),o=ay(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=zx(t,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",p=n.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Ds=Math.PI;function $P(r,e){e=e||{},q(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new it,n=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new dt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new pt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new gu({shape:{startAngle:-Ds/2,endAngle:-Ds/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ds*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ds*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var YP=function(){function r(e,t,n,i){this._stageTaskMap=$(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=$();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";le(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,i){i=i||{};var a=!1,o=this;T(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var d=o.getPerformArgs(v,i.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=$(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||mo({plan:KP,reset:jP,count:QP}));c.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||mo({reset:UP});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=$(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";le(!e.createOnAllSeries,c),u?n.eachRawSeriesByType(u,p):f?f(n,i).each(p):(h=!1,T(n.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,mo({reset:XP,onDirty:qP})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,a._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:tI(e)}),e.uid=_a("stageHandler"),t&&(e.visualType=t),e},r}();function UP(r){r.overallReset(r.ecModel,r.api,r.payload)}function XP(r){return r.overallProgress&&ZP}function ZP(){this.agent.dirty(),this.getDownstream().dirty()}function qP(){this.agent&&this.agent.dirty()}function KP(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function jP(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ct(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?V(e,function(t,n){return Vx(n)}):JP}var JP=Vx(0);function Vx(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),wc=["symbol","symbolSize","symbolRotate","symbolOffset"],fy=wc.concat(["symbolKeepAspect"]),iI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&si(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function hy(r,e,t){for(var n=e.type==="radial"?xI(r,e,t):SI(r,e,t),i=e.colorStops,a=0;a0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:_t(r)?[r]:z(r)?r:null}function up(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&bI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=V(t,function(a){return a/i}),n/=i)}return[t,n]}var TI=new Fr(!0);function Vl(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function vy(r){return typeof r=="string"&&r!=="none"}function Fl(r){var e=r.fill;return e!=null&&e!=="none"}function py(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function dy(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function gy(r,e,t){var n=Mv(e.image,e.__image,t);if(fu(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*so),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function CI(r,e,t,n){var i,a=Vl(t),o=Fl(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||TI,h=e.__dirty;if(!n){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=a&&!!c.colorStops,g=o&&!!v.image,y=a&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?hy(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?hy(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?gy(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?gy(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(i=up(e),C=i[0],A=i[1]);var M=!0;(u||h&Yi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),n||(t.strokeFirst?(a&&dy(r,t),o&&py(r,t)):(o&&py(r,t),a&&dy(r,t))),C&&r.setLineDash([])}function AI(r,e,t){var n=e.__image=Mv(t.image,e.__image,e,e.onload);if(!(!n||!fu(n))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(n,u,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function MI(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||mn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=up(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(Vl(t)&&r.strokeText(i,t.x,t.y),Fl(t)&&r.fillText(i,t.x,t.y)):(Fl(t)&&r.fillText(i,t.x,t.y),Vl(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}var yy=["shadowBlur","shadowOffsetX","shadowOffsetY"],my=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xx(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){ye(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?fi.opacity:o}(n||e.blend!==t.blend)&&(a||(ye(r,i),a=!0),r.globalCompositeOperation=e.blend||fi.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,i){if(!this[Xt]){if(this._disposed){this.id;return}var a,o,s;if(U(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Xt]=!0,!this._model||n){var l=new FL(this._api),u=this._theme,f=this._model=new px;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Cc);var h={seriesTransition:s,optionChanged:!0};if(i)this[de]={silent:a,updateParams:h},this[Xt]=!1,this.getZr().wakeUp();else{try{Vi(this),jr.update.call(this,null,h)}catch(v){throw this[de]=null,this[Xt]=!1,v}this._ssr||this._zr.flush(),this[de]=null,this[Xt]=!1,Na.call(this,a),za.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ft.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ft.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;T(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Yl[i]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();T(vi,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(t)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=_n.createCanvas(),y=ec(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:d}),n){var m="";return T(v,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new pt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),T(v,function(_){var S=new fe({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return Uf(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return Uf(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var i=this._model,a,o=ho(i,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=ho(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?$x(s,l,n):Yx(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(QI,function(n){var i=function(a){var o=t.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&oi(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=O({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(n,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)}),T(_o,function(n,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),T(["selectchanged"],function(n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),sI(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&q1(this.getDom(),cp,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete vi[n.id]},e.prototype.resize=function(t){if(!this[Xt]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[de]&&(a==null&&(a=this[de].silent),i=!0,this[de]=null),this[Xt]=!0;try{i&&Vi(this),jr.update.call(this,{type:"resize",animation:O({duration:0},t&&t.animation)})}catch(o){throw this[Xt]=!1,o}this[Xt]=!1,Na.call(this,a),za.call(this,a)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(U(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!Ac[t]){var i=Ac[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=O({},t);return n.type=_o[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(U(n)||(n={silent:!!n}),!!Wl[t.type]&&this._model){if(this[Xt]){this._pendingActions.push(t);return}var i=n.silent;Zf.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&ft.browser.weChat&&this._throttledZrFlush(),Na.call(this,i),za.call(this,i)}},e.prototype.updateLabelLayout=function(){Ke.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Vi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Yf(h,!0),Yf(h,!1),v.plan()},Yf=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!ft.node&&!ft.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-1/0),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(go(y))return;if(y instanceof gt&&o2(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}Iy=function(h){return new(function(v){E(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){oa(p,d),Ce(h)},c.prototype.leaveEmphasis=function(p,d){sa(p,d),Ce(h)},c.prototype.enterBlur=function(p){qD(p),Ce(h)},c.prototype.leaveBlur=function(p){yS(p),Ce(h)},c.prototype.enterSelect=function(p){mS(p),Ce(h)},c.prototype.leaveSelect=function(p){_S(p),Ce(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(dx))(h)},fw=function(h){function v(c,p){for(var d=0;d=0)){Ey.push(t);var a=Hx.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,r.push(a)}}function mp(r,e){Ac[r]=e}function lR(r){q_({createCanvas:r})}function yw(r,e,t){var n=tw("registerMap");n&&n(r,e,t)}function uR(r){var e=tw("getMap");return e&&e(r)}var mw=hP;Mn(fp,GP);Mn(ku,HP);Mn(ku,WP);Mn(fp,iI);Mn(ku,aI);Mn(nw,OI);dp(yx);gp(HI,ZL);mp("default",$P);ir({type:hi,event:hi,update:hi},zt);ir({type:ol,event:ol,update:ol},zt);ir({type:co,event:co,update:co},zt);ir({type:sl,event:sl,update:sl},zt);ir({type:vo,event:vo,update:vo},zt);pp("light",eI);pp("dark",rI);var fR={};function Va(r){return r==null?0:r.length||1}function ky(r){return r}var hR=function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||ky,this._newKeyGetter=i||ky,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Fa=U,Jr=V,_R=typeof Int32Array>"u"?Array:Int32Array,SR="e\0\0",Oy=-1,xR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wR=["_approximateExtent"],By,Es,Ga,Ha,jf,Wa,Jf,bR=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Sw(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===We;if(l&&!i.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),z(a)?a=a.slice():Fa(a)&&(a=O({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Fa(t)?O(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Fa(e)?O(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?O(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;GD(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Jr(this.dimensions,this._getDimInfo,this),this.hostModel)),jf(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(iu(arguments)))})},r.internalField=function(){By=function(e){var t=e._invertedIndicesMap;T(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new _R(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[t]=l}}}(),r}();const Bu=bR;function TR(r,e){return Sp(r,e).dimensions}function Sp(r,e){ep(r)||(r=rp(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=$(),a=[],o=AR(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&bw(o),l=n===r.dimensionsDefine,u=l?ww(r):xw(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=$(f),v=new Mx(o),c=0;c0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function AR(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return T(e,function(a){var o;U(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function MR(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var DR=function(){function r(e){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=e}return r}();function LR(r){var e=r.get("coordinateSystem"),t=new DR(e),n=PR[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var PR={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",Ot).models[0],a=r.getReferringComponents("yAxis",Ot).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),Fi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Fi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",Ot).models[0];e.coordSysDims=["single"],t.set("single",i),Fi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",Ot).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Fi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Fi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Fi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Fi(r){return r.get("type")==="category"}function Tw(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;IR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(T(a,function(m,_){G(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;T(a,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function IR(r){return!Sw(r.schema)}function wn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Cw(r,e){return wn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function RR(r,e){var t=r.get("coordinateSystem"),n=Du.get(t),i;return e&&e.coordSysDims&&(i=V(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=pR(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function ER(r,e,t){var n,i;return t&&T(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Nu(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;r?(a=!0,i=rp(r)):(i=n.getSource(),a=i.sourceFormat===We);var o=LR(e),s=RR(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?ht(xL,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Sp(i,f),v=ER(h.dimensions,t.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),p=Tw(e,{schema:h,store:c}),d=new Bu(h,e);d.setCalculationInfo(p);var g=v!=null&&kR(i)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(a?i:c,null,g),d}function kR(r){if(r.sourceFormat===We){var e=OR(r.data||[]);return!z(ga(e))}}function OR(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();uu(Aw);const Ur=Aw;var BR=0,NR=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++BR}return r.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&V(n,zR);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!G(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},r}();function zR(r){return U(r)&&r.value!=null?r.value:r+""}const Mc=NR;function Dc(r){return r.type==="interval"||r.type==="log"}function VR(r,e,t,n){var i={},a=r[1]-r[0],o=i.interval=wv(a/e,!0);t!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=Mw(o),l=i.niceTickExtent=[Pt(Math.ceil(r[0]/o)*o,s),Pt(Math.floor(r[1]/o)*o,s)];return FR(l,r),i}function Qf(r){var e=Math.pow(10,lu(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Pt(t*e)}function Mw(r){return yr(r)+2}function Ny(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function FR(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Ny(r,0,e),Ny(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function zu(r,e){return r>=e[0]&&r<=e[1]}function Vu(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Fu(r,e){return r*(e[1]-e[0])+e[0]}var Dw=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Mc({})),z(i)&&(i=new Mc({categories:V(i,function(a){return U(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:G(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),zu(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Vu(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Fu(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,i=n[0];i<=n[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ur);Ur.registerClass(Dw);const xp=Dw;var Xn=Pt,Lw=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zu(t,this._extent)},e.prototype.normalize=function(t){return Vu(t,this._extent)},e.prototype.scale=function(t){return Fu(t,this._extent)},e.prototype.setExtent=function(t,n){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Mw(t)},e.prototype.getTicks=function(t){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(t?s.push({value:Xn(f+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&c0&&(a=a===null?s:Math.min(a,s))}t[n]=a}}return t}function Rw(r){var e=WR(r),t=[];return T(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=et(n.get("barWidth"),s),d=et(n.get("barMaxWidth"),s),g=et(n.get("barMinWidth")||(Bw(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:bp(a),stackId:wp(n)})}),$R(t)}function $R(r){var e={};T(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return T(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=at(a).length;s=Math.max(35-l*4,15)+"%"}var u=et(s,o),f=et(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),T(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;T(a,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;T(a,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function YR(r,e,t){if(r&&e){var n=r[bp(e)];return n!=null&&t!=null?n[wp(t)]:n}}function Ew(r,e){var t=Iw(r,e),n=Rw(t);T(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=wp(i),u=n[bp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function kw(r){return{seriesType:r,plan:op(),reset:function(e){if(Ow(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),h=wn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=UR(i,a),p=Bw(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=p&&Er(w*3),b=p&&l&&Er(w*3),C=p&&Er(w),A=n.master.getRect(),M=v?A.width:A.height,D,L=S.getStore(),P=0;(D=_.next())!=null;){var I=L.get(h?g:o,D),R=L.get(s,D),k=c,F=void 0;h&&(F=+I-L.get(o,D));var B=void 0,N=void 0,H=void 0,X=void 0;if(v){var Y=n.dataToPoint([I,R]);if(h){var ot=n.dataToPoint([F,R]);k=ot[0]}B=k,N=Y[1]+m,H=Y[0]-k,X=y,Math.abs(H)0?t:1:t))}var XR=function(r,e,t,n){for(;t>>1;r[i][1]i&&(this._approxInterval=i);var s=ks.length,l=Math.min(XR(ks,this._approxInterval,0,s),s-1);this._interval=ks[l][1],this._minLevelUnit=ks[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return _t(t)?t:+be(t)},e.prototype.contain=function(t){return zu(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Vu(this.parse(t),this._extent)},e.prototype.scale=function(t){return Fu(t,this._extent)},e.type="time",e}(bn),ks=[["second",Yv],["minute",Uv],["hour",yo],["quarter-day",yo*6],["half-day",yo*12],["day",Ne*1.2],["half-week",Ne*3.5],["week",Ne*7],["month",Ne*31],["quarter",Ne*95],["half-year",Tg/2],["year",Tg]];function ZR(r,e,t,n){var i=be(e),a=be(t),o=function(p){return Ag(i,p,n)===Ag(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function qR(r,e){return r/=Ne,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function KR(r){var e=30*Ne;return r/=e,r>6?6:r>3?3:r>2?2:1}function jR(r){return r/=yo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function zy(r,e){return r/=e?Uv:Yv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function JR(r){return wv(r,!0)}function QR(r,e,t){var n=new Date(r);switch(ra(e)){case"year":case"month":n[KS(t)](0);case"day":n[jS(t)](1);case"hour":n[JS(t)](0);case"minute":n[QS(t)](0);case"second":n[tx(t)](0),n[ex(t)](0)}return n.getTime()}function tE(r,e,t,n){var i=1e4,a=ZS,o=0;function s(M,D,L,P,I,R,k){for(var F=new Date(D),B=D,N=F[P]();B1&&R===0&&L.unshift({value:L[0].value-B})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===a[c]))break}f=[]}}}for(var S=xt(V(u,function(M){return xt(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),w=[],x=S.length-1,c=0;c0;)a*=10;var s=[Pt(nE(n[0]/a)*a),Pt(rE(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){So.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Xe(t)/Xe(this.base),zu(t,this._extent)},e.prototype.normalize=function(t){return t=Xe(t)/Xe(this.base),Vu(t,this._extent)},e.prototype.scale=function(t){return t=Fu(t,this._extent),Os(this.base,t)},e.type="log",e}(Ur),Vw=Tp.prototype;Vw.getMinorTicks=So.getMinorTicks;Vw.getLabel=So.getLabel;function Bs(r,e){return eE(r,yr(e))}Ur.registerClass(Tp);const iE=Tp;var aE=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[sE[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=oE[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),oE={min:"_determinedMin",max:"_determinedMax"},sE={min:"_dataMin",max:"_dataMax"};function Fw(r,e,t){var n=r.rawExtentInfo;return n||(n=new aE(r,e,t),r.rawExtentInfo=n,n)}function Ns(r,e){return e==null?null:wo(e)?NaN:r.parse(e)}function Gw(r,e){var t=r.type,n=Fw(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&t==="time"){var s=Iw("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=Rw(s),f=lE(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function lE(r,e,t,n){var i=t.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=YR(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;T(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;T(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/a,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function fa(r,e){var t=e,n=Gw(r,t),i=n.extent,a=t.get("splitNumber");r instanceof iE&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Gu(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new xp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new zw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ur.getClass(e)||bn)}}function uE(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Ta(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(e):G(e)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(e):K(e)?function(n){return function(i,a){return t!=null&&(a=i.value-t),n(Cp(r,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return r.scale.getLabel(n)}}function Cp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function fE(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,i,a=t.getExtent();t instanceof xp?i=t.count():(n=t.getTicks(),i=n.length);var o=r.getLabelModel(),s=Ta(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var rs=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function vE(r){return Nu(null,r)}var pE={isDimensionStacked:wn,enableDataStack:Tw,getStackedDimension:Cw};function dE(r,e){var t=e;e instanceof Tt||(t=new Tt(e));var n=Gu(t);return n.setExtent(r[0],r[1]),fa(n,t),n}function gE(r){$t(r,rs)}function yE(r,e){return e=e||{},Et(r,null,null,e.state!=="normal")}const mE=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:TR,createList:vE,createScale:dE,createSymbol:te,createTextStyle:yE,dataStack:pE,enableHoverEmphasis:dn,getECData:nt,getLayoutRect:ue,mixinAxisModelCommonMethods:gE},Symbol.toStringTag,{value:"Module"}));var Fy=[],_E={registerPreprocessor:dp,registerProcessor:gp,registerPostInit:vw,registerPostUpdate:pw,registerUpdateLifecycle:Ou,registerAction:ir,registerCoordinateSystem:dw,registerLayout:gw,registerVisual:Mn,registerTransform:mw,registerLoading:mp,registerMap:yw,registerImpl:NI,PRIORITY:iw,ComponentModel:ut,ComponentView:At,SeriesModel:Te,ChartView:Jt,registerComponentModel:function(r){ut.registerClass(r)},registerComponentView:function(r){At.registerClass(r)},registerSeriesModel:function(r){Te.registerClass(r)},registerChartView:function(r){Jt.registerClass(r)},registerSubTypeDefaulter:function(r,e){ut.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){B1(r,e)}};function Wt(r){if(z(r)){T(r,function(e){Wt(e)});return}st(Fy,r)>=0||(Fy.push(r),K(r)&&(r={install:r}),r.install(_E))}var SE=1e-8;function Gy(r,e){return Math.abs(r-e)i&&(n=o,i=l)}if(n)return wE(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Wy(s.exterior,i,a,t):T(s.points,function(l){Wy(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ct(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(t[0],t[1]))return!1;t:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/t,l/t])}return n}function Lc(r,e){return r=TE(r),V(xt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new $y(o[0],o.slice(1)));break;case"MultiPolygon":T(i.coordinates,function(l){l[0]&&a.push(new $y(l[0],l.slice(1)))});break;case"LineString":a.push(new Yy([i.coordinates]));break;case"MultiLineString":a.push(new Yy(i.coordinates))}var s=new $w(n[e||"name"],a,n.cp);return s.properties=n,s})}const CE=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:TM,asc:gr,getPercentWithPrecision:wM,getPixelPrecision:Sv,getPrecision:yr,getPrecisionSafe:F1,isNumeric:bv,isRadianAroundZero:Ao,linearMap:wt,nice:wv,numericToNumber:Mo,parseDate:be,quantile:AM,quantity:H1,quantityExponent:lu,reformIntervals:nc,remRadian:xv,round:Pt},Symbol.toStringTag,{value:"Module"})),AE=Object.freeze(Object.defineProperty({__proto__:null,format:ts,parse:be},Symbol.toStringTag,{value:"Module"})),ME=Object.freeze(Object.defineProperty({__proto__:null,Arc:gu,BezierCurve:kv,BoundingRect:ct,Circle:Wr,CompoundPath:yu,Ellipse:du,Group:it,Image:fe,IncrementalDisplayable:zS,Line:ie,LinearGradient:Qo,Polygon:br,Polyline:Ge,RadialGradient:Ov,Rect:pt,Ring:Jo,Sector:wr,Text:dt,clipPointsByRect:Gv,clipRectByRect:HS,createIcon:ya,extendPath:FS,extendShape:VS,getShapeClass:zv,getTransform:gn,initProps:oe,makeImage:Vv,makePath:mu,mergePath:Be,registerShape:He,resizePath:Fv,updateProps:It},Symbol.toStringTag,{value:"Module"})),DE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Zv,capitalFirst:dL,encodeHTML:Ht,formatTime:pL,formatTpl:Kv,getTextRect:cL,getTooltipMarker:rx,normalizeCssArray:Sa,toCamelCase:qv,truncateText:eD},Symbol.toStringTag,{value:"Module"})),LE=Object.freeze(Object.defineProperty({__proto__:null,bind:W,clone:Z,curry:ht,defaults:q,each:T,extend:O,filter:xt,indexOf:st,inherits:uv,isArray:z,isFunction:K,isObject:U,isString:G,map:V,merge:Q,reduce:Ve},Symbol.toStringTag,{value:"Module"}));var Vo=St();function Uw(r,e){var t=V(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function PE(r){var e=r.getLabelModel().get("customValues");if(e){var t=Ta(r),n=r.scale.getExtent(),i=Uw(r,e),a=xt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:V(a,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?RE(r):kE(r)}function IE(r,e){var t=r.getTickModel().get("customValues");if(t){var n=r.scale.getExtent(),i=Uw(r,t);return{ticks:xt(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?EE(r,e):{ticks:V(r.scale.getTicks(),function(a){return a.value})}}function RE(r){var e=r.getLabelModel(),t=Xw(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Xw(r,e){var t=Zw(r,"labels"),n=Ap(e),i=qw(t,n);if(i)return i;var a,o;return K(n)?a=Jw(r,n):(o=n==="auto"?OE(r):n,a=jw(r,o)),Kw(t,n,{labels:a,labelCategoryInterval:o})}function EE(r,e){var t=Zw(r,"ticks"),n=Ap(e),i=qw(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),K(n))a=Jw(r,n,!0);else if(n==="auto"){var s=Xw(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=n,a=jw(r,o,!0);return Kw(t,n,{ticks:a,tickCategoryInterval:o})}function kE(r){var e=r.scale.getTicks(),t=Ta(r);return{labels:V(e,function(n,i){return{level:n.level,formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Zw(r,e){return Vo(r)[e]||(Vo(r)[e]=[])}function qw(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=a[1];l+=s){var p=0,d=0,g=Ko(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Vo(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function NE(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function jw(r,e,t){var n=Ta(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Hw(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&d(a[0]);for(var p=u;p<=a[1];p+=l)d(p);c&&p-l!==a[1]&&d(a[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function Jw(r,e,t){var n=r.scale,i=Ta(r),a=[];return T(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Uy=[0,1],zE=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Sv(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Xy(n,i.count())),wt(e,Uy,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Xy(n,i.count()));var a=wt(e,n,Uy,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=IE(this,t),i=n.ticks,a=V(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return VE(this,a,o,e.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=V(n,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return PE(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return BE(this)},r}();function Xy(r,e){var t=r[1]-r[0],n=e,i=t/n/2;r[0]+=i,r[1]-=i}function VE(r,e,t,n){var i=e.length;if(!r.onBand||t||!i)return;var a=r.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;T(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1},e.push(o)}var h=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1]});function v(c,p){return c=Pt(c),p=Pt(p),h?c>p:c0){e=e/180*Math.PI,fn.fromArray(r[0]),Lt.fromArray(r[1]),Gt.fromArray(r[2]),rt.sub(hn,fn,Lt),rt.sub(dr,Gt,Lt);var t=hn.len(),n=dr.len();if(!(t<.001||n<.001)){hn.scale(1/t),dr.scale(1/n);var i=hn.dot(dr),a=Math.cos(e);if(a1&&rt.copy(ne,Gt),ne.toArray(r[1])}}}}function YE(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,fn.fromArray(r[0]),Lt.fromArray(r[1]),Gt.fromArray(r[2]),rt.sub(hn,Lt,fn),rt.sub(dr,Gt,Lt);var n=hn.len(),i=dr.len();if(!(n<.001||i<.001)){hn.scale(1/n),dr.scale(1/i);var a=hn.dot(e),o=Math.cos(t);if(a=l)rt.copy(ne,Gt);else{ne.scaleAndAdd(dr,s/Math.tan(Math.PI/2-f));var h=Gt.x!==Lt.x?(ne.x-Lt.x)/(Gt.x-Lt.x):(ne.y-Lt.y)/(Gt.y-Lt.y);if(isNaN(h))return;h<0?rt.copy(ne,Lt):h>1&&rt.copy(ne,Gt)}ne.toArray(r[1])}}}}function rh(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function UE(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var i=Sl(n[0],n[1]),a=Sl(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=Js([],n[1],n[0],o/i),l=Js([],n[1],n[2],o/a),u=Js([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&w(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=d.rect[e]-n,m=i-g.rect[e]-g.rect[t]}function S(C,A,M){if(C<0){var D=Math.min(A,-C);if(D>0){w(D*M,0,o);var L=D+C;L<0&&x(-L*M,1)}else x(-C*M,1)}}function w(C,A,M){C!==0&&(u=!0);for(var D=A;D0)for(var L=0;L0;L--){var k=M[L-1]*R;w(-k,L,o)}}}function b(C){var A=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(o-1)),D=0;D0?w(M,0,D+1):w(-M,o-D-1,o),C-=M,C<=0)return}return u}function jE(r,e,t,n){return KE(r,"y","height",e,t,n)}function JE(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ct(0,0,0,0);function n(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Te);const tk=QE;function Hu(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=ua(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var ek=function(r){E(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o){this.removeAll();var s=te(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=rk,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){oa(this.childAt(0))},e.prototype.downplay=function(){sa(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):It(v,c,s,n),Io(v)}if(this._updateCommon(t,n,l,i,a),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,oe(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,d=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var m=a&&a.itemModel?a.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=Yr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Eu(t.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(n,"style"),b=x.fill;if(s instanceof fe){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;$r(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(R){return D?t.getName(R):Hu(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*I,P.scaleY=this._sizeY*I,this.setSymbolScale(1),Sn(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=nt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Po(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Po(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return lp(t.getItemVisual(n,"symbolSize"))},e}(it);function rk(r,e){this.parent.drift(r,e)}const Mp=ek;function nh(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function qy(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function Ky(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Yr(e),cursorStyle:e.get("cursor")}}var nk=function(){function r(e){this.group=new it,this._SymbolCtor=e||Mp}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=qy(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Ky(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var v=f(h);if(nh(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),p=f(h);if(!nh(e,p,h,t)){n.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)n.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):It(c,y,i)}n.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ky(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=qy(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?t=n[0]:n[1]<0&&(t=n[1]),t}function rb(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function ok(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,i){t.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function sk(r,e,t,n,i,a,o,s){for(var l=ok(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=eb(i,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=i||d<0)break;if(pi(y,m)){if(l){d+=a;continue}break}if(d===t)r[a>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=a;continue}if(o>0){for(var w=d+a,x=e[w*2],b=e[w*2+1];x===y&&b===m&&g=n||pi(x,b))c=y,p=m;else{M=x-u,D=b-f;var I=y-u,R=x-y,k=m-f,F=b-m,B=void 0,N=void 0;if(s==="x"){B=Math.abs(I),N=Math.abs(R);var H=M>0?1:-1;c=y-H*B*o,p=m,L=y+H*N*o,P=m}else if(s==="y"){B=Math.abs(k),N=Math.abs(F);var X=D>0?1:-1;c=y,p=m-X*B*o,L=y,P=m+X*N*o}else B=Math.sqrt(I*I+k*k),N=Math.sqrt(R*R+F*F),A=N/(N+B),c=y-M*o*(1-A),p=m-D*o*(1-A),L=y+M*o*A,P=m+D*o*A,L=Qr(L,tn(x,y)),P=Qr(P,tn(b,m)),L=tn(L,Qr(x,y)),P=tn(P,Qr(b,m)),M=L-y,D=P-m,c=y-M*B/N,p=m-D*B/N,c=Qr(c,tn(u,y)),p=Qr(p,tn(f,m)),c=tn(c,Qr(u,y)),p=tn(p,Qr(f,m)),M=y-c,D=m-p,L=y+M*N/B,P=m+D*N/B}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=P}else r.lineTo(y,m)}u=y,f=m,d+=a}return g}var nb=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),lk=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nb},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&pi(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=a[h++],p=a[h++],d=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=u?wl(s,c,d,y,t,f):wl(l,p,g,m,t,f);if(w>0)for(var x=0;x=0){var S=u?kt(l,p,g,m,b):kt(s,c,d,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(gt),uk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(nb),fk=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new uk},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&pi(i[s*2-2],i[s*2-1]);s--);for(;oe){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function vk(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=V(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=ck(u,i==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";T(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new Qo(0,0,0,0,v,!0);return m[i]=d,m[i+"2"]=g,m}}}function pk(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&dk(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function dk(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function gk(r,e){return isNaN(r)||isNaN(e)}function yk(r){for(var e=r.length/2;e>0&&gk(r[e*2-2],r[e*2-1]);e--);return e-1}function em(r,e){return[r[e*2],r[e*2+1]]}function mk(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function sb(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}nt(p).seriesIndex=t.seriesIndex,Sn(p,k,F,B);var H=tm(t.get("smooth")),X=t.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:X,connectNulls:b}),d){var Y=s.getCalculationInfo("stackedOnSeries"),ot=0;d.useStyle(q(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(ot=tm(Y.get("smooth"))),d.setShape({smooth:H,stackedOnSmooth:ot,smoothMonotone:X,connectNulls:b}),la(d,t,"areaStyle"),nt(d).seriesIndex=t.seriesIndex,Sn(d,k,F,B)}var vt=this._changePolyState;s.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=vt)}),this._polyline.onHoverStateChange=vt,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,p),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,n){nt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=mi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Mp(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Jt.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=mi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Jt.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;sc(this._polyline,t),n&&sc(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new lk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new fk({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=i;a?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var C=K(h)?h(p):f*b+v,A=d.getSymbolPath(),M=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(sb(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=yk(l);f>=0&&($r(s,Yr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?tb(o,c):Hu(o,h)},enableTextSetter:!0},_k(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),b=y?"x":"y",C=mk(h,S,b),A=C.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!c){var L=em(h,A[0]);u.attr({x:L[0]+w,y:L[1]+x}),o&&(D=v.getRawValue(A[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+w,y:L[1]+x});var P=v.getRawValue(A[0]),I=v.getRawValue(A[1]);o&&(D=HM(i,p,P,I,C.t))}a.lastFrameIndex=A[0]}else{var R=t===1||a.lastFrameIndex>0?A[0]:0,L=em(h,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+w,y:L[1]+x})}if(o){var k=bu(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=sk(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(p=en(v.stackedOnCurrent,v.current,i,o,l),c=en(v.current,null,i,o,l),g=en(v.stackedOnNext,v.next,i,o,l),d=en(v.next,null,i,o,l)),Qy(c,d)>3e3||f&&Qy(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),It(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),It(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,C=0;Ce&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var p=void 0;G(a)?p=bk[a]:K(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,p,Tk))}}}}}function Ck(r){r.registerChartView(xk),r.registerSeriesModel(tk),r.registerLayout(wk("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lb("line"))}var ub=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Nu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)T(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var p=v.getTicksCoords(),d=v.getTickModel().get("alignWithLabel"),g=o[c],y=n[c]==="x1"||n[c]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;wg){_=(x+m)/2;break}w===1&&(S=b-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Te);Te.registerClass(ub);const Zl=ub;var Ak=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Nu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=An(Zl.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Zl);const Mk=Ak;var Dk=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Lk=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Dk},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,p=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Rl(a,t,nt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Jt),nm={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,a=r.y+r.height,o=ah(e.x,r.x),s=oh(e.x+e.width,i),l=ah(e.y,r.y),u=oh(e.y+e.height,a),f=si?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var i=oh(e.r,r.r),a=ah(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},im={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new pt({shape:O({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?rm:wr,f=new u({shape:n,z2:1});f.name="item";var h=fb(i);if(f.calculateTextPosition=Pk(h,{isRoundCap:u===rm}),a){var v=f.shape,c=i?"r":"endAngle",p={};v[c]=i?n.r0:n.startAngle,p[c]=n[c],(s?It:oe)(f,{shape:p},a)}return f}};function kk(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function am(r,e,t,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?It:oe)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?It:oe)(t,{shape:u},f,i)}function om(r,e){for(var t=0;t0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Nk(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function fb(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function lm(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=io(n.getModel("itemStyle"),f,!0);O(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Yr(n);$r(r,p,{labelFetcher:a,labelDataIndex:t,defaultText:Hu(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,Ik(r,g==="outside"?c:g,fb(o),n.get(["label","rotate"]))}X2(d,p,a.getRawValue(t),function(m){return tb(e,m)});var y=n.getModel(["emphasis"]);Sn(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),la(r,n),Nk(i)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function zk(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var Vk=function(){function r(){}return r}(),um=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Vk},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function Fk(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function hb(r,e,t){if(Dp(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function Gk(r,e,t){var n=r.type==="polar"?wr:pt;return new n({shape:hb(e,t,r),silent:!0,z2:0})}const Hk=Ek;function Wk(r){r.registerChartView(Hk),r.registerSeriesModel(Mk),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ht(Ew,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kw("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lb("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var cm=Math.PI*2,Gs=Math.PI/180;function cb(r,e){return ue(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vb(r,e){var t=cb(r,e),n=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]);var a=et(t.width,e.getWidth()),o=et(t.height,e.getHeight()),s=Math.min(a,o),l=et(i[0],s/2),u=et(i[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else z(n)||(n=[n,n]),f=et(n[0],a)+t.x,h=et(n[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function $k(r,e,t){e.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=cb(n,t),s=vb(n,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*Gs,c=n.get("endAngle"),p=n.get("padAngle")*Gs;c=c==="auto"?v-cm:-c*Gs;var d=n.get("minAngle")*Gs,g=d+p,y=0;i.each(a,function(F){!isNaN(F)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var C=S?1:-1,A=[v,c],M=C*p/2;rS(A,!S),v=A[0],c=A[1];var D=pb(n);D.startAngle=v,D.endAngle=c,D.clockwise=S;var L=Math.abs(c-v),P=L,I=0,R=v;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(F,B){var N;if(isNaN(F)){i.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?N=m===0&&x?_:F*_:N=L/y,NN?(X=R+C*N/2,Y=X):(X=R+M,Y=H-M),i.setItemLayout(B,{angle:N,startAngle:X,endAngle:Y,clockwise:S,cx:l,cy:u,r0:h,r:w?wt(F,b,[h,f]):f}),R=H}),Pt?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*i,b=n+_.len,C=Math.abs(x)r.unconstrainedWidth?null:c:null;n.setStyle("width",p)}var d=n.getBoundingRect();a.width=d.width;var g=(n.style.margin||0)+2.1;a.height=d.height+g,a.y-=(a.height-h)/2}}}function sh(r){return r.position==="center"}function Xk(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*Yk,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),C=b.shape,A=b.getTextContent(),M=b.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),P=L.get("position")||D.get(["emphasis","label","position"]),I=L.get("distanceToLabelLine"),R=L.get("alignTo"),k=et(L.get("edgeDistance"),u),F=L.get("bleedMargin"),B=D.getModel("labelLine"),N=B.get("length");N=et(N,u);var H=B.get("length2");if(H=et(H,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":Y>0?"left":"right"}var $e=Math.PI,ve=0,Cr=L.get("rotate");if(_t(Cr))ve=Cr*($e/180);else if(P==="center")ve=0;else if(Cr==="radial"||Cr===!0){var Ai=Y<0?-X+$e:-X;ve=Ai}else if(Cr==="tangential"&&P!=="outside"&&P!=="outer"){var Ye=Math.atan2(Y,ot);Ye<0&&(Ye=$e*2+Ye);var is=ot>0;is&&(Ye=$e+Ye),ve=Ye-$e}if(a=!!ve,A.x=vt,A.y=yt,A.rotation=ve,A.setStyle({verticalAlign:"middle"}),Nt){A.setStyle({align:he});var Xu=A.states.select;Xu&&(Xu.x+=A.x,Xu.y+=A.y)}else{var Xr=A.getBoundingRect().clone();Xr.applyTransform(A.getComputedTransform());var id=(A.style.margin||0)+2.1;Xr.y-=id/2,Xr.height+=id,t.push({label:A,labelLine:M,position:P,len:N,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new rt(Y,ot),linePoints:Yt,textAlign:he,labelDistance:I,labelAlignTo:R,edgeDistance:k,bleedMargin:F,rect:Xr,unconstrainedWidth:Xr.width,labelStyleWidth:A.style.width})}b.setTextConfig({inside:Nt})}}),!a&&r.get("avoidLabelOverlap")&&Uk(t,n,i,l,u,v,f,h);for(var d=0;d0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},e.type="pie",e}(Jt);const Kk=qk;function Lp(r,e,t){e=z(e)&&{coordDimensions:e}||O({encodeDefine:r.getEncode()},e);var n=r.getSource(),i=Sp(n,e).dimensions,a=new Bu(i,r);return a.initData(n,t),a}var jk=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}();const yb=jk;var Jk=St(),Qk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yb(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Lp(this,{coordDimensions:["value"],encodeDefaulter:ht(ux,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=Jk(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=G1(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Dl(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Te);const tO=Qk;function eO(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(_t(o)&&!isNaN(o)&&o<0)})}}}function rO(r){r.registerChartView(Kk),r.registerSeriesModel(tO),Ux("pie",r.registerAction),r.registerLayout(ht($k,"pie")),r.registerProcessor(db("pie")),r.registerProcessor(eO("pie"))}var nO=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ut);const iO=nO;var Ic=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ot).models[0]},e.type="cartesian2dAxis",e}(ut);$t(Ic,rs);var mb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},aO=Q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mb),Pp=Q({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},mb),oO=Q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pp),sO=q({logBase:10},Pp);const _b={category:aO,value:Pp,time:oO,log:sO};var lO={value:1,category:1,time:1,log:1};function Fo(r,e,t,n){T(lO,function(i,a){var o=Q(Q({},_b[a],!0),n,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=ko(this),c=v?xa(f):{},p=h.getTheme();Q(f,p.get(a+"Axis")),Q(f,this.getDefaultOption()),f.type=pm(f),v&&xn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Mc.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",pm)}function pm(r){return r.type||(r.data?"category":"value")}var uO=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return V(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),xt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const fO=uO;var Rc=["x","y"];function dm(r){return r.type==="interval"||r.type==="time"}var hO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Rc,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dm(t)||!dm(n))){var i=t.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=da([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new ct(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Vt(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var i=[];if(this._invTransform)return Vt(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new ct(a,o,s,l)},e}(fO),cO=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ar);const vO=cO;function Ec(r,e,t){t=t||{};var n=r.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}a.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Br(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function gm(r){return r.get("coordinateSystem")==="cartesian2d"}function ym(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ot).models[0];e[n]=a}),e}var lh=Math.log;function Sb(r,e,t){var n=bn.prototype,i=n.getTicks.call(t),a=n.getTicks.call(t,!0),o=i.length-1,s=n.getInterval.call(t),l=Gw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=lh(r.base);u=[lh(u[0])/v,lh(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=n.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Qf(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Qf(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Pt(g-m),d<0&&u[0]>=0?(d=0,g=Pt(m)):g>0&&u[1]<=0&&(g=0,d=-Pt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,d+p*_,g+p*S),n.setInterval.call(r,p),(_||S)&&n.setNiceExtent.call(r,d+p,g-p)}var pO=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rc,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=at(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;Dc(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(fa(d,p),Dc(d)&&(s=c))}f.length&&(s||(s=f.pop(),fa(s.scale,s.model)),T(f,function(g){Sb(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};T(n.x,function(o){mm(n,"y",o,a)}),T(n.y,function(o){mm(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=ue(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=fE(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),dO(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Ao(i-cn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),Sm={axisLine:function(r,e,t,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Vt(s,s,o),Vt(l,l,o));var f=O({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ie({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ro(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);G(v)&&(v=[v,v]),(G(c)||_t(c))&&(c=[c,c]);var p=Eu(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];T([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=te(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var i=_O(t,n,e,r),a=xO(t,n,e,r);if(mO(e,a,i),SO(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=qE(V(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));JE(o)}},axisName:function(r,e,t,n){var i=Br(r.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,wm(a)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*cn/180);var p;wm(a)?v=di.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=yO(r.rotation,a,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Br(r.nameTruncateMaxWidth,g.maxWidth,p),_=new dt({x:h[0],y:h[1],rotation:v.rotation,silent:di.isLabelSilent(e),style:Et(s,{text:i,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(bi({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=di.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,nt(_).eventData=S}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function yO(r,e,t,n){var i=xv(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Ao(i-cn/2)?(o=l?"bottom":"top",a="center"):Ao(i-cn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",icn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function mO(r,e,t){if(!Hw(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];n===!1?(Ae(a),Ae(u)):xm(a,o)&&(n?(Ae(o),Ae(f)):(Ae(a),Ae(u))),i===!1?(Ae(s),Ae(h)):xm(l,s)&&(i?(Ae(l),Ae(v)):(Ae(s),Ae(h)))}}function Ae(r){r&&(r.ignore=!0)}function xm(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var i=Zo([]);return Cn(i,i,-r.rotation),t.applyTransform(_r([],i,r.getLocalTransform())),n.applyTransform(_r([],i,e.getLocalTransform())),t.intersect(n)}}function wm(r){return r==="middle"||r==="center"}function xb(r,e,t,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===e}function MO(r){var e=Ip(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=kc(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=q({color:p.color},l));var g=Q(Z(p),{boundaryGap:t,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(G(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else K(f)&&(g.name=f(g.name,g));var m=new Tt(g,null,this.ecModel);return $t(m,rs.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Q({lineStyle:{color:"#bbb"}},$a.axisLine),axisLabel:Hs($a.axisLabel,!1),axisTick:Hs($a.axisTick,!1),splitLine:Hs($a.splitLine,!0),splitArea:Hs($a.splitArea,!0),indicator:[]},e}(ut);const YO=$O;var UO=["axisLine","axisTickLabel","axisName"],XO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes(),a=V(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Tn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});T(a,function(o){T(UO,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,k,F){var B=F%k.length;return R[B]=R[B]||[],B}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(f){var b=m(g,p,x);g[b].push(new Wr({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,d,x);y[b].push(new Jo({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,A=V(i,function(R,k){var F=R.getTicksCoords();return C=C==null?F.length-1:Math.min(F.length-1,C),V(F,function(B){return n.coordToPoint(B.coord,k)})}),M=[],x=0;x<=C;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;hh(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);hh(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Dm(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;hh(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(rr);function hh(r,e,t,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Nr(n.event),Cb(r,e,t,n,i))}function Cb(r,e,t,n,i){i.isAvailableBehavior=W(cl,null,t,n),r.trigger(e,i)}function cl(r,e,t){var n=t[r];return!r||n&&(!G(n)||e.event[n+"Key"])}const Ab=rB;function nB(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function iB(r,e,t,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var aB={axisPointer:1,tooltip:1,brush:1};function Mb(r,e,t){var n=e.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==t&&!aB.hasOwnProperty(n.mainType)&&i&&i.model!==t}function Db(r){if(G(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var ch,ql={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Lm=at(ql),Kl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Pm=at(Kl),oB=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=Db(e);this._defsUsePending=[];var i=new it;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Se(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;uB(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Wu(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=Pb(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=i;i=new it,i.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:a}},r.prototype._parseNode=function(e,t,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var f=ch[s];if(f&&tt(ch,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var c=Im[s];if(c&&tt(Im,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new Lo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Me(t,n),Se(e,n,this._defsUsePending,!1,!1),sB(n,t);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){ch={g:function(e,t){var n=new it;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new pt;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Wr;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new ie;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new du;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),i;n&&(i=km(n));var a=new br({shape:{points:i||[]},silent:!0});return Me(t,a),Se(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var n=e.getAttribute("points"),i;n&&(i=km(n));var a=new Ge({shape:{points:i||[]},silent:!0});return Me(t,a),Se(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var n=new fe;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new it;return Me(t,s),Se(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new it;return Me(t,s),Se(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",i=CS(n);return Me(t,i),Se(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),Im={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new Qo(e,t,n,i);return Rm(r,a),Em(r,a),a},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new Ov(e,t,n);return Rm(r,i),Em(r,i),i}};function Rm(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Em(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};Lb(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Me(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),q(e.__inheritedStyle,r.__inheritedStyle))}function km(r){for(var e=Wu(r),t=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Wu(o);switch(i=i||xe(),s){case"translate":zr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":pv(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Cn(i,i,-parseFloat(l[0])*vh,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*vh);_r(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*vh);_r(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Bm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Lb(r,e,t){var n=r.getAttribute("style");if(n){Bm.lastIndex=0;for(var i;(i=Bm.exec(n))!=null;){var a=i[1],o=tt(ql,a)?ql[a]:null;o&&(e[o]=i[2]);var s=tt(Kl,a)?Kl[a]:null;s&&(t[s]=i[2])}}}function vB(r,e,t){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),n=$(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*a.scaleX+a.x,c[1]*a.scaleY+a.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;$r(e,Yr(n),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(Ib(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Gm(r,e,t,n,i,a){r.data?r.data.setItemGraphicEl(a,e):nt(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:n&&n.option||{}}}function Hm(r,e,t,n,i){r.data||bi({el:e,componentModel:i,itemName:t,itemTooltipOption:n.get("tooltip")})}function Wm(r,e,t,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Sn(e,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&i2(e,i,t),o}function $m(r,e,t){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),T(r,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Te);const OB=kB;function BB(r,e){var t={};return T(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=ue(w,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function GB(r,e){T(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var HB=function(){function r(){this.dimensions=kb}return r.prototype.create=function(e,t){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zm(l+s,l,O({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=qm,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),T(a,function(o,s){var l=V(o,function(f){return f.get("nameMap")}),u=new Zm(s,s,O({nameMap:J_(l)},i(o[0])));u.zoomLimit=Br.apply(null,V(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=qm,u.resize(o[0],t),T(o,function(f){f.coordinateSystem=u,GB(u,f)})}),n},r.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),o=$(),s=0;s=0;a--)n[a]==null&&(delete t[e[a]],e.pop())}function ph(r,e){var t=r.visual,n=[];U(t)?Ho(t,function(a){n.push(a)}):t!=null&&n.push(t);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),Nb(r,n)}function $s(r){return{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("color",r(t("color"),i))},_normalizedToVisual:Nc([0,1])}}function jm(r){var e=this.option.visual;return e[Math.round(wt(r,[0,1],[0,e.length-1],!0))]||{}}function Ua(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function ao(r){var e=this.option.visual;return e[this.option.loop&&r!==jl?r%e.length:r]}function jn(){return this.option.visual[0]}function Nc(r){return{linear:function(e){return wt(e,r,this.option.visual,!0)},category:ao,piecewise:function(e,t){var n=zc.call(this,t);return n==null&&(n=wt(e,r,this.option.visual,!0)),n},fixed:jn}}function zc(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=kp.findPieceIndex(r,t),i=t[n];if(i&&i.visual)return i.visual[this.type]}}function Nb(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=V(e,function(t){var n=ae(t);return n||[0,0,0,1]})),e}var eN={linear:function(r){return wt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=kp.findPieceIndex(r,e,!0);if(t!=null)return wt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?jl:e},fixed:zt};function Ys(r,e,t){return r?e<=t:eaN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!dh(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function dh(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const lN=oN;var uN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&Q(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var i=t.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],i=xt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);T(i,function(a){t.push("dim"+a.get("dim")),n.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ut);const fN=uN;var hN=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ar);const cN=hN;function Ci(r,e,t,n,i,a){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=Hi(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Hi(s,[0,o]),i=a=Hi(s,[i,a]),n=0}e[0]=Hi(e[0],t),e[1]=Hi(e[1],t);var l=gh(e,n);e[n]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[n]=Hi(e[n],f);var h;return h=gh(e,n),i!=null&&(h.sign!==l.sign||h.spana&&(e[1-n]=e[n]+h.sign*a),e}function gh(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Hi(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var yh=T,zb=Math.min,Vb=Math.max,Jm=Math.floor,vN=Math.ceil,Qm=Pt,pN=Math.PI,dN=function(){function r(e,t,n){this.type="parallel",this._axesMap=$(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var i=e.dimensions,a=e.parallelAxisIndex;yh(i,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new cN(o,Gu(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=n&&o<=n+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var i=n.getData();yh(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),fa(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=ue(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,f=Us(e.get("axisExpandWidth"),l),h=Us(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=Us(c[1]-c[0],l),c[1]=c[0]+p;else{p=Us(f*(h-1),l);var d=e.get("axisExpandCenter")||Jm(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[Jm(Qm(c[0]/f,1))+1,vN(Qm(c[1]/f,1))-1],m=g/f*c[0];return{layout:a,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),yh(n,function(o,s){var l=(i.axisExpandable?yN:gN)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:pN/2,vertical:0},h=[u[a].x+e.x,u[a].y+e.y],v=f[a],c=xe();Cn(c,c,v),zr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,i){n==null&&(n=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(g){s.push(e.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;fa*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Ci(l,i,o,"all"):u="none";else{var c=i[1]-i[0],p=o[1]*s/c;i=[Vb(0,p-c/2)],i[1]=zb(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function Us(r,e){return zb(Vb(r,e[0]),e[1])}function gN(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function yN(r,e){var t=e.layoutLength,n=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,f;return r=0;i--)gr(n[i])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var a=0,o=n.length;aTN}function Ub(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Xb(r,e,t,n){var i=new it;return i.add(new pt({name:"main",style:zp(t),silent:!0,draggable:!0,cursor:"move",drift:ht(n0,r,e,i,["n","s","w","e"]),ondragend:ht(xi,e,{isEnd:!0})})),T(n,function(a){i.add(new pt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ht(n0,r,e,i,a),ondragend:ht(xi,e,{isEnd:!0})}))}),i}function Zb(r,e,t,n){var i=n.brushStyle.lineWidth||0,a=ha(i,CN),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],h=t[1][1],v=f-a+i/2,c=h-a+i/2,p=f-o,d=h-s,g=p+i,y=d+i;Dr(r,e,"main",o,s,p,d),n.transformable&&(Dr(r,e,"w",l,u,a,y),Dr(r,e,"e",v,u,a,y),Dr(r,e,"n",l,u,g,a),Dr(r,e,"s",l,c,g,a),Dr(r,e,"nw",l,u,a,a),Dr(r,e,"ne",v,u,a,a),Dr(r,e,"sw",l,c,a,a),Dr(r,e,"se",v,c,a,a))}function Fc(r,e){var t=e.__brushOption,n=t.transformable,i=e.childAt(0);i.useStyle(zp(t)),i.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?Gc(r,a[0]):RN(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?MN[s]+"-resize":null})})}function Dr(r,e,t,n,i,a,o){var s=e.childOfName(t);s&&s.setShape(kN(Vp(r,e,[[n,i],[n+a,i+o]])))}function zp(r){return q({strokeNoScale:!0},r.brushStyle)}function qb(r,e,t,n){var i=[Wo(r,t),Wo(e,n)],a=[ha(r,t),ha(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function IN(r){return gn(r.group)}function Gc(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=_u(t[e],IN(r));return n[i]}function RN(r,e){var t=[Gc(r,e[0]),Gc(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function n0(r,e,t,n,i,a){var o=t.__brushOption,s=r.toRectRange(o.range),l=Kb(e,i,a);T(n,function(u){var f=AN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(qb(s[0][0],s[1][0],s[0][1],s[1][1])),Op(e,t),xi(e,{isEnd:!1})}function EN(r,e,t,n){var i=e.__brushOption.range,a=Kb(r,t,n);T(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Op(r,e),xi(r,{isEnd:!1})}function Kb(r,e,t){var n=r.group,i=n.transformCoordToLocal(e,t),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Vp(r,e,t){var n=Yb(r,e);return n&&n!==Si?n.clipPath(t,r._transform):Z(t)}function kN(r){var e=Wo(r[0][0],r[1][0]),t=Wo(r[0][1],r[1][1]),n=ha(r[0][0],r[1][0]),i=ha(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:i-t}}function ON(r,e,t){if(!(!r._brushType||NN(r,e.offsetX,e.offsetY))){var n=r._zr,i=r._covers,a=Np(r,e,t);if(!r._dragging)for(var o=0;on.getWidth()||t<0||t>n.getHeight()}var $u={lineX:o0(0),lineY:o0(1),rect:{createCover:function(r,e){function t(n){return n}return Xb({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Ub(r);return qb(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){Zb(r,e,t,n)},updateCommon:Fc,contain:Wc},polygon:{createCover:function(r,e){var t=new it;return t.add(new Ge({name:"main",style:zp(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new br({name:"main",draggable:!0,drift:ht(EN,r,e),ondragend:ht(xi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:Vp(r,e,t)})},updateCommon:Fc,contain:Wc}};function o0(r){return{createCover:function(e,t){return Xb({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Ub(e),n=Wo(t[0][r],t[1][r]),i=ha(t[0][r],t[1][r]);return[n,i]},updateCoverShape:function(e,t,n,i){var a,o=Yb(e,t);if(o!==Si&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),Zb(e,t,l,i)},updateCommon:Fc,contain:Wc}}const Jb=LN;function Qb(r){return r=Fp(r),function(e){return Gv(e,r)}}function tT(r,e){return r=Fp(r),function(t){var n=e!=null?e:t,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function eT(r,e,t){var n=Fp(r);return function(i,a){return n.contain(a[0],a[1])&&!Mb(i,e,t)}}function Fp(r){return ct.create(r)}var zN=["axisLine","axisTickLabel","axisName"],VN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new Jb(n.getZr())).on("brush",W(this._onBrush,this))},e.prototype.render=function(t,n,i,a){if(!FN(t,n,a)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=HN(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=O({strokeContainThreshold:f},v),p=new Tn(t,c);T(zN,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,i),Su(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ct.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Qb(h),isTargetByCursor:eT(h,s,a),getLinearBrushOtherExtent:tT(h,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(GN(i))},e.prototype._onBrush=function(t){var n=t.areas,i=this.axisModel,a=i.axis,o=V(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(At);function FN(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function GN(r){var e=r.axis;return V(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function HN(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const WN=VN;var $N={type:"axisAreaSelect",event:"axisAreaSelected"};function YN(r){r.registerAction($N,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var UN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function XN(r){r.registerComponentView(lN),r.registerComponentModel(fN),r.registerCoordinateSystem("parallel",xN),r.registerPreprocessor(rN),r.registerComponentModel(t0),r.registerComponentView(WN),Fo(r,"parallel",t0,UN),YN(r)}var ZN=["itemStyle","borderWidth"],s0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],mh=new Wr,qN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:s0[+f],categoryDim:s0[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=u0(o,p),g=l0(o,p,d,v),y=f0(o,v,g);o.setItemGraphicEl(p,y),a.add(y),c0(y,v,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){a.remove(g);return}var y=u0(o,p),m=l0(o,p,y,v),_=sT(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?r5(g,v,m):g=f0(o,v,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,a.add(g),c0(g,v,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&h0(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var c=t.get("clip",!0)?ob(t.coordinateSystem,!1,t):null;return c?a.setClipPath(c):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var i=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){h0(a,nt(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Jt);function l0(r,e,t,n){var i=r.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:i,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};KN(t,a,i,n,v),jN(r,e,i,a,o,v.boundingLength,v.pxSign,f,n,v),JN(t,v.symbolScale,u,n,v);var c=v.symbolSize,p=Eu(t.get("symbolOffset"),c);return QN(t,c,i,a,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function KN(r,e,t,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),f;if(z(o)){var h=[_h(s,o[0])-l,_h(s,o[1])-l];h[1]=0?1:-1:f>0?1:-1}function _h(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function jN(r,e,t,n,i,a,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=et(p[h.index],v),p[f.index]=et(p[f.index],n?v:Math.abs(a)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function JN(r,e,t,n,i){var a=r.get(ZN)||0;a&&(mh.attr({scaleX:e[0],scaleY:e[1],rotation:t}),mh.updateTransform(),a/=mh.getLineScale(),a*=e[n.valueDim.index]),i.valueLineWidth=a||0}function QN(r,e,t,n,i,a,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(n){var y=Math.abs(l),m=Br(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=et(m,e[c.index]),w=Math.max(d+S*2,0),x=_?0:S*2,b=bv(n),C=b?n:v0((y+x)/w),A=y-C*d;S=A/2/(_?C:Math.max(C-1,1)),w=d+S*2,x=_?0:S*2,!b&&n!=="fixed"&&(C=u?v0((Math.abs(u)+x)/w):0),g=C*w-x,h.repeatTimes=C,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var P=h.barRectShape=O({},t);P[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),P[v.wh]=t[v.wh];var I=h.clipShape={};I[v.xy]=-t[v.xy],I[v.wh]=f.ecSize[v.wh],I[c.xy]=0,I[c.wh]=t[c.wh]}function rT(r){var e=r.symbolPatternSize,t=te(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function nT(r,e,t,n){var i=r.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=a[e.valueDim.index]+o+t.symbolMargin*2;for(Gp(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function iT(r,e,t,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?ia(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(a=r.__pictorialMainPath=rT(t),i.add(a),ia(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function aT(r,e,t){var n=O({},e.barRectShape),i=r.__pictorialBarRect;i?ia(i,null,{shape:n},e,t):(i=r.__pictorialBarRect=new pt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function oT(r,e,t,n){if(t.symbolClip){var i=r.__pictorialClipPath,a=O({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)It(i,{shape:a},s,l);else{a[o.wh]=0,i=new pt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],ma[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function u0(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=t5,t.isAnimationEnabled=e5,t}function t5(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function e5(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function f0(r,e,t,n){var i=new it,a=new it;return i.add(a),i.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?nT(i,e,t):iT(i,e,t),aT(i,t,n),oT(i,e,t,n),i.__pictorialShapeStr=sT(r,t),i.__pictorialSymbolMeta=t,i}function r5(r,e,t){var n=t.animationModel,i=t.dataIndex,a=r.__pictorialBundle;It(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,i),t.symbolRepeat?nT(r,e,t,!0):iT(r,e,t,!0),aT(r,t,!0),oT(r,e,t,!0)}function h0(r,e,t,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];Gp(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),T(a,function(o){Po(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function sT(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Gp(r,e,t){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function ia(r,e,t,n,i,a){e&&r.attr(e),n.symbolClip&&!i?t&&r.attr(t):t&&ma[i?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,a)}function c0(r,e,t){var n=t.dataIndex,i=t.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=a.get("focus"),h=a.get("blurScope"),v=a.get("scale");Gp(r,function(d){if(d instanceof fe){var g=d.style;d.useStyle(O({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,$r(p,Yr(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Hu(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Sn(r,f,h,a.get("disabled"))}function v0(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const n5=qN;var i5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=An(Zl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Zl);const a5=i5;function o5(r){r.registerChartView(n5),r.registerSeriesModel(a5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ht(Ew,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kw("pictorialBar"))}function s5(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||tt(r,"text")))}function l5(r,e,t){var n=r,i,a,o;if(e==="text")o=n;else{o={},tt(n,"text")&&(o.text=n.text),tt(n,"rich")&&(o.rich=n.rich),tt(n,"textFill")&&(o.fill=n.textFill),tt(n,"textStroke")&&(o.stroke=n.textStroke),tt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),tt(n,"fontSize")&&(o.fontSize=n.fontSize),tt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),tt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=tt(n,"textPosition");t?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),tt(n,"textPosition")&&(i.position=n.textPosition),tt(n,"textOffset")&&(i.offset=n.textOffset),tt(n,"textRotation")&&(i.rotation=n.textRotation),tt(n,"textDistance")&&(i.distance=n.textDistance)}return p0(o,r),T(o.rich,function(l){p0(l,l)}),{textConfig:i,textContent:a}}function p0(r,e){e&&(e.font=e.textFont||e.font,tt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),tt(e,"textAlign")&&(r.align=e.textAlign),tt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),tt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),tt(e,"textWidth")&&(r.width=e.textWidth),tt(e,"textHeight")&&(r.height=e.textHeight),tt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),tt(e,"textPadding")&&(r.padding=e.textPadding),tt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),tt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),tt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),tt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),tt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),tt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),tt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}var lT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},d0=at(lT);Ve(Sr,function(r,e){return r[e]=1,r},{});Sr.join(", ");var Jl=["","style","shape","extra"],ca=St();function Hp(r,e,t,n,i){var a=r+"Animation",o=Bv(r,n,i)||{},s=ca(e).userDuring;return o.duration>0&&(o.during=s?W(p5,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,t[a]),o}function Sh(r,e,t,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=ca(r),u=e.style;l.userDuring=e.during;var f={},h={};if(g5(r,e,h),y0("shape",e,h),y0("extra",e,h),!a&&s&&(d5(r,e,f),g0("shape",r,e,f),g0("extra",r,e,f),y5(r,e,u,f)),h.style=u,f5(r,h,o),c5(r,e),s)if(a){var v={};T(Jl,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),O(p?v[p]:v,d.enterFrom))});var c=Hp("enter",r,e,t,i);c.duration>0&&r.animateFrom(v,c)}else h5(r,e,i||0,t,f);uT(r,e),u?r.dirty():r.markRedraw()}function uT(r,e){for(var t=ca(r).leaveToProps,n=0;n0&&r.animateFrom(i,a)}}function c5(r,e){tt(e,"silent")&&(r.silent=e.silent),tt(e,"ignore")&&(r.ignore=e.ignore),r instanceof Vr&&tt(e,"invisible")&&(r.invisible=e.invisible),r instanceof gt&&tt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var fr={},v5={setTransform:function(r,e){return fr.el[r]=e,this},getTransform:function(r){return fr.el[r]},setShape:function(r,e){var t=fr.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=fr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=fr.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=fr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=fr.el.extra||(fr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=fr.el.extra;if(e)return e[r]}};function p5(){var r=this,e=r.el;if(e){var t=ca(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}fr.el=e,n(v5)}}function g0(r,e,t,n){var i=t[r];if(i){var a=e[r],o;if(a){var s=t.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),gi(l))O(o,a);else for(var u=Ct(l),f=0;f=0){!o&&(o=n[r]={});for(var c=at(a),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var p=at(t),u=0;us)return!0;if(o){var l=Ip(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=Qn(e).pointerEl=new ma[a.type](m0(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=Qn(e).labelEl=new dt(m0(t.label));e.add(a),S0(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=Qn(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=Qn(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),S0(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ya(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Nr(u.event)},onmousedown:xh(this._onHandleDragMove,this,0,0),drift:xh(this._onHandleDragMove,this),ondragend:xh(this._onHandleDragEnd,this)}),n.add(i)),x0(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,es(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){_0(this._axisPointerModel,!t&&this._moveAnimation,this._handle,wh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(wh(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(wh(i)),Qn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function _0(r,e,t,n){hT(Qn(t).lastProp,n)||(Qn(t).lastProp=n,e?It(t,n,r):(t.stopAnimation(),t.attr(n)))}function hT(r,e){if(U(r)&&U(e)){var t=!0;return T(e,function(n,i){t=t&&hT(r[i],n)}),!!t}else return r===e}function S0(r,e){r[e.get(["label","show"])?"show":"hide"]()}function wh(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function x0(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}const cT=x5;function vT(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function pT(r,e,t,n,i){var a=t.get("value"),o=dT(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Sa(s.get("padding")||0),u=s.getFont(),f=Ko(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=i.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=i.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),w5(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Et(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function w5(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function dT(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Cp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),G(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function gT(r,e,t){var n=xe();return Cn(n,n,t.rotation),zr(n,n,t.position),tr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function b5(r,e,t,n,i,a){var o=Tn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),pT(e,n,i,a,{position:gT(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yT(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function T5(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function w0(r,e,t,n,i,a){return{cx:r,cy:e,r0:t,r:n,startAngle:i,endAngle:a,clockwise:!0}}var C5=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=b0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=vT(a),c=A5[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Ec(l.model,i);b5(n,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=Ec(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=gT(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=b0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(cT);function b0(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var A5={line:function(r,e,t){var n=yT([e,t[0]],[e,t[1]],T0(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:T5([e-n/2,t[0]],[n,i],T0(r))}}};function T0(r){return r.dim==="x"?0:1}const M5=C5;var D5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(ut);const L5=D5;var kr=St(),P5=T;function mT(r,e,t){if(!ft.node){var n=e.getZr();kr(n).records||(kr(n).records={}),I5(n,e);var i=kr(n).records[r]||(kr(n).records[r]={});i.handler=t}}function I5(r,e){if(kr(r).initialized)return;kr(r).initialized=!0,t("click",ht(C0,"click")),t("mousemove",ht(C0,"mousemove")),t("globalout",E5);function t(n,i){r.on(n,function(a){var o=k5(e);P5(kr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),R5(o.pendings,e)})}}function R5(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function E5(r,e,t){r.handler("leave",null,t)}function C0(r,e,t,n){e.handler(r,t,n)}function k5(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function Yc(r,e){if(!ft.node){var t=e.getZr(),n=(kr(t).records||{})[r];n&&(kr(t).records[r]=null)}}var O5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";mT("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){Yc("axisPointer",n)},e.prototype.dispose=function(t,n){Yc("axisPointer",n)},e.type="axisPointer",e}(At);const B5=O5;function _T(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=mi(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=a.mapDimension(v),d=[];d[c]=a.get(p,o),d[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(a.getValues(V(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var A0=St();function N5(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||W(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){vl(i)&&(i=_T({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=vl(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||vl(i),v={},c={},p={list:[],map:{}},d={showPointer:ht(V5,c),showTooltip:ht(F5,p)};T(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);T(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=$5(u,S);if(!h&&_&&(!u||b)){var C=b&&b.value;C==null&&!l&&(C=x.pointToData(i)),C!=null&&M0(S,C,d,!1,v)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&T(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,D0(S),D0(y)))),g[y.key]=b}})}),T(g,function(y,m){M0(f[m],y,d,!0,v)}),G5(c,f,v),H5(p,i,r,o),W5(f,o,t),v}}function M0(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=z5(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&O(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function z5(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,i=h,a.length=0),T(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function V5(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function F5(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Go(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function G5(r,e,t){var n=t.axesInfo=[];T(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function H5(r,e,t,n){if(vl(e)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function W5(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=A0(n)[i]||{},o=A0(n)[i]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $5(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function D0(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function vl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Wp(r){ns.registerAxisPointerClass("CartesianAxisPointer",M5),r.registerComponentModel(L5),r.registerComponentView(B5),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=wO(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},N5)}function Y5(r){Wt(NO),Wt(Wp)}var U5=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(n),v=a.get("type");if(v&&v!=="none"){var c=vT(a),p=Z5[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=a.get(["label","margin"]),g=X5(n,i,a,l,d);pT(t,i,a,o,g)},e}(cT);function X5(r,e,t,n,i){var a=e.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,h;if(a.dim==="radius"){var v=xe();Cn(v,v,s),zr(v,v,[n.cx,n.cy]),u=tr([o,-i],v);var c=e.getModel("axisLabel").get("rotate")||0,p=Tn.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=n.coordToPoint([d+i,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var Z5={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:yT(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:w0(e.cx,e.cy,n[0],n[1],(-t-i/2)*a,(-t+i/2)*a)}:{type:"Sector",shape:w0(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const q5=U5;var K5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,i=this.ecModel;return i.eachComponent(t,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ut);const j5=K5;var $p=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ot).models[0]},e.type="polarAxis",e}(ut);$t($p,rs);var J5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}($p),Q5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}($p),Yp=function(r){E(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(ar);Yp.prototype.dataToRadius=ar.prototype.dataToCoord;Yp.prototype.radiusToData=ar.prototype.coordToData;const tz=Yp;var ez=St(),Up=function(r){E(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Ko(s==null?"":s+"",n.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=ez(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(ar);Up.prototype.dataToAngle=ar.prototype.dataToCoord;Up.prototype.angleToData=ar.prototype.coordToData;const rz=Up;var ST=["radius","angle"],nz=function(){function r(e){this.dimensions=ST,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tz,this._angleAxis=new rz,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,h=u*u+f*f,v=this.r,c=this.r0;return v!==c&&h-o<=v*v&&h+o>=c*c}}},r.prototype.convertToPixel=function(e,t,n){var i=L0(t);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var i=L0(t);return i===this?this.pointToData(n):null},r}();function L0(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const iz=nz;function az(r,e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight();r.cx=et(n[0],i),r.cy=et(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[et(l[0],s),et(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function oz(r,e){var t=this,n=t.getAngleAxis(),i=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();T(Ul(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),T(Ul(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),fa(n.scale,n.model),fa(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function sz(r){return r.mainType==="angleAxis"}function P0(r,e){var t;if(r.type=e.get("type"),r.scale=Gu(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),sz(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),i=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,i)}e.axis=r,r.model=e}var lz={dimensions:ST,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,i){var a=new iz(i+"");a.update=oz;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");P0(o,l),P0(s,u),az(a,n,e),t.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Ot).models[0];n.coordinateSystem=i.coordinateSystem}}),t}};const uz=lz;var fz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xs(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),i=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Zs(r){var e=r.getRadiusAxis();return e.inverse?0:1}function I0(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var hz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=V(i.getViewLabels(),function(f){f=Z(f);var h=i.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(v),f});I0(u),I0(s),T(fz,function(f){t.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&cz[f](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(ns),cz={axisLine:function(r,e,t,n,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zs(t),h=f?0:1,v,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[h]===0?v=new ma[c]({shape:{cx:t.cx,cy:t.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Jo({shape:{cx:t.cx,cy:t.cy,r:a[f],r0:a[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,e,t,n,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Zs(t)],u=V(n,function(f){return new ie({shape:Xs(t,[l,l+s],f.coord)})});r.add(Be(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Zs(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var w=s[p];U(w)&&w.textStyle&&(c=new Tt(w.textStyle,l,l.ecModel))}var x=new dt({silent:Tn.isLabelSilent(e),style:Et(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=Tn.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=h.rawLabel,nt(x).eventData=b}},this)},splitLine:function(r,e,t,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",R=A;w&&(n[f][P]||(n[f][P]={p:A,n:A}),R=n[f][P][I]);var k=void 0,F=void 0,B=void 0,N=void 0;if(p.dim==="radius"){var H=p.dataToCoord(L)-A,X=l.dataToCoord(P);Math.abs(H)=N})}}})}function xz(r){var e={};T(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=wT(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=xT(n);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=et(n.get("barWidth"),f),d=et(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return T(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=et(n.categoryGap,o),l=et(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),T(a,function(d,g){var y=d.maxWidth;y&&y+n.start.y&&(p=p+"-"+n.end.y);var d=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new dt({z2:30,style:Et(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,c[l],i,l,s)),a.add(m)}},e.prototype._monthTextPositionControl=function(t,n,i,a,o){var s="left",l="top",u=t[0],f=t[1];return i==="horizontal"?(f=f+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,i,a){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||G(s))&&(s&&(n=pc(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=o.get("silent"),g=0;g=i.start.time&&n.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var i=Math.floor(t[1].time/bh)-Math.floor(t[0].time/bh)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)i-=u,a.setDate(l-u);var f=Math.floor((i+t[0].day+6)/7),h=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||e===0&&ti.lweek)return null;var a=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function E0(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const Iz=Pz;function Rz(r){r.registerComponentModel(Mz),r.registerComponentView(Lz),r.registerCoordinateSystem("calendar",Iz)}function Ez(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function k0(r,e){var t;return T(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function kz(r,e,t){var n=O({},t),i=r[e],a=t.$action||"merge";a==="merge"?i?(Q(i,n,!0),xn(i,n,{ignoreSize:!0}),ix(t,i),qs(t,i),qs(t,i,"shape"),qs(t,i,"style"),qs(t,i,"extra"),t.clipPath=i.clipPath):r[e]=n:a==="replace"?r[e]=n:a==="remove"&&i&&(r[e]=null)}var bT=["transition","enterFrom","leaveTo"],Oz=bT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qs(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?bT:Oz,i=0;i=0;f--){var h=i[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(c){var p=c.parent,y=Re(p),m=p===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Jv(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Re(c).isNew&&S){for(var w=h.transition,x={},b=0;b=0)?x[C]=A:c[C]=A}It(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(i){pl(i,Re(i).option,n,t._lastGraphicModel)}),this._elMap=$()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(At);function Uc(r){var e=tt(O0,r)?O0[r]:zv(r),t=new e({});return Re(t).type=r,t}function B0(r,e,t,n){var i=Uc(t);return e.add(i),n.set(r,i),Re(i).id=r,Re(i).isNew=!0,i}function pl(r,e,t,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){pl(a,e,t,n)}),u5(r,e,n),t.removeKey(Re(r).id))}function N0(r,e,t,n){r.isGroup||T([["cursor",Vr.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(i){var a=i[0];tt(e,a)?r[a]=j(e[a],i[1]):r[a]==null&&(r[a]=i[1])}),T(at(e),function(i){if(i.indexOf("on")===0){var a=e[i];r[i]=K(a)?a:null}}),tt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Vz(r){return r=O({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(nx),function(e){delete r[e]}),r}function Fz(r,e,t){var n=nt(r).eventData;!r.silent&&!r.ignore&&!n&&(n=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function Gz(r){r.registerComponentModel(Nz),r.registerComponentView(zz),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var z0=["x","y","radius","angle","single"],Hz=["cartesian2d","polar","singleAxis"];function Wz(r){var e=r.get("coordinateSystem");return st(Hz,e)>=0}function vn(r){return r+"Axis"}function $z(r,e){var t=$(),n=[],i=$();r.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return n}function TT(r){var e=r.ecModel,t={infoList:[],infoMap:$()};return r.eachTargetAxis(function(n,i){var a=e.getComponent(vn(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var Th=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),Yz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,i){var a=V0(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var n=V0(t);Q(this.option,t,!0),Q(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=$(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return T(z0,function(i){var a=this.getReferringComponents(vn(i),VM);if(a.specified){n=!0;var o=new Th;T(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Th;if(v.add(h.componentIndex),t.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Ot).models[0];c&&T(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Ot).models[0]&&v.add(p.componentIndex)})}}}a&&T(z0,function(u){if(a){var f=i.findComponents({mainType:vn(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Th;h.add(f[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,i=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,i){t==null&&(t=this.ecModel.getComponent(vn(n),i))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(i,a){T(i.indexList,function(o){t.call(n,a,o)})})},e.prototype.getAxisProxy=function(t,n){var i=this.getAxisModel(t,n);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[n])return this.ecModel.getComponent(vn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(n[a[0]]=i[a[0]]=t[a[0]],n[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;T(["start","startValue","end","endValue"],function(i){n[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(p=!0),w&&(d=!0)}return g&&p&&d})}else Xi(f,function(c){if(a==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});Xi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Xi(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=wt(n[0]+o,n,[0,100],!0):a!=null&&(o=wt(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Sv(n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function Jz(r,e,t){var n=[1/0,-1/0];Xi(t,function(o){cE(n,o.getData(),e)});var i=r.getAxisModel(),a=Fw(i.axis.scale,i,n).calculate();return[a.min,a.max]}const Qz=jz;var tV={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(vn(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qz(i,a,s,r),t.push(o.__dzAxisProxy))});var n=$();return T(t,function(i){T(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const eV=tV;function rV(r){r.registerAction("dataZoom",function(e,t){var n=$z(t,e);T(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var G0=!1;function Zp(r){G0||(G0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,eV),rV(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nV(r){r.registerComponentModel(Xz),r.registerComponentView(Kz),Zp(r)}var je=function(){function r(){}return r}(),CT={};function Xa(r,e){CT[r]=e}function AT(r){return CT[r]}var iV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;T(this.option.feature,function(n,i){var a=AT(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Q(n,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ut);const aV=iV;function oV(r,e,t){var n=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=ue(n,a,i);ci(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Jv(r,n,a,i)}function MT(r,e){var t=Sa(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new pt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var sV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];T(u,function(p,d){h.push(d)}),new _p(this._featureNames||[],h).add(v).update(v).remove(ht(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new Tt(m,t,t.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(lV(g))S={onclick:_.option.onclick,featureName:g};else{var w=AT(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=_a("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof je;if(!g&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}c(_,S,g),_.setIconStatus=function(b,C){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[b]=C,M[b]&&(C==="emphasis"?oa:sa)(M[b])},S instanceof je&&S.render&&S.render(_,n,i,a)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof je&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},w,x;G(_)?(w={},w[g]=_):w=_,G(S)?(x={},x[g]=S):x=S;var b=p.iconPaths={};T(w,function(C,A){var M=ya(C,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var L=new dt({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:$S({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});M.setTextContent(L),bi({el:M,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var P=m.getItemStyle(),I=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||I}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",A])==="emphasis"?oa:sa)(M),o.add(M),M.on("click",W(d.onclick,d,n,i,A)),b[A]=M})}oV(o,t,i),o.add(MT(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!K(_)&&d){var S=_.style||(_.style={}),w=Ko(d,dt.makeFont(S)),x=p.x+o.x,b=p.y+o.y+s,C=!1;b+w.height>i.getHeight()&&(y.position="top",C=!0);var A=C?-5-w.height:s+10;x+w.width/2>i.getWidth()?(y.position=["100%",A],S.align="right"):x-w.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,n,i,a){T(this._features,function(o){o instanceof je&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.remove=function(t,n){T(this._features,function(i){i instanceof je&&i.remove&&i.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){T(this._features,function(i){i instanceof je&&i.dispose&&i.dispose(t,n)})},e.type="toolbox",e}(At);function lV(r){return r.indexOf("my")===0}const uV=sV;var fV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=ft.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=i.get("lang"),b='',C=window.open();C.document.write(b),C.document.title=a}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(je);const hV=fV;var H0="__ec_magicType_stack__",cV=[["line","bar"],["stack"]],vV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return T(t.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(W0[i]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=W0[i](v,c,h,a);p&&(q(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Ot).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};T(cV,function(h){st(h,i)>=0&&T(h,function(v){a.setIconStatus(v,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=Q({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(je),W0={line:function(r,e,t,n){if(r==="bar")return Q({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Q({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var i=t.get("stack")===H0;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Q({id:e,stack:i?"":H0},n.get(["option","stack"])||{},!0)}};ir({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const pV=vV;var Yu=new Array(60).join("-"),va=" ";function dV(r){var e={},t=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function gV(r){var e=[];return T(r,function(t,n){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(V(t.series,function(c){return c.name})),l=[i.model.getCategories()];T(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(va)],f=0;f=0)return!0}var Xc=new RegExp("["+va+"]+","g");function SV(r){for(var e=r.split(/\n+/g),t=Ql(e.shift()).split(Xc),n=[],i=V(t,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function MV(r){var e=qp(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return DT(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function DV(r){LT(r).snapshots=null}function LV(r){return qp(r).length}function qp(r){var e=LT(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var PV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){DV(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(je);ir({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const IV=PV;var RV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],EV=function(){function r(e,t,n){var i=this;this._targetInfoList=[];var a=$0(t,e);T(kV,function(o,s){(!n||!n.include||st(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Ch[n.brushType](0,a,i);n.__rangeOffset={offset:Z0[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){T(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&T(a.coordSyses,function(o){var s=Ch[i.brushType](1,o,i.range,!0);n(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){T(e,function(n){var i=this.findTargetInfo(n,t);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Ch[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Z0[n.brushType](a.values,o.offset,OV(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(e,t){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Qb(i),isTargetByCursor:eT(i,e,n.coordSysModel),getLinearBrushOtherExtent:tT(i)}})},r.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return i===!0||i&&st(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=$0(t,e),a=0;ar[1]&&r.reverse(),r}function $0(r,e){return ho(r,e,{includeMainTypes:RV})}var kV={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=$(),o={},s={};!t&&!n&&!i||(T(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),T(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),T(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(h,v){(st(t,h.getAxis("x").model)>=0||st(n,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:U0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){T(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:U0.geo})})}},Y0=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],U0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(gn(r)),e}},Ch={lineX:ht(X0,0),lineY:ht(X0,1),rect:function(r,e,t,n){var i=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),a=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[Zc([i[0],a[0]]),Zc([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=V(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function X0(r,e,t,n){var i=t.getAxis(["x","y"][r]),a=Zc(V([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Z0={lineX:ht(q0,0),lineY:ht(q0,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return V(r,function(n,i){return[n[0]-t[0]*e[i][0],n[1]-t[1]*e[i][1]]})}};function q0(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function OV(r,e){var t=K0(r),n=K0(e),i=[t[0]/n[0],t[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function K0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const PT=EV;var qc=T,BV=kM("toolbox-dataZoom_"),NV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){this._brushController||(this._brushController=new Jb(i.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),FV(t,n,this,a,i),VV(t,n)},e.prototype.onclick=function(t,n,i){zV[i].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new PT(Kp(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),AV(a,i),this._dispatchZoomAction(i);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,a),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=Ci(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var n=[];qc(t,function(i,a){n.push(Z(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(je),zV={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(MV(this.ecModel))}};function Kp(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function VV(r,e){r.setIconStatus("back",LV(e)>1?"emphasis":"normal")}function FV(r,e,t,n,i){var a=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new PT(Kp(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}bL("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),i=[],a=Kp(n),o=ho(r,a);qc(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),qc(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:BV+u+h};v[f]=h,i.push(v)}return i});const GV=NV;function HV(r){r.registerComponentModel(aV),r.registerComponentView(uV),Xa("saveAsImage",hV),Xa("magicType",pV),Xa("dataView",CV),Xa("dataZoom",GV),Xa("restore",IV),Wt(nV)}var WV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ut);const $V=WV;function IT(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function RT(r){if(ft.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var p=e+" solid "+i+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function jV(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,i="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,i+=ft.transformSupported?","+jp+n:",left"+n+",top"+n),XV+":"+i}function j0(r,e,t){var n=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ft.transformSupported)return t?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ft.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+jp+":"+o+";":[["top",0],["left",0],[ET,o]]}function JV(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var i=j(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function QV(r,e,t){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Ox(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),e&&i&&n.push(jV(i,t)),a&&n.push("background-color:"+a),T(["width","color","radius"],function(c){var p="border-"+c,d=qv(p),g=r.get(d);g!=null&&n.push(p+":"+g+(c==="color"?"":"px"))}),n.push(JV(f)),h!=null&&n.push("padding:"+Sa(h).join("px ")+"px"),n.join(";")+";"}function J0(r,e,t,n,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&XC(r,o,t,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var tF=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ft.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&(G(a)?document.querySelector(a):yi(a)?a:K(a)&&a(e.getDom()));J0(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Le(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=UV(t,"position"),i=t.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=ZV+QV(e,!this._firstShow,this._longHide)+j0(a[0],a[1],!0)+("border-color:"+_i(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(G(a)&&n.get("trigger")==="item"&&!IT(n)&&(s=KV(n,i,a)),G(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,i,a){if(!(a.from===this.uid||ft.node||!i.getDom())){var o=e_(a,i);this._ticket="";var s=a.dataByCoordSys,l=uF(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=iF;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(t,n,i,a))return;var h=_T(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(e_(a,i))},e.prototype._manuallyAxisShowTip=function(t,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=Za([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,n){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=nt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;oi(i,function(f){if(nt(f).dataIndex!=null)return l=f,!0;if(nt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var i=t.get("showDelay");n=W(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(t,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Za([n.tooltipOption],a),l=this._renderMode,u=[],f=xr("section",{blocks:[],noHeader:!0}),h=[],v=new Gf;T(t,function(m){T(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=dT(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=xr("section",{header:x,noHeader:!ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),T(_.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),M=C.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Cp(S.axis,{value:w}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",_i(D.color),l);var L=Xg(A.formatTooltip(M,!0,null)),P=L.frag;if(P){var I=Za([A],a).get("valueFormatter");b.blocks.push(I?O({valueFormatter:I},P):P)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,p=s.get("order"),d=Jg(f,v,l,p,i.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?"\n\n":"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=nt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Za([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Gf;y.marker=m.makeTooltipMarker("item",_i(y.color),c);var _=Xg(u.formatTooltip(f,!1,h)),S=d.get("order"),w=d.get("valueFormatter"),x=_.frag,b=x?Jg(w?O({valueFormatter:w},x):x,m,c,S,a.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,b,y,C,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=nt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(G(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Z(l),l.content=Ht(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=Za(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Gf;this._showOrMove(p,function(){var m=Z(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,n,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=n,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(G(v)){var g=t.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ts(y.axisValue,c,g)),c=Kv(c,i,!0)}else if(K(v)){var _=W(function(S,w){S===this._ticket&&(h.setContent(w,f,t,d,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a){if(i==="axis"||z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),K(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(n))i=et(n[0],u),a=et(n[1],f);else if(U(n)){var d=n;d.width=h[0],d.height=h[1];var g=ue(d,{width:u,height:f});i=g.x,a=g.y,v=null,c=null}else if(G(n)&&l){var y=lF(n,p,h,t.get("borderWidth"));i=y[0],a=y[1]}else{var y=oF(i,a,o,u,f,v?null:20,c?null:20);i=y[0],a=y[1]}if(v&&(i-=r_(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=r_(c)?h[1]/2:c==="bottom"?h[1]:0),IT(t)){var y=sF(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&T(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&T(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){ft.node||!n.getDom()||(Bo(this,"_updatePosition"),this._tooltipContent.dispose(),Yc("itemTooltip",n))},e.type="tooltip",e}(At);function Za(r,e,t){var n=e.ecModel,i;t?(i=new Tt(t,n,n),i=new Tt(e.option,i,n)):i=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Tt&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(i=new Tt(o,i,n)))}return i}function e_(r,e){return r.dispatchAction||W(e.dispatchAction,e)}function oF(r,e,t,n,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function sF(r,e,t,n,i){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function lF(r,e,t,n){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function r_(r){return r==="center"||r==="middle"}function uF(r,e,t){var n=Cv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=jo(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const fF=aF;function hF(r){Wt(Wp),r.registerComponentModel($V),r.registerComponentView(fF),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zt)}var n_=T;function i_(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function a_(r,e,t){var n={};return n_(e,function(a){var o=n[a]=i();n_(r[a],function(s,l){if(me.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new me(u),l==="opacity"&&(u=Z(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new me(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function cF(r,e,t){var n;T(t,function(i){e.hasOwnProperty(i)&&i_(e[i])&&(n=!0)}),n&&T(t,function(i){e.hasOwnProperty(i)&&i_(e[i])?r[i]=Z(e[i]):delete r[i]})}function vF(r,e,t,n){var i={};return T(r,function(a){var o=me.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(w){return $x(s,h,w)}function f(w,x){oI(s,h,w,x)}for(var h,v=s.getStore();(h=o.next())!=null;){var c=s.getRawDataItem(h);if(!(c&&c.visualMap===!1))for(var p=n!=null?v.get(l,h):h,d=t(p),g=e[d],y=i[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}var pF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ut),dF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=j(t.get("textBaseline"),t.get("textVerticalAlign")),f=new dt({style:Et(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new dt({style:Et(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Dg(p,"_"+t.get("target"))}),d&&c.on("click",function(){Dg(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),v&&a.add(c);var y=a.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=ue(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=a.getBoundingRect();var w=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new pt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},e.type="title",e}(At);function gF(r){r.registerComponentModel(pF),r.registerComponentView(dF)}var yF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],i=t.axisType,a=this._names=[],o;i==="category"?(o=[],T(n,function(u,f){var h=jt(ga(u),""),v;U(u)?(v=Z(u),v.value=f):v=f,o.push(v),a.push(h)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Bu([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ut);const o_=yF;var OT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=An(o_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(o_);$t(OT,Cx.prototype);const mF=OT;var _F=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(At);const SF=_F;var xF=function(r){E(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ar);const wF=xF;var Ah=Math.PI,s_=St(),bF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,i){if(this.model=t,this.api=i,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:f})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var i=t.get(["label","position"]),a=t.get("orient"),o=CF(t,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Ah/2},h=a==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Ah/180;var m,_,S,w=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),b=c&&v.get("showPrevBtn",!0),C=c&&v.get("showNextBtn",!0),A=0,M=h;w==="left"||w==="bottom"?(x&&(m=[0,0],A+=g),b&&(_=[A,0],A+=g),C&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),b&&(_=[0,0],A+=g),C&&(S=[M-p,0],M-=g));var D=[A,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,n){var i=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=xe(),l=o.x,u=o.y+o.height;zr(s,s,[-l,-u]),Cn(s,s,-Ah/2),zr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(i.getBoundingRect()),v=m(a.getBoundingRect()),c=[i.x,i.y],p=[a.x,a.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||G(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}i.setPosition(c),a.setPosition(p),i.rotation=a.rotation=t.rotation,y(i),y(a);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,C){S[b]+=x[b][C]-w[b][C]}},e.prototype._createAxis=function(t,n){var i=n.getData(),a=n.get("axisType"),o=TF(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new wF("value",o,t.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new it;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new ie({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:O({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new ie({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],T(l,function(u){var f=i.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:W(o._changeTimeline,o,u.value)},g=l_(h,v,n,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),dn(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],T(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new dt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:W(o._changeTimeline,o,h),silent:!1,style:Et(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Et(p),y.ensureState("progress").style=Et(d),n.add(y),dn(y),s_(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,n,i,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),h=a.get("inverse",!0);v(t.nextBtnPosition,"next",W(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",W(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(c){var y=er(j(a.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=AF(a,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),dn(_)}}},e.prototype._renderCurrentPointer=function(t,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=W(u._handlePointerDrag,u),h.ondragend=W(u._handlePointerDragend,u),u_(h,u._progressLine,s,i,a,!0)},onUpdate:function(h){u_(h,u._progressLine,s,i,a)}};this._currentPointer=l_(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var i=this._toAxisCoord(t)[0],a=this._axis,o=gr(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ut);const Kc=EF;var Wi=ht,jc=T,Ks=it,kF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Ks),this.group.add(this._selectorGroup=new Ks),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,i,l,s,u);var f=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=t.get("padding"),c=ue(f,h,v),p=this.layoutInner(t,o,c,a,l,u),d=ue(q({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=MT(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this.getContentGroup(),f=$(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),jc(n.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d==="\n")){var g=new Ks;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,d,p,c,n,t,_,w,S,h,a);x.on("click",Wi(h_,d,null,a,v)).on("mouseover",Wi(Jc,y.name,null,a,v)).on("mouseout",Wi(Qc,y.name,null,a,v)),i.ssr&&x.eachChild(function(b){var C=nt(b);C.seriesIndex=y.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),f.set(d,!0)}else i.eachRawSeries(function(b){if(!f.get(d)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),M=C.getItemVisual(A,"style"),D=C.getItemVisual(A,"legendIcon"),L=ae(M.fill);L&&L[3]===0&&(L[3]=.2,M=O(O({},M),{fill:Qe(L,"rgba")}));var P=this._createItem(b,d,p,c,n,t,{},M,D,h,a);P.on("click",Wi(h_,null,d,a,v)).on("mouseover",Wi(Jc,null,d,a,v)).on("mouseout",Wi(Qc,null,d,a,v)),i.ssr&&P.eachChild(function(I){var R=nt(I);R.seriesIndex=b.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();jc(t,function(u){var f=u.type,h=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);$r(h,{normal:v,emphasis:c},{defaultText:u.title}),dn(h)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=OF(f,a,l,u,c,g,v),w=new Ks,x=a.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(BF({itemWidth:p,itemHeight:d,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,A=s,M=o.get("formatter"),D=n;G(M)&&M?D=M.replace("{name}",n!=null?n:""):K(M)&&(D=M(n));var L=g?x.getTextColor():a.get("inactiveColor");w.add(new dt({style:Et(x,{text:D,x:C,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var P=new pt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&bi({el:P,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(P),w.eachChild(function(R){R.silent=!0}),P.silent=!h,this.getContentGroup().add(w),dn(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ci(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ci("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(At);function OF(r,e,t,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),jc(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Gl(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:t).opacity),s(u,n);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function BF(r){var e=r.icon||"roundRect",t=te(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function h_(r,e,t,n){Qc(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Jc(r,e,t,n)}function BT(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,i=e.length;ni[o],g=[-c.x,-c.y];n||(g[a]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=j(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-p[o]:y[a]+=p[o]+_}m[1-a]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=d?i[o]:c[o],w[s]=Math.max(c[s],p[s]),w[l]=Math.min(0,p[l]+m[1-a]),h.__rectSize=i[o],d){var x={x:0,y:0};x[o]=Math.max(i[o]-p[o]-_,0),x[s]=w[s],h.setClipPath(new pt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&It(f,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),w},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=Mh[o],l=Dh[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n!=null?n:a},e.type="legend.scroll",e}(NT);const HF=GF;function WF(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function $F(r){Wt(zT),r.registerComponentModel(FF),r.registerComponentView(HF),WF(r)}function YF(r){Wt(zT),Wt($F)}var UF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=An($o.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}($o);const XF=UF;var Jp=St();function ZF(r,e,t){Jp(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function qF(r,e){for(var t=Jp(r).coordSysRecordMap,n=t.keys(),i=0;in[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function tG(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Jp(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=$());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=TT(a);T(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,KF(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=$());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){VT(i,a);return}var f=QF(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),es(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var eG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),ZF(i,t,{pan:W(Lh.pan,this),zoom:W(Lh.zoom,this),scrollMove:W(Lh.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){qF(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Xp),Lh={zoom:function(r,e,t,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Ph[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ci(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:d_(function(r,e,t,n,i,a){var o=Ph[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:d_(function(r,e,t,n,i,a){var o=Ph[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function d_(r){return function(e,t,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,i);if(Ci(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Ph={grid:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,n,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const rG=eG;function nG(r){Zp(r),r.registerComponentModel(XF),r.registerComponentView(rG),tG(r)}var iG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=An($o.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}($o);const aG=iG;var Ka=pt,g_=7,oG=1,Ih=30,sG=7,ja="horizontal",y_="vertical",lG=5,uG=["line","bar","candlestick","scatter"],fG={easing:"cubicOut",duration:100,delay:0},hG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(t,n,i,a){if(r.prototype.render.apply(this,arguments),es(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bo(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,i=t.get("brushSelect"),a=i?sG:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ja?{right:s.width-o.x-o.width,top:s.height-Ih-g_-a,width:o.width,height:Ih}:{right:g_,top:o.y,width:Ih,height:o.height},u=xa(t.option);T(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ue(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===y_&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ja&&!o?{scaleY:l?1:-1,scaleX:1}:i===ja&&o?{scaleY:l?1:-1,scaleX:-1}:i===y_&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new Ka({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ka({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(A,M){if(_>0&&M%_){m+=y;return}var D=A==null||isNaN(A)||A==="",L=D?0:wt(A,h,c,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function x(A){var M=w.getModel(A?"selectedDataBackground":"dataBackground"),D=new it,L=new br({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Ge({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(P),D}for(var b=0;b<3;b++){var C=x(b===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!i&&!(n!==!0&&st(uG,u.get("type"))<0)){var f=a.getComponent(vn(o),s).axis,h=cG(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=n.filler=new Ka({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Ka({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:oG,fill:"rgba(0,0,0,0)"}})),T([0,1],function(_){var S=l.get("handleIcon");!zl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=te(S,-1,0,2,2,null,!0);w.attr({cursor:m_(this._orient),draggable:!0,drift:W(this._onDragMove,this,_),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=et(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),dn(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(i[_]=w);var A=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;t.add(a[_]=new dt({silent:!0,invisible:!D,style:Et(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var p=et(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=te(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=n.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:m_(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[wt(t[0],[0,100],n,!0),wt(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ci(n,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?wt(s.minSpan,l,o,!0):null,s.maxSpan!=null?wt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=gr([wt(a[0],o,l,!0),wt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,i=this._handleEnds,a=gr(i.slice()),o=this._size;T([0,1],function(c){var p=n.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[c]+(c?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;fn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,i=t.offsetY;this._brushStart=new rt(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=gr([wt(i.x,o,s,!0),wt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Nr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Ka({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?fG:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=TT(this.dataZoomModel).infoList;if(!t&&n.length){var i=n[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Xp);function cG(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function m_(r){return r==="vertical"?"ns-resize":"ew-resize"}const vG=hG;function pG(r){r.registerComponentModel(aG),r.registerComponentView(vG),Zp(r)}function dG(r){Wt(nG),Wt(pG)}var gG={get:function(r,e,t){var n=Z((yG[r]||{})[e]);return t&&z(n)?n[n.length-1]:n}},yG={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const FT=gG;var __=me.mapVisual,mG=me.eachVisual,_G=z,S_=T,SG=gr,xG=wt,wG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&cF(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=W(t,this),this.controllerVisuals=a_(this.option.controller,n,t),this.targetVisuals=a_(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ct(t),n},e.prototype.eachTargetSeries=function(t,n){T(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(n,a)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(i){i===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=n?t:u?[h(t[0]),h(t[1])]:h(t);if(G(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+f[1]:t[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=SG([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Q(a,i),Q(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(h){_G(n.color)&&!h.inRange&&(h.inRange={color:n.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},S_(p,function(g,y){if(me.isValidType(y)){var m=FT.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";S_(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&Z(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&Z(c)||(s?m[0]:[m[0],m[0]])),_.symbol=__(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;mG(S,function(x){x>w&&(w=x)}),_.symbolSize=__(S,function(x){return xG(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ut);const tu=wG;var x_=[20,140],bG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=x_[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=x_[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):z(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=gr((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]=i[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(t){var n=w_(this,"outOfRange",this.getExtent()),i=w_(this,"inRange",this.option.range.slice()),a=[];function o(c,p){a.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=i.length,f=n.length;lt[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(t,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,i=this.visualMapModel.get("inverse");return new it(n==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);AG([0,1],function(h){var v=o[h];v.setStyle("fill",n.handlesColor[h]),v.y=t[h];var c=hr(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(c,"symbolSize");v.scaleX=v.scaleY=p/l[0],v.x=l[0]-p/2;var d=tr(i.handleLabelPoints[h],gn(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[h].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=hr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=tr(f.indicatorLabelPoint,gn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:g,y:d,style:{fill:c}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(b,A),_.animateTo(C,A)}else h.attr(b),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(h[1]=1/0),n&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(n||A_(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=NM(v,c);this._dispatchHighDown("downplay",dl(p[0],i)),this._dispatchHighDown("highlight",dl(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(oi(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function OG(r,e,t,n){for(var i=e.targetVisuals[n],a=me.prepareVisualTypes(i),o={color:Yx(r.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(RG,EG),T(kG,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(BG))}function NG(r){r.registerComponentModel(TG),r.registerComponentView(IG),WT(r)}var zG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],VG[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Z(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=V(this._pieceList,function(l){return l=Z(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},i=me.listVisualTypes(),a=this.isCategory();T(t.pieces,function(s){T(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),T(n,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=FT.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var i=this.option,a=this._pieceList,o=(n?i:t).selected||{};if(i.selected=o,T(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;T(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Z(t)},e.prototype.getValueState=function(t){var n=me.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=me.findPieceIndex(l,i);f===t&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var i=t.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,h){var v=a.getRepresentValue({interval:f});h||(h=a.getValueState(v));var c=t(v,h);f[0]===-1/0?i[0]=c:f[1]===1/0?i[1]=c:n.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=An(tu.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(tu),VG={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function P_(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const FG=zG;var GG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),h=f.endsText,v=Br(n.get("showLabel",!0),!h),c=!n.get("selectedMode");h&&this._renderEndsText(t,h[0],u,v,l),T(f.viewPieceList,function(p){var d=p.piece,g=new it;g.onclick=W(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=n.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],c),v){var m=this.visualMapModel.getValueState(y);g.add(new dt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:c}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,v,l),ci(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:dl(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return HT(t,this.api,t.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,n,i,a,o){if(n){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Et(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=V(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(t,n,i,a){var o=te(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Z(i.selected),s=n.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(GT);const HG=GG;function WG(r){r.registerComponentModel(FG),r.registerComponentView(HG),WT(r)}function $G(r){Wt(NG),Wt(WG)}var YG={label:{enabled:!0},decal:{show:!1}},I_=St(),UG={};function XG(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Z(YG);Q(n.label,r.getLocaleModel().get("aria"),!1),Q(t.option,n,!1),i(),a();function i(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=$();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),I_(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Pg(v.ecModel,v.name,UG,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=I_(v).scope;c.each(function(w){var x=c.getRawIndex(w);d[x]=w});var y=p.count();p.each(function(w){var x=d[w],b=p.getName(w)||w+"",C=Pg(v.ecModel,b,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,C))})}function S(w,x){var b=w?O(O({},x),w):x;return b.dirty=!0,b}})}}function a(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=q(h.option,f),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(C,A){if(A1?h.get(["series","multiple",L]):h.get(["series","single",L]),M=o(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>c){var I=h.get(["data","partialData"]);M+=o(I,{displayCnt:c})}else M+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),F=h.get(["data","excludeDimensionId"]),B=[],N=0;N=qn:-u>=qn),c=u>0?u%qn:u%qn+qn,p=!1;v?p=!0:un(h)?p=!1:p=c>=$T==!!f;var d=e+n*kh(o),g=t+i*Eh(o);this._start&&this._add("M",d,g);var y=Math.round(a*KG);if(v){var m=1/this._p,_=(f?1:-1)*(qn-m);this._add("A",n,i,y,1,+f,e+n*kh(o+_),t+i*Eh(o+_)),m>.01&&this._add("A",n,i,y,0,+f,d,g)}else{var S=e+n*kh(s),w=t+i*Eh(s);this._add("A",n,i,y,+p,+f,S,w)}},r.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,i,a,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function o3(r){return""}function Qp(r,e){e=e||{};var t=e.newline?"\n":"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return a3(o,s)+(o!=="style"?Ht(l):l||"")+(a?""+t+V(a,function(u){return n(u)}).join(t)+t:"")+o3(o)}return n(r)}function s3(r,e,t){t=t||{};var n=t.newline?"\n":"",i=" {"+n,a=n+"}",o=V(at(r),function(l){return l+i+V(at(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=V(at(e),function(l){return"@keyframes "+l+i+V(at(e[l]),function(u){return u+i+V(at(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function ev(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function E_(r,e,t,n){return Bt("svg","root",{width:r,height:e,xmlns:UT,"xmlns:xlink":XT,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var l3=0;function qT(){return l3++}var k_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Jn="transform-origin";function u3(r,e,t){var n=O({},r.shape);O(n,e),r.buildPath(t,n);var i=new YT;return i.reset(M1(r)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function f3(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Jn]=t+"px "+n+"px")}var h3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KT(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function c3(r,e,t){var n=r.shape.paths,i={},a,o;if(T(n,function(l){var u=ev(t.zrId);u.animation=!0,Uu(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=at(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];i[d]=i[d]||{d:""},i[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){e.d=!1;var s=KT(i,t);return a.replace(o,s)}}function O_(r){return G(r)?k_[r]?"cubic-bezier("+k_[r]+")":dv(r)?r:"":""}function Uu(r,e,t,n){var i=r.animators,a=i.length,o=[];if(r instanceof yu){var s=c3(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var he=KT(b,t);return he+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+qT();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function v3(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};B_(n,e,t,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=Cl(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),B_(n,e,t,!0)}}function B_(r,e,t,n){var i=JSON.stringify(r),a=t.cssStyleCache[i];a||(a=t.zrId+"-cls-"+qT(),t.cssStyleCache[i]=a,t.cssNodes["."+a+(n?":hover":"")]=r),e.class=e.class?e.class+" "+a:a}var Yo=Math.round;function jT(r){return r&&G(r.src)}function JT(r){return r&&K(r.toDataURL)}function td(r,e,t,n){r3(function(i,a){var o=i==="fill"||i==="stroke";o&&A1(a)?tC(e,r,i,n):o&&yv(a)?eC(t,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},e,t,!1),S3(t,r,n)}function ed(r,e){var t=N1(e);t&&(t.each(function(n,i){n!=null&&(r[(R_+i).toLowerCase()]=n+"")}),e.isSilent()&&(r[R_+"silent"]="true"))}function N_(r){return un(r[0]-1)&&un(r[1])&&un(r[2])&&un(r[3]-1)}function p3(r){return un(r[4])&&un(r[5])}function rd(r,e,t){if(e&&!(p3(e)&&N_(e))){var n=t?10:1e4;r.transform=N_(e)?"translate("+Yo(e[4]*n)/n+" "+Yo(e[5]*n)/n+")":BA(e)}}function z_(r,e,t){for(var n=r.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";le(v,g),le(c,g)}else if(v==null||c==null){var y=function(M,D){if(M){var L=M.elm,P=v||D.width,I=c||D.height;M.tag==="pattern"&&(u?(I=1,P/=a.width):f&&(P=1,I/=a.height)),M.attrs.width=P,M.attrs.height=I,L&&(L.setAttribute("width",P),L.setAttribute("height",I))}},m=Mv(p,null,r,function(M){l||y(x,M),y(h,M)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=Bt("image","img",{href:p,width:v,height:c}),o.width=v,o.height=c}else i.svgElement&&(h=Z(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=D1(i);w&&(o.patternTransform=w);var x=Bt("pattern","",o,[h]),b=Qp(x),C=n.patternCache,A=C[b];A||(A=n.zrId+"-p"+n.patternIdx++,C[b]=A,o.id=A,x=n.defs[A]=Bt("pattern",A,o,[h])),e[t]=ou(A)}}function x3(r,e,t){var n=t.clipPathCache,i=t.defs,a=n[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Bt("clipPath",a,o,[QT(r,t)])}e["clip-path"]=ou(a)}function G_(r){return document.createTextNode(r)}function ei(r,e,t){r.insertBefore(e,t)}function H_(r,e){r.removeChild(e)}function W_(r,e){r.appendChild(e)}function rC(r){return r.parentNode}function nC(r){return r.nextSibling}function Oh(r,e){r.textContent=e}var $_=58,w3=120,b3=Bt("","");function rv(r){return r===void 0}function cr(r){return r!==void 0}function T3(r,e,t){for(var n={},i=e;i<=t;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function oo(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function Uo(r){var e,t=r.children,n=r.tag;if(cr(n)){var i=r.elm=ZT(n);if(nd(b3,r),z(t))for(e=0;ea?(p=t[l+1]==null?null:t[l+1].elm,iC(r,p,t,i,l)):eu(r,e,n,a))}function Zi(r,e){var t=e.elm=r.elm,n=r.children,i=e.children;r!==e&&(nd(r,e),rv(e.text)?cr(n)&&cr(i)?n!==i&&C3(t,n,i):cr(i)?(cr(r.text)&&Oh(t,""),iC(t,null,i,0,i.length-1)):cr(n)?eu(t,n,0,n.length-1):cr(r.text)&&Oh(t,""):r.text!==e.text&&(cr(n)&&eu(t,n,0,n.length-1),Oh(t,e.text)))}function A3(r,e){if(oo(r,e))Zi(r,e);else{var t=r.elm,n=rC(t);Uo(e),n!==null&&(ei(n,e.elm,nC(t)),eu(n,[r],0,0))}return e}var M3=0,D3=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=Y_(),this.configLayer=Y_(),this.storage=t,this._opts=n=O({},n),this.root=e,this._id="zr"+M3++,this._oldVNode=E_(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=ZT("svg");nd(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",A3(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return F_(e,ev(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=ev(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=L3(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Bt("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=V(at(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(Bt("defs","defs",{},u)),e.animation){var f=s3(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Bt("style","stl",{},[],f);o.push(h)}}return E_(n,i,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Qp(this.renderToVNode({animation:j(e.cssAnimation,!0),emphasis:j(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:j(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=a[o-1];for(var y=d+1;y({darkTheme:R3,appTheme:E3,appThemeList:k3}),getters:{getDarkTheme(){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeList(){return this.appThemeList}},actions:{}});function B3(){const r=O3(),e=ji(()=>r.darkTheme),t=ji(()=>r.appTheme),n=ji(()=>r.appThemeList);return{getDarkTheme:e,getAppTheme:t,getAppThemeList:n}}var aC=(r=>(r[r.XS=480]="XS",r[r.SM=576]="SM",r[r.MD=768]="MD",r[r.LG=992]="LG",r[r.XL=1200]="XL",r[r.XXL=1600]="XXL",r))(aC||{});const Ca=new Map;Ca.set("XS",480);Ca.set("SM",576);Ca.set("MD",768);Ca.set("LG",992);Ca.set("XL",1200);Ca.set("XXL",1600);let N3,z3,V3;function F3(){return{screenRef:ji(()=>on(N3)),widthRef:z3,screenEnum:aC,realWidthRef:V3}}function W3(r,e="default"){const{getDarkTheme:t}=B3(),n=ji(()=>{const p=t.value?"dark":"light";return e==="default"?p:e});let i=null,a=h;const o=gl({});let s=()=>{};a=X_(h,200);const l=ji(()=>n.value!=="dark"?o.value:{backgroundColor:"transparent",...o.value});function u(p=e){const d=on(r);if(!d||!on(d))return;i=Zy.init(d,p);const{removeEvent:g}=vC({el:window,name:"resize",listener:a});s=g;const{widthRef:y,screenEnum:m}=F3();(on(y)<=m.MD||d.offsetHeight===0)&&Zu(()=>{a()},30)}function f(p,d=!0){var g;if(o.value=p,((g=on(r))==null?void 0:g.offsetHeight)===0){Zu(()=>{f(on(l))},30);return}uC(()=>{Zu(()=>{!i&&(u(n.value),!i)||(d&&(i==null||i.clear()),i==null||i.setOption(on(l)))},30)})}function h(){i==null||i.resize()}nv(()=>n.value,p=>{i&&(i.dispose(),u(p),f(o.value))}),U_(c);function v(){return i||u(n.value),i}function c(){i&&(s(),i.dispose(),i=null)}return{setOptions:f,resize:h,echarts:Zy,getInstance:v,disposeInstance:c}}export{W3 as u};