11||o.month<0||o.day>31||o.day<1||o.hour>23||o.hour<0||o.minute>59||o.minute<0||o.second>59||o.second<0)return null;return at}var xl={format:Ku,parse:Bu,defaultI18n:Xe,setGlobalDateI18n:sn,setGlobalDateMasks:_u},Nu=xl;function Fo(r){return function(e,t,i,o){for(var c=(0,b.UM)(i)?0:i,p=(0,b.UM)(o)?e.length:o;c>>1;r(e[g])>t?p=g:c=g+1}return c}}var Ts="format";function jc(r,e){var t=kt[Ts]||Nu[Ts];return t(r,e)}function Wc(r){return(0,b.HD)(r)&&(r.indexOf("T")>0?r=new Date(r).getTime():r=new Date(r.replace(/-/gi,"/")).getTime()),(0,b.J_)(r)&&(r=r.getTime()),r}var xu=1e3,Ms=60*xu,pl=60*Ms,Ga=24*pl,zu=Ga*31,Xc=Ga*365,D=[["HH:mm:ss",xu],["HH:mm:ss",xu*10],["HH:mm:ss",xu*30],["HH:mm",Ms],["HH:mm",Ms*10],["HH:mm",Ms*30],["HH",pl],["HH",pl*6],["HH",pl*12],["YYYY-MM-DD",Ga],["YYYY-MM-DD",Ga*4],["YYYY-WW",Ga*7],["YYYY-MM",zu],["YYYY-MM",zu*4],["YYYY-MM",zu*6],["YYYY",Ga*380]];function X(r,e,t){var i=(e-r)/t,o=Fo(function(p){return p[1]})(D,i)-1,c=D[o];return o<0?c=D[0]:o>=D.length&&(c=(0,b.Z$)(D)),c}var Mt=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="timeCat",t}return e.prototype.translate=function(t){t=Wc(t);var i=this.values.indexOf(t);return i===-1&&((0,b.hj)(t)&&t-1){var c=this.values[o],p=this.formatter;return c=p?p(c,i):jc(c,this.mask),c}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var t=this.values;(0,b.S6)(t,function(i,o){t[o]=Wc(i)}),t.sort(function(i,o){return i-o}),r.prototype.setDomain.call(this)},e}(zn),it=Mt,Jt=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isContinuous=!0,t}return e.prototype.scale=function(t){if((0,b.UM)(t))return NaN;var i=this.rangeMin(),o=this.rangeMax(),c=this.max,p=this.min;if(c===p)return i;var g=this.getScalePercent(t);return i+g*(o-i)},e.prototype.init=function(){r.prototype.init.call(this);var t=this.ticks,i=(0,b.YM)(t),o=(0,b.Z$)(t);ithis.max&&(this.max=o),(0,b.UM)(this.minLimit)||(this.min=i),(0,b.UM)(this.maxLimit)||(this.max=o)},e.prototype.setDomain=function(){var t=(0,b.rx)(this.values),i=t.min,o=t.max;(0,b.UM)(this.min)&&(this.min=i),(0,b.UM)(this.max)&&(this.max=o),this.min>this.max&&(this.min=i,this.max=o)},e.prototype.calculateTicks=function(){var t=this,i=r.prototype.calculateTicks.call(this);return this.nice||(i=(0,b.hX)(i,function(o){return o>=t.min&&o<=t.max})),i},e.prototype.getScalePercent=function(t){var i=this.max,o=this.min;return(t-o)/(i-o)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(en),Ue=Jt,yr=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return e.prototype.invert=function(t){var i=this.getInvertPercent(t);return this.min+i*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Ue),Br=yr;function zr(r,e){var t=Math.E,i;return e>=0?i=Math.pow(t,Math.log(e)/r):i=Math.pow(t,Math.log(-e)/r)*-1,i}function Cn(r,e){return r===1?1:Math.log(e)/Math.log(r)}function Vn(r,e,t){(0,b.UM)(t)&&(t=Math.max.apply(null,r));var i=t;return(0,b.S6)(r,function(o){o>0&&o1&&(i=1),i}function Ki(r){var e=r.toString().split(/[eE]/),t=(e[0].split(".")[1]||"").length-+(e[1]||0);return t>0?t:0}function Ma(r,e){var t=Ki(r),i=Ki(e),o=Math.pow(10,Math.max(t,i));return(r*o+e*o)/o}var xa=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t}return e.prototype.invert=function(t){var i=this.base,o=Cn(i,this.max),c=this.rangeMin(),p=this.rangeMax()-c,g,_=this.positiveMin;if(_){if(t===0)return 0;g=Cn(i,_/i);var S=1/(o-g)*p;if(t=0?1:-1;return Math.pow(g,o)*_},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var i=this.max,o=this.min;if(i===o)return 0;var c=this.exponent,p=(zr(c,t)-zr(c,o))/(zr(c,i)-zr(c,o));return p},e}(Ue),Io=Ro,fa=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="time",t}return e.prototype.getText=function(t,i){var o=this.translate(t),c=this.formatter;return c?c(o,i):jc(o,this.mask)},e.prototype.scale=function(t){var i=t;return((0,b.HD)(i)||(0,b.J_)(i))&&(i=this.translate(i)),r.prototype.scale.call(this,i)},e.prototype.translate=function(t){return Wc(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,i=this.getConfig("min"),o=this.getConfig("max");if((!(0,b.UM)(i)||!(0,b.hj)(i))&&(this.min=this.translate(this.min)),(!(0,b.UM)(o)||!(0,b.hj)(o))&&(this.max=this.translate(this.max)),t&&t.length){var c=[],p=1/0,g=p,_=0;(0,b.S6)(t,function(S){var I=Wc(S);if(isNaN(I))throw new TypeError("Invalid Time: "+S+" in time scale!");p>I?(g=p,p=I):g>I&&(g=I),_1&&(this.minTickInterval=g-p),(0,b.UM)(i)&&(this.min=p),(0,b.UM)(o)&&(this.max=_)}},e}(Br),bu=fa,bl=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantize",t}return e.prototype.invert=function(t){var i=this.ticks,o=i.length,c=this.getInvertPercent(t),p=Math.floor(c*(o-1));if(p>=o-1)return(0,b.Z$)(i);if(p<0)return(0,b.YM)(i);var g=i[p],_=i[p+1],S=p/(o-1),I=(p+1)/(o-1);return g+(c-S)/(I-S)*(_-g)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var t=r.prototype.calculateTicks.call(this);return this.nice||((0,b.Z$)(t)!==this.max&&t.push(this.max),(0,b.YM)(t)!==this.min&&t.unshift(this.min)),t},e.prototype.getScalePercent=function(t){var i=this.ticks;if(t<(0,b.YM)(i))return 0;if(t>(0,b.Z$)(i))return 1;var o=0;return(0,b.S6)(i,function(c,p){if(t>=c)o=p;else return!1}),o/(i.length-1)},e}(Ue),Ic=bl,Yc=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantile",t}return e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ic),Fl=Yc,kc={};function Uu(r){return kc[r]}function js(r,e){if(Uu(r))throw new Error("type '"+r+"' existed.");kc[r]=e}var ce=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,b.hj)(t)?t:this.range[0]},e.prototype.invert=function(t){var i=this.range;return ti[1]?NaN:this.values[0]},e}(en),or=ce;function Fr(r){var e=r.values,t=r.tickInterval,i=r.tickCount,o=r.showLast;if((0,b.hj)(t)){var c=(0,b.hX)(e,function(V,Q){return Q%t===0}),p=(0,b.Z$)(e);return o&&(0,b.Z$)(c)!==p&&c.push(p),c}var g=e.length,_=r.min,S=r.max;if((0,b.UM)(_)&&(_=0),(0,b.UM)(S)&&(S=e.length-1),!(0,b.hj)(i)||i>=g)return e.slice(_,S+1);if(i<=0||S<=0)return[];for(var I=i===1?g:Math.floor(g/(i-1)),L=[],F=_,z=0;z=S);z++)F=Math.min(_+z*I,S),z===i-1&&o?L.push(e[S]):L.push(e[F]);return L}function Xr(r){var e=r.min,t=r.max,i=r.nice,o=r.tickCount,c=new Eu;return c.domain([e,t]),i&&c.nice(o),c.ticks(o)}var xn=5,Ii=Math.sqrt(50),ra=Math.sqrt(10),Wa=Math.sqrt(2),Eu=function(){function r(){this._domain=[0,1]}return r.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},r.prototype.nice=function(e){var t,i;e===void 0&&(e=xn);var o=this._domain.slice(),c=0,p=this._domain.length-1,g=this._domain[c],_=this._domain[p],S;return _0?(g=Math.floor(g/S)*S,_=Math.ceil(_/S)*S,S=Ya(g,_,e)):S<0&&(g=Math.ceil(g*S)/S,_=Math.floor(_*S)/S,S=Ya(g,_,e)),S>0?(o[c]=Math.floor(g/S)*S,o[p]=Math.ceil(_/S)*S,this.domain(o)):S<0&&(o[c]=Math.ceil(g*S)/S,o[p]=Math.floor(_*S)/S,this.domain(o)),this},r.prototype.ticks=function(e){return e===void 0&&(e=xn),Ws(this._domain[0],this._domain[this._domain.length-1],e||xn)},r}();function Ws(r,e,t){var i,o=-1,c,p,g;if(e=+e,r=+r,t=+t,r===e&&t>0)return[r];if((i=e0)for(r=Math.ceil(r/g),e=Math.floor(e/g),p=new Array(c=Math.ceil(e-r+1));++o=0?(c>=Ii?10:c>=ra?5:c>=Wa?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(c>=Ii?10:c>=ra?5:c>=Wa?2:1)}function Jl(r,e,t){var i;return t==="ceil"?i=Math.ceil(r/e):t==="floor"?i=Math.floor(r/e):i=Math.round(r/e),i*e}function $c(r,e,t){var i=Jl(r,t,"floor"),o=Jl(e,t,"ceil");i=(0,b.ri)(i,t),o=(0,b.ri)(o,t);for(var c=[],p=Math.max((o-i)/(Math.pow(2,12)-1),t),g=i;g<=o;g=g+p){var _=(0,b.ri)(g,p);c.push(_)}return{min:i,max:o,ticks:c}}function tc(r,e,t){var i,o=r.minLimit,c=r.maxLimit,p=r.min,g=r.max,_=r.tickCount,S=_===void 0?5:_,I=(0,b.UM)(o)?(0,b.UM)(e)?p:e:o,L=(0,b.UM)(c)?(0,b.UM)(t)?g:t:c;if(I>L&&(i=[I,L],L=i[0],I=i[1]),S<=2)return[I,L];for(var F=(L-I)/(S-1),z=[],V=0;V=0&&(_=1),1-g/(p-1)-t+_}function Vf(r,e,t){var i=(0,b.dp)(e),o=(0,b.cq)(e,r),c=1;return 1-o/(i-1)-t+c}function fh(r,e,t,i,o,c){var p=(r-1)/(c-o),g=(e-1)/(Math.max(c,i)-Math.min(t,o));return 2-Math.max(p/g,g/p)}function Qc(r,e){return r>=e?2-(r-1)/(e-1):1}function Rl(r,e,t,i){var o=e-r;return 1-.5*(Math.pow(e-i,2)+Math.pow(r-t,2))/Math.pow(.1*o,2)}function wp(r,e,t){var i=e-r;if(t>i){var o=(t-i)/2;return 1-Math.pow(o,2)/Math.pow(.1*i,2)}return 1}function hh(){return 1}function Qu(r,e,t,i,o,c){t===void 0&&(t=5),i===void 0&&(i=!0),o===void 0&&(o=tv),c===void 0&&(c=[.25,.2,.5,.05]);var p=t<0?0:Math.round(t);if(Number.isNaN(r)||Number.isNaN(e)||typeof r!="number"||typeof e!="number"||!p)return{min:0,max:0,ticks:[]};if(e-r<1e-15||p===1)return{min:r,max:e,ticks:[r]};if(e-r>1e148){var g=t||5,_=(e-r)/g;return{min:r,max:e,ticks:Array(g).fill(null).map(function(ka,xo){return zf(r+_*xo)})}}for(var S={score:-2,lmin:0,lmax:0,lstep:0},I=1;I<1/0;){for(var L=0;LS.score&&(!i||Dr<=r&&cn>=e)&&(S.lmin=Dr,S.lmax=cn,S.lstep=Jr,S.score=eo)}at+=1}V+=1}}I+=1}var Gn=zf(S.lmax),Vi=zf(S.lmin),ua=zf(S.lstep),Xi=Math.floor(Zf((Gn-Vi)/ua))+1,ea=new Array(Xi);ea[0]=zf(Vi);for(var L=1;L0)p=Math.floor(Cn(e,i));else{var _=Vn(c,e,o);p=Math.floor(Cn(e,_))}for(var S=g-p,I=Math.ceil(S/t),L=[],F=p;F=0?1:-1;return Math.pow(p,e)*g})}function Sp(r,e){var t=r.length*e;return e===1?r[r.length-1]:e===0?r[0]:t%1!==0?r[Math.ceil(t)-1]:r.length%2===0?(r[t-1]+r[t])/2:r[t]}function nd(r){var e=r.tickCount,t=r.values;if(!t||!t.length)return[];for(var i=t.slice().sort(function(g,_){return g-_}),o=[],c=0;c1&&(o=o*Math.ceil(g)),i&&oXc)for(var _=tf(t),S=Math.ceil(c/Xc),I=g;I<=_+S;I=I+S)p.push(Hf(I));else if(c>zu)for(var L=Math.ceil(c/zu),F=gf(e),z=ad(e,t),I=0;I<=z+L;I=I+L)p.push(od(g,I+F));else if(c>Ga)for(var V=new Date(e),Q=V.getFullYear(),st=V.getMonth(),at=V.getDate(),Ft=Math.ceil(c/Ga),Kt=mf(e,t),I=0;Ipl)for(var V=new Date(e),Q=V.getFullYear(),st=V.getMonth(),Ft=V.getDate(),ee=V.getHours(),Me=Math.ceil(c/pl),hr=$v(e,t),I=0;I<=hr+Me;I=I+Me)p.push(new Date(Q,st,Ft,ee+I).getTime());else if(c>Ms)for(var Tr=ph(e,t),Dr=Math.ceil(c/Ms),I=0;I<=Tr+Dr;I=I+Dr)p.push(e+I*Ms);else{var cn=c;cn=512&&console.warn("Notice: current ticks length("+p.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),p}He("cat",Fr),He("time-cat",id),He("wilkinson-extended",Jc),He("r-pretty",Cp),He("time",rc),He("time-pretty",gs),He("log",Zh),He("pow",ec),He("quantile",nd),He("d3-linear",rd),js("cat",zn),js("category",zn),js("identity",or),js("linear",Br),js("log",lo),js("pow",Io),js("time",bu),js("timeCat",it),js("quantize",Ic),js("quantile",Fl);var yf={},jf=function(r){return yf[r.toLowerCase()]},Dl=function(r,e){if(jf(r))throw new Error("Attribute type '"+r+"' existed.");yf[r.toLowerCase()]=e};Dl("Color",Qa),Dl("Opacity",vo),Dl("Position",Xa),Dl("Shape",Du),Dl("Size",_o);var Ja=nt(68072),Wo=nt(99250),ro=nt(32071),Ap=function(){function r(e){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,i=e.end,o=e.matrix,c=o===void 0?[1,0,0,0,1,0,0,0,1]:o,p=e.isTransposed,g=p===void 0?!1:p;this.start=t,this.end=i,this.matrix=c,this.originalMatrix=(0,P.ev)([],c),this.isTransposed=g}return r.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},r.prototype.update=function(e){(0,b.f0)(this,e),this.initial()},r.prototype.convertDim=function(e,t){var i,o=this[t],c=o.start,p=o.end;return this.isReflect(t)&&(i=[p,c],c=i[0],p=i[1]),c+e*(p-c)},r.prototype.invertDim=function(e,t){var i,o=this[t],c=o.start,p=o.end;return this.isReflect(t)&&(i=[p,c],c=i[0],p=i[1]),(e-c)/(p-c)},r.prototype.applyMatrix=function(e,t,i){i===void 0&&(i=0);var o=this.matrix,c=[e,t,i];return Ja.transformMat3(c,c,o),c},r.prototype.invertMatrix=function(e,t,i){i===void 0&&(i=0);var o=this.matrix,c=Wo.U_([0,0,0,0,0,0,0,0,0],o),p=[e,t,i];return c&&Ja.transformMat3(p,p,c),p},r.prototype.convert=function(e){var t=this.convertPoint(e),i=t.x,o=t.y,c=this.applyMatrix(i,o,1);return{x:c[0],y:c[1]}},r.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},r.prototype.rotate=function(e){var t=this.matrix,i=this.center;return ro.m$(t,t,[-i.x,-i.y]),ro.zu(t,t,e),ro.m$(t,t,[i.x,i.y]),this},r.prototype.reflect=function(e){return e==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},r.prototype.scale=function(e,t){var i=this.matrix,o=this.center;return ro.m$(i,i,[-o.x,-o.y]),ro.lh(i,i,[e,t]),ro.m$(i,i,[o.x,o.y]),this},r.prototype.translate=function(e,t){var i=this.matrix;return ro.m$(i,i,[e,t]),this},r.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},r.prototype.getCenter=function(){return this.center},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRadius=function(){return this.radius},r.prototype.isReflect=function(e){return e==="x"?this.isReflectX:this.isReflectY},r.prototype.resetMatrix=function(e){this.matrix=e||(0,P.ev)([],this.originalMatrix)},r}(),Bl=Ap,Tp=function(r){(0,P.ZT)(e,r);function e(t){var i=r.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},e.prototype.convertPoint=function(t){var i,o=t.x,c=t.y;return this.isTransposed&&(i=[c,o],o=i[0],c=i[1]),{x:this.convertDim(o,"x"),y:this.convertDim(c,"y")}},e.prototype.invertPoint=function(t){var i,o=this.invertDim(t.x,"x"),c=this.invertDim(t.y,"y");return this.isTransposed&&(i=[c,o],o=i[0],c=i[1]),{x:o,y:c}},e}(Bl),qv=Tp,Ia=nt(1153),Wf=function(r){(0,P.ZT)(e,r);function e(t){var i=r.call(this,t)||this;i.isHelix=!0,i.type="helix";var o=t.startAngle,c=o===void 0?1.25*Math.PI:o,p=t.endAngle,g=p===void 0?7.25*Math.PI:p,_=t.innerRadius,S=_===void 0?0:_,I=t.radius;return i.startAngle=c,i.endAngle=g,i.innerRadius=S,i.radius=I,i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},e.prototype.convertPoint=function(t){var i,o=t.x,c=t.y;this.isTransposed&&(i=[c,o],o=i[0],c=i[1]);var p=this.convertDim(o,"x"),g=this.a*p,_=this.convertDim(c,"y");return{x:this.center.x+Math.cos(p)*(g+_),y:this.center.y+Math.sin(p)*(g+_)}},e.prototype.invertPoint=function(t){var i,o=this.d+this.y.start,c=Ia.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),p=ro.Dg(c,[1,0],!0),g=p*this.a;Ia.kE(c)this.width/i?(g=this.width/i,this.circleCenter={x:this.center.x-(.5-c)*this.width,y:this.center.y-(.5-p)*g*o}):(g=this.height/o,this.circleCenter={x:this.center.x-(.5-c)*g*i,y:this.center.y-(.5-p)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=g*this.radius:(this.radius<=0||this.radius>g)&&(this.polarRadius=g):this.polarRadius=g,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var i,o=this.getCenter(),c=t.x,p=t.y;return this.isTransposed&&(i=[p,c],c=i[0],p=i[1]),c=this.convertDim(c,"x"),p=this.convertDim(p,"y"),{x:o.x+Math.cos(c)*p,y:o.y+Math.sin(c)*p}},e.prototype.invertPoint=function(t){var i,o=this.getCenter(),c=[t.x-o.x,t.y-o.y],p=this,g=p.startAngle,_=p.endAngle;this.isReflect("x")&&(i=[_,g],g=i[0],_=i[1]);var S=[1,0,0,0,1,0,0,0,1];ro.zu(S,S,g);var I=[1,0,0];Ja.transformMat3(I,I,S);var L=[I[0],I[1]],F=ro.Dg(L,c,_0?V:-V;var Q=this.invertDim(z,"y"),st={x:0,y:0};return st.x=this.isTransposed?Q:V,st.y=this.isTransposed?V:Q,st},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var o=[0,Math.cos(t),Math.cos(i)],c=[0,Math.sin(t),Math.sin(i)],p=Math.min(t,i);p=0;i--)r.removeChild(e[i])}function es(r,e){return!!r.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function wu(r){var e=r.start,t=r.end,i=Math.min(e.x,t.x),o=Math.min(e.y,t.y),c=Math.max(e.x,t.x),p=Math.max(e.y,t.y);return{x:i,y:o,minX:i,minY:o,maxX:c,maxY:p,width:c-i,height:p-o}}function xf(r){var e=r.map(function(g){return g.x}),t=r.map(function(g){return g.y}),i=Math.min.apply(Math,e),o=Math.min.apply(Math,t),c=Math.max.apply(Math,e),p=Math.max.apply(Math,t);return{x:i,y:o,minX:i,minY:o,maxX:c,maxY:p,width:c-i,height:p-o}}function wl(r,e,t,i){var o=r+t,c=e+i;return{x:r,y:e,width:t,height:i,minX:r,minY:e,maxX:isNaN(o)?0:o,maxY:isNaN(c)?0:c}}function eu(r,e,t){return(1-t)*r+e*t}function nl(r,e,t){return{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}}function Kv(r,e){var t=e.x-r.x,i=e.y-r.y;return Math.sqrt(t*t+i*i)}var Vh=function(r){return new Promise(function(e){setTimeout(e,r)})},bf=function(r,e,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[r,e].includes(1/0)?Math.abs(r)===Math.abs(e):Math.abs(r-e)0?(0,b.S6)(_,function(S){if(S.get("visible")){if(S.isGroup()&&S.get("children").length===0)return!0;var I=dl(S),L=S.applyToMatrix([I.minX,I.minY,1]),F=S.applyToMatrix([I.minX,I.maxY,1]),z=S.applyToMatrix([I.maxX,I.minY,1]),V=S.applyToMatrix([I.maxX,I.maxY,1]),Q=Math.min(L[0],F[0],z[0],V[0]),st=Math.max(L[0],F[0],z[0],V[0]),at=Math.min(L[1],F[1],z[1],V[1]),Ft=Math.max(L[1],F[1],z[1],V[1]);Qc&&(c=st),atg&&(g=Ft)}}):(o=0,c=0,p=0,g=0),i=wl(o,p,c-o,g-p)}return t?ev(i,t):i}function to(r,e){if(!(!r.getClip()&&!e.getClip())){var t=e.getClip();if(!t){r.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};r.setClip(i)}}function mo(r){return r+"px"}function ic(r,e,t,i){var o=Kv(r,e),c=i/o,p=0;return t==="start"?p=0-c:t==="end"&&(p=1+c),{x:eu(r.x,e.x,p),y:eu(r.y,e.y,p)}}var Xs={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},Yf=function(r){(0,P.ZT)(e,r);function e(t){var i=r.call(this,t)||this;return i.initCfg(),i}return e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var i=this,o=this.get("defaultCfg")||{};(0,b.S6)(t,function(c,p){var g=i.get(p),_=c;g!==c&&((0,b.Kn)(c)&&o[p]&&(_=(0,b.b$)({},o[p],c)),i.set(p,_))}),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,b.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,b.wH)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},e.prototype.setLocation=function(t){var i=(0,P.pi)({},t);this.update(i)},e.prototype.getLocation=function(){var t=this,i={},o=this.get("locationType"),c=Xs[o];return(0,b.S6)(c,function(p){i[p]=t.get(p)}),i},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");(0,b.S6)(i,function(o,c){var p=t.get(c);if((0,b.Kn)(p)){var g=(0,b.b$)({},o,p);t.set(c,g)}})},e}(ye.Base),nf=Yf,Su="update_status",fu=["visible","tip","delegateObject"],Sl=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Qi=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var i=this.getElementById(t),o=i&&i.get("component");return o},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},e.prototype.getElementsByName=function(t){var i=[];return(0,b.S6)(this.get("shapesMap"),function(o){o.get("name")===t&&i.push(o)}),i},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),r.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),o=t.getTotalMatrix();return o&&(i=sd(o,i)),i},e.prototype.on=function(t,i,o){var c=this.get("group");return c.on(t,i,o),this},e.prototype.off=function(t,i){var o=this.get("group");return o&&o.off(t,i),this},e.prototype.emit=function(t,i){var o=this.get("group");o.emit(t,i)},e.prototype.init=function(){r.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,i){var o=this.get("group");i.target=o,o.emit(t,i),ji(o,t,i)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),o=new i({delegateObject:this.getDelegateObject()});return o},e.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",dl(t)),t},e.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var o=t.addGroup(i);return this.get("isRegister")&&this.registerElement(o),o},e.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var o=t.addShape(i);return this.get("isRegister")&&this.registerElement(o),o},e.prototype.addComponent=function(t,i){var o=i.id,c=i.component,p=(0,P._T)(i,["id","component"]),g=new c((0,P.pi)((0,P.pi)({},p),{id:o,container:t,updateAutoRender:this.get("updateAutoRender")}));return g.init(),g.render(),this.get("isRegister")&&this.registerElement(g.get("group")),g},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var i=this.get("id"),o=this.get("name");return i+"-"+o+"-"+t},e.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},e.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},e.prototype.moveElementTo=function(t,i){var o=Nl(i);t.attr("matrix",o)},e.prototype.addAnimation=function(t,i,o){var c=i.attr("opacity");(0,b.UM)(c)&&(c=1),i.attr("opacity",0),i.animate({opacity:c},o)},e.prototype.removeAnimation=function(t,i,o){i.animate({opacity:0},o)},e.prototype.updateAnimation=function(t,i,o,c){i.animate(o,c)},e.prototype.updateElements=function(t,i){var o=this,c=this.get("animate"),p=this.get("animateOption"),g=t.getChildren().slice(0),_;(0,b.S6)(g,function(S){var I=S.get("id"),L=o.getElementById(I),F=S.get("name");if(L)if(S.get("isComponent")){var z=S.get("component"),V=L.get("component"),Q=(0,b.ei)(z.cfg,(0,b.e5)((0,b.XP)(z.cfg),Sl));V.update(Q),L.set(Su,"update")}else{var st=o.getReplaceAttrs(L,S);c&&p.update?o.updateAnimation(F,L,st,p.update):L.attr(st),S.isGroup()&&o.updateElements(S,L),(0,b.S6)(fu,function(ee){L.set(ee,S.get(ee))}),to(L,S),_=L,L.set(Su,"update")}else{i.add(S);var at=i.getChildren();if(at.splice(at.length-1,1),_){var Ft=at.indexOf(_);at.splice(Ft+1,0,S)}else at.unshift(S);if(o.registerElement(S),S.set(Su,"add"),S.get("isComponent")){var z=S.get("component");z.set("container",i)}else S.isGroup()&&o.registerNewGroup(S);if(_=S,c){var Kt=o.get("isInit")?p.appear:p.enter;Kt&&o.addAnimation(F,S,Kt)}}})},e.prototype.clearUpdateStatus=function(t){var i=t.getChildren();(0,b.S6)(i,function(o){o.set(Su,null)})},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,i=this.get("name"),o=(t={},t[i]=this,t.component=this,t);return o},e.prototype.appendDelegateObject=function(t,i){var o=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),(0,b.CD)(i.delegateObject,o)},e.prototype.getReplaceAttrs=function(t,i){var o=t.attr(),c=i.attr();return(0,b.S6)(o,function(p,g){c[g]===void 0&&(c[g]=void 0)}),c},e.prototype.registerNewGroup=function(t){var i=this,o=t.getChildren();(0,b.S6)(o,function(c){i.registerElement(c),c.set(Su,"add"),c.isGroup()&&i.registerNewGroup(c)})},e.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),o=[];(0,b.S6)(i,function(g,_){!g.get(Su)||g.destroyed?o.push([_,g]):g.set(Su,null)});var c=this.get("animate"),p=this.get("animateOption");(0,b.S6)(o,function(g){var _=g[0],S=g[1];if(!S.destroyed){var I=S.get("name");if(c&&p.leave){var L=(0,b.CD)({callback:function(){t.removeElement(S)}},p.leave);t.removeAnimation(I,S,L)}else t.removeElement(S)}delete i[_]})},e.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},e}(nf),ki=Qi,Ef="\u2026";function Ju(r){for(var e=0,t=0;t0&&r.charCodeAt(e)<128?1:2}function Vu(r,e,t){t===void 0&&(t="tail");var i=r.length,o="";if(t==="tail"){for(var c=0,p=0;c=19968&&g<=40869?c+=2:c+=1}c>t&&(t=c,i=o)}return r[i].getBBox().width}function rs(r){if(r.length>zl)return Do(r);var e=0;return(0,b.S6)(r,function(t){var i=t.getBBox(),o=i.width;e=0?F=Vu(c,L,i):F=gc,F&&(e.attr("text",F),I=!0)}return I?e.set("tip",c):e.set("tip",null),I}function il(r,e){var t=e.x,i=e.y,o=e.content,c=e.style,p=e.id,g=e.name,_=e.rotate,S=e.maxLength,I=e.autoEllipsis,L=e.isVertical,F=e.ellipsisPosition,z=e.background,V=r.addGroup({id:p+"-group",name:g+"-group",attrs:{x:t,y:i}}),Q=V.addShape({type:"text",id:p,name:g,attrs:(0,P.pi)({x:0,y:0,text:o},c)}),st=gh((0,b.U2)(z,"padding",0));if(S&&I){var at=S-(st[1]+st[3]);Cl(!L,Q,at,F)}if(z){var Ft=(0,b.U2)(z,"style",{}),Kt=Q.getCanvasBBox(),ee=Kt.minX,Me=Kt.minY,hr=Kt.width,Tr=Kt.height,Dr=V.addShape("rect",{id:p+"-bg",name:p+"-bg",attrs:(0,P.pi)({x:ee-st[3],y:Me-st[0],width:hr+st[1]+st[3],height:Tr+st[0]+st[2]},Ft)});Dr.toBack()}Xf(V,t,i),Ti(V,_,t,i)}var va={fontFamily:`
+`);(0,kt.S6)(ot,function(ut){var zt=et.measureText(ut).width;beue?k(bt,Wt,$t,xt):this.pointToLine(oe,qt,bt,Wt,$t,xt)},pointToLine:function(oe,qt,bt,Wt,$t,xt){var St=[bt-oe,Wt-qt];if(pt.I6(St,[0,0]))return Math.sqrt(($t-oe)*($t-oe)+(xt-qt)*(xt-qt));var ue=[-St[1],St[0]];pt.Fv(ue,ue);var Pe=[$t-oe,xt-qt];return Math.abs(pt.AK(Pe,ue))},tangentAngle:function(oe,qt,bt,Wt){return Math.atan2(Wt-qt,bt-oe)}},be=1e-4;function ot(oe,qt,bt,Wt,$t,xt){var St,ue=1/0,Pe=[bt,Wt],ze=20;xt&&xt>200&&(ze=xt/10);for(var Vt=1/ze,Ct=Vt/10,At=0;At<=ze;At++){var Nt=At*Vt,tt=[$t.apply(null,oe.concat([Nt])),$t.apply(null,qt.concat([Nt]))],vt=k(Pe[0],Pe[1],tt[0],tt[1]);vt=0&&vt=0?[$t]:[]}function b(oe,qt,bt,Wt){return 2*(1-Wt)*(qt-oe)+2*Wt*(bt-qt)}function W(oe,qt,bt,Wt,$t,xt,St){var ue=zt(oe,bt,$t,St),Pe=zt(qt,Wt,xt,St),ze=et.pointAt(oe,qt,bt,Wt,St),Vt=et.pointAt(bt,Wt,$t,xt,St);return[[oe,qt,ze.x,ze.y,ue,Pe],[ue,Pe,Vt.x,Vt.y,$t,xt]]}function le(oe,qt,bt,Wt,$t,xt,St){if(St===0)return(k(oe,qt,bt,Wt)+k(bt,Wt,$t,xt)+k(oe,qt,$t,xt))/2;var ue=W(oe,qt,bt,Wt,$t,xt,.5),Pe=ue[0],ze=ue[1];return Pe.push(St-1),ze.push(St-1),le.apply(null,Pe)+le.apply(null,ze)}var Ee={box:function(oe,qt,bt,Wt,$t,xt){var St=P(oe,bt,$t)[0],ue=P(qt,Wt,xt)[0],Pe=[oe,$t],ze=[qt,xt];return St!==void 0&&Pe.push(zt(oe,bt,$t,St)),ue!==void 0&&ze.push(zt(qt,Wt,xt,ue)),K(Pe,ze)},length:function(oe,qt,bt,Wt,$t,xt){return le(oe,qt,bt,Wt,$t,xt,3)},nearestPoint:function(oe,qt,bt,Wt,$t,xt,St,ue){return ot([oe,bt,$t],[qt,Wt,xt],St,ue,zt)},pointDistance:function(oe,qt,bt,Wt,$t,xt,St,ue){var Pe=this.nearestPoint(oe,qt,bt,Wt,$t,xt,St,ue);return k(Pe.x,Pe.y,St,ue)},interpolationAt:zt,pointAt:function(oe,qt,bt,Wt,$t,xt,St){return{x:zt(oe,bt,$t,St),y:zt(qt,Wt,xt,St)}},divide:function(oe,qt,bt,Wt,$t,xt,St){return W(oe,qt,bt,Wt,$t,xt,St)},tangentAngle:function(oe,qt,bt,Wt,$t,xt,St){var ue=b(oe,bt,$t,St),Pe=b(qt,Wt,xt,St),ze=Math.atan2(Pe,ue);return J(ze)}};function ke(oe,qt,bt,Wt,$t){var xt=1-$t;return xt*xt*xt*oe+3*qt*$t*xt*xt+3*bt*$t*$t*xt+Wt*$t*$t*$t}function Tt(oe,qt,bt,Wt,$t){var xt=1-$t;return 3*(xt*xt*(qt-oe)+2*xt*$t*(bt-qt)+$t*$t*(Wt-bt))}function rt(oe,qt,bt,Wt){var $t=-3*oe+9*qt-9*bt+3*Wt,xt=6*oe-12*qt+6*bt,St=3*qt-3*oe,ue=[],Pe,ze,Vt;if(Et($t,0))Et(xt,0)||(Pe=-St/xt,Pe>=0&&Pe<=1&&ue.push(Pe));else{var Ct=xt*xt-4*$t*St;Et(Ct,0)?ue.push(-xt/(2*$t)):Ct>0&&(Vt=Math.sqrt(Ct),Pe=(-xt+Vt)/(2*$t),ze=(-xt-Vt)/(2*$t),Pe>=0&&Pe<=1&&ue.push(Pe),ze>=0&&ze<=1&&ue.push(ze))}return ue}function Dt(oe,qt,bt,Wt,$t,xt,St,ue,Pe){var ze=ke(oe,bt,$t,St,Pe),Vt=ke(qt,Wt,xt,ue,Pe),Ct=et.pointAt(oe,qt,bt,Wt,Pe),At=et.pointAt(bt,Wt,$t,xt,Pe),Nt=et.pointAt($t,xt,St,ue,Pe),tt=et.pointAt(Ct.x,Ct.y,At.x,At.y,Pe),vt=et.pointAt(At.x,At.y,Nt.x,Nt.y,Pe);return[[oe,qt,Ct.x,Ct.y,tt.x,tt.y,ze,Vt],[ze,Vt,vt.x,vt.y,Nt.x,Nt.y,St,ue]]}function Se(oe,qt,bt,Wt,$t,xt,St,ue,Pe){if(Pe===0)return ut([oe,bt,$t,St],[qt,Wt,xt,ue]);var ze=Dt(oe,qt,bt,Wt,$t,xt,St,ue,.5),Vt=ze[0],Ct=ze[1];return Vt.push(Pe-1),Ct.push(Pe-1),Se.apply(null,Vt)+Se.apply(null,Ct)}var _e={extrema:rt,box:function(oe,qt,bt,Wt,$t,xt,St,ue){for(var Pe=[oe,St],ze=[qt,ue],Vt=rt(oe,bt,$t,St),Ct=rt(qt,Wt,xt,ue),At=0;At0?bt:bt*-1}var ne={box:function(oe,qt,bt,Wt){return{x:oe-bt,y:qt-Wt,width:bt*2,height:Wt*2}},length:function(oe,qt,bt,Wt){return Math.PI*(3*(bt+Wt)-Math.sqrt((3*bt+Wt)*(bt+3*Wt)))},nearestPoint:function(oe,qt,bt,Wt,$t,xt){var St=bt,ue=Wt;if(St===0||ue===0)return{x:oe,y:qt};for(var Pe=$t-oe,ze=xt-qt,Vt=Math.abs(Pe),Ct=Math.abs(ze),At=St*St,Nt=ue*ue,tt=Math.PI/4,vt,Ht,de=0;de<4;de++){vt=St*Math.cos(tt),Ht=ue*Math.sin(tt);var jt=(At-Nt)*Math.pow(Math.cos(tt),3)/St,Ie=(Nt-At)*Math.pow(Math.sin(tt),3)/ue,We=vt-jt,Ke=Ht-Ie,pr=Vt-jt,lr=Ct-Ie,Nr=Math.hypot(Ke,We),Pr=Math.hypot(lr,pr),Gr=Nr*Math.asin((We*lr-Ke*pr)/(Nr*Pr)),Sn=Gr/Math.sqrt(At+Nt-vt*vt-Ht*Ht);tt+=Sn,tt=Math.min(Math.PI/2,Math.max(0,tt))}return{x:oe+ve(vt,Pe),y:qt+ve(Ht,ze)}},pointDistance:function(oe,qt,bt,Wt,$t,xt){var St=this.nearestPoint(oe,qt,bt,Wt,$t,xt);return k(St.x,St.y,$t,xt)},pointAt:function(oe,qt,bt,Wt,$t){var xt=2*Math.PI*$t;return{x:oe+bt*Math.cos(xt),y:qt+Wt*Math.sin(xt)}},tangentAngle:function(oe,qt,bt,Wt,$t){var xt=2*Math.PI*$t,St=Math.atan2(Wt*Math.cos(xt),-bt*Math.sin(xt));return J(St)}};function xe(oe,qt,bt,Wt,$t,xt,St,ue){return-1*bt*Math.cos($t)*Math.sin(ue)-Wt*Math.sin($t)*Math.cos(ue)}function Je(oe,qt,bt,Wt,$t,xt,St,ue){return-1*bt*Math.sin($t)*Math.sin(ue)+Wt*Math.cos($t)*Math.cos(ue)}function Ot(oe,qt,bt){return Math.atan(-qt/oe*Math.tan(bt))}function te(oe,qt,bt){return Math.atan(qt/(oe*Math.tan(bt)))}function ft(oe,qt,bt,Wt,$t,xt){return bt*Math.cos($t)*Math.cos(xt)-Wt*Math.sin($t)*Math.sin(xt)+oe}function wt(oe,qt,bt,Wt,$t,xt){return bt*Math.sin($t)*Math.cos(xt)+Wt*Math.cos($t)*Math.sin(xt)+qt}function Y(oe,qt,bt,Wt){var $t=Math.atan2(Wt*oe,bt*qt);return($t+Math.PI*2)%(Math.PI*2)}function gt(oe,qt,bt){return{x:oe*Math.cos(bt),y:qt*Math.sin(bt)}}function he(oe,qt,bt){var Wt=Math.cos(bt),$t=Math.sin(bt);return[oe*Wt-qt*$t,oe*$t+qt*Wt]}var Oe={box:function(oe,qt,bt,Wt,$t,xt,St){for(var ue=Ot(bt,Wt,$t),Pe=1/0,ze=-1/0,Vt=[xt,St],Ct=-Math.PI*2;Ct<=Math.PI*2;Ct+=Math.PI){var At=ue+Ct;xtze&&(ze=Nt)}for(var tt=te(bt,Wt,$t),vt=1/0,Ht=-1/0,de=[xt,St],Ct=-Math.PI*2;Ct<=Math.PI*2;Ct+=Math.PI){var jt=tt+Ct;xtHt&&(Ht=Ie)}return{x:Pe,y:vt,width:ze-Pe,height:Ht-vt}},length:function(oe,qt,bt,Wt,$t,xt,St){},nearestPoint:function(oe,qt,bt,Wt,$t,xt,St,ue,Pe){var ze=he(ue-oe,Pe-qt,-$t),Vt=ze[0],Ct=ze[1],At=ne.nearestPoint(0,0,bt,Wt,Vt,Ct),Nt=Y(bt,Wt,At.x,At.y);NtSt&&(At=gt(bt,Wt,St));var tt=he(At.x,At.y,$t);return{x:tt[0]+oe,y:tt[1]+qt}},pointDistance:function(oe,qt,bt,Wt,$t,xt,St,ue,Pe){var ze=this.nearestPoint(oe,qt,bt,Wt,ue,Pe);return k(ze.x,ze.y,ue,Pe)},pointAt:function(oe,qt,bt,Wt,$t,xt,St,ue){var Pe=(St-xt)*ue+xt;return{x:ft(oe,qt,bt,Wt,$t,Pe),y:wt(oe,qt,bt,Wt,$t,Pe)}},tangentAngle:function(oe,qt,bt,Wt,$t,xt,St,ue){var Pe=(St-xt)*ue+xt,ze=xe(oe,qt,bt,Wt,$t,xt,St,Pe),Vt=Je(oe,qt,bt,Wt,$t,xt,St,Pe);return J(Math.atan2(Vt,ze))}};function Le(oe){for(var qt=0,bt=[],Wt=0;Wt1||qt<0||oe.length<2)return null;var bt=Le(oe),Wt=bt.segments,$t=bt.totalLength;if($t===0)return{x:oe[0][0],y:oe[0][1]};for(var xt=0,St=null,ue=0;ue=xt&&qt<=xt+Ct){var At=(qt-xt)/Ct;St=et.pointAt(ze[0],ze[1],Vt[0],Vt[1],At);break}xt+=Ct}return St}function re(oe,qt){if(qt>1||qt<0||oe.length<2)return 0;for(var bt=Le(oe),Wt=bt.segments,$t=bt.totalLength,xt=0,St=0,ue=0;ue=xt&&qt<=xt+Ct){St=Math.atan2(Vt[1]-ze[1],Vt[0]-ze[0]);break}xt+=Ct}return St}function ye(oe,qt,bt){for(var Wt=1/0,$t=0;$t=0},r.prototype.getAdjustRange=function(e,t,i){var o=this.yField,c=i.indexOf(t),p=i.length,g,_;return!o&&this.isAdjust("y")?(g=0,_=1):p>1?(g=i[c===0?0:c-1],_=i[c===p-1?p-1:c+1],c!==0?g+=(t-g)/2:g-=(_-t)/2,c!==p-1?_-=(_-t)/2:_+=(t-i[p-2])/2):(g=t===0?0:t-.5,_=t===0?1:t+.5),{pre:g,next:_}},r.prototype.adjustData=function(e,t){var i=this,o=this.getDimValues(t);b.S6(e,function(c,p){b.S6(o,function(g,_){i.adjustDim(_,g,c,p)})})},r.prototype.groupData=function(e,t){return b.S6(e,function(i){i[t]===void 0&&(i[t]=Yt)}),b.vM(e,t)},r.prototype.adjustDim=function(e,t,i,o){},r.prototype.getDimValues=function(e){var t=this,i=t.xField,o=t.yField,c=b.f0({},this.dimValuesMap),p=[];if(i&&this.isAdjust("x")&&p.push(i),o&&this.isAdjust("y")&&p.push(o),p.forEach(function(_){c&&c[_]||(c[_]=b.I(e,_).sort(function(S,I){return S-I}))}),!o&&this.isAdjust("y")){var g="y";c[g]=[Yt,1]}return c},r}(),bt=qt,Wt={},$t=function(r){return Wt[r.toLowerCase()]},xt=function(r,e){if($t(r))throw new Error("Adjust type '"+r+"' existed.");Wt[r.toLowerCase()]=e},St=nt(4620),ue=nt.n(St);var Pe=function(e,t){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var c in o)o.hasOwnProperty(c)&&(i[c]=o[c])},Pe(e,t)};function ze(r,e){Pe(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Vt=function(){return Vt=Object.assign||function(t){for(var i,o=1,c=arguments.length;o=0;g--)(p=r[g])&&(c=(o<3?p(c):o>3?p(e,t,c):p(e,t))||c);return o>3&&c&&Object.defineProperty(e,t,c),c}function Nt(r,e){return function(t,i){e(t,i,r)}}function tt(r,e){if((typeof Reflect=="undefined"?"undefined":_typeof(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function vt(r,e,t,i){function o(c){return c instanceof t?c:new t(function(p){p(c)})}return new(t||(t=Promise))(function(c,p){function g(I){try{S(i.next(I))}catch(L){p(L)}}function _(I){try{S(i.throw(I))}catch(L){p(L)}}function S(I){I.done?c(I.value):o(I.value).then(g,_)}S((i=i.apply(r,e||[])).next())})}function Ht(r,e){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,o,c,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(S){return function(I){return _([S,I])}}function _(S){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,o&&(c=S[0]&2?o.return:S[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,S[1])).done)return c;switch(o=0,c&&(S=[S[0]&2,c.value]),S[0]){case 0:case 1:c=S;break;case 4:return t.label++,{value:S[1],done:!1};case 5:t.label++,o=S[1],S=[0];continue;case 7:S=t.ops.pop(),t.trys.pop();continue;default:if(c=t.trys,!(c=c.length>0&&c[c.length-1])&&(S[0]===6||S[0]===2)){t=0;continue}if(S[0]===3&&(!c||S[1]>c[0]&&S[1]=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function We(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),o,c=[],p;try{for(;(e===void 0||e-- >0)&&!(o=i.next()).done;)c.push(o.value)}catch(g){p={error:g}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(p)throw p.error}}return c}function Ke(){for(var r=[],e=0;e1||g(F,z)})})}function g(F,z){try{_(i[F](z))}catch(V){L(c[0][3],V)}}function _(F){F.value instanceof lr?Promise.resolve(F.value.v).then(S,I):L(c[0][2],F)}function S(F){g("next",F)}function I(F){g("throw",F)}function L(F,z){F(z),c.shift(),c.length&&g(c[0][0],c[0][1])}}function Pr(r){var e,t;return e={},i("next"),i("throw",function(o){throw o}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(o,c){e[o]=r[o]?function(p){return(t=!t)?{value:lr(r[o](p)),done:o==="return"}:c?c(p):p}:c}}function Gr(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof Ie=="function"?Ie(r):r[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(c){t[c]=r[c]&&function(p){return new Promise(function(g,_){p=r[c](p),o(g,_,p.done,p.value)})}}function o(c,p,g,_){Promise.resolve(_).then(function(S){c({value:S,done:g})},p)}}function Sn(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}function nn(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}function Nn(r){return r&&r.__esModule?r:{default:r}}function Zn(r,e){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return e.get(r)}function Hn(r,e,t){if(!e.has(r))throw new TypeError("attempted to set private field on non-instance");return e.set(r,t),t}var An=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var o=t.marginRatio,c=o===void 0?qe:o,p=t.dodgeRatio,g=p===void 0?vr:p,_=t.dodgeBy,S=t.intervalPadding,I=t.dodgePadding,L=t.xDimensionLength,F=t.groupNum,z=t.defaultSize,V=t.maxColumnWidth,Q=t.minColumnWidth,st=t.columnWidthRatio,at=t.customOffset;return i.marginRatio=c,i.dodgeRatio=g,i.dodgeBy=_,i.intervalPadding=S,i.dodgePadding=I,i.xDimensionLegenth=L,i.groupNum=F,i.defaultSize=z,i.maxColumnWidth=V,i.minColumnWidth=Q,i.columnWidthRatio=st,i.customOffset=at,i}return e.prototype.process=function(t){var i=b.d9(t),o=b.xH(i),c=this.dodgeBy,p=c?b.ru(o,c):i;return this.cacheMap={},this.adjustDataArray=p,this.mergeData=o,this.adjustData(p,o),this.adjustDataArray=[],this.mergeData=[],i},e.prototype.adjustDim=function(t,i,o,c){var p=this,g=this.customOffset,_=this.getDistribution(t),S=this.groupData(o,t);return b.S6(S,function(I,L){var F;i.length===1?F={pre:i[0]-1,next:i[0]+1}:F=p.getAdjustRange(t,parseFloat(L),i),b.S6(I,function(z){var V=z[t],Q=_[V],st=Q.indexOf(c);if(b.UM(g))z[t]=p.getDodgeOffset(F,st,Q.length);else{var at=F.pre,Ft=F.next;z[t]=b.mf(g)?g(z,F):(at+Ft)/2+g}})}),[]},e.prototype.getDodgeOffset=function(t,i,o){var c=this,p=c.dodgeRatio,g=c.marginRatio,_=c.intervalPadding,S=c.dodgePadding,I=t.pre,L=t.next,F=L-I,z;if(!b.UM(_)&&b.UM(S)&&_>=0){var V=this.getIntervalOnlyOffset(o,i);z=I+V}else if(!b.UM(S)&&b.UM(_)&&S>=0){var V=this.getDodgeOnlyOffset(o,i);z=I+V}else if(!b.UM(_)&&!b.UM(S)&&_>=0&&S>=0){var V=this.getIntervalAndDodgeOffset(o,i);z=I+V}else{var Q=F*p/o,st=g*Q,V=1/2*(F-o*Q-(o-1)*st)+((i+1)*Q+i*st)-1/2*Q-1/2*F;z=(I+L)/2+V}return z},e.prototype.getIntervalOnlyOffset=function(t,i){var o=this,c=o.defaultSize,p=o.intervalPadding,g=o.xDimensionLegenth,_=o.groupNum,S=o.dodgeRatio,I=o.maxColumnWidth,L=o.minColumnWidth,F=o.columnWidthRatio,z=p/g,V=(1-(_-1)*z)/_*S/(t-1),Q=((1-z*(_-1))/_-V*(t-1))/t;if(Q=b.UM(F)?Q:1/_/t*F,!b.UM(I)){var st=I/g;Q=Math.min(Q,st)}if(!b.UM(L)){var at=L/g;Q=Math.max(Q,at)}Q=c?c/g:Q,V=((1-(_-1)*z)/_-t*Q)/(t-1);var Ft=((1/2+i)*Q+i*V+1/2*z)*_-z/2;return Ft},e.prototype.getDodgeOnlyOffset=function(t,i){var o=this,c=o.defaultSize,p=o.dodgePadding,g=o.xDimensionLegenth,_=o.groupNum,S=o.marginRatio,I=o.maxColumnWidth,L=o.minColumnWidth,F=o.columnWidthRatio,z=p/g,V=1*S/(_-1),Q=((1-V*(_-1))/_-z*(t-1))/t;if(Q=F?1/_/t*F:Q,!b.UM(I)){var st=I/g;Q=Math.min(Q,st)}if(!b.UM(L)){var at=L/g;Q=Math.max(Q,at)}Q=c?c/g:Q,V=(1-(Q*t+z*(t-1))*_)/(_-1);var Ft=((1/2+i)*Q+i*z+1/2*V)*_-V/2;return Ft},e.prototype.getIntervalAndDodgeOffset=function(t,i){var o=this,c=o.intervalPadding,p=o.dodgePadding,g=o.xDimensionLegenth,_=o.groupNum,S=c/g,I=p/g,L=((1-S*(_-1))/_-I*(t-1))/t,F=((1/2+i)*L+i*I+1/2*S)*_-S/2;return F},e.prototype.getDistribution=function(t){var i=this.adjustDataArray,o=this.cacheMap,c=o[t];return c||(c={},b.S6(i,function(p,g){var _=b.I(p,t);_.length||_.push(0),b.S6(_,function(S){c[S]||(c[S]=[]),c[S].push(g)})}),o[t]=c),c},e}(bt),$n=An;function Rt(r,e){return(e-r)*Math.random()+r}var Xt=function(r){ze(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.process=function(t){var i=b.d9(t),o=b.xH(i);return this.adjustData(i,o),i},e.prototype.adjustDim=function(t,i,o){var c=this,p=this.groupData(o,t);return b.S6(p,function(g,_){return c.adjustGroup(g,t,parseFloat(_),i)})},e.prototype.getAdjustOffset=function(t){var i=t.pre,o=t.next,c=(o-i)*oe;return Rt(i+c,o-c)},e.prototype.adjustGroup=function(t,i,o,c){var p=this,g=this.getAdjustRange(i,o,c);return b.S6(t,function(_){_[i]=p.getAdjustOffset(g)}),t},e}(bt),ae=Xt,we=b.Ct,Ge=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this,o=t.adjustNames,c=o===void 0?["y"]:o,p=t.height,g=p===void 0?NaN:p,_=t.size,S=_===void 0?10:_,I=t.reverseOrder,L=I===void 0?!1:I;return i.adjustNames=c,i.height=g,i.size=S,i.reverseOrder=L,i}return e.prototype.process=function(t){var i=this,o=i.yField,c=i.reverseOrder,p=o?this.processStack(t):this.processOneDimStack(t);return c?this.reverse(p):p},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var i=this,o=i.xField,c=i.yField,p=i.reverseOrder,g=p?this.reverse(t):t,_=new we,S=new we;return g.map(function(I){return I.map(function(L){var F,z=b.U2(L,o,0),V=b.U2(L,[c]),Q=z.toString();if(V=b.kJ(V)?V[1]:V,!b.UM(V)){var st=V>=0?_:S;st.has(Q)||st.set(Q,0);var at=st.get(Q),Ft=V+at;return st.set(Q,Ft),Vt(Vt({},L),(F={},F[c]=[at,Ft],F))}return L})})},e.prototype.processOneDimStack=function(t){var i=this,o=this,c=o.xField,p=o.height,g=o.reverseOrder,_="y",S=g?this.reverse(t):t,I=new we;return S.map(function(L){return L.map(function(F){var z,V=i.size,Q=F[c],st=V*2/p;I.has(Q)||I.set(Q,st/2);var at=I.get(Q);return I.set(Q,at+st),Vt(Vt({},F),(z={},z[_]=at,z))})})},e}(bt),cr=Ge,br=function(r){ze(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.process=function(t){var i=b.xH(t),o=this,c=o.xField,p=o.yField,g=this.getXValuesMaxMap(i),_=Math.max.apply(Math,Object.keys(g).map(function(S){return g[S]}));return b.UI(t,function(S){return b.UI(S,function(I){var L,F,z=I[p],V=I[c];if(b.kJ(z)){var Q=(_-g[V])/2;return Vt(Vt({},I),(L={},L[p]=b.UI(z,function(at){return Q+at}),L))}var st=(_-z)/2;return Vt(Vt({},I),(F={},F[p]=[st,z+st],F))})})},e.prototype.getXValuesMaxMap=function(t){var i=this,o=this,c=o.xField,p=o.yField,g=b.vM(t,function(_){return _[c]});return b.Q8(g,function(_){return i.getDimMaxValue(_,p)})},e.prototype.getDimMaxValue=function(t,i){var o=b.UI(t,function(p){return b.U2(p,i,[])}),c=b.xH(o);return Math.max.apply(Math,c)},e}(bt),Ce=br;xt("Dodge",$n),xt("Jitter",ae),xt("Stack",cr),xt("Symmetric",Ce);var ar=function(r,e){return(0,b.HD)(e)?e:r.invert(r.scale(e))},Hr=function(){function r(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return r.prototype.mapping=function(){for(var e=this,t=[],i=0;i1?1:Number(e),i=r.length-1,o=Math.floor(i*t),c=i*t-o,p=r[o],g=o===i?p:r[o+1];return ai([Kn(p,g,c,0),Kn(p,g,c,1),Kn(p,g,c,2)])},Ca,po=function(r){if(r[0]==="#"&&r.length===7)return r;Ca||(Ca=Qr()),Ca.style.color=r;var e=document.defaultView.getComputedStyle(Ca,"").getPropertyValue("color"),t=Kr.exec(e),i=t[1].split(/\s*,\s*/).map(function(o){return Number(o)});return e=ai(i),e},La=function(r){var e=(0,b.HD)(r)?r.split("-"):r,t=(0,b.UI)(e,function(i){return fi(i.indexOf("#")===-1?po(i):i)});return function(i){return Ai(t,i)}},Va=function(r){if(Ci(r)){var e,t=void 0;if(r[0]==="l"){var i=an.exec(r),o=+i[1]+90;t=i[2],e="linear-gradient("+o+"deg, "}else if(r[0]==="r"){e="radial-gradient(";var i=Pn.exec(r);t=i[4]}var c=t.match(xi);return(0,b.S6)(c,function(p,g){var _=p.split(":");e+=_[1]+" "+_[0]*100+"%",g!==c.length-1&&(e+=", ")}),e+=")",e}return r},_a={rgb2arr:fi,gradient:La,toRGB:(0,b.HP)(po),toCSSGradient:Va},ma=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this;return i.type="color",i.names=["color"],(0,b.HD)(i.values)&&(i.linear=!0),i.gradient=_a.gradient(i.values),i}return e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(Tn),Qa=ma,Uo=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return e}(Tn),vo=Uo,Ua=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return e.prototype.mapping=function(t,i){var o=this.scales,c=o[0],p=o[1];return(0,b.UM)(t)||(0,b.UM)(i)?[]:[(0,b.kJ)(t)?t.map(function(g){return c.scale(g)}):c.scale(t),(0,b.kJ)(i)?i.map(function(g){return p.scale(g)}):p.scale(i)]},e}(Tn),Xa=Ua,Oo=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return e.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},e}(Tn),Du=Oo,Yo=function(r){ze(e,r);function e(t){var i=r.call(this,t)||this;return i.type="size",i.names=["size"],i}return e}(Tn),_o=Yo,ir={};function ge(r){return ir[r]}function He(r,e){ir[r]=e}var Ir=function(){function r(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return r.prototype.translate=function(e){return e},r.prototype.change=function(e){(0,b.f0)(this.__cfg__,e),this.init()},r.prototype.clone=function(){return this.constructor(this.__cfg__)},r.prototype.getTicks=function(){var e=this;return(0,b.UI)(this.ticks,function(t,i){return(0,b.Kn)(t)?t:{text:e.getText(t,i),tickValue:t,value:e.scale(t)}})},r.prototype.getText=function(e,t){var i=this.formatter,o=i?i(e,t):e;return(0,b.UM)(o)||!(0,b.mf)(o.toString)?"":o.toString()},r.prototype.getConfig=function(e){return this.__cfg__[e]},r.prototype.init=function(){(0,b.f0)(this,this.__cfg__),this.setDomain(),(0,b.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},r.prototype.initCfg=function(){},r.prototype.setDomain=function(){},r.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if((0,b.HD)(e)){var i=ge(e);if(!i)throw new Error("There is no method to to calculate ticks!");t=i(this)}else(0,b.mf)(e)&&(t=e(this));return t},r.prototype.rangeMin=function(){return this.range[0]},r.prototype.rangeMax=function(){return this.range[1]},r.prototype.calcPercent=function(e,t,i){return(0,b.hj)(e)?(e-t)/(i-t):NaN},r.prototype.calcValue=function(e,t,i){return t+e*(i-t)},r}(),en=Ir,On=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[c]},e.prototype.getText=function(t){for(var i=[],o=1;o1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(en),zn=On,kn=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,qi="\\d\\d?",Oa="\\d\\d",us="\\d{3}",Ao="\\d{4}",Ho="[^\\s]+",uo=/\[([^]*?)\]/gm;function Zo(r,e){for(var t=[],i=0,o=r.length;i-1?o:null}};function jo(r){for(var e=[],t=1;t3?0:(r-r%10!==10?1:0)*r%10]}},Cr=jo({},Xe),sn=function(r){return Cr=jo(Cr,r)},si=function(r){return r.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Pi=function(r,e){for(e===void 0&&(e=2),r=String(r);r.length0?"-":"+")+Pi(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(r){var e=r.getTimezoneOffset();return(e>0?"-":"+")+Pi(Math.floor(Math.abs(e)/60),2)+":"+Pi(Math.abs(e)%60,2)}},vs=function(r){return+r-1},$o=[null,qi],qo=[null,Ho],Js=["isPm",Ho,function(r,e){var t=r.toLowerCase();return t===e.amPm[0]?0:t===e.amPm[1]?1:null}],qu=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(r){var e=(r+"").match(/([+-]|\d\d)/gi);if(e){var t=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?t:-t}return 0}],yu={D:["day",qi],DD:["day",Oa],Do:["day",qi+Ho,function(r){return parseInt(r,10)}],M:["month",qi,vs],MM:["month",Oa,vs],YY:["year",Oa,function(r){var e=new Date,t=+(""+e.getFullYear()).substr(0,2);return+(""+(+r>68?t-1:t)+r)}],h:["hour",qi,void 0,"isPm"],hh:["hour",Oa,void 0,"isPm"],H:["hour",qi],HH:["hour",Oa],m:["minute",qi],mm:["minute",Oa],s:["second",qi],ss:["second",Oa],YYYY:["year",Ao],S:["millisecond","\\d",function(r){return+r*100}],SS:["millisecond",Oa,function(r){return+r*10}],SSS:["millisecond",us],d:$o,dd:$o,ddd:qo,dddd:qo,MMM:["month",Ho,Qs("monthNamesShort")],MMMM:["month",Ho,Qs("monthNames")],a:Js,A:Js,ZZ:qu,Z:qu},Zs={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},_u=function(r){return jo(Zs,r)},Ku=function(r,e,t){if(e===void 0&&(e=Zs.default),t===void 0&&(t={}),typeof r=="number"&&(r=new Date(r)),Object.prototype.toString.call(r)!=="[object Date]"||isNaN(r.getTime()))throw new Error("Invalid Date pass to format");e=Zs[e]||e;var i=[];e=e.replace(uo,function(c,p){return i.push(p),"@@@"});var o=jo(jo({},Cr),t);return e=e.replace(kn,function(c){return ja[c](r,o)}),e.replace(/@@@/g,function(){return i.shift()})};function Bu(r,e,t){if(t===void 0&&(t={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=Zs[e]||e,r.length>1e3)return null;var i=new Date,o={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},c=[],p=[],g=e.replace(uo,function(ee,Me){return p.push(si(Me)),"@@@"}),_={},S={};g=si(g).replace(kn,function(ee){var Me=yu[ee],hr=Me[0],Tr=Me[1],Dr=Me[3];if(_[hr])throw new Error("Invalid format. "+hr+" specified twice in format");return _[hr]=!0,Dr&&(S[Dr]=!0),c.push(Me),"("+Tr+")"}),Object.keys(S).forEach(function(ee){if(!_[ee])throw new Error("Invalid format. "+ee+" is required in specified format")}),g=g.replace(/@@@/g,function(){return p.shift()});var I=r.match(new RegExp(g,"i"));if(!I)return null;for(var L=jo(jo({},Cr),t),F=1;F11||o.month<0||o.day>31||o.day<1||o.hour>23||o.hour<0||o.minute>59||o.minute<0||o.second>59||o.second<0)return null;return at}var xl={format:Ku,parse:Bu,defaultI18n:Xe,setGlobalDateI18n:sn,setGlobalDateMasks:_u},Nu=xl;function Fo(r){return function(e,t,i,o){for(var c=(0,b.UM)(i)?0:i,p=(0,b.UM)(o)?e.length:o;c>>1;r(e[g])>t?p=g:c=g+1}return c}}var Ts="format";function jc(r,e){var t=kt[Ts]||Nu[Ts];return t(r,e)}function Wc(r){return(0,b.HD)(r)&&(r.indexOf("T")>0?r=new Date(r).getTime():r=new Date(r.replace(/-/gi,"/")).getTime()),(0,b.J_)(r)&&(r=r.getTime()),r}var xu=1e3,Ms=60*xu,pl=60*Ms,Ga=24*pl,zu=Ga*31,Xc=Ga*365,D=[["HH:mm:ss",xu],["HH:mm:ss",xu*10],["HH:mm:ss",xu*30],["HH:mm",Ms],["HH:mm",Ms*10],["HH:mm",Ms*30],["HH",pl],["HH",pl*6],["HH",pl*12],["YYYY-MM-DD",Ga],["YYYY-MM-DD",Ga*4],["YYYY-WW",Ga*7],["YYYY-MM",zu],["YYYY-MM",zu*4],["YYYY-MM",zu*6],["YYYY",Ga*380]];function X(r,e,t){var i=(e-r)/t,o=Fo(function(p){return p[1]})(D,i)-1,c=D[o];return o<0?c=D[0]:o>=D.length&&(c=(0,b.Z$)(D)),c}var Mt=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="timeCat",t}return e.prototype.translate=function(t){t=Wc(t);var i=this.values.indexOf(t);return i===-1&&((0,b.hj)(t)&&t-1){var c=this.values[o],p=this.formatter;return c=p?p(c,i):jc(c,this.mask),c}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var t=this.values;(0,b.S6)(t,function(i,o){t[o]=Wc(i)}),t.sort(function(i,o){return i-o}),r.prototype.setDomain.call(this)},e}(zn),it=Mt,Jt=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isContinuous=!0,t}return e.prototype.scale=function(t){if((0,b.UM)(t))return NaN;var i=this.rangeMin(),o=this.rangeMax(),c=this.max,p=this.min;if(c===p)return i;var g=this.getScalePercent(t);return i+g*(o-i)},e.prototype.init=function(){r.prototype.init.call(this);var t=this.ticks,i=(0,b.YM)(t),o=(0,b.Z$)(t);ithis.max&&(this.max=o),(0,b.UM)(this.minLimit)||(this.min=i),(0,b.UM)(this.maxLimit)||(this.max=o)},e.prototype.setDomain=function(){var t=(0,b.rx)(this.values),i=t.min,o=t.max;(0,b.UM)(this.min)&&(this.min=i),(0,b.UM)(this.max)&&(this.max=o),this.min>this.max&&(this.min=i,this.max=o)},e.prototype.calculateTicks=function(){var t=this,i=r.prototype.calculateTicks.call(this);return this.nice||(i=(0,b.hX)(i,function(o){return o>=t.min&&o<=t.max})),i},e.prototype.getScalePercent=function(t){var i=this.max,o=this.min;return(t-o)/(i-o)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(en),Ue=Jt,yr=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return e.prototype.invert=function(t){var i=this.getInvertPercent(t);return this.min+i*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Ue),Br=yr;function zr(r,e){var t=Math.E,i;return e>=0?i=Math.pow(t,Math.log(e)/r):i=Math.pow(t,Math.log(-e)/r)*-1,i}function Cn(r,e){return r===1?1:Math.log(e)/Math.log(r)}function Vn(r,e,t){(0,b.UM)(t)&&(t=Math.max.apply(null,r));var i=t;return(0,b.S6)(r,function(o){o>0&&o1&&(i=1),i}function Ki(r){var e=r.toString().split(/[eE]/),t=(e[0].split(".")[1]||"").length-+(e[1]||0);return t>0?t:0}function Ma(r,e){var t=Ki(r),i=Ki(e),o=Math.pow(10,Math.max(t,i));return(r*o+e*o)/o}var xa=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t}return e.prototype.invert=function(t){var i=this.base,o=Cn(i,this.max),c=this.rangeMin(),p=this.rangeMax()-c,g,_=this.positiveMin;if(_){if(t===0)return 0;g=Cn(i,_/i);var S=1/(o-g)*p;if(t=0?1:-1;return Math.pow(g,o)*_},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var i=this.max,o=this.min;if(i===o)return 0;var c=this.exponent,p=(zr(c,t)-zr(c,o))/(zr(c,i)-zr(c,o));return p},e}(Ue),Io=Ro,fa=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="time",t}return e.prototype.getText=function(t,i){var o=this.translate(t),c=this.formatter;return c?c(o,i):jc(o,this.mask)},e.prototype.scale=function(t){var i=t;return((0,b.HD)(i)||(0,b.J_)(i))&&(i=this.translate(i)),r.prototype.scale.call(this,i)},e.prototype.translate=function(t){return Wc(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,i=this.getConfig("min"),o=this.getConfig("max");if((!(0,b.UM)(i)||!(0,b.hj)(i))&&(this.min=this.translate(this.min)),(!(0,b.UM)(o)||!(0,b.hj)(o))&&(this.max=this.translate(this.max)),t&&t.length){var c=[],p=1/0,g=p,_=0;(0,b.S6)(t,function(S){var I=Wc(S);if(isNaN(I))throw new TypeError("Invalid Time: "+S+" in time scale!");p>I?(g=p,p=I):g>I&&(g=I),_1&&(this.minTickInterval=g-p),(0,b.UM)(i)&&(this.min=p),(0,b.UM)(o)&&(this.max=_)}},e}(Br),bu=fa,bl=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantize",t}return e.prototype.invert=function(t){var i=this.ticks,o=i.length,c=this.getInvertPercent(t),p=Math.floor(c*(o-1));if(p>=o-1)return(0,b.Z$)(i);if(p<0)return(0,b.YM)(i);var g=i[p],_=i[p+1],S=p/(o-1),I=(p+1)/(o-1);return g+(c-S)/(I-S)*(_-g)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var t=r.prototype.calculateTicks.call(this);return this.nice||((0,b.Z$)(t)!==this.max&&t.push(this.max),(0,b.YM)(t)!==this.min&&t.unshift(this.min)),t},e.prototype.getScalePercent=function(t){var i=this.ticks;if(t<(0,b.YM)(i))return 0;if(t>(0,b.Z$)(i))return 1;var o=0;return(0,b.S6)(i,function(c,p){if(t>=c)o=p;else return!1}),o/(i.length-1)},e}(Ue),Ic=bl,Yc=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="quantile",t}return e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ic),Fl=Yc,kc={};function Uu(r){return kc[r]}function js(r,e){if(Uu(r))throw new Error("type '"+r+"' existed.");kc[r]=e}var ce=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,b.hj)(t)?t:this.range[0]},e.prototype.invert=function(t){var i=this.range;return ti[1]?NaN:this.values[0]},e}(en),or=ce;function Fr(r){var e=r.values,t=r.tickInterval,i=r.tickCount,o=r.showLast;if((0,b.hj)(t)){var c=(0,b.hX)(e,function(V,Q){return Q%t===0}),p=(0,b.Z$)(e);return o&&(0,b.Z$)(c)!==p&&c.push(p),c}var g=e.length,_=r.min,S=r.max;if((0,b.UM)(_)&&(_=0),(0,b.UM)(S)&&(S=e.length-1),!(0,b.hj)(i)||i>=g)return e.slice(_,S+1);if(i<=0||S<=0)return[];for(var I=i===1?g:Math.floor(g/(i-1)),L=[],F=_,z=0;z=S);z++)F=Math.min(_+z*I,S),z===i-1&&o?L.push(e[S]):L.push(e[F]);return L}function Xr(r){var e=r.min,t=r.max,i=r.nice,o=r.tickCount,c=new Eu;return c.domain([e,t]),i&&c.nice(o),c.ticks(o)}var xn=5,Ii=Math.sqrt(50),ra=Math.sqrt(10),Wa=Math.sqrt(2),Eu=function(){function r(){this._domain=[0,1]}return r.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},r.prototype.nice=function(e){var t,i;e===void 0&&(e=xn);var o=this._domain.slice(),c=0,p=this._domain.length-1,g=this._domain[c],_=this._domain[p],S;return _0?(g=Math.floor(g/S)*S,_=Math.ceil(_/S)*S,S=Ya(g,_,e)):S<0&&(g=Math.ceil(g*S)/S,_=Math.floor(_*S)/S,S=Ya(g,_,e)),S>0?(o[c]=Math.floor(g/S)*S,o[p]=Math.ceil(_/S)*S,this.domain(o)):S<0&&(o[c]=Math.ceil(g*S)/S,o[p]=Math.floor(_*S)/S,this.domain(o)),this},r.prototype.ticks=function(e){return e===void 0&&(e=xn),Ws(this._domain[0],this._domain[this._domain.length-1],e||xn)},r}();function Ws(r,e,t){var i,o=-1,c,p,g;if(e=+e,r=+r,t=+t,r===e&&t>0)return[r];if((i=e0)for(r=Math.ceil(r/g),e=Math.floor(e/g),p=new Array(c=Math.ceil(e-r+1));++o=0?(c>=Ii?10:c>=ra?5:c>=Wa?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(c>=Ii?10:c>=ra?5:c>=Wa?2:1)}function Jl(r,e,t){var i;return t==="ceil"?i=Math.ceil(r/e):t==="floor"?i=Math.floor(r/e):i=Math.round(r/e),i*e}function $c(r,e,t){var i=Jl(r,t,"floor"),o=Jl(e,t,"ceil");i=(0,b.ri)(i,t),o=(0,b.ri)(o,t);for(var c=[],p=Math.max((o-i)/(Math.pow(2,12)-1),t),g=i;g<=o;g=g+p){var _=(0,b.ri)(g,p);c.push(_)}return{min:i,max:o,ticks:c}}function tc(r,e,t){var i,o=r.minLimit,c=r.maxLimit,p=r.min,g=r.max,_=r.tickCount,S=_===void 0?5:_,I=(0,b.UM)(o)?(0,b.UM)(e)?p:e:o,L=(0,b.UM)(c)?(0,b.UM)(t)?g:t:c;if(I>L&&(i=[I,L],L=i[0],I=i[1]),S<=2)return[I,L];for(var F=(L-I)/(S-1),z=[],V=0;V=0&&(_=1),1-g/(p-1)-t+_}function Vf(r,e,t){var i=(0,b.dp)(e),o=(0,b.cq)(e,r),c=1;return 1-o/(i-1)-t+c}function fh(r,e,t,i,o,c){var p=(r-1)/(c-o),g=(e-1)/(Math.max(c,i)-Math.min(t,o));return 2-Math.max(p/g,g/p)}function Qc(r,e){return r>=e?2-(r-1)/(e-1):1}function Rl(r,e,t,i){var o=e-r;return 1-.5*(Math.pow(e-i,2)+Math.pow(r-t,2))/Math.pow(.1*o,2)}function wp(r,e,t){var i=e-r;if(t>i){var o=(t-i)/2;return 1-Math.pow(o,2)/Math.pow(.1*i,2)}return 1}function hh(){return 1}function Qu(r,e,t,i,o,c){t===void 0&&(t=5),i===void 0&&(i=!0),o===void 0&&(o=tv),c===void 0&&(c=[.25,.2,.5,.05]);var p=t<0?0:Math.round(t);if(Number.isNaN(r)||Number.isNaN(e)||typeof r!="number"||typeof e!="number"||!p)return{min:0,max:0,ticks:[]};if(e-r<1e-15||p===1)return{min:r,max:e,ticks:[r]};if(e-r>1e148){var g=t||5,_=(e-r)/g;return{min:r,max:e,ticks:Array(g).fill(null).map(function(ka,xo){return zf(r+_*xo)})}}for(var S={score:-2,lmin:0,lmax:0,lstep:0},I=1;I<1/0;){for(var L=0;LS.score&&(!i||Dr<=r&&cn>=e)&&(S.lmin=Dr,S.lmax=cn,S.lstep=Jr,S.score=eo)}at+=1}V+=1}}I+=1}var Gn=zf(S.lmax),Vi=zf(S.lmin),ua=zf(S.lstep),Xi=Math.floor(Zf((Gn-Vi)/ua))+1,ea=new Array(Xi);ea[0]=zf(Vi);for(var L=1;L0)p=Math.floor(Cn(e,i));else{var _=Vn(c,e,o);p=Math.floor(Cn(e,_))}for(var S=g-p,I=Math.ceil(S/t),L=[],F=p;F=0?1:-1;return Math.pow(p,e)*g})}function Sp(r,e){var t=r.length*e;return e===1?r[r.length-1]:e===0?r[0]:t%1!==0?r[Math.ceil(t)-1]:r.length%2===0?(r[t-1]+r[t])/2:r[t]}function nd(r){var e=r.tickCount,t=r.values;if(!t||!t.length)return[];for(var i=t.slice().sort(function(g,_){return g-_}),o=[],c=0;c1&&(o=o*Math.ceil(g)),i&&oXc)for(var _=tf(t),S=Math.ceil(c/Xc),I=g;I<=_+S;I=I+S)p.push(Hf(I));else if(c>zu)for(var L=Math.ceil(c/zu),F=gf(e),z=ad(e,t),I=0;I<=z+L;I=I+L)p.push(od(g,I+F));else if(c>Ga)for(var V=new Date(e),Q=V.getFullYear(),st=V.getMonth(),at=V.getDate(),Ft=Math.ceil(c/Ga),Kt=mf(e,t),I=0;Ipl)for(var V=new Date(e),Q=V.getFullYear(),st=V.getMonth(),Ft=V.getDate(),ee=V.getHours(),Me=Math.ceil(c/pl),hr=$v(e,t),I=0;I<=hr+Me;I=I+Me)p.push(new Date(Q,st,Ft,ee+I).getTime());else if(c>Ms)for(var Tr=ph(e,t),Dr=Math.ceil(c/Ms),I=0;I<=Tr+Dr;I=I+Dr)p.push(e+I*Ms);else{var cn=c;cn=512&&console.warn("Notice: current ticks length("+p.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),p}He("cat",Fr),He("time-cat",id),He("wilkinson-extended",Jc),He("r-pretty",Cp),He("time",rc),He("time-pretty",gs),He("log",Zh),He("pow",ec),He("quantile",nd),He("d3-linear",rd),js("cat",zn),js("category",zn),js("identity",or),js("linear",Br),js("log",lo),js("pow",Io),js("time",bu),js("timeCat",it),js("quantize",Ic),js("quantile",Fl);var yf={},jf=function(r){return yf[r.toLowerCase()]},Dl=function(r,e){if(jf(r))throw new Error("Attribute type '"+r+"' existed.");yf[r.toLowerCase()]=e};Dl("Color",Qa),Dl("Opacity",vo),Dl("Position",Xa),Dl("Shape",Du),Dl("Size",_o);var Ja=nt(68072),Wo=nt(99250),ro=nt(32071),Ap=function(){function r(e){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=e.start,i=e.end,o=e.matrix,c=o===void 0?[1,0,0,0,1,0,0,0,1]:o,p=e.isTransposed,g=p===void 0?!1:p;this.start=t,this.end=i,this.matrix=c,this.originalMatrix=(0,P.ev)([],c),this.isTransposed=g}return r.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},r.prototype.update=function(e){(0,b.f0)(this,e),this.initial()},r.prototype.convertDim=function(e,t){var i,o=this[t],c=o.start,p=o.end;return this.isReflect(t)&&(i=[p,c],c=i[0],p=i[1]),c+e*(p-c)},r.prototype.invertDim=function(e,t){var i,o=this[t],c=o.start,p=o.end;return this.isReflect(t)&&(i=[p,c],c=i[0],p=i[1]),(e-c)/(p-c)},r.prototype.applyMatrix=function(e,t,i){i===void 0&&(i=0);var o=this.matrix,c=[e,t,i];return Ja.transformMat3(c,c,o),c},r.prototype.invertMatrix=function(e,t,i){i===void 0&&(i=0);var o=this.matrix,c=Wo.U_([0,0,0,0,0,0,0,0,0],o),p=[e,t,i];return c&&Ja.transformMat3(p,p,c),p},r.prototype.convert=function(e){var t=this.convertPoint(e),i=t.x,o=t.y,c=this.applyMatrix(i,o,1);return{x:c[0],y:c[1]}},r.prototype.invert=function(e){var t=this.invertMatrix(e.x,e.y,1);return this.invertPoint({x:t[0],y:t[1]})},r.prototype.rotate=function(e){var t=this.matrix,i=this.center;return ro.m$(t,t,[-i.x,-i.y]),ro.zu(t,t,e),ro.m$(t,t,[i.x,i.y]),this},r.prototype.reflect=function(e){return e==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},r.prototype.scale=function(e,t){var i=this.matrix,o=this.center;return ro.m$(i,i,[-o.x,-o.y]),ro.lh(i,i,[e,t]),ro.m$(i,i,[o.x,o.y]),this},r.prototype.translate=function(e,t){var i=this.matrix;return ro.m$(i,i,[e,t]),this},r.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},r.prototype.getCenter=function(){return this.center},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRadius=function(){return this.radius},r.prototype.isReflect=function(e){return e==="x"?this.isReflectX:this.isReflectY},r.prototype.resetMatrix=function(e){this.matrix=e||(0,P.ev)([],this.originalMatrix)},r}(),Bl=Ap,Tp=function(r){(0,P.ZT)(e,r);function e(t){var i=r.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},e.prototype.convertPoint=function(t){var i,o=t.x,c=t.y;return this.isTransposed&&(i=[c,o],o=i[0],c=i[1]),{x:this.convertDim(o,"x"),y:this.convertDim(c,"y")}},e.prototype.invertPoint=function(t){var i,o=this.invertDim(t.x,"x"),c=this.invertDim(t.y,"y");return this.isTransposed&&(i=[c,o],o=i[0],c=i[1]),{x:o,y:c}},e}(Bl),qv=Tp,Ia=nt(1153),Wf=function(r){(0,P.ZT)(e,r);function e(t){var i=r.call(this,t)||this;i.isHelix=!0,i.type="helix";var o=t.startAngle,c=o===void 0?1.25*Math.PI:o,p=t.endAngle,g=p===void 0?7.25*Math.PI:p,_=t.innerRadius,S=_===void 0?0:_,I=t.radius;return i.startAngle=c,i.endAngle=g,i.innerRadius=S,i.radius=I,i.initial(),i}return e.prototype.initial=function(){r.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},e.prototype.convertPoint=function(t){var i,o=t.x,c=t.y;this.isTransposed&&(i=[c,o],o=i[0],c=i[1]);var p=this.convertDim(o,"x"),g=this.a*p,_=this.convertDim(c,"y");return{x:this.center.x+Math.cos(p)*(g+_),y:this.center.y+Math.sin(p)*(g+_)}},e.prototype.invertPoint=function(t){var i,o=this.d+this.y.start,c=Ia.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),p=ro.Dg(c,[1,0],!0),g=p*this.a;Ia.kE(c)this.width/i?(g=this.width/i,this.circleCenter={x:this.center.x-(.5-c)*this.width,y:this.center.y-(.5-p)*g*o}):(g=this.height/o,this.circleCenter={x:this.center.x-(.5-c)*g*i,y:this.center.y-(.5-p)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=g*this.radius:(this.radius<=0||this.radius>g)&&(this.polarRadius=g):this.polarRadius=g,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var i,o=this.getCenter(),c=t.x,p=t.y;return this.isTransposed&&(i=[p,c],c=i[0],p=i[1]),c=this.convertDim(c,"x"),p=this.convertDim(p,"y"),{x:o.x+Math.cos(c)*p,y:o.y+Math.sin(c)*p}},e.prototype.invertPoint=function(t){var i,o=this.getCenter(),c=[t.x-o.x,t.y-o.y],p=this,g=p.startAngle,_=p.endAngle;this.isReflect("x")&&(i=[_,g],g=i[0],_=i[1]);var S=[1,0,0,0,1,0,0,0,1];ro.zu(S,S,g);var I=[1,0,0];Ja.transformMat3(I,I,S);var L=[I[0],I[1]],F=ro.Dg(L,c,_0?V:-V;var Q=this.invertDim(z,"y"),st={x:0,y:0};return st.x=this.isTransposed?Q:V,st.y=this.isTransposed?V:Q,st},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var o=[0,Math.cos(t),Math.cos(i)],c=[0,Math.sin(t),Math.sin(i)],p=Math.min(t,i);p=0;i--)r.removeChild(e[i])}function es(r,e){return!!r.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function wu(r){var e=r.start,t=r.end,i=Math.min(e.x,t.x),o=Math.min(e.y,t.y),c=Math.max(e.x,t.x),p=Math.max(e.y,t.y);return{x:i,y:o,minX:i,minY:o,maxX:c,maxY:p,width:c-i,height:p-o}}function xf(r){var e=r.map(function(g){return g.x}),t=r.map(function(g){return g.y}),i=Math.min.apply(Math,e),o=Math.min.apply(Math,t),c=Math.max.apply(Math,e),p=Math.max.apply(Math,t);return{x:i,y:o,minX:i,minY:o,maxX:c,maxY:p,width:c-i,height:p-o}}function wl(r,e,t,i){var o=r+t,c=e+i;return{x:r,y:e,width:t,height:i,minX:r,minY:e,maxX:isNaN(o)?0:o,maxY:isNaN(c)?0:c}}function eu(r,e,t){return(1-t)*r+e*t}function nl(r,e,t){return{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}}function Kv(r,e){var t=e.x-r.x,i=e.y-r.y;return Math.sqrt(t*t+i*i)}var Vh=function(r){return new Promise(function(e){setTimeout(e,r)})},bf=function(r,e,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[r,e].includes(1/0)?Math.abs(r)===Math.abs(e):Math.abs(r-e)0?(0,b.S6)(_,function(S){if(S.get("visible")){if(S.isGroup()&&S.get("children").length===0)return!0;var I=dl(S),L=S.applyToMatrix([I.minX,I.minY,1]),F=S.applyToMatrix([I.minX,I.maxY,1]),z=S.applyToMatrix([I.maxX,I.minY,1]),V=S.applyToMatrix([I.maxX,I.maxY,1]),Q=Math.min(L[0],F[0],z[0],V[0]),st=Math.max(L[0],F[0],z[0],V[0]),at=Math.min(L[1],F[1],z[1],V[1]),Ft=Math.max(L[1],F[1],z[1],V[1]);Qc&&(c=st),atg&&(g=Ft)}}):(o=0,c=0,p=0,g=0),i=wl(o,p,c-o,g-p)}return t?ev(i,t):i}function to(r,e){if(!(!r.getClip()&&!e.getClip())){var t=e.getClip();if(!t){r.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};r.setClip(i)}}function mo(r){return r+"px"}function ic(r,e,t,i){var o=Kv(r,e),c=i/o,p=0;return t==="start"?p=0-c:t==="end"&&(p=1+c),{x:eu(r.x,e.x,p),y:eu(r.y,e.y,p)}}var Xs={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},Yf=function(r){(0,P.ZT)(e,r);function e(t){var i=r.call(this,t)||this;return i.initCfg(),i}return e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var i=this,o=this.get("defaultCfg")||{};(0,b.S6)(t,function(c,p){var g=i.get(p),_=c;g!==c&&((0,b.Kn)(c)&&o[p]&&(_=(0,b.b$)({},o[p],c)),i.set(p,_))}),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,b.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,b.wH)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},e.prototype.setLocation=function(t){var i=(0,P.pi)({},t);this.update(i)},e.prototype.getLocation=function(){var t=this,i={},o=this.get("locationType"),c=Xs[o];return(0,b.S6)(c,function(p){i[p]=t.get(p)}),i},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");(0,b.S6)(i,function(o,c){var p=t.get(c);if((0,b.Kn)(p)){var g=(0,b.b$)({},o,p);t.set(c,g)}})},e}(ye.Base),nf=Yf,Su="update_status",fu=["visible","tip","delegateObject"],Sl=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Qi=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var i=this.getElementById(t),o=i&&i.get("component");return o},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},e.prototype.getElementsByName=function(t){var i=[];return(0,b.S6)(this.get("shapesMap"),function(o){o.get("name")===t&&i.push(o)}),i},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),r.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),o=t.getTotalMatrix();return o&&(i=sd(o,i)),i},e.prototype.on=function(t,i,o){var c=this.get("group");return c.on(t,i,o),this},e.prototype.off=function(t,i){var o=this.get("group");return o&&o.off(t,i),this},e.prototype.emit=function(t,i){var o=this.get("group");o.emit(t,i)},e.prototype.init=function(){r.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,i){var o=this.get("group");i.target=o,o.emit(t,i),ji(o,t,i)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),o=new i({delegateObject:this.getDelegateObject()});return o},e.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",dl(t)),t},e.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var o=t.addGroup(i);return this.get("isRegister")&&this.registerElement(o),o},e.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var o=t.addShape(i);return this.get("isRegister")&&this.registerElement(o),o},e.prototype.addComponent=function(t,i){var o=i.id,c=i.component,p=(0,P._T)(i,["id","component"]),g=new c((0,P.pi)((0,P.pi)({},p),{id:o,container:t,updateAutoRender:this.get("updateAutoRender")}));return g.init(),g.render(),this.get("isRegister")&&this.registerElement(g.get("group")),g},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var i=this.get("id"),o=this.get("name");return i+"-"+o+"-"+t},e.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},e.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},e.prototype.moveElementTo=function(t,i){var o=Nl(i);t.attr("matrix",o)},e.prototype.addAnimation=function(t,i,o){var c=i.attr("opacity");(0,b.UM)(c)&&(c=1),i.attr("opacity",0),i.animate({opacity:c},o)},e.prototype.removeAnimation=function(t,i,o){i.animate({opacity:0},o)},e.prototype.updateAnimation=function(t,i,o,c){i.animate(o,c)},e.prototype.updateElements=function(t,i){var o=this,c=this.get("animate"),p=this.get("animateOption"),g=t.getChildren().slice(0),_;(0,b.S6)(g,function(S){var I=S.get("id"),L=o.getElementById(I),F=S.get("name");if(L)if(S.get("isComponent")){var z=S.get("component"),V=L.get("component"),Q=(0,b.ei)(z.cfg,(0,b.e5)((0,b.XP)(z.cfg),Sl));V.update(Q),L.set(Su,"update")}else{var st=o.getReplaceAttrs(L,S);c&&p.update?o.updateAnimation(F,L,st,p.update):L.attr(st),S.isGroup()&&o.updateElements(S,L),(0,b.S6)(fu,function(ee){L.set(ee,S.get(ee))}),to(L,S),_=L,L.set(Su,"update")}else{i.add(S);var at=i.getChildren();if(at.splice(at.length-1,1),_){var Ft=at.indexOf(_);at.splice(Ft+1,0,S)}else at.unshift(S);if(o.registerElement(S),S.set(Su,"add"),S.get("isComponent")){var z=S.get("component");z.set("container",i)}else S.isGroup()&&o.registerNewGroup(S);if(_=S,c){var Kt=o.get("isInit")?p.appear:p.enter;Kt&&o.addAnimation(F,S,Kt)}}})},e.prototype.clearUpdateStatus=function(t){var i=t.getChildren();(0,b.S6)(i,function(o){o.set(Su,null)})},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,i=this.get("name"),o=(t={},t[i]=this,t.component=this,t);return o},e.prototype.appendDelegateObject=function(t,i){var o=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),(0,b.CD)(i.delegateObject,o)},e.prototype.getReplaceAttrs=function(t,i){var o=t.attr(),c=i.attr();return(0,b.S6)(o,function(p,g){c[g]===void 0&&(c[g]=void 0)}),c},e.prototype.registerNewGroup=function(t){var i=this,o=t.getChildren();(0,b.S6)(o,function(c){i.registerElement(c),c.set(Su,"add"),c.isGroup()&&i.registerNewGroup(c)})},e.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),o=[];(0,b.S6)(i,function(g,_){!g.get(Su)||g.destroyed?o.push([_,g]):g.set(Su,null)});var c=this.get("animate"),p=this.get("animateOption");(0,b.S6)(o,function(g){var _=g[0],S=g[1];if(!S.destroyed){var I=S.get("name");if(c&&p.leave){var L=(0,b.CD)({callback:function(){t.removeElement(S)}},p.leave);t.removeAnimation(I,S,L)}else t.removeElement(S)}delete i[_]})},e.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},e}(nf),ki=Qi,Ef="\u2026";function Ju(r){for(var e=0,t=0;t0&&r.charCodeAt(e)<128?1:2}function Vu(r,e,t){t===void 0&&(t="tail");var i=r.length,o="";if(t==="tail"){for(var c=0,p=0;c=19968&&g<=40869?c+=2:c+=1}c>t&&(t=c,i=o)}return r[i].getBBox().width}function rs(r){if(r.length>zl)return Do(r);var e=0;return(0,b.S6)(r,function(t){var i=t.getBBox(),o=i.width;e=0?F=Vu(c,L,i):F=gc,F&&(e.attr("text",F),I=!0)}return I?e.set("tip",c):e.set("tip",null),I}function il(r,e){var t=e.x,i=e.y,o=e.content,c=e.style,p=e.id,g=e.name,_=e.rotate,S=e.maxLength,I=e.autoEllipsis,L=e.isVertical,F=e.ellipsisPosition,z=e.background,V=r.addGroup({id:p+"-group",name:g+"-group",attrs:{x:t,y:i}}),Q=V.addShape({type:"text",id:p,name:g,attrs:(0,P.pi)({x:0,y:0,text:o},c)}),st=gh((0,b.U2)(z,"padding",0));if(S&&I){var at=S-(st[1]+st[3]);Cl(!L,Q,at,F)}if(z){var Ft=(0,b.U2)(z,"style",{}),Kt=Q.getCanvasBBox(),ee=Kt.minX,Me=Kt.minY,hr=Kt.width,Tr=Kt.height,Dr=V.addShape("rect",{id:p+"-bg",name:p+"-bg",attrs:(0,P.pi)({x:ee-st[3],y:Me-st[0],width:hr+st[1]+st[3],height:Tr+st[0]+st[2]},Ft)});Dr.toBack()}Xf(V,t,i),Ti(V,_,t,i)}var va={fontFamily:`
BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",
Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},Ul=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:va.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:va.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:va.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var i=this.get("start"),o=this.get("end"),c=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,P.pi)({x1:i.x,y1:i.y,x2:o.x,y2:o.y},c)})},e.prototype.getLabelPoint=function(t,i,o){var c;return o==="start"?c=0:o==="center"?c=.5:(0,b.HD)(o)&&o.indexOf("%")!==-1?c=parseInt(o,10)/100:(0,b.hj)(o)?c=o:c=1,(c>1||c<0)&&(c=1),{x:eu(t.x,i.x,c),y:eu(t.y,i.y,c)}},e.prototype.renderLabel=function(t){var i=this.get("text"),o=this.get("start"),c=this.get("end"),p=i.position,g=i.content,_=i.style,S=i.offsetX,I=i.offsetY,L=i.autoRotate,F=i.maxLength,z=i.autoEllipsis,V=i.ellipsisPosition,Q=i.background,st=i.isVertical,at=st===void 0?!1:st,Ft=this.getLabelPoint(o,c,p),Kt=Ft.x+S,ee=Ft.y+I,Me={id:this.getElementId("line-text"),name:"annotation-line-text",x:Kt,y:ee,content:g,style:_,maxLength:F,autoEllipsis:z,ellipsisPosition:V,background:Q,isVertical:at};if(L){var hr=[c.x-o.x,c.y-o.y];Me.rotate=Math.atan2(hr[1],hr[0])}il(t,Me)},e}(ki),vl=Ul,wf=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:va.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:va.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var i=this.getLocation(),o=i.x,c=i.y,p=this.get("content"),g=this.get("style"),_=this.getElementId("text"),S=this.get("name")+"-text",I=this.get("maxLength"),L=this.get("autoEllipsis"),F=this.get("isVertical"),z=this.get("ellipsisPosition"),V=this.get("background"),Q=this.get("rotate"),st={id:_,name:S,x:o,y:c,content:p,style:g,maxLength:I,autoEllipsis:L,isVertical:F,ellipsisPosition:z,background:V,rotate:Q};il(t,st)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),o=i.x,c=i.y,p=this.get("rotate");Xf(t,o,c),Ti(t,p,o,c)}},e}(ki),ac=wf,Lc=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,o=t.radius,c=t.startAngle,p=t.endAngle,g=nl(i,o,c),_=nl(i,o,p),S=p-c>Math.PI?1:0,I=[["M",g.x,g.y]];if(p-c===Math.PI*2){var L=nl(i,o,c+Math.PI);I.push(["A",o,o,0,S,1,L.x,L.y]),I.push(["A",o,o,0,S,1,_.x,_.y])}else I.push(["A",o,o,0,S,1,_.x,_.y]);return I},e.prototype.renderArc=function(t){var i=this.getArcPath(),o=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,P.pi)({path:i},o)})},e}(ki),Zl=Lc,mh=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:va.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var i=this.get("start"),o=this.get("end"),c=this.get("style"),p=wu({start:i,end:o});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,P.pi)({x:p.x,y:p.y,width:p.width,height:p.height},c)})},e}(ki),qf=mh,cd=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),o=this.get("style"),c=wu({start:t,end:i}),p=this.get("src");return(0,P.pi)({x:c.x,y:c.y,img:p,width:c.width,height:c.height},o)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(ki),Sf=cd,Cf=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:va.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:va.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:va.fontFamily}}}})},e.prototype.renderInner=function(t){(0,b.U2)(this.get("line"),"display")&&this.renderLine(t),(0,b.U2)(this.get("text"),"display")&&this.renderText(t),(0,b.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},e.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},e.prototype.renderText=function(t){var i=this.getShapeAttrs().text,o=i.x,c=i.y,p=i.text,g=(0,P._T)(i,["x","y","text"]),_=this.get("text"),S=_.background,I=_.maxLength,L=_.autoEllipsis,F=_.isVertival,z=_.ellipsisPosition,V={x:o,y:c,id:this.getElementId("text"),name:"annotation-text",content:p,style:g,background:S,maxLength:I,autoEllipsis:L,isVertival:F,ellipsisPosition:z};il(t,V)},e.prototype.autoAdjust=function(t){var i=this.get("direction"),o=this.get("x"),c=this.get("y"),p=(0,b.U2)(this.get("line"),"length",0),g=this.get("coordinateBBox"),_=t.getBBox(),S=_.minX,I=_.maxX,L=_.minY,F=_.maxY,z=t.findById(this.getElementId("text-group")),V=t.findById(this.getElementId("text")),Q=t.findById(this.getElementId("line"));if(g){if(z){if(o+S<=g.minX){var st=g.minX-(o+S);Xf(z,z.attr("x")+st,z.attr("y"))}if(o+I>=g.maxX){var st=o+I-g.maxX;Xf(z,z.attr("x")-st,z.attr("y"))}}if(i==="upward"&&c+L<=g.minY||i!=="upward"&&c+F>=g.maxY){var at=void 0,Ft=void 0;i==="upward"&&c+L<=g.minY?(at="top",Ft=1):(at="bottom",Ft=-1),V.attr("textBaseline",at),Q&&Q.attr("path",[["M",0,0],["L",0,p*Ft]]),Xf(z,z.attr("x"),(p+2)*Ft)}}},e.prototype.getShapeAttrs=function(){var t=(0,b.U2)(this.get("line"),"display"),i=(0,b.U2)(this.get("point"),"style",{}),o=(0,b.U2)(this.get("line"),"style",{}),c=(0,b.U2)(this.get("text"),"style",{}),p=this.get("direction"),g=t?(0,b.U2)(this.get("line"),"length",0):0,_=p==="upward"?-1:1;return{point:(0,P.pi)({x:0,y:0},i),line:(0,P.pi)({path:[["M",0,0],["L",0,g*_]]},o),text:(0,P.pi)({x:0,y:(g+2)*_,text:(0,b.U2)(this.get("text"),"content",""),textBaseline:p==="upward"?"bottom":"top"},c)}},e}(ki),Mp=Cf,Af=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:va.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:va.textColor,fontFamily:va.fontFamily}}}})},e.prototype.renderInner=function(t){var i=(0,b.U2)(this.get("region"),"style",{}),o=(0,b.U2)(this.get("text"),"style",{}),c=this.get("lineLength")||0,p=this.get("points");if(p.length){var g=xf(p),_=[];_.push(["M",p[0].x,g.minY-c]),p.forEach(function(I){_.push(["L",I.x,I.y])}),_.push(["L",p[p.length-1].x,p[p.length-1].y-c]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,P.pi)({path:_},i)});var S=(0,P.pi)({id:this.getElementId("text"),name:"annotation-text",x:(g.minX+g.maxX)/2,y:g.minY-c},this.get("text"));il(t,S)}},e}(ki),Al=Af,Gh=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var i=this,o=this.get("start"),c=this.get("end"),p=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,b.S6)(this.get("shapes"),function(_,S){var I=_.get("type"),L=(0,b.d9)(_.attr());i.adjustShapeAttrs(L),i.addShape(p,{id:i.getElementId("shape-"+I+"-"+S),capture:!1,type:I,attrs:L})});var g=wu({start:o,end:c});p.setClip({type:"rect",attrs:{x:g.minX,y:g.minY,width:g.width,height:g.height}})},e.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},e}(ki),Hh=Gh,Ip=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"shape",draw:b.ZT})},e.prototype.renderInner=function(t){var i=this.get("render");(0,b.mf)(i)&&i(t)},e}(ki),oc=Ip;function x(r,e,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(r,null)[e]:r.style[e]}catch(o){}finally{i=i===void 0?t:i}return i}function C(r,e){var t=x(r,"width",e);return t==="auto"&&(t=r.offsetWidth),parseFloat(t)}function E(r,e){var t=C(r,e),i=parseFloat(x(r,"borderLeftWidth"))||0,o=parseFloat(x(r,"paddingLeft"))||0,c=parseFloat(x(r,"paddingRight"))||0,p=parseFloat(x(r,"borderRightWidth"))||0,g=parseFloat(x(r,"marginRight"))||0,_=parseFloat(x(r,"marginLeft"))||0;return t+i+p+o+c+_+g}function M(r,e){var t=x(r,"height",e);return t==="auto"&&(t=r.offsetHeight),parseFloat(t)}function U(r,e){var t=M(r,e),i=parseFloat(x(r,"borderTopWidth"))||0,o=parseFloat(x(r,"paddingTop"))||0,c=parseFloat(x(r,"paddingBottom"))||0,p=parseFloat(x(r,"borderBottomWidth"))||0,g=parseFloat(x(r,"marginTop"))||0,_=parseFloat(x(r,"marginBottom"))||0;return t+i+p+o+c+g+_}var H=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{container:null,containerTpl:"",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var i=this.getContainer(),o=t?"auto":"none";i.style.pointerEvents=o,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,o=parseFloat(t.style.top)||0;return wl(i,o,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");rf(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),r.prototype.destroy.call(this)},e.prototype.init=function(){r.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,b.UM)(t)){t=this.createDom();var i=this.get("parent");(0,b.HD)(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,b.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=(0,b.b$)({},i,t):t=i,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var i=this.getContainer();this.applyChildrenStyles(i,t);var o=this.get("containerClassName");if(o&&es(i,o)){var c=t[o];(0,Y.Z)(i,c)}}},e.prototype.applyChildrenStyles=function(t,i){(0,b.S6)(i,function(o,c){var p=t.getElementsByClassName(c);(0,b.S6)(p,function(g){(0,Y.Z)(g,o)})})},e.prototype.applyStyle=function(t,i){var o=this.get("domStyles");(0,Y.Z)(i,o[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,wt.Z)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,b.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(nf),$=H,ht=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),i=this.get("html");rf(t);var o=(0,b.mf)(i)?i(t):i;if((0,b.kK)(o))t.appendChild(o);else if((0,b.HD)(o)||(0,b.hj)(o)){var c=(0,wt.Z)(""+o);c&&t.appendChild(c)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),o=i.x,c=i.y,p=this.get("alignX"),g=this.get("alignY"),_=this.get("offsetX"),S=this.get("offsetY"),I=E(t),L=U(t),F={x:o,y:c};p==="middle"?F.x-=Math.round(I/2):p==="right"&&(F.x-=Math.round(I)),g==="middle"?F.y-=Math.round(L/2):g==="bottom"&&(F.y-=Math.round(L)),_&&(F.x+=_),S&&(F.y+=S),(0,Y.Z)(t,{position:"absolute",left:F.x+"px",top:F.y+"px",zIndex:this.get("zIndex")})},e}($),Ut=ht;function ie(r,e,t){var i=e+"Style",o=null;return(0,b.S6)(t,function(c,p){r[p]&&c[i]&&(o||(o={}),(0,b.CD)(o,c[i]))}),o}var Be=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:va.lineColor}},tickLine:{style:{lineWidth:1,stroke:va.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:va.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:va.textColor,fontFamily:va.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:va.textColor,textBaseline:"middle",fontFamily:va.fontFamily,textAlign:"center"},iconStyle:{fill:va.descriptionIconFill,stroke:va.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:va.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,i){(0,b.CD)(t,i),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,i,o){t[i]=o,this.updateTickStates(t)},e.prototype.hasState=function(t,i){return!!t[i]},e.prototype.getItemStates=function(t){var i=this.get("tickStates"),o=[];return(0,b.S6)(i,function(c,p){t[p]&&o.push(p)}),o},e.prototype.clearItemsState=function(t){var i=this,o=this.getItemsByState(t);(0,b.S6)(o,function(c){i.setItemState(c,t,!1)})},e.prototype.getItemsByState=function(t){var i=this,o=this.getItems();return(0,b.hX)(o,function(c){return i.hasState(c,t)})},e.prototype.getSidePoint=function(t,i){var o=this,c=o.getSideVector(i,t);return{x:t.x+c[0],y:t.y+c[1]}},e.prototype.getTextAnchor=function(t){var i;return(0,b.vQ)(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},e.prototype.getTextBaseline=function(t){var i;return(0,b.vQ)(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var i=this.getLinePath(),o=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,b.CD)({path:i},o.style)})},e.prototype.getTickLineItems=function(t){var i=this,o=[],c=this.get("tickLine"),p=c.alignTick,g=c.length,_=1,S=t.length;return S>=2&&(_=t[1].value-t[0].value),(0,b.S6)(t,function(I){var L=I.point;p||(L=i.getTickPoint(I.value-_/2));var F=i.getSidePoint(L,g);o.push({startPoint:L,tickValue:I.value,endPoint:F,tickId:I.id,id:"tickline-"+I.id})}),o},e.prototype.getSubTickLineItems=function(t){var i=[],o=this.get("subTickLine"),c=o.count,p=t.length;if(p>=2)for(var g=0;g0){var o=(0,b.dp)(i);if(o>t.threshold){var c=Math.ceil(o/t.threshold),p=i.filter(function(g,_){return _%c===0});this.set("ticks",p),this.set("originalTicks",i)}}},e.prototype.getLabelAttrs=function(t,i,o){var c=this.get("label"),p=c.offset,g=c.offsetX,_=c.offsetY,S=c.rotate,I=c.formatter,L=this.getSidePoint(t.point,p),F=this.getSideVector(p,L),z=I?I(t.name,t,i):t.name,V=c.style;V=(0,b.mf)(V)?(0,b.U2)(this.get("theme"),["label","style"],{}):V;var Q=(0,b.CD)({x:L.x+g,y:L.y+_,text:z,textAlign:this.getTextAnchor(F),textBaseline:this.getTextBaseline(F)},V);return S&&(Q.matrix=El(L,S)),Q},e.prototype.drawLabels=function(t){var i=this,o=this.get("ticks"),c=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,b.S6)(o,function(F,z){i.addShape(c,{type:"text",name:"axis-label",id:i.getElementId("label-"+F.id),attrs:i.getLabelAttrs(F,z,o),delegateObject:{tick:F,item:F,index:z}})}),this.processOverlap(c);var p=c.getChildren(),g=(0,b.U2)(this.get("theme"),["label","style"],{}),_=this.get("label"),S=_.style,I=_.formatter;if((0,b.mf)(S)){var L=p.map(function(F){return(0,b.U2)(F.get("delegateObject"),"tick")});(0,b.S6)(p,function(F,z){var V=F.get("delegateObject").tick,Q=I?I(V.name,V,z):V.name,st=(0,b.CD)({},g,S(Q,z,L));F.attr(st)})}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,o=t.position,c=t.offset,p=t.spacing,g=p===void 0?0:p,_=t.autoRotate,S=i.fontSize,I=.5;o==="start"?I=0:o==="end"&&(I=1);var L=this.getTickPoint(I),F=this.getSidePoint(L,c||g+S/2),z=(0,b.CD)({x:F.x,y:F.y,text:t.text},i),V=t.rotate,Q=V;if((0,b.UM)(V)&&_){var st=this.getAxisVector(L),at=[1,0];Q=ro.Dg(st,at,!0)}if(Q){var Ft=El(F,Q);z.matrix=Ft}return z},e.prototype.drawTitle=function(t){var i,o=this.getTitleAttrs(),c=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:o});!((i=this.get("title"))===null||i===void 0)&&i.description&&this.drawDescriptionIcon(t,c,o.matrix)},e.prototype.drawDescriptionIcon=function(t,i,o){var c=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),p=i.getBBox(),g=p.maxX,_=p.maxY,S=p.height,I=this.get("title").iconStyle,L=4,F=S/2,z=F/6,V=g+L,Q=_-S/2,st=[V+F,Q-F],at=st[0],Ft=st[1],Kt=[at+F,Ft+F],ee=Kt[0],Me=Kt[1],hr=[at,Me+F],Tr=hr[0],Dr=hr[1],cn=[V,Ft+F],Jr=cn[0],Mn=cn[1],mi=[V+F,Q-S/4],da=mi[0],Sa=mi[1],eo=[da,Sa+z],Gn=eo[0],Vi=eo[1],ua=[Gn,Vi+z],Xi=ua[0],ea=ua[1],ka=[Xi,ea+F*3/4],xo=ka[0],Mo=ka[1];this.addShape(c,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,P.pi)({path:[["M",at,Ft],["A",F,F,0,0,1,ee,Me],["A",F,F,0,0,1,Tr,Dr],["A",F,F,0,0,1,Jr,Mn],["A",F,F,0,0,1,at,Ft],["M",da,Sa],["L",Gn,Vi],["M",Xi,ea],["L",xo,Mo]],lineWidth:z,matrix:o},I)}),this.addShape(c,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:V,y:Q-S/2,width:S,height:S,stroke:"#000",fill:"#000",opacity:0,matrix:o,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,i){var o=this.getItemStates(t);if(o.length){var c=this.get("tickStates"),p=this.getElementId("label-"+t.id),g=i.findById(p);if(g){var _=ie(t,"label",c);_&&g.attr(_)}var S=this.getElementId("tickline-"+t.id),I=i.findById(S);if(I){var L=ie(t,"tickLine",c);L&&I.attr(L)}}},e.prototype.updateTickStates=function(t){var i=this.getItemStates(t),o=this.get("tickStates"),c=this.get("label"),p=this.getElementByLocalId("label-"+t.id),g=this.get("tickLine"),_=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(p){var S=ie(t,"label",o);S&&p.attr(S)}if(_){var I=ie(t,"tickLine",o);I&&_.attr(I)}}else p&&p.attr(c.style),_&&_.attr(g.style)},e}(ki),De=Be;function Ne(r,e,t,i){var o=e.getChildren(),c=!1;return(0,b.S6)(o,function(p){var g=Cl(r,p,t,i);c=c||g}),c}function fr(){return _r}function $e(r,e,t){return Ne(r,e,t,"head")}function _r(r,e,t){return Ne(r,e,t,"tail")}function er(r,e,t){return Ne(r,e,t,"middle")}function Er(r){var e=r.attr("matrix");return e&&e[0]!==1}function Or(r){var e=Er(r)?vc(r.attr("matrix")):0;return e%360}function Yr(r,e,t,i){var o=!1,c=Or(e),p=Math.abs(r?t.attr("y")-e.attr("y"):t.attr("x")-e.attr("x")),g=(r?t.attr("y")>e.attr("y"):t.attr("x")>e.attr("x"))?e.getBBox():t.getBBox();if(r){var _=Math.abs(Math.cos(c));bf(_,0,Math.PI/180)?o=g.width+i>p:o=g.height/_+i>p}else{var _=Math.abs(Math.sin(c));bf(_,0,Math.PI/180)?o=g.width+i>p:o=g.height/_+i>p}return o}function gn(r,e,t,i){var o=(i==null?void 0:i.minGap)||0,c=e.getChildren().slice().filter(function(V){return V.get("visible")});if(!c.length)return!1;var p=!1;t&&c.reverse();for(var g=c.length,_=c[0],S=_,I=1;I1){F=Math.ceil(F);for(var Q=0;Q2){var p=o[0],g=o[o.length-1];p.get("visible")||(p.show(),gn(r,e,!1,i)&&(c=!0)),g.get("visible")||(g.show(),gn(r,e,!0,i)&&(c=!0))}return c}function ia(r,e){(0,b.S6)(r,function(t){var i=t.attr("x"),o=t.attr("y"),c=El({x:i,y:o},e);t.attr("matrix",c)})}function na(r,e,t,i){var o=e.getChildren();if(!o.length||!r&&o.length<2)return!1;var c=rs(o),p=!1;if(r)p=!!t&&c>t;else{var g=Math.abs(o[1].attr("x")-o[0].attr("x"));p=c>g}if(p){var _=i(t,c);ia(o,_)}return p}function co(){return Bi}function Bi(r,e,t,i){return na(r,e,t,function(){return(0,b.hj)(i)?i:r?va.verticalAxisRotate:va.horizontalAxisRotate})}function Pa(r,e,t){return na(r,e,t,function(i,o){if(!i)return r?va.verticalAxisRotate:va.horizontalAxisRotate;if(r)return-Math.acos(i/o);var c=0;return i>o?c=Math.PI/4:(c=Math.asin(i/o),c>Math.PI/4&&(c=Math.PI/4)),c})}var Ra=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),o=[];return o.push(["M",t.x,t.y]),o.push(["L",i.x,i.y]),o},e.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),o=r.prototype.getInnerLayoutBBox.call(this),c=Math.min(t.x,i.x,o.x),p=Math.min(t.y,i.y,o.y),g=Math.max(t.x,i.x,o.maxX),_=Math.max(t.y,i.y,o.maxY);return{x:c,y:p,minX:c,minY:p,maxX:g,maxY:_,width:g-c,height:_-p}},e.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return(0,b.vQ)(t.x,i.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return(0,b.vQ)(t.y,i.y)},e.prototype.getTickPoint=function(t){var i=this,o=i.get("start"),c=i.get("end"),p=c.x-o.x,g=c.y-o.y;return{x:o.x+p*t,y:o.y+g*t}},e.prototype.getSideVector=function(t){var i=this.getAxisVector(),o=Ia.Fv([0,0],i),c=this.get("verticalFactor"),p=[o[1],o[0]*-1];return Ia.bA([0,0],p,t*c)},e.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},e.prototype.processOverlap=function(t){var i=this,o=this.isVertical(),c=this.isHorizontal();if(!(!o&&!c)){var p=this.get("label"),g=this.get("title"),_=this.get("verticalLimitLength"),S=p.offset,I=_,L=0,F=0;g&&(L=g.style.fontSize,F=g.spacing),I&&(I=I-S-F-L);var z=this.get("overlapOrder");if((0,b.S6)(z,function(st){p[st]&&i.canProcessOverlap(st)&&i.autoProcessOverlap(st,p[st],t,I)}),g&&(0,b.UM)(g.offset)){var V=t.getCanvasBBox(),Q=o?V.width:V.height;g.offset=S+Q+F+L/2}}},e.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,b.UM)(i.rotate):!0},e.prototype.autoProcessOverlap=function(t,i,o,c){var p=this,g=this.isVertical(),_=!1,S=yt[t];if(i===!0){var I=this.get("label");_=S.getDefault()(g,o,c)}else if((0,b.mf)(i))_=i(g,o,c);else if((0,b.Kn)(i)){var L=i;S[L.type]&&(_=S[L.type](g,o,c,L.cfg))}else S[i]&&(_=S[i](g,o,c));if(t==="autoRotate"){if(_){var F=o.getChildren(),z=this.get("verticalFactor");(0,b.S6)(F,function(Q){var st=Q.attr("textAlign");if(st==="center"){var at=z>0?"end":"start";Q.attr("textAlign",at)}})}}else if(t==="autoHide"){var V=o.getChildren().slice(0);(0,b.S6)(V,function(Q){Q.get("visible")||(p.get("isRegister")&&p.unregisterElement(Q),Q.remove())})}},e}(De),Aa=Ra,ya=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},e.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,o=t.y,c=this.get("radius"),p=c,g=this.get("startAngle"),_=this.get("endAngle"),S=[];if(Math.abs(_-g)===Math.PI*2)S=[["M",i,o-p],["A",c,p,0,1,1,i,o+p],["A",c,p,0,1,1,i,o-p],["Z"]];else{var I=this.getCirclePoint(g),L=this.getCirclePoint(_),F=Math.abs(_-g)>Math.PI?1:0,z=g>_?0:1;S=[["M",i,o],["L",I.x,I.y],["A",c,p,0,F,z,L.x,L.y],["L",i,o]]}return S},e.prototype.getTickPoint=function(t){var i=this.get("startAngle"),o=this.get("endAngle"),c=i+(o-i)*t;return this.getCirclePoint(c)},e.prototype.getSideVector=function(t,i){var o=this.get("center"),c=[i.x-o.x,i.y-o.y],p=this.get("verticalFactor"),g=Ia.kE(c);return Ia.bA(c,c,p*t/g),c},e.prototype.getAxisVector=function(t){var i=this.get("center"),o=[t.x-i.x,t.y-i.y];return[o[1],-1*o[0]]},e.prototype.getCirclePoint=function(t,i){var o=this.get("center");return i=i||this.get("radius"),{x:o.x+Math.cos(t)*i,y:o.y+Math.sin(t)*i}},e.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,b.UM)(i.rotate):!0},e.prototype.processOverlap=function(t){var i=this,o=this.get("label"),c=this.get("title"),p=this.get("verticalLimitLength"),g=o.offset,_=p,S=0,I=0;c&&(S=c.style.fontSize,I=c.spacing),_&&(_=_-g-I-S);var L=this.get("overlapOrder");if((0,b.S6)(L,function(z){o[z]&&i.canProcessOverlap(z)&&i.autoProcessOverlap(z,o[z],t,_)}),c&&(0,b.UM)(c.offset)){var F=t.getCanvasBBox().height;c.offset=g+F+I+S/2}},e.prototype.autoProcessOverlap=function(t,i,o,c){var p=this,g=!1,_=yt[t];if(c>0)if(i===!0)g=_.getDefault()(!1,o,c);else if((0,b.mf)(i))g=i(!1,o,c);else if((0,b.Kn)(i)){var S=i;_[S.type]&&(g=_[S.type](!1,o,c,S.cfg))}else _[i]&&(g=_[i](!1,o,c));if(t==="autoRotate"){if(g){var I=o.getChildren(),L=this.get("verticalFactor");(0,b.S6)(I,function(z){var V=z.attr("textAlign");if(V==="center"){var Q=L>0?"end":"start";z.attr("textAlign",Q)}})}}else if(t==="autoHide"){var F=o.getChildren().slice(0);(0,b.S6)(F,function(z){z.get("visible")||(p.get("isRegister")&&p.unregisterElement(z),z.remove())})}},e}(De),Ba=ya,Ea=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:va.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:va.textColor,textAlign:"center",textBaseline:"middle",fontFamily:va.fontFamily}},textBackground:{padding:5,style:{stroke:va.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var i=this.get("text"),o=i.style,c=i.autoRotate,p=i.content;if(!(0,b.UM)(p)){var g=this.getTextPoint(),_=null;if(c){var S=this.getRotateAngle();_=El(g,S)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,P.pi)((0,P.pi)((0,P.pi)({},g),{text:p,matrix:_}),o)})}},e.prototype.renderLine=function(t){var i=this.getLinePath(),o=this.get("line"),c=o.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,P.pi)({path:i},c)})},e.prototype.renderBackground=function(t){var i=this.getElementId("text"),o=t.findById(i),c=this.get("textBackground");if(c&&o){var p=o.getBBox(),g=gh(c.padding),_=c.style,S=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,P.pi)({x:p.x-g[3],y:p.y-g[0],width:p.width+g[1]+g[3],height:p.height+g[0]+g[2],matrix:o.attr("matrix")},_)});S.toBack()}},e}(ki),ca=Ea,Ys=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,o=t.end,c=this.get("text").position,p=Math.atan2(o.y-i.y,o.x-i.x),g=c==="start"?p-Math.PI/2:p+Math.PI/2;return g},e.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,o=t.end,c=this.get("text"),p=c.position,g=c.offset;return ic(i,o,p,g)},e.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,o=t.end;return[["M",i.x,i.y],["L",o.x,o.y]]},e}(ca),xs=Ys,ru=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,o=t.endAngle,c=this.get("text").position,p=c==="start"?i+Math.PI/2:o-Math.PI/2;return p},e.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,o=t.offset,c=this.getLocation(),p=c.center,g=c.radius,_=c.startAngle,S=c.endAngle,I=i==="start"?_:S,L=this.getRotateAngle()-Math.PI,F=nl(p,g,I),z=Math.cos(L)*o,V=Math.sin(L)*o;return{x:F.x+z,y:F.y+V}},e.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,o=t.radius,c=t.startAngle,p=t.endAngle,g=null;if(p-c===Math.PI*2){var _=i.x,S=i.y;g=[["M",_,S-o],["A",o,o,0,1,1,_,S+o],["A",o,o,0,1,1,_,S-o],["Z"]]}else{var I=nl(i,o,c),L=nl(i,o,p),F=Math.abs(p-c)>Math.PI?1:0,z=c>p?0:1;g=[["M",I.x,I.y],["A",o,o,0,F,z,L.x,L.y]]}return g},e}(ca),hu=ru,Ko="g2-crosshair",bs=Ko+"-line",Au=Ko+"-text",nu,mc=(nu={},nu[""+Ko]={position:"relative"},nu[""+bs]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},nu[""+Au]={position:"absolute",color:va.textColor,fontFamily:va.fontFamily},nu),pu=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'',crosshairTpl:'',textTpl:'{content}',domStyles:null,containerClassName:Ko,defaultStyles:mc,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),o=(0,wt.Z)(i);t.appendChild(o),this.applyStyle(bs,o),this.set("crosshairEl",o)},e.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,o=t.end,c=this.get("text"),p=c.position,g=c.offset;return ic(i,o,p,g)},e.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var o=t.content;if(!i){var c=this.getContainer(),p=(0,b.ng)(this.get("textTpl"),t);i=(0,wt.Z)(p),c.appendChild(i),this.applyStyle(Au,i),this.set("textEl",i)}i.innerHTML=o}else i&&i.remove()},e.prototype.isVertical=function(t,i){return t.x===i.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),o=this.get("end"),c=Math.min(i.x,o.x),p=Math.min(i.y,o.y);this.isVertical(i,o)?(0,Y.Z)(t,{width:"1px",height:mo(Math.abs(o.y-i.y))}):(0,Y.Z)(t,{height:"1px",width:mo(Math.abs(o.x-i.x))}),(0,Y.Z)(t,{top:mo(p),left:mo(c)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,o=t.clientWidth,c=this.getTextPoint();switch(i){case"center":c.x=c.x-o/2;break;case"right":c.x=c.x-o;case"left":break}(0,Y.Z)(t,{top:mo(c.y),left:mo(c.x)})}},e.prototype.updateInner=function(t){(0,b.wH)(t,"text")&&this.resetText(),r.prototype.updateInner.call(this,t)},e}($),Vl=pu,Tl=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:va.lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,i){var o=this.getGridPath(t),c=i.slice(0).reverse(),p=this.getGridPath(c,!0),g=this.get("closed");return g?o=o.concat(p):(p[0][0]="L",o=o.concat(p),o.push(["Z"])),o},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var i=this,o=this.get("line"),c=this.get("items"),p=this.get("alternateColor"),g=null;(0,b.S6)(c,function(_,S){var I=_.id||S;if(o){var L=i.getPathStyle();L=(0,b.mf)(L)?L(_,S,c):L;var F=i.getElementId("line-"+I),z=i.getGridPath(_.points);i.addShape(t,{type:"path",name:"grid-line",id:F,attrs:(0,b.CD)({path:z},L)})}if(p&&S>0){var V=i.getElementId("region-"+I),Q=S%2===0;if((0,b.HD)(p))Q&&i.drawAlternateRegion(V,t,g.points,_.points,p);else{var st=Q?p[1]:p[0];i.drawAlternateRegion(V,t,g.points,_.points,st)}}g=_})},e.prototype.drawAlternateRegion=function(t,i,o,c,p){var g=this.getAlternatePath(o,c);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:g,fill:p}})},e}(ki),Kf=Tl;function Qf(r,e,t,i){var o=t-r,c=i-e;return Math.sqrt(o*o+c*c)}var Ml=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,i){var o=this.getLineType(),c=this.get("closed"),p=[];if(t.length)if(o==="circle"){var g=this.get("center"),_=t[0],S=Qf(g.x,g.y,_.x,_.y),I=i?0:1;c?(p.push(["M",g.x,g.y-S]),p.push(["A",S,S,0,0,I,g.x,g.y+S]),p.push(["A",S,S,0,0,I,g.x,g.y-S]),p.push(["Z"])):(0,b.S6)(t,function(L,F){F===0?p.push(["M",L.x,L.y]):p.push(["A",S,S,0,0,I,L.x,L.y])})}else(0,b.S6)(t,function(L,F){F===0?p.push(["M",L.x,L.y]):p.push(["L",L.x,L.y])}),c&&p.push(["Z"]);return p},e}(Kf),Tf=Ml,yh=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"line"})},e.prototype.getGridPath=function(t){var i=[];return(0,b.S6)(t,function(o,c){c===0?i.push(["M",o.x,o.y]):i.push(["L",o.x,o.y])}),i},e}(Kf),sc=yh,Jf=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var t=r.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),o=this.get("maxHeight"),c=t.width,p=t.height;return i&&(c=Math.min(c,i)),o&&(p=Math.min(p,o)),wl(t.minX,t.minY,c,p)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),o=this.get("offsetX"),c=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+o,y:i+c})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var i=this.get("background"),o=t.getBBox(),c=gh(i.padding),p=(0,P.pi)({x:0,y:0,width:o.width+c[1]+c[3],height:o.height+c[0]+c[2]},i.style),g=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:p});g.toBack()},e.prototype.drawTitle=function(t){var i=this.get("currentPoint"),o=this.get("title"),c=o.spacing,p=o.style,g=o.text,_=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,P.pi)({text:g,x:i.x,y:i.y},p)}),S=_.getBBox();this.set("currentPoint",{x:i.x,y:S.maxY+c})},e.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var o=gh(t.padding);i.x=o[3],i.y=o[0]}this.set("currentPoint",i)},e}(ki),Il=Jf,Rs={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},iu={fill:va.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:va.fontFamily,fontWeight:"normal",lineHeight:12},uc="navigation-arrow-right",Pc="navigation-arrow-left",Eo={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},Gl=function(r){(0,P.ZT)(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var o=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:o},100):i.attr({matrix:o})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexst&&(st=Tr),z==="horizontal"?(at&&atee&&(ee=Mn.width)}),Me=ee,ee+=F,S&&(ee=Math.min(S,ee),Me=Math.min(S,Me)),this.pageWidth=ee,this.pageHeight=I-Math.max(st.height,z+hr);var cn=Math.floor(this.pageHeight/(z+hr));(0,b.S6)(_,function(Jr,Mn){Mn!==0&&Mn%cn===0&&(Ft+=1,at.x+=ee,at.y=p),o.moveElementTo(Jr,at),Jr.getParent().setClip({type:"rect",attrs:{x:at.x,y:at.y,width:ee,height:z}}),at.y+=z+hr}),this.totalPagesCnt=Ft,this.moveElementTo(Q,{x:c+Me/2-st.width/2-st.minX,y:I-st.height-st.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),g==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(Ft/this.get("maxRow")):this.totalPagesCnt=Ft,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(Q),i.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,i,o,c){var p={x:0,y:0},g=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),_=(0,b.U2)(c.marker,"style",{}),S=_.size,I=S===void 0?12:S,L=(0,P._T)(_,["size"]),F=this.drawArrow(g,p,Pc,i==="horizontal"?"up":"left",I,L);F.on("click",this.onNavigationBack);var z=F.getBBox();p.x+=z.width+2;var V=this.addShape(g,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,P.pi)({x:p.x,y:p.y+I/2,text:o,textBaseline:"middle"},(0,b.U2)(c.text,"style"))}),Q=V.getBBox();p.x+=Q.width+2;var st=this.drawArrow(g,p,uc,i==="horizontal"?"down":"right",I,L);return st.on("click",this.onNavigationAfter),g},e.prototype.updateNavigation=function(t){var i=(0,b.b$)({},Rs,this.get("pageNavigator")),o=i.marker.style,c=o.fill,p=o.opacity,g=o.inactiveFill,_=o.inactiveOpacity,S=this.currentPageIndex+"/"+this.totalPagesCnt,I=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),L=t?t.findById(this.getElementId(Pc)):this.getElementByLocalId(Pc),F=t?t.findById(this.getElementId(uc)):this.getElementByLocalId(uc);I.attr("text",S),L.attr("opacity",this.currentPageIndex===1?_:p),L.attr("fill",this.currentPageIndex===1?g:c),L.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),F.attr("opacity",this.currentPageIndex===this.totalPagesCnt?_:p),F.attr("fill",this.currentPageIndex===this.totalPagesCnt?g:c),F.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var z=L.getBBox().maxX+2;I.attr("x",z),z+=I.getBBox().width+2,this.updateArrowPath(F,{x:z,y:0})},e.prototype.drawArrow=function(t,i,o,c,p,g){var _=i.x,S=i.y,I=this.addShape(t,{type:"path",id:this.getElementId(o),name:o,attrs:(0,P.pi)({size:p,direction:c,path:[["M",_+p/2,S],["L",_,S+p],["L",_+p,S+p],["Z"]],cursor:"pointer"},g)});return I.attr("matrix",El({x:_+p/2,y:S+p/2},Eo[c])),I},e.prototype.updateArrowPath=function(t,i){var o=i.x,c=i.y,p=t.attr(),g=p.size,_=p.direction,S=El({x:o+g/2,y:c+g/2},Eo[_]);t.attr("path",[["M",o+g/2,c],["L",o,c+g],["L",o+g,c+g],["Z"]]),t.attr("matrix",S)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,o=t.pageWidth,c=t.pageHeight,p=this.get("layout"),g=p==="horizontal"?{x:0,y:c*(1-i)}:{x:o*(1-i),y:0};return Nl(g)},e.prototype.applyItemStates=function(t,i){var o=this.getItemStates(t),c=o.length>0;if(c){var p=i.getChildren(),g=this.get("itemStates");(0,b.S6)(p,function(_){var S=_.get("name"),I=S.split("-")[2],L=ie(t,I,g);L&&(_.attr(L),I==="marker"&&!(_.get("isStroke")&&_.get("isFill"))&&(_.get("isStroke")&&_.attr("fill",null),_.get("isFill")&&_.attr("stroke",null)))})}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},e}(Il),al=Gl,Oc=1.4,th=.4,kp=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:va.textColor,textBaseline:"middle",fontFamily:va.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:va.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,i){this.update({min:t,max:i})},e.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var o=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(o),this.delegateEmit("valuechanged",{originValue:i,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(o){var c=i.getValueByCanvasPoint(o.x,o.y),p=i.getCurrentValue(),g=p[1];gc&&(g=c),i.setValue([g,c])})},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var i=this,o=null;t.on("legend-track:dragstart",function(c){o={x:c.x,y:c.y}}),t.on("legend-track:drag",function(c){if(o){var p=i.getValueByCanvasPoint(o.x,o.y),g=i.getValueByCanvasPoint(c.x,c.y),_=i.getCurrentValue(),S=_[1]-_[0],I=i.getRange(),L=g-p;L<0?_[0]+L>I.min?i.setValue([_[0]+L,_[1]+L]):i.setValue([I.min,I.min+S]):L>0&&(L>0&&_[1]+Lp&&(L=p),L0&&this.changeRailLength(c,g,o[g]-z)}},e.prototype.changeRailLength=function(t,i,o){var c=t.getBBox(),p;i==="height"?p=this.getRailPath(c.x,c.y,c.width,o):p=this.getRailPath(c.x,c.y,o,c.height),t.attr("path",p)},e.prototype.changeRailPosition=function(t,i,o){var c=t.getBBox(),p=this.getRailPath(i,o,c.width,c.height);t.attr("path",p)},e.prototype.fixedHorizontal=function(t,i,o,c){var p=this.get("label"),g=p.align,_=p.spacing,S=o.getBBox(),I=t.getBBox(),L=i.getBBox(),F=S.height;this.fitRailLength(I,L,S,o),S=o.getBBox(),g==="rail"?(t.attr({x:c.x,y:c.y+F/2}),this.changeRailPosition(o,c.x+I.width+_,c.y),i.attr({x:c.x+I.width+S.width+_*2,y:c.y+F/2})):g==="top"?(t.attr({x:c.x,y:c.y}),i.attr({x:c.x+S.width,y:c.y}),this.changeRailPosition(o,c.x,c.y+I.height+_)):(this.changeRailPosition(o,c.x,c.y),t.attr({x:c.x,y:c.y+S.height+_}),i.attr({x:c.x+S.width,y:c.y+S.height+_}))},e.prototype.fixedVertail=function(t,i,o,c){var p=this.get("label"),g=p.align,_=p.spacing,S=o.getBBox(),I=t.getBBox(),L=i.getBBox();if(this.fitRailLength(I,L,S,o),S=o.getBBox(),g==="rail")t.attr({x:c.x,y:c.y}),this.changeRailPosition(o,c.x,c.y+I.height+_),i.attr({x:c.x,y:c.y+I.height+S.height+_*2});else if(g==="right")t.attr({x:c.x+S.width+_,y:c.y}),this.changeRailPosition(o,c.x,c.y),i.attr({x:c.x+S.width+_,y:c.y+S.height});else{var F=Math.max(I.width,L.width);t.attr({x:c.x,y:c.y}),this.changeRailPosition(o,c.x+F+_,c.y),i.attr({x:c.x,y:c.y+S.height})}},e}(Il),fd=kp,au="g2-tooltip",kl="g2-tooltip-title",ol="g2-tooltip-list",yc="g2-tooltip-list-item",Mf="g2-tooltip-marker",Ll="g2-tooltip-value",ou="g2-tooltip-name",Fc="g2-tooltip-crosshair-x",_h="g2-tooltip-crosshair-y",_c,hd=(_c={},_c[""+au]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:va.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},_c[""+kl]={marginBottom:"4px"},_c[""+ol]={margin:"0px",listStyleType:"none",padding:"0px"},_c[""+yc]={listStyleType:"none",marginBottom:"4px"},_c[""+Mf]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},_c[""+Ll]={display:"inline-block",float:"right",marginLeft:"30px"},_c[""+Fc]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_c[""+_h]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_c);function rv(r,e,t,i,o){var c={left:ro.x+o.width,top:eo.y+o.height};return c}function nv(r,e,t,i,o,c){var p=r,g=e;switch(c){case"left":p=r-i-t,g=e-o/2;break;case"right":p=r+t,g=e-o/2;break;case"top":p=r-i/2,g=e-o-t;break;case"bottom":p=r-i/2,g=e+t;break;default:p=r+t,g=e-o-t;break}return{x:p,y:g}}function If(r,e,t,i,o,c,p){var g=nv(r,e,t,i,o,c);if(p){var _=rv(g.x,g.y,i,o,p);c==="auto"?(_.right&&(g.x=Math.max(0,r-i-t)),_.top&&(g.y=Math.max(0,e-o-t))):c==="top"||c==="bottom"?(_.left&&(g.x=p.x),_.right&&(g.x=p.x+p.width-i),c==="top"&&_.top&&(g.y=e+t),c==="bottom"&&_.bottom&&(g.y=e-o-t)):(_.top&&(g.y=p.y),_.bottom&&(g.y=p.y+p.height-o),c==="left"&&_.left&&(g.x=r+t),c==="right"&&_.right&&(g.x=r-i-t))}return g}function pd(r,e){var t=!1;return(0,b.S6)(e,function(i){if((0,b.wH)(r,i))return t=!0,!1}),t}var iv=function(r){(0,P.ZT)(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return(0,P.pi)((0,P.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'',itemTpl:'
diff --git a/eiam-console/src/main/resources/fe/index.html b/eiam-console/src/main/resources/fe/index.html
index 884cb173..52973a6d 100644
--- a/eiam-console/src/main/resources/fe/index.html
+++ b/eiam-console/src/main/resources/fe/index.html
@@ -28,6 +28,6 @@
-
+