!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).zrender={})}(this,function(t){"use strict";var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},h=new function(){this.browser=new e,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(h.wxa=!0,h.canvasSupported=!0,h.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(h.worker=!0,h.canvasSupported=!0):"undefined"==typeof navigator?(h.node=!0,h.canvasSupported=!0,h.svgSupported=!0):function(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]);n&&(r.ie=!0,r.version=n[1]);o&&(r.edge=!0,r.version=o[1],r.newEdge=18<+o[1].split(".")[0]);a&&(r.weChat=!0);e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&11<=+r.version),e.domSupported="undefined"!=typeof document}(navigator.userAgent,h);var s={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},l={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},u=Object.prototype.toString,r=Array.prototype,a=r.forEach,p=r.filter,n=r.slice,c=r.map,i=function(){}.constructor,o=i?i.prototype:null,f={};var d=2311;function y(){return d++}function g(){for(var t=[],e=0;e>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[h]+":0",n[l]+":0",i[1-h]+":auto",n[1-l]+":auto",""].join("!important;"),t.appendChild(a),r.push(a)}return r}(e,o),o,n);if(a)return a(t,r,i),1}}function At(t){return"CANVAS"===t.nodeName.toUpperCase()}var Pt="undefined"!=typeof window&&!!window.addEventListener,Dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mt=[];function Lt(t,e,r,i){return r=r||{},i||!h.canvasSupported?Rt(t,e,r):h.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):Rt(t,e,r),r}function Rt(t,e,r){if(h.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(At(t)){var o=t.getBoundingClientRect();return r.zrX=i-o.left,void(r.zrY=n-o.top)}if(Ct(Mt,t,i,n))return r.zrX=Mt[0],void(r.zrY=Mt[1])}r.zrX=r.zrY=0}function zt(t){return t||window.event}function It(t,e,r){if(null!=(e=zt(e)).zrX)return e;var i,n,o=e.type;o&&0<=o.indexOf("touch")?(i="touchend"!==o?e.targetTouches[0]:e.changedTouches[0])&&Lt(t,i,e,r):(Lt(t,e,e,r),n=function(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;return null!=r&&null!=i?3*(0!==i?Math.abs(i):Math.abs(r))*(0i.getWidth()||r<0||r>i.getHeight()}function Qt(){return[1,0,0,1,0,0]}function $t(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function te(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],o=e[0]*r[2]+e[2]*r[3],a=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],h=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=h,t}function ee(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function re(t,e,r){var i=e[0],n=e[2],o=e[4],a=e[1],s=e[3],h=e[5],l=Math.sin(r),u=Math.cos(r);return t[0]=i*u+a*l,t[1]=-i*l+a*u,t[2]=n*u+s*l,t[3]=-n*l+u*s,t[4]=u*o+l*h,t[5]=u*h-l*o,t}function ie(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function ne(t,e){var r=e[0],i=e[2],n=e[4],o=e[1],a=e[3],s=e[5],h=r*a-o*i;return h?(h=1/h,t[0]=a*h,t[1]=-o*h,t[2]=-i*h,t[3]=r*h,t[4]=(i*s-a*n)*h,t[5]=(o*n-r*s)*h,t):null}k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){Vt.prototype[a]=function(t){var e,r,i=t.zrX,n=t.zrY,o=Kt(this,i,n);if("mouseup"===a&&o||(r=(e=this.findHover(i,n)).target),"mousedown"===a)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===a)this._upEl=r;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4=this._maxSize&&0>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,5===o?parseInt(i.slice(4),16)/15:1),Ie(t,e),e):void Me(e,0,0,0,1):7===o||9===o?0<=(n=parseInt(i.slice(1,7),16))&&n<=16777215?(Me(e,(16711680&n)>>16,(65280&n)>>8,255&n,9===o?parseInt(i.slice(7),16)/255:1),Ie(t,e),e):void Me(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var h=i.substr(0,a),l=i.substr(a+1,s-(a+1)).split(","),u=1;switch(h){case"rgba":if(4!==l.length)return 3===l.length?Me(e,+l[0],+l[1],+l[2],1):Me(e,0,0,0,1);u=Ae(l.pop());case"rgb":return 3!==l.length?void Me(e,0,0,0,1):(Me(e,Ce(l[0]),Ce(l[1]),Ce(l[2]),u),Ie(t,e),e);case"hsla":return 4!==l.length?void Me(e,0,0,0,1):(l[3]=Ae(l[3]),Be(l,e),Ie(t,e),e);case"hsl":return 3!==l.length?void Me(e,0,0,0,1):(Be(l,e),Ie(t,e),e);default:return}}Me(e,0,0,0,1)}}function Be(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ae(t[1]),n=Ae(t[2]),o=n<=.5?n*(i+1):n+i-n*i,a=2*n-o;return Me(e=e||[],Se(255*Pe(a,o,r+1/3)),Se(255*Pe(a,o,r)),Se(255*Pe(a,o,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ee(t){var e=Oe(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Fe(t,e,r){if(e&&e.length&&0<=t&&t<=1){r=r||[];var i=t*(e.length-1),n=Math.floor(i),o=Math.ceil(i),a=e[n],s=e[o],h=i-n;return r[0]=Se(De(a[0],s[0],h)),r[1]=Se(De(a[1],s[1],h)),r[2]=Se(De(a[2],s[2],h)),r[3]=Te(De(a[3],s[3],h)),r}}function He(t,e,r){if(e&&e.length&&0<=t&&t<=1){var i=t*(e.length-1),n=Math.floor(i),o=Math.ceil(i),a=Oe(e[n]),s=Oe(e[o]),h=i-n,l=Ne([Se(De(a[0],s[0],h)),Se(De(a[1],s[1],h)),Se(De(a[2],s[2],h)),Te(De(a[3],s[3],h))],"rgba");return r?{color:l,leftIndex:n,rightIndex:o,value:i}:l}}function Ne(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}}function We(t,e){var r=Oe(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Xe=Object.freeze({__proto__:null,parse:Oe,lift:function(t,e){var r=Oe(t);if(r){for(var i=0;i<3;i++)r[i]=e<0?r[i]*(1-e)|0:(255-r[i])*e+r[i]|0,255=this.maxTime?this.maxTime=t:this._needsSort=!0;var r,i=this.keyframes,n=i.length;if(this.interpolable)if(M(e)){var o,a=M((r=e)&&r[0])?2:1;if(0e);l++);l=Math.min(l-1,o-2)}var u,p,c,f,d,y,g,v,_,m,x=n[l+1],w=n[l];w&&x&&(this._lastFrame=l,this._lastFramePercent=e,0!=(u=x.percent-w.percent)&&(p=(e-w.percent)/u,c=r?this._additiveValue:h?Je:t[a],(0=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},yr.prototype.clone=function(){return new yr(this.x,this.y,this.width,this.height)},yr.prototype.copy=function(t){yr.copy(this,t)},yr.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},yr.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},yr.prototype.isZero=function(){return 0===this.width||0===this.height},yr.create=function(t){return new yr(t.x,t.y,t.width,t.height)},yr.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},yr.applyTransform=function(t,e,r){if(r){if(r[1]<1e-5&&-1e-5>>1])<0?h=o:s=1+o;var l=i-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);o(t,e[r+u])<0?h=u:a=u+1}return h}function Ur(d,y){var a,s,g=Xr,h=0,v=(d.length,[]);function e(t){var e=a[t],r=s[t],i=a[t+1],n=s[t+1];s[t]=r+n,t===h-3&&(a[t+1]=a[t+2],s[t+1]=s[t+2]),h--;var o=qr(d[i],d,e,r,0,y);e+=o,0!=(r-=o)&&0!==(n=Gr(d[e+r-1],d,i,n,n-1,y))&&(r<=n?function(t,e,r,i){var n=0;for(n=0;ns[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(n);do{(o=jr(t,r,i,e))this._sleepAfterStill&&this.animation.stop())},Ri.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Ri.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Ri.prototype.addHover=function(t){},Ri.prototype.removeHover=function(t){},Ri.prototype.clearHover=function(){},Ri.prototype.refreshHover=function(){this._needsRefreshHover=!0},Ri.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},Ri.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},Ri.prototype.clearAnimation=function(){this.animation.clear()},Ri.prototype.getWidth=function(){return this.painter.getWidth()},Ri.prototype.getHeight=function(){return this.painter.getHeight()},Ri.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},Ri.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Ri.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Ri.prototype.on=function(t,e,r){return this.handler.on(t,e,r),this},Ri.prototype.off=function(t,e){this.handler.off(t,e)},Ri.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Ri.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;ethis._ux||zn(e-this._yi)>this._uy||this._len<5;return this.addData(wn.L,t,e),this._ctx&&r&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r&&(this._xi=t,this._yi=e),this},Xn.prototype.bezierCurveTo=function(t,e,r,i,n,o){return this.addData(wn.C,t,e,r,i,n,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,r,i,n,o):this._ctx.bezierCurveTo(t,e,r,i,n,o)),this._xi=n,this._yi=o,this},Xn.prototype.quadraticCurveTo=function(t,e,r,i){return this.addData(wn.Q,t,e,r,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,r,i):this._ctx.quadraticCurveTo(t,e,r,i)),this._xi=r,this._yi=i,this},Xn.prototype.arc=function(t,e,r,i,n,o){En[0]=i,En[1]=n,Hn(En,o),i=En[0];var a=(n=En[1])-i;return this.addData(wn.A,t,e,r,r,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,r,i,n,o),this._xi=Mn(n)*r+t,this._yi=Ln(n)*r+e,this},Xn.prototype.arcTo=function(t,e,r,i,n){return this._ctx&&this._ctx.arcTo(t,e,r,i,n),this},Xn.prototype.rect=function(t,e,r,i){return this._ctx&&this._ctx.rect(t,e,r,i),this.addData(wn.R,t,e,r,i),this},Xn.prototype.closePath=function(){this.addData(wn.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,r),t.closePath()),this._xi=e,this._yi=r,this},Xn.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Xn.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Xn.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,r=0;rl.length&&(this._expandData(),l=this.data);for(var u=0;ur||zn(g)>i||p===e-1)&&(d=Math.sqrt(D*D+g*g),n=y,o=m);break;case wn.C:var v=t[p++],_=t[p++],y=t[p++],m=t[p++],x=t[p++],w=t[p++],d=function(t,e,r,i,n,o,a,s,h){for(var l=t,u=e,p=0,c=1/h,f=1;f<=h;f++){var d=f*c,y=en(t,r,n,a,d),g=en(e,i,o,s,d),v=y-l,_=g-u;p+=Math.sqrt(v*v+_*_),l=y,u=g}return p}(n,o,v,_,y,m,x,w,10),n=x,o=w;break;case wn.Q:d=function(t,e,r,i,n,o,a){for(var s=t,h=e,l=0,u=1/a,p=1;p<=a;p++){var c=p*u,f=an(t,r,n,c),d=an(e,i,o,c),y=f-s,g=d-h;l+=Math.sqrt(y*y+g*g),s=f,h=d}return l}(n,o,v=t[p++],_=t[p++],y=t[p++],m=t[p++],10),n=y,o=m;break;case wn.A:var b=t[p++],k=t[p++],S=t[p++],T=t[p++],C=t[p++],A=t[p++],P=A+C;p+=1,t[p++],f&&(a=Mn(C)*S+b,s=Ln(C)*T+k),d=Dn(S,T)*Pn(On,Math.abs(A)),n=Mn(P)*S+b,o=Ln(P)*T+k;break;case wn.R:a=n=t[p++],s=o=t[p++],d=2*t[p++]+2*t[p++];break;case wn.Z:var D=a-n,g=s-o;d=Math.sqrt(D*D+g*g),n=a,o=s}0<=d&&(l+=h[u++]=d)}return this._pathLen=l},Xn.prototype.rebuildPath=function(t,e){var r,i,n,o,a,s,h,l,u=this.data,p=this._ux,c=this._uy,f=this._len,d=e<1,y=0,g=0;if(!d||(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,l=e*this._pathLen))t:for(var v=0;vp||zn(s-o)>c||v===f-1){if(d){if(l=Jn[i=0]+t&&a<=Jn[1]+t?p:0}nMath.PI/2&&d<1.5*Math.PI&&(p=-p),c+=p))}return c}(v,_,x,w,w+b,k,C,n);u=Math.cos(w+b)*m+v,p=Math.sin(w+b)*x+_;break;case Kn.R:c=u=s[d++],f=p=s[d++];if(S=c+s[d++],T=f+s[d++],r){if(jn(c,f,S,f,e,i,n)||jn(S,f,S,T,e,i,n)||jn(S,T,c,T,e,i,n)||jn(c,T,c,f,e,i,n))return!0}else l+=Zn(S,f,S,T,i,n),l+=Zn(c,T,c,f,i,n);break;case Kn.Z:if(r){if(jn(u,p,c,f,e,i,n))return!0}else l+=Zn(u,p,c,f,i,n);u=c,p=f}}return r||(o=p,a=f,Math.abs(o-a)<$n)||(l+=Zn(u,p,c,f,i,n)||0),0!==l}var no,oo,ao=x({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Oi),so={style:x({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Bi.style)},ho=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],lo=(J(uo,no=Ni),uo.prototype.update=function(){var e=this;no.prototype.update.call(this);var t=this.style;if(t.decal){var r=this._decalEl=this._decalEl||new uo;r.buildPath===uo.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var i=r.style;for(var n in t)i[n]!==t[n]&&(i[n]=t[n]);i.fill=t.fill?t.decal:null,i.decal=null,i.shadowColor=null,t.strokeFirst&&(i.stroke=null);for(var o=0;o=e.maxIterations){t+=e.ellipsis;break}var a=0===o?function(t,e,r,i){for(var n=0,o=0,a=t.length;oo){0i.width&&(o=e.split("\n"),y=!0),i.accumWidth=l):(u=Ms(e,d,i.width,i.breakAll,i.accumWidth),i.accumWidth=u.accumWidth+h,a=u.linesWidths,o=u.lines)):o=e.split("\n");for(var g=0;gi.len()&&(l=c}}for(var o,a=this.__startIndex;an[0]){for(h=0;ht);h++);s=i[n[h]]}n.splice(h+1,0,t),(i[t]=e).virtual||(s?(r=s.dom).nextSibling?a.insertBefore(e.dom,r.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}else g("Layer of zlevel "+t+" is not valid")},Tl.prototype.eachLayer=function(t,e){for(var r=this._zlevelList,i=0;i=p&&c<=e+1){for(var r=[],i=0;i=p&&c<=o+1)return function(t){for(var e=0,r=t.length,i=0,n=0;e\n\r<"))},Su);function Su(t,e,r,i){this.type="svg",this.refreshHover=Tu("refreshHover"),this.pathToImage=Tu("pathToImage"),this.configLayer=Tu("configLayer"),this.root=t,this.storage=e,this._opts=r=m({},r||{});var n=Cl("svg");n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=Cl("g");n.appendChild(o);var a=Cl("g");n.appendChild(a),this._gradientManager=new eu(i,a),this._patternManager=new hu(i,a),this._clipPathManager=new cu(i,a),this._shadowManager=new yu(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=n,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(n),this.resize(r.width,r.height),this._visibleList=[]}function Tu(t){return function(){g('In SVG mode painter not support method "'+t+'"')}}zi("canvas",Sl),zi("svg",ku),t.Arc=Gs,t.BezierCurve=Qs,t.BoundingRect=dr,t.Circle=No,t.CompoundPath=ps,t.Droplet=eh,t.Element=Br,t.Ellipse=Qo,t.Group=Ci,t.Heart=oh,t.Image=Bo,t.IncrementalDisplayable=ys,t.Isogon=ch,t.Line=ra,t.LinearGradient=va,t.OrientedBoundingRect=qh,t.Path=lo,t.Pattern=Wh,t.Point=nr,t.Polygon=ha,t.Polyline=ca,t.RadialGradient=Hh,t.Rect=Uo,t.Ring=gh,t.Rose=kh,t.Sector=Qa,t.Star=Mh,t.TSpan=wa,t.Text=Is,t.Trochoid=Bh,t.color=Xe,t.dispose=function(t){t.dispose()},t.disposeAll=function(){for(var t in Mi)Mi.hasOwnProperty(t)&&Mi[t].dispose();Mi={}},t.getInstance=function(t){return Mi[t]},t.init=function(t,e){var r=new Li(y(),t,e);return Mi[r.id]=r},t.matrix=oe,t.morphPath=function(t,e,r){var i,n;if(!t||!e)return e;t.path||t.createPathProxy(),(i=t.path).beginPath(),t.buildPath(i,t.shape),e.path||e.createPathProxy(),(n=e.path)===i&&(n=new Wn(!1)),n.beginPath(),ls(e)?e.__oldBuildPath(n,e.shape):e.buildPath(n,e.shape);var o=ns(rs(i),rs(n)),a=as(o[0],o[1],10,Math.PI);!function(t,e,r){if(ls(t))return hs(t,e,r);var i=t;i.__oldBuildPath=i.buildPath,i.buildPath=ss,hs(i,e,r)}(e,a,0);var s=r&&r.done,h=r&&r.aborted,l=r&&r.during;return e.animateTo({__morphT:1},x({during:function(t){e.dirtyShape(),l&&l(t)},done:function(){var t;ls(t=e)&&(t.buildPath=t.__oldBuildPath,t.__oldBuildPath=t.__morphingData=null),e.createPathProxy(),e.dirtyShape(),s&&s()},aborted:function(){h&&h()}},r)),e},t.parseSVG=function(t,e){return(new Ta).parse(t,e)},t.path=Ro,t.registerPainter=zi,t.showDebugDirtyRect=function(t,n){n=n||{};var e=t.painter;if(!e.getLayers)throw new Error("Debug dirty rect can only been used on canvas renderer.");if(e.isSingleCanvas())throw new Error("Debug dirty rect can only been used on zrender inited with container.");var o=document.createElement("div");o.style.cssText="\nposition:absolute;\nleft:0;\ntop:0;\nright:0;\nbottom:0;\npointer-events:none;\n",o.className="ec-debug-dirty-rect-container";var a=[],r=t.dom;r.appendChild(o),"static"===getComputedStyle(r).position&&(r.style.position="relative"),t.on("rendered",function(){if(e.getLayers){var i=0;e.eachBuiltinLayer(function(t){if(t.debugGetPaintRects)for(var e=t.debugGetPaintRects(),r=0;r