s&&(p=s-f);for(var g=0;gd&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);cf-d&&(l=f-d,s.length=l);for(var p=0;pc[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Kn(e[i],this._dimensions[i])}Rd={arrayRows:t,objectRows:function(e,a,n,i){return Kn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Kn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),t2=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(Af(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=yr(s)?qn:Mr,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=nt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=nt(c.sourceHeader,v.sourceHeader),p=nt(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[cy(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[cy(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&tx(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&tx(c),s.push(f),l.push(u._getVersionSign())}),a?o=K5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[P5(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var j=XN;function XN(r,t,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 jc(r,t,e)}function jc(r,t,e){return J(r)?ZN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),$M),r=(+r).toFixed(t),e?r:+r}function $r(r){return r.sort(function(t,e){return t-e}),r}function Da(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return qN(r)}function qN(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function UM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Ma(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function KN(r,t){var e=Ba(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Z(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Z(n,function(h){return Math.floor(h)}),s=Ba(o,function(h,d){return h+d},0),l=Z(n,function(h,d){return h-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Z(o,function(h){return h/a})}function jN(r,t){var e=Math.max(Da(r),Da(t)),a=r+t;return e>$M?a:_e(a,e)}var E1=9007199254740991;function YM(r){var t=Math.PI*2;return(r%t+t)%t}function hu(r){return r>-R1&&r=10&&t++,t}function ZM(r,t){var e=Gm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function od(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function O1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function sd(r){r.option=r.parentModel=r.ecModel=null}var mB=".",yi="___EC__COMPONENT__CONTAINER___",nD="___EC__EXTENDED_CLASS___";function La(r){var t={main:"",sub:""};if(r){var e=r.split(mB);t.main=e[0]||"",t.sub=e[1]||""}return t}function _B(r){er(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function SB(r){return!!(r&&r[nD])}function Wm(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return xB(a)?n=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},vO(n,this)),$(n.prototype,e),n[nD]=!0,n.extend=this.extend,n.superCall=TB,n.superApply=CB,n.superClass=a,n}}function xB(r){return lt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function iD(r,t){r.extend=t.extend}var bB=Math.round(Math.random()*10);function wB(r){var t=["__\0is_clz",bB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function TB(r,t){for(var e=[],a=2;a=0||i&&wt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var AB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],MB=go(AB),DB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return MB(this,t,e)},r}(),Wg=new Ms(50);function LB(r){if(typeof r=="string"){var t=Wg.get(r);return t&&t.image}else return r}function $m(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Wg.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!ah(t)&&i.pending.push(o)):(t=oa.loadImage(r,G1,G1),t.__zrImageSrc=r,Wg.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function G1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;u++)l-=s;var f=Na(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function sD(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Na(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?PB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Na(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function PB(r,t,e){for(var a=0,n=0,i=r.length;ng&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(n&&f&&p!=null)for(var S=oD(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;bd&&ud(i,o.substring(d,g),t,h),ud(i,p[2],t,h,p[1]),d=ld.lastIndex}dc){var z=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length0&&d+a.accumWidth>a.width&&(f=t.split(`
+`),u=!0),a.accumWidth=d}else{var p=lD(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(`
+`));for(var g=Oa(l),y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var BB=Ba(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function zB(r){return NB(r)?!!BB[r]:!0}function lD(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=Oa(t),v=0;ve:n+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function H1(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;gt.set(W1,Ds(e,o,n),no(a,s,i),o,s),gt.intersect(t,W1,null,$1);var l=$1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ds(l.x,l.width,n,!0),r.baseY=no(l.y,l.height,i,!0)}}var W1=new gt(0,0,0,0),$1={outIntersectRect:{},clamp:!0};function Um(r){return r!=null?r+="":r=""}function VB(r){var t=Um(r.text),e=r.font,a=Na(Oa(e),t),n=Gu(e);return $g(r,a,n,null)}function $g(r,t,e,a){var n=new gt(Ds(r.x||0,t,r.textAlign),no(r.y||0,e,r.textBaseline),t,e),i=a??(uD(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function uD(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Ug="__zr_style_"+Math.round(Math.random()*10),io={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};io[Ug]=!0;var U1=["z","z2","invisible"],GB=["invisible"],FB=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=kt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(hf[0]=hd(n)*e+r,hf[1]=vd(n)*a+t,df[0]=hd(i)*e+r,df[1]=vd(i)*a+t,u(s,hf,df),f(l,hf,df),n=n%mi,n<0&&(n=n+mi),i=i%mi,i<0&&(i=i+mi),n>i&&!o?i+=mi:nn&&(pf[0]=hd(h)*e+r,pf[1]=vd(h)*a+t,u(s,pf,s),f(l,pf,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_i=[],Si=[],da=[],bn=[],pa=[],ga=[],dd=Math.min,pd=Math.max,xi=Math.cos,bi=Math.sin,Za=Math.abs,Yg=Math.PI,kn=Yg*2,gd=typeof Float32Array<"u",ol=[];function yd(r){var t=Math.round(r/Yg*1e8)/1e8;return t%2*Yg}function oh(r,t){var e=yd(r[0]);e<0&&(e+=kn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=kn?n=e+kn:t&&e-n>=kn?n=e-kn:!t&&e>n?n=e+(kn-yd(e-n)):t&&e0&&(this._ux=Za(a/Xc/t)||0,this._uy=Za(a/Xc/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(jt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Za(t-this._xi),n=Za(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(jt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(jt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(jt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),ol[0]=n,ol[1]=i,oh(ol,o),n=ol[0],i=ol[1];var s=i-n;return this.addData(jt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=xi(i)*a+t,this._yi=bi(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(jt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&gd&&(this.data=new Float32Array(e));for(var a=0;a0&&o))for(var s=0;sf.length&&(this._expandData(),f=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){da[0]=da[1]=pa[0]=pa[1]=Number.MAX_VALUE,bn[0]=bn[1]=ga[0]=ga[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||Za(_)>n||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case jt.C:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++],b=t[v++],w=t[v++];p=QO(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case jt.Q:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++];p=eN(i,o,S,x,g,y,10),i=g,o=y;break}case jt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,d&&(s=xi(I)*M+T,l=bi(I)*D+C),p=pd(M,D)*dd(kn,Math.abs(L)),i=xi(P)*M+T,o=bi(P)*D+C;break;case jt.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],k=t[v++];p=R*2+k*2;break}case jt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b0&&(t.lineTo(S,x),_=0),w){case jt.M:s=u=a[b++],l=f=a[b++],t.moveTo(u,f);break;case jt.L:{c=a[b++],v=a[b++];var C=Za(c-u),M=Za(v-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+c*I,f*(1-I)+v*I);break t}g+=D}t.lineTo(c,v),u=c,f=v,_=0}else{var L=C*C+M*M;L>_&&(S=c,x=v,_=L)}break}case jt.C:{var P=a[b++],R=a[b++],k=a[b++],N=a[b++],E=a[b++],z=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Jn(u,P,k,E,I,_i),Jn(f,R,N,z,I,Si),t.bezierCurveTo(_i[1],Si[1],_i[2],Si[2],_i[3],Si[3]);break t}g+=D}t.bezierCurveTo(P,R,k,N,E,z),u=E,f=z;break}case jt.Q:{var P=a[b++],R=a[b++],k=a[b++],N=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;fu(u,P,k,I,_i),fu(f,R,N,I,Si),t.quadraticCurveTo(_i[1],Si[1],_i[2],Si[2]);break t}g+=D}t.quadraticCurveTo(P,R,k,N),u=k,f=N;break}case jt.A:var V=a[b++],H=a[b++],G=a[b++],Y=a[b++],X=a[b++],ot=a[b++],St=a[b++],Mt=!a[b++],st=G>Y?G:Y,et=Za(G-Y)>.001,it=X+ot,tt=!1;if(h){var D=d[y++];g+D>m&&(it=X+ot*(m-g)/D,tt=!0),g+=D}if(et&&t.ellipse?t.ellipse(V,H,G,Y,St,X,it,Mt):t.arc(V,H,st,X,it,Mt),tt)break t;T&&(s=xi(X)*G+V,l=bi(X)*Y+H),u=xi(it)*G+V,f=bi(it)*Y+H;break;case jt.R:s=u=a[b],l=f=a[b+1],c=a[b++],v=a[b++];var O=a[b++],W=a[b++];if(h){var D=d[y++];if(g+D>m){var q=m-g;t.moveTo(c,v),t.lineTo(c+dd(q,O),v),q-=O,q>0&&t.lineTo(c+O,v+dd(q,W)),q-=W,q>0&&t.lineTo(c+pd(O-q,0),v+W),q-=O,q>0&&t.lineTo(c,v+pd(W-q,0));break t}g+=D}t.rect(c,v,O,W);break;case jt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=jt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Ga=YB;function En(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||or+s&&i>e+s||it+c&&f>a+c&&f>i+c&&f>s+c||fr+c&&u>e+c&&u>n+c&&u>o+c||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=sl);var v=Math.atan2(l,s);return v<0&&(v+=sl),v>=a&&v<=n||v+sl>=a&&v+sl<=n}function tn(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var wn=Ga.CMD,wi=Math.PI*2,qB=1e-4;function KB(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&jB(),h=Ee(t,a,i,s,Br[0]),v>1&&(d=Ee(t,a,i,s,Br[1]))),v===2?g
t&&s>a&&s>i||s=0&&u<=1){for(var f=0,c=Fe(t,a,i,u),v=0;v