y&&(p=_.index,y=_[0].length);return y<0?g:`${g.substring(0,p)}::${g.substring(p+y)}`},d.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},d}(),h.IPv6.broadcastAddressFromCIDR=function(d){try{const m=this.parseCIDR(d),g=m[0].toByteArray(),p=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),y=[];let _=0;for(;_<16;)y.push(parseInt(g[_],10)|parseInt(p[_],10)^255),_++;return new this(y)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},h.IPv6.isIPv6=function(d){return this.parser(d)!==null},h.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{const m=this.parser(d);return new this(m.parts,m.zoneId),!0}catch(m){return!1}},h.IPv6.networkAddressFromCIDR=function(d){let m,g,p,y,_;try{for(m=this.parseCIDR(d),p=m[0].toByteArray(),_=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),y=[],g=0;g<16;)y.push(parseInt(p[g],10)&parseInt(_[g],10)),g++;return new this(y)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},h.IPv6.parse=function(d){const m=this.parser(d);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},h.IPv6.parseCIDR=function(d){let m,g,p;if((g=d.match(/^(.+)\/(\d+)$/))&&(m=parseInt(g[2]),m>=0&&m<=128))return p=[this.parse(g[1]),m],Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(d){let m,g,p,y,_,w;if(p=d.match(l.deprecatedTransitional))return this.parser(`::ffff:${p[1]}`);if(l.native.test(d))return u(d,8);if((p=d.match(l.transitional))&&(w=p[6]||"",m=u(p[1].slice(0,-1)+w,6),m.parts)){for(_=[parseInt(p[2]),parseInt(p[3]),parseInt(p[4]),parseInt(p[5])],g=0;g<_.length;g++)if(y=_[g],!(0<=y&&y<=255))return null;return m.parts.push(_[0]<<8|_[1]),m.parts.push(_[2]<<8|_[3]),{parts:m.parts,zoneId:m.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");const m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let g=0;const p=Math.floor(d/8);for(;gi[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var p=[0,0],y=[-d.x,-d.y],_=Dt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var w=r.get("pageButtonPosition",!0);w==="end"?y[a]+=i[o]-d[o]:p[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(p),v.setPosition(y);var S={x:0,y:0};if(S[o]=m?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],m){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=S[s],c.setClipPath(new Jt({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Tn(f,{x:x.contentPosition[0],y:x.contentPosition[1]},m?r:null),this._updatePageInfoView(r,x),S},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;P(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=wc[o],l=bc[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var m=w(c);d.contentPosition[o]=-m.s;for(var g=u+1,p=m,y=m,_=null;g<=v;++g)_=w(f[g]),(!_&&y.e>p.s+a||_&&!S(_,p.s))&&(y.i>p.i?p=y:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),y=_;for(var g=u-1,p=m,y=m,_=null;g>=-1;--g)_=w(f[g]),(!_||!S(y,_.s))&&p.i=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(r){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===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(sx),l5=s5;function u5(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function f5(e){mi(lx),e.registerComponentModel(o5),e.registerComponentView(l5),u5(e)}function wz(e){mi(lx),mi(f5)}var c5=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return lB(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new ve,i=wa("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=wa(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Qo),h5=c5;function ux(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=v5(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ct(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return es(t,c[0])&&(v=!0,c[0]=h),es(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function v5(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function fx(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function d5(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function p5(e,t,r,n,i,a,o,s){for(var l=d5(e,t),u=[],f=[],c=[],v=[],h=[],d=[],m=[],g=ux(i,t,o),p=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=i||m<0)break;if(ui(p,y)){if(l){m+=a;continue}break}if(m===r)e[a>0?"moveTo":"lineTo"](p,y),c=p,v=y;else{var _=p-u,w=y-f;if(_*_+w*w<.5){m+=a;continue}if(o>0){for(var S=m+a,b=t[S*2],x=t[S*2+1];b===p&&x===y&&g=n||ui(b,x))h=p,d=y;else{M=b-u,I=x-f;var O=p-u,H=b-p,B=y-f,Q=x-y,G=void 0,K=void 0;if(s==="x"){G=Math.abs(O),K=Math.abs(H);var lt=M>0?1:-1;h=p-lt*G*o,d=y,A=p+lt*K*o,L=y}else if(s==="y"){G=Math.abs(B),K=Math.abs(Q);var _t=I>0?1:-1;h=p,d=y-_t*G*o,A=p,L=y+_t*K*o}else G=Math.sqrt(O*O+B*B),K=Math.sqrt(H*H+Q*Q),D=K/(K+G),h=p-M*o*(1-D),d=y-I*o*(1-D),A=p+M*o*D,L=y+I*o*D,A=en(A,rn(b,p)),L=en(L,rn(x,y)),A=rn(A,en(b,p)),L=rn(L,en(x,y)),M=A-p,I=L-y,h=p-M*G/K,d=y-I*G/K,h=en(h,rn(u,p)),d=en(d,rn(f,y)),h=rn(h,en(u,p)),d=rn(d,en(f,y)),M=p-h,I=y-d,A=p+M*K/G,L=y+I*K/G}e.bezierCurveTo(c,v,h,d,p,y),c=A,v=L}else e.lineTo(p,y)}u=p,f=y,m+=a}return g}var cx=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),g5=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cx},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ui(i[o*2-2],i[o*2-1]);o--);for(;a=0){var w=u?(d-l)*_+l:(h-s)*_+s;return u?[r,w]:[w,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],m=a[c++],g=a[c++],p=a[c++],y=a[c++];var S=u?Hl(s,h,m,p,r,f):Hl(l,d,g,y,r,f);if(S>0)for(var b=0;b=0){var w=u?Xt(l,d,g,y,x):Xt(s,h,m,p,x);return u?[r,w]:[w,r]}}s=p,l=y;break}}},t}(kt),m5=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(cx),y5=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new m5},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ui(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function x5(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var l=t.getAxis(i),u=ct(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=S5(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,m=v[0].coord-d,g=v[h-1].coord+d,p=g-m;if(p<.001)return"transparent";P(v,function(_){_.offset=(_.coord-m)/p}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new Ww(0,0,0,0,v,!0);return y[i]=m,y[i+"2"]=g,y}}}function T5(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&C5(a,t))){var o=t.mapDimension(a.dim),s={};return P(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function C5(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function D5(e,t){return isNaN(e)||isNaN(t)}function M5(e){for(var t=e.length/2;t>0&&D5(e[t*2-2],e[t*2-1]);t--);return t-1}function L0(e,t){return[e[t*2],e[t*2+1]]}function A5(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function hx(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var lt=m.getState("emphasis").style;lt.lineWidth=+m.style.lineWidth+1}Bt(m).seriesIndex=r.seriesIndex,Sh(m,Q,G,K);var _t=E0(r.get("smooth")),mt=r.get("smoothMonotone");if(m.setShape({smooth:_t,smoothMonotone:mt,connectNulls:C}),g){var pt=l.getCalculationInfo("stackedOnSeries"),At=0;g.useStyle(Mt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),pt&&(At=E0(pt.get("smooth"))),g.setShape({smooth:_t,stackedOnSmooth:At,smoothMonotone:mt,connectNulls:C}),dm(g,r,"areaStyle"),Bt(g).seriesIndex=r.seriesIndex,Sh(g,Q,G,K)}var k=function(U){a._changePolyState(U)};l.eachItemGraphicEl(function(U){U&&(U.onHoverStateChange=k)}),this._polyline.onHoverStateChange=k,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=I,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Bt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=vi(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],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel"),h=r.get("z");u=new Gd(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else wn.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=vi(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 wn.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;um(this._polyline,r),n&&um(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new g5({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new y5({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,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=r.hostModel,f=u.get("animationDuration");dt(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=dt(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var m=h;if(m){var g=[h.x,h.y],p=void 0,y=void 0,_=void 0;if(i)if(o){var w=i,S=n.pointToCoord(g);a?(p=w.startAngle,y=w.endAngle,_=-S[1]/180*Math.PI):(p=w.r0,y=w.r,_=S[0])}else{var b=i;a?(p=b.x,y=b.x+b.width,_=h.x):(p=b.y+b.height,y=b.y,_=h.y)}var x=y===p?0:(_-p)/(y-p);l&&(x=1-x);var C=dt(c)?c(d):f*x+v,D=m.getSymbolPath(),M=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(hx(r)){var o=r.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 de({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=M5(l);f>=0&&(gd(s,md(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?YF(o,h):ax(o,c)},enableTextSetter:!0},P5(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),p=g.isHorizontal(),y=g.inverse,_=n.shape,w=y?p?_.x:_.y+_.height:p?_.x+_.width:_.y,S=(p?m:0)*(y?-1:1),b=(p?0:-m)*(y?-1:1),x=p?"x":"y",C=A5(c,w,x),D=C.range,M=D[1]-D[0],I=void 0;if(M>=1){if(M>1&&!h){var A=L0(c,D[0]);u.attr({x:A[0]+S,y:A[1]+b}),o&&(I=v.getRawValue(D[0]))}else{var A=f.getPointOn(w,x);A&&u.attr({x:A[0]+S,y:A[1]+b});var L=v.getRawValue(D[0]),O=v.getRawValue(D[1]);o&&(I=VI(i,d,L,O,C.t))}a.lastFrameIndex=D[0]}else{var H=r===1||a.lastFrameIndex>0?D[0]:0,A=L0(c,H);o&&(I=v.getRawValue(H)),u.attr({x:A[0]+S,y:A[1]+b})}o&&Zw(u).setLabelText(I)}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=p5(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,m=v.next,g=v.stackedOnNext;if(o&&(h=nn(v.current,i,o,l),d=nn(v.stackedOnCurrent,i,o,l),m=nn(v.next,i,o,l),g=nn(v.stackedOnNext,i,o,l)),I0(h,m)>3e3||f&&I0(d,g)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var p={shape:{points:m}};v.current!==h&&(p.shape.__points=v.next),u.stopAnimation(),Tn(u,p,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Tn(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,w=0;w<_.length;w++){var S=_[w].cmd;if(S==="="){var b=r.getItemGraphicEl(_[w].idx1);b&&y.push({el:b,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,C=0;Ct&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var d=void 0;nt(a)?d=R5[a]:dt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,d,O5))}}}}}function bz(e){e.registerChartView(E5),e.registerSeriesModel(h5),e.registerLayout(L5("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,k5("line"))}function R0(e,t,r){var n=bi.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var B5=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Wl,typeof r=="string"?o=R0(r,n,i):st(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(x1(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=R0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ot(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new Ot(0,0,0,0);_.copy(y),o.push(_)}else{for(var w=!1,S=1/0,b=0,x=0;x=s)}}for(var c=this.__startIndex;c15)break}}O.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var M=h.dpr,I=0;I0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?ol:0),this._needsManuallyCompositing),f.__builtin__||Vv("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Pe&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,P(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Ct(n[t],r,!0):n[t]=r;for(var i=0;i=0;)g++;if(d.substr(0,2)==="::"&&g--,d.substr(-2,2)==="::"&&g--,g>m)return null;for(w=m-g,_=":";w--;)_+="0:";return d=d.replace("::",_),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),m=function(){const S=d.split(":"),b=[];for(let x=0;x0;){if(_=g-p,_<0&&(_=0),d[y]>>_!==m[y]>>_)return!1;p-=g,y+=1}return!0}function c(d){if(a.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(i.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}function v(d,m){for(;d.length=0;y-=1)if(_=this.octets[y],_ in p){if(w=p[_],g&&w!==0)return null;w!==8&&(g=!0),m+=w}else return null;return 32-m},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d}(),h.IPv4.broadcastAddressFromCIDR=function(d){try{const m=this.parseCIDR(d),g=m[0].toByteArray(),p=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),y=[];let _=0;for(;_<4;)y.push(parseInt(g[_],10)|parseInt(p[_],10)^255),_++;return new this(y)}catch(m){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(d){return this.parser(d)!==null},h.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch(m){return!1}},h.IPv4.isValidFourPartDecimal=function(d){return!!(h.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(d){let m,g,p,y,_;try{for(m=this.parseCIDR(d),p=m[0].toByteArray(),_=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),y=[],g=0;g<4;)y.push(parseInt(p[g],10)&parseInt(_[g],10)),g++;return new this(y)}catch(w){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(d){const m=this.parser(d);if(m===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(m)},h.IPv4.parseCIDR=function(d){let m;if(m=d.match(/^(.+)\/(\d+)$/)){const g=parseInt(m[2]);if(g>=0&&g<=32){const p=[this.parse(m[1]),g];return Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(d){let m,g,p;if(m=d.match(n.fourOctet))return function(){const y=m.slice(1,6),_=[];for(let w=0;w4294967295||p<0)throw new Error("ipaddr: address outside defined range");return function(){const y=[];let _;for(_=0;_<=24;_+=8)y.push(p>>_&255);return y}().reverse()}else return(m=d.match(n.twoOctet))?function(){const y=m.slice(1,4),_=[];if(p=c(y[1]),p>16777215||p<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(p>>16&255),_.push(p>>8&255),_.push(p&255),_}():(m=d.match(n.threeOctet))?function(){const y=m.slice(1,5),_=[];if(p=c(y[2]),p>65535||p<0)throw new Error("ipaddr: address outside defined range");return _.push(c(y[0])),_.push(c(y[1])),_.push(p>>8&255),_.push(p&255),_}():null},h.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");const m=[0,0,0,0];let g=0;const p=Math.floor(d/8);for(;g=0;w-=1)if(y=this.parts[w],y in p){if(_=p[y],g&&_!==0)return null;_!==16&&(g=!0),m+=_}else return null;return 128-m},d.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let m;const g=[],p=this.parts;for(let y=0;y
>8),g.push(m&255);return g},d.prototype.toFixedLengthString=function(){const m=function(){const p=[];for(let y=0;y>8,g&255,p>>8,p&255])},d.prototype.toNormalizedString=function(){const m=function(){const p=[];for(let y=0;yy&&(p=_.index,y=_[0].length);return y<0?g:`${g.substring(0,p)}::${g.substring(p+y)}`},d.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},d}(),h.IPv6.broadcastAddressFromCIDR=function(d){try{const m=this.parseCIDR(d),g=m[0].toByteArray(),p=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),y=[];let _=0;for(;_<16;)y.push(parseInt(g[_],10)|parseInt(p[_],10)^255),_++;return new this(y)}catch(m){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${m})`)}},h.IPv6.isIPv6=function(d){return this.parser(d)!==null},h.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{const m=this.parser(d);return new this(m.parts,m.zoneId),!0}catch(m){return!1}},h.IPv6.networkAddressFromCIDR=function(d){let m,g,p,y,_;try{for(m=this.parseCIDR(d),p=m[0].toByteArray(),_=this.subnetMaskFromPrefixLength(m[1]).toByteArray(),y=[],g=0;g<16;)y.push(parseInt(p[g],10)&parseInt(_[g],10)),g++;return new this(y)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},h.IPv6.parse=function(d){const m=this.parser(d);if(m.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(m.parts,m.zoneId)},h.IPv6.parseCIDR=function(d){let m,g,p;if((g=d.match(/^(.+)\/(\d+)$/))&&(m=parseInt(g[2]),m>=0&&m<=128))return p=[this.parse(g[1]),m],Object.defineProperty(p,"toString",{value:function(){return this.join("/")}}),p;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(d){let m,g,p,y,_,w;if(p=d.match(l.deprecatedTransitional))return this.parser(`::ffff:${p[1]}`);if(l.native.test(d))return u(d,8);if((p=d.match(l.transitional))&&(w=p[6]||"",m=u(p[1].slice(0,-1)+w,6),m.parts)){for(_=[parseInt(p[2]),parseInt(p[3]),parseInt(p[4]),parseInt(p[5])],g=0;g<_.length;g++)if(y=_[g],!(0<=y&&y<=255))return null;return m.parts.push(_[0]<<8|_[1]),m.parts.push(_[2]<<8|_[3]),{parts:m.parts,zoneId:m.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");const m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let g=0;const p=Math.floor(d/8);for(;g