Current section

Files

Jump to
orion dist js app.js
Raw

dist/js/app.js

(()=>{var Ai=Object.create;var Eo=Object.defineProperty;var Ei=Object.getOwnPropertyDescriptor;var Di=Object.getOwnPropertyNames;var Pi=Object.getPrototypeOf,Li=Object.prototype.hasOwnProperty;var Ci=(e,l)=>()=>(l||e((l={exports:{}}).exports,l),l.exports);var Fi=(e,l,s,n)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of Di(l))!Li.call(e,i)&&i!==s&&Eo(e,i,{get:()=>l[i],enumerable:!(n=Ei(l,i))||n.enumerable});return e};var Ri=(e,l,s)=>(s=e!=null?Ai(Pi(e)):{},Fi(l||!e||!e.__esModule?Eo(s,"default",{value:e,enumerable:!0}):s,e));var Po=Ci((Do,Gl)=>{(function(e,l){"use strict";(function(){for(var w=0,S=["ms","moz","webkit","o"],h=0;h<S.length&&!e.requestAnimationFrame;++h)e.requestAnimationFrame=e[S[h]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[S[h]+"CancelAnimationFrame"]||e[S[h]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(A,L){var T=new Date().getTime(),P=Math.max(0,16-(T-w)),I=e.setTimeout(function(){A(T+P)},P);return w=T+P,I}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(A){clearTimeout(A)})})();function s(){n.width=e.innerWidth,n.height=5*p.barThickness;var w=n.getContext("2d");w.shadowBlur=p.shadowBlur,w.shadowColor=p.shadowColor;var S,h=w.createLinearGradient(0,0,n.width,0);for(S in p.barColors)h.addColorStop(S,p.barColors[S]);w.lineWidth=p.barThickness,w.beginPath(),w.moveTo(0,p.barThickness/2),w.lineTo(Math.ceil(f*n.width),p.barThickness/2),w.strokeStyle=h,w.stroke()}var n,i,u,f,d,p={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},m={config:function(w){for(var S in w)p.hasOwnProperty(S)&&(p[S]=w[S])},show:function(){var w,S,h;d||(d=!0,u!==null&&e.cancelAnimationFrame(u),n||((h=(n=l.createElement("canvas")).style).position="fixed",h.top=h.left=h.right=h.margin=h.padding=0,h.zIndex=100001,h.display="none",p.className&&n.classList.add(p.className),l.body.appendChild(n),w="resize",S=s,(h=e).addEventListener?h.addEventListener(w,S,!1):h.attachEvent?h.attachEvent("on"+w,S):h["on"+w]=S),n.style.opacity=1,n.style.display="block",m.progress(0),p.autoRun&&function A(){i=e.requestAnimationFrame(A),m.progress("+"+.05*Math.pow(1-Math.sqrt(f),2))}())},progress:function(w){return w===void 0||(typeof w=="string"&&(w=(0<=w.indexOf("+")||0<=w.indexOf("-")?f:0)+parseFloat(w)),f=1<w?1:w,s()),f},hide:function(){d&&(d=!1,i!=null&&(e.cancelAnimationFrame(i),i=null),function w(){return 1<=m.progress("+.1")&&(n.style.opacity-=.05,n.style.opacity<=.05)?(n.style.display="none",void(u=null)):void(u=e.requestAnimationFrame(w))}())}};typeof Gl=="object"&&typeof Gl.exports=="object"?Gl.exports=m:typeof define=="function"&&define.amd?define(function(){return m}):this.topbar=m}).call(Do,window,document)});var sn=Ri(Po());var ke="u-",zi="uplot",Vi=ke+"hz",Ni=ke+"vt",Oi=ke+"title",Hi=ke+"wrap",Gi=ke+"under",Wi=ke+"over",Ii=ke+"axis",Rt=ke+"off",Bi=ke+"select",Ui=ke+"cursor-x",qi=ke+"cursor-y",Yi=ke+"cursor-pt",Ki=ke+"legend",ji=ke+"live",Ji=ke+"inline",Zi=ke+"thead",$i=ke+"series",Qi=ke+"marker",Lo=ke+"label",Xi=ke+"value",bl="width",kl="height",yl="top",Co="bottom",jt="left",En="right",Wn="#000",Fo=Wn+"0",Ro="mousemove",zo="mousedown",Dn="mouseup",Vo="mouseenter",No="mouseleave",Oo="dblclick",er="resize",tr="scroll",Ho="change",ql="dppxchange",In="--",nl=typeof window<"u",Rn=nl?document:null,$t=nl?window:null,lr=nl?navigator:null,ne,Wl;function zn(){let e=devicePixelRatio;ne!=e&&(ne=e,Wl&&Nn(Ho,Wl,zn),Wl=matchMedia(`(min-resolution: ${ne-.001}dppx) and (max-resolution: ${ne+.001}dppx)`),Tt(Ho,Wl,zn),$t.dispatchEvent(new CustomEvent(ql)))}function Je(e,l){if(l!=null){let s=e.classList;!s.contains(l)&&s.add(l)}}function Vn(e,l){let s=e.classList;s.contains(l)&&s.remove(l)}function ge(e,l,s){e.style[l]=s+"px"}function mt(e,l,s,n){let i=Rn.createElement(e);return l!=null&&Je(i,l),s?.insertBefore(i,n),i}function et(e,l){return mt("div",e,l)}var Go=new WeakMap;function Jt(e,l,s,n,i){let u="translate("+l+"px,"+s+"px)",f=Go.get(e);u!=f&&(e.style.transform=u,Go.set(e,u),l<0||s<0||l>n||s>i?Je(e,Rt):Vn(e,Rt))}var Wo=new WeakMap;function nr(e,l,s){let n=l+s,i=Wo.get(e);n!=i&&(Wo.set(e,n),e.style.background=l,e.style.borderColor=s)}var Io=new WeakMap;function or(e,l,s,n){let i=l+""+s,u=Io.get(e);i!=u&&(Io.set(e,i),e.style.height=s+"px",e.style.width=l+"px",e.style.marginLeft=n?-l/2+"px":0,e.style.marginTop=n?-s/2+"px":0)}var Bn={passive:!0},gs={...Bn,capture:!0};function Tt(e,l,s,n){l.addEventListener(e,s,n?gs:Bn)}function Nn(e,l,s,n){l.removeEventListener(e,s,n?gs:Bn)}nl&&zn();function kt(e,l,s,n){let i;s=s||0,n=n||l.length-1;let u=n<=2147483647;for(;n-s>1;)i=u?s+n>>1:tt((s+n)/2),l[i]<e?s=i:n=i;return e-l[s]<=l[n]-e?s:n}function Qt(e,l,s,n){for(let i=n==1?l:s;i>=l&&i<=s;i+=n)if(e[i]!=null)return i;return-1}function sr(e,l,s,n){let i=$,u=-$;if(n==1)i=e[l],u=e[s];else if(n==-1)i=e[s],u=e[l];else for(let f=l;f<=s;f++)e[f]!=null&&(i=Ue(i,e[f]),u=Te(u,e[f]));return[i,u]}function ir(e,l,s){let n=$,i=-$;for(let u=l;u<=s;u++)e[u]>0&&(n=Ue(n,e[u]),i=Te(i,e[u]));return[n==$?1:n,i==-$?10:i]}function Zl(e,l,s,n){let i=qo(e),u=qo(l),f=s==10?dt:ws;e==l&&(i==-1?(e*=s,l/=s):(e/=s,l*=s));let d=i==1?tt:Kl,p=u==1?Kl:tt,m=d(f(Ge(e))),w=p(f(Ge(l))),S=Xt(s,m),h=Xt(s,w);return s==10&&(m<0&&(S=ce(S,-m)),w<0&&(h=ce(h,-w))),n||s==2?(e=S*i,l=h*u):(e=vs(e,S),l=tl(l,h)),[e,l]}function Un(e,l,s,n){let i=Zl(e,l,s,n);return e==0&&(i[0]=0),l==0&&(i[1]=0),i}var qn=.1,Bo={mode:3,pad:qn},Ml={pad:0,soft:null,mode:0},rr={min:Ml,max:Ml};function Yl(e,l,s,n){return Ql(s)?Uo(e,l,s):(Ml.pad=s,Ml.soft=n?0:null,Ml.mode=n?3:0,Uo(e,l,rr))}function oe(e,l){return e??l}function ar(e,l,s){for(l=oe(l,0),s=oe(s,e.length-1);l<=s;){if(e[l]!=null)return!0;l++}return!1}function Uo(e,l,s){let n=s.min,i=s.max,u=oe(n.pad,0),f=oe(i.pad,0),d=oe(n.hard,-$),p=oe(i.hard,$),m=oe(n.soft,$),w=oe(i.soft,-$),S=oe(n.mode,0),h=oe(i.mode,0),A=l-e,L=dt(A),T=Te(Ge(e),Ge(l)),P=dt(T),I=Ge(P-L);(A<1e-9||I>10)&&(A=0,(e==0||l==0)&&(A=1e-9,S==2&&m!=$&&(u=0),h==2&&w!=-$&&(f=0)));let C=A||T||1e3,k=dt(C),F=Xt(10,tt(k)),x=C*(A==0?e==0?.1:1:u),O=ce(vs(e-x,F/10),9),E=e>=m&&(S==1||S==3&&O<=m||S==2&&O>=m)?m:$,B=Te(d,O<E&&e>=E?E:Ue(E,O)),W=C*(A==0?l==0?.1:1:f),V=ce(tl(l+W,F/10),9),b=l<=w&&(h==1||h==3&&V>=w||h==2&&V<=w)?w:-$,N=Ue(p,V>b&&l<=b?b:Te(b,V));return B==N&&B==0&&(N=100),[B,N]}var fr=new Intl.NumberFormat(nl?lr.language:"en-US"),Yn=e=>fr.format(e),Ze=Math,Ul=Ze.PI,Ge=Ze.abs,tt=Ze.floor,Ve=Ze.round,Kl=Ze.ceil,Ue=Ze.min,Te=Ze.max,Xt=Ze.pow,qo=Ze.sign,dt=Ze.log10,ws=Ze.log2,ur=(e,l=1)=>Ze.sinh(e)*l,Pn=(e,l=1)=>Ze.asinh(e/l),$=1/0;function Yo(e){return(dt((e^e>>31)-(e>>31))|0)+1}function Ko(e,l,s){return Ue(Te(e,l),s)}function Z(e){return typeof e=="function"?e:()=>e}var cr=()=>{},hr=e=>e,Ss=(e,l)=>l,pr=e=>null,jo=e=>!0,Jo=(e,l)=>e==l,el=e=>ce(e,14);function Ft(e,l){return el(ce(el(e/l))*l)}function tl(e,l){return el(Kl(el(e/l))*l)}function vs(e,l){return el(tt(el(e/l))*l)}function ce(e,l=0){if(dr(e))return e;let s=10**l,n=e*s*(1+Number.EPSILON);return Ve(n)/s}var $l=new Map;function mr(e){return((""+e).split(".")[1]||"").length}function Al(e,l,s,n){let i=[],u=n.map(mr);for(let f=l;f<s;f++){let d=Ge(f),p=ce(Xt(e,f),d);for(let m=0;m<n.length;m++){let w=n[m]*p,S=(w>=0&&f>=0?0:d)+(f>=u[m]?0:u[m]),h=ce(w,S);i.push(h),$l.set(h,S)}}return i}var xl={},ys=[],ll=[null,null],zt=Array.isArray,dr=Number.isInteger,gr=e=>e===void 0;function Zo(e){return typeof e=="string"}function Ql(e){let l=!1;if(e!=null){let s=e.constructor;l=s==null||s==Object}return l}function $o(e){return e!=null&&typeof e=="object"}var wr=Object.getPrototypeOf(Uint8Array);function Vt(e,l=Ql){let s;if(zt(e)){let n=e.find(i=>i!=null);if(zt(n)||l(n)){s=Array(e.length);for(let i=0;i<e.length;i++)s[i]=Vt(e[i],l)}else s=e.slice()}else if(e instanceof wr)s=e.slice();else if(l(e)){s={};for(let n in e)s[n]=Vt(e[n],l)}else s=e;return s}function be(e){let l=arguments;for(let s=1;s<l.length;s++){let n=l[s];for(let i in n)Ql(e[i])?be(e[i],Vt(n[i])):e[i]=Vt(n[i])}return e}var Sr=0,vr=1,yr=2;function _r(e,l,s){for(let n=0,i,u=-1;n<l.length;n++){let f=l[n];if(f>u){for(i=f-1;i>=0&&e[i]==null;)e[i--]=null;for(i=f+1;i<s&&e[i]==null;)e[u=i++]=null}}}function br(e,l){let s=new Set;for(let f=0;f<e.length;f++){let p=e[f][0],m=p.length;for(let w=0;w<m;w++)s.add(p[w])}let n=[Array.from(s).sort((f,d)=>f-d)],i=n[0].length,u=new Map;for(let f=0;f<i;f++)u.set(n[0][f],f);for(let f=0;f<e.length;f++){let d=e[f],p=d[0];for(let m=1;m<d.length;m++){let w=d[m],S=Array(i).fill(void 0),h=l?l[f][m]:vr,A=[];for(let L=0;L<w.length;L++){let T=w[L],P=u.get(p[L]);T===null?h!=Sr&&(S[P]=T,h==yr&&A.push(P)):S[P]=T}_r(S,A,i),n.push(S)}}return n}var kr=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask,_s=["January","February","March","April","May","June","July","August","September","October","November","December"],bs=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function ks(e){return e.slice(0,3)}var Tr=bs.map(ks),Mr=_s.map(ks),xr={MMMM:_s,MMM:Mr,WWWW:bs,WWW:Tr};function _l(e){return(e<10?"0":"")+e}function Ar(e){return(e<10?"00":e<100?"0":"")+e}var Er={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,l)=>l.MMMM[e.getMonth()],MMM:(e,l)=>l.MMM[e.getMonth()],MM:e=>_l(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>_l(e.getDate()),D:e=>e.getDate(),WWWW:(e,l)=>l.WWWW[e.getDay()],WWW:(e,l)=>l.WWW[e.getDay()],HH:e=>_l(e.getHours()),H:e=>e.getHours(),h:e=>{let l=e.getHours();return l==0?12:l>12?l-12:l},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>_l(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>_l(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Ar(e.getMilliseconds())};function Kn(e,l){l=l||xr;let s=[],n=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=n.exec(e);)s.push(i[0][0]=="{"?Er[i[1]]:i[0]);return u=>{let f="";for(let d=0;d<s.length;d++)f+=typeof s[d]=="string"?s[d]:s[d](u,l);return f}}var Dr=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Pr(e,l){let s;return l=="UTC"||l=="Etc/UTC"?s=new Date(+e+e.getTimezoneOffset()*6e4):l==Dr?s=e:(s=new Date(e.toLocaleString("en-US",{timeZone:l})),s.setMilliseconds(e.getMilliseconds())),s}var Ts=e=>e%1==0,jl=[1,2,2.5,5],Lr=Al(10,-16,0,jl),Ms=Al(10,0,16,jl),Cr=Ms.filter(Ts),Fr=Lr.concat(Ms),jn=`
`,xs="{YYYY}",Qo=jn+xs,As="{M}/{D}",Tl=jn+As,Il=Tl+"/{YY}",Es="{aa}",Rr="{h}:{mm}",Zt=Rr+Es,Xo=jn+Zt,es=":{ss}",ae=null;function Ds(e){let l=e*1e3,s=l*60,n=s*60,i=n*24,u=i*30,f=i*365,p=(e==1?Al(10,0,3,jl).filter(Ts):Al(10,-3,0,jl)).concat([l,l*5,l*10,l*15,l*30,s,s*5,s*10,s*15,s*30,n,n*2,n*3,n*4,n*6,n*8,n*12,i,i*2,i*3,i*4,i*5,i*6,i*7,i*8,i*9,i*10,i*15,u,u*2,u*3,u*4,u*6,f,f*2,f*5,f*10,f*25,f*50,f*100]),m=[[f,xs,ae,ae,ae,ae,ae,ae,1],[i*28,"{MMM}",Qo,ae,ae,ae,ae,ae,1],[i,As,Qo,ae,ae,ae,ae,ae,1],[n,"{h}"+Es,Il,ae,Tl,ae,ae,ae,1],[s,Zt,Il,ae,Tl,ae,ae,ae,1],[l,es,Il+" "+Zt,ae,Tl+" "+Zt,ae,Xo,ae,1],[e,es+".{fff}",Il+" "+Zt,ae,Tl+" "+Zt,ae,Xo,ae,1]];function w(S){return(h,A,L,T,P,I)=>{let C=[],k=P>=f,F=P>=u&&P<f,x=S(L),O=ce(x*e,3),E=Ln(x.getFullYear(),k?0:x.getMonth(),F||k?1:x.getDate()),B=ce(E*e,3);if(F||k){let W=F?P/u:0,V=k?P/f:0,b=O==B?O:ce(Ln(E.getFullYear()+V,E.getMonth()+W,1)*e,3),N=new Date(Ve(b/e)),Q=N.getFullYear(),X=N.getMonth();for(let q=0;b<=T;q++){let fe=Ln(Q+V*q,X+W*q,1),U=fe-S(ce(fe*e,3));b=ce((+fe+U)*e,3),b<=T&&C.push(b)}}else{let W=P>=i?i:P,V=tt(L)-tt(O),b=B+V+tl(O-B,W);C.push(b);let N=S(b),Q=N.getHours()+N.getMinutes()/s+N.getSeconds()/n,X=P/n,q=h.axes[A]._space,fe=I/q;for(;b=ce(b+P,e==1?0:3),!(b>T);)if(X>1){let U=tt(ce(Q+X,6))%24,ee=S(b).getHours()-U;ee>1&&(ee=-1),b-=ee*n,Q=(Q+X)%24;let se=C[C.length-1];ce((b-se)/P,3)*fe>=.7&&C.push(b)}else C.push(b)}return C}}return[p,m,w]}var[zr,Vr,Nr]=Ds(1),[Or,Hr,Gr]=Ds(.001);Al(2,-53,53,[1]);function ts(e,l){return e.map(s=>s.map((n,i)=>i==0||i==8||n==null?n:l(i==1||s[8]==0?n:s[1]+n)))}function ls(e,l){return(s,n,i,u,f)=>{let d=l.find(L=>f>=L[0])||l[l.length-1],p,m,w,S,h,A;return n.map(L=>{let T=e(L),P=T.getFullYear(),I=T.getMonth(),C=T.getDate(),k=T.getHours(),F=T.getMinutes(),x=T.getSeconds(),O=P!=p&&d[2]||I!=m&&d[3]||C!=w&&d[4]||k!=S&&d[5]||F!=h&&d[6]||x!=A&&d[7]||d[1];return p=P,m=I,w=C,S=k,h=F,A=x,O(T)})}}function Wr(e,l){let s=Kn(l);return(n,i,u,f,d)=>i.map(p=>s(e(p)))}function Ln(e,l,s){return new Date(e,l,s)}function ns(e,l){return l(e)}var Ir="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function os(e,l){return(s,n,i,u)=>u==null?In:l(e(n))}function Br(e,l){let s=e.series[l];return s.width?s.stroke(e,l):s.points.width?s.points.stroke(e,l):null}function Ur(e,l){return e.series[l].fill(e,l)}var qr={show:!0,live:!0,isolate:!1,mount:cr,markers:{show:!0,width:2,stroke:Br,fill:Ur,dash:"solid"},idx:null,idxs:null,values:[]};function Yr(e,l){let s=e.cursor.points,n=et(),i=s.size(e,l);ge(n,bl,i),ge(n,kl,i);let u=i/-2;ge(n,"marginLeft",u),ge(n,"marginTop",u);let f=s.width(e,l,i);return f&&ge(n,"borderWidth",f),n}function Kr(e,l){let s=e.series[l].points;return s._fill||s._stroke}function jr(e,l){let s=e.series[l].points;return s._stroke||s._fill}function Jr(e,l){return e.series[l].points.size}function Zr(e,l,s){return s}var Cn=[0,0];function $r(e,l,s){return Cn[0]=l,Cn[1]=s,Cn}function Bl(e,l,s){return n=>{n.button==0&&s(n)}}function Fn(e,l,s){return s}var Qr={show:!0,x:!0,y:!0,lock:!1,move:$r,points:{show:Yr,size:Jr,width:0,stroke:jr,fill:Kr},bind:{mousedown:Bl,mouseup:Bl,click:Bl,dblclick:Bl,mousemove:Fn,mouseleave:Fn,mouseenter:Fn},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,l)=>{l.stopPropagation(),l.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:Zr,idxs:null},Ps={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Jn=be({},Ps,{filter:Ss}),Ls=be({},Jn,{size:10}),Cs=be({},Ps,{show:!1}),Zn='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Fs="bold "+Zn,Xr=1.5,ss={show:!0,scale:"x",stroke:Wn,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Fs,side:2,grid:Jn,ticks:Ls,border:Cs,font:Zn,rotate:0},ea="Value",ta="Time",is={show:!0,scale:"x",auto:!1,sorted:1,min:$,max:-$,idxs:[]};function la(e,l,s,n,i){return l.map(u=>u==null?"":Yn(u))}function na(e,l,s,n,i,u,f){let d=[],p=$l.get(i)||0;s=f?s:ce(tl(s,i),p);for(let m=s;m<=n;m=ce(m+i,p))d.push(Object.is(m,-0)?0:m);return d}function On(e,l,s,n,i,u,f){let d=[],p=e.scales[e.axes[l].scale].log,m=p==10?dt:ws,w=tt(m(s));i=Xt(p,w),p==10&&w<0&&(i=ce(i,-w));let S=s;do d.push(S),S=S+i,p==10&&(S=ce(S,$l.get(i))),S>=i*p&&(i=S);while(S<=n);return d}function oa(e,l,s,n,i,u,f){let p=e.scales[e.axes[l].scale].asinh,m=n>p?On(e,l,Te(p,s),n,i):[p],w=n>=0&&s<=0?[0]:[];return(s<-p?On(e,l,Te(p,-n),-s,i):[p]).reverse().map(h=>-h).concat(w,m)}var sa=/./,ia=/[12357]/,ra=/[125]/,aa=/1/;function fa(e,l,s,n,i){let u=e.axes[s],f=u.scale,d=e.scales[f];if(d.distr==3&&d.log==2)return l;let p=e.valToPos,m=u._space,w=p(10,f),S=p(9,f)-w>=m?sa:p(7,f)-w>=m?ia:p(5,f)-w>=m?ra:aa;return l.map(h=>d.distr==4&&h==0||S.test(h)?h:null)}function ua(e,l,s,n){return n==null?In:l==null?"":Yn(l)}var rs={show:!0,scale:"y",stroke:Wn,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Fs,side:3,grid:Jn,ticks:Ls,border:Cs,font:Zn,rotate:0};function ca(e,l){let s=3+(e||1)*2;return ce(s*l,3)}function ha(e,l){let{scale:s,idxs:n}=e.series[0],i=e._data[0],u=e.valToPos(i[n[0]],s,!0),f=e.valToPos(i[n[1]],s,!0),d=Ge(f-u),p=e.series[l],m=d/(p.points.space*ne);return n[1]-n[0]<=m}var as={scale:null,auto:!0,sorted:0,min:$,max:-$},Rs=(e,l,s,n,i)=>i,fs={show:!0,auto:!0,sorted:0,gaps:Rs,alpha:1,facets:[be({},as,{scale:"x"}),be({},as,{scale:"y"})]},us={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Rs,alpha:1,points:{show:ha,filter:null},values:null,min:$,max:-$,idxs:[],path:null,clip:null};function pa(e,l,s,n,i){return s/10}var zs={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},ma=be({},zs,{time:!1,ori:1}),cs={};function Vs(e,l){let s=cs[e];return s||(s={key:e,plots:[],sub(n){s.plots.push(n)},unsub(n){s.plots=s.plots.filter(i=>i!=n)},pub(n,i,u,f,d,p,m){for(let w=0;w<s.plots.length;w++)s.plots[w]!=i&&s.plots[w].pub(n,i,u,f,d,p,m)}},e!=null&&(cs[e]=s)),s}var Nt=1<<0,Jl=1<<1;function Ot(e,l,s){let n=e.mode,i=e.series[l],u=n==2?e._data[l]:e._data,f=e.scales,d=e.bbox,p=u[0],m=n==2?u[1]:u[l],w=n==2?f[i.facets[0].scale]:f[e.series[0].scale],S=n==2?f[i.facets[1].scale]:f[i.scale],h=d.left,A=d.top,L=d.width,T=d.height,P=e.valToPosH,I=e.valToPosV;return w.ori==0?s(i,p,m,w,S,P,I,h,A,L,T,tn,ol,nn,Os,Gs):s(i,p,m,w,S,I,P,A,h,T,L,ln,sl,Qn,Hs,Ws)}function Xl(e,l){let s=0,n=0,i=oe(e.bands,ys);for(let u=0;u<i.length;u++){let f=i[u];f.series[0]==l?s=f.dir:f.series[1]==l&&(f.dir==1?n|=1:n|=2)}return[s,n==1?-1:n==2?1:n==3?2:0]}function da(e,l,s,n,i){let u=e.mode,f=e.series[l],d=u==2?f.facets[1].scale:f.scale,p=e.scales[d];return i==-1?p.min:i==1?p.max:p.distr==3?p.dir==1?p.min:p.max:0}function gt(e,l,s,n,i,u){return Ot(e,l,(f,d,p,m,w,S,h,A,L,T,P)=>{let I=f.pxRound,C=m.dir*(m.ori==0?1:-1),k=m.ori==0?ol:sl,F,x;C==1?(F=s,x=n):(F=n,x=s);let O=I(S(d[F],m,T,A)),E=I(h(p[F],w,P,L)),B=I(S(d[x],m,T,A)),W=I(h(u==1?w.max:w.min,w,P,L)),V=new Path2D(i);return k(V,B,W),k(V,O,W),k(V,O,E),V})}function en(e,l,s,n,i,u){let f=null;if(e.length>0){f=new Path2D;let d=l==0?nn:Qn,p=s;for(let w=0;w<e.length;w++){let S=e[w];if(S[1]>S[0]){let h=S[0]-p;h>0&&d(f,p,n,h,n+u),p=S[1]}}let m=s+i-p;m>0&&d(f,p,n,m,n+u)}return f}function ga(e,l,s){let n=e[e.length-1];n&&n[0]==l?n[1]=s:e.push([l,s])}function $n(e,l,s,n,i,u,f){let d=[],p=e.length;for(let m=i==1?s:n;m>=s&&m<=n;m+=i)if(l[m]===null){let S=m,h=m;if(i==1)for(;++m<=n&&l[m]===null;)h=m;else for(;--m>=s&&l[m]===null;)h=m;let A=u(e[S]),L=h==S?A:u(e[h]),T=S-i;A=f<=0&&T>=0&&T<p?u(e[T]):A;let I=h+i;L=f>=0&&I>=0&&I<p?u(e[I]):L,L>=A&&d.push([A,L])}return d}function hs(e){return e==0?hr:e==1?Ve:l=>Ft(l,e)}function Ns(e){let l=e==0?tn:ln,s=e==0?(i,u,f,d,p,m)=>{i.arcTo(u,f,d,p,m)}:(i,u,f,d,p,m)=>{i.arcTo(f,u,p,d,m)},n=e==0?(i,u,f,d,p)=>{i.rect(u,f,d,p)}:(i,u,f,d,p)=>{i.rect(f,u,p,d)};return(i,u,f,d,p,m=0,w=0)=>{m==0&&w==0?n(i,u,f,d,p):(m=Ue(m,d/2,p/2),w=Ue(w,d/2,p/2),l(i,u+m,f),s(i,u+d,f,u+d,f+p,m),s(i,u+d,f+p,u,f+p,w),s(i,u,f+p,u,f,w),s(i,u,f,u+d,f,m),i.closePath())}}var tn=(e,l,s)=>{e.moveTo(l,s)},ln=(e,l,s)=>{e.moveTo(s,l)},ol=(e,l,s)=>{e.lineTo(l,s)},sl=(e,l,s)=>{e.lineTo(s,l)},nn=Ns(0),Qn=Ns(1),Os=(e,l,s,n,i,u)=>{e.arc(l,s,n,i,u)},Hs=(e,l,s,n,i,u)=>{e.arc(s,l,n,i,u)},Gs=(e,l,s,n,i,u,f)=>{e.bezierCurveTo(l,s,n,i,u,f)},Ws=(e,l,s,n,i,u,f)=>{e.bezierCurveTo(s,l,i,n,f,u)};function Is(e){return(l,s,n,i,u)=>Ot(l,s,(f,d,p,m,w,S,h,A,L,T,P)=>{let{pxRound:I,points:C}=f,k,F;m.ori==0?(k=tn,F=Os):(k=ln,F=Hs);let x=ce(C.width*ne,3),O=(C.size-C.width)/2*ne,E=ce(O*2,3),B=new Path2D,W=new Path2D,{left:V,top:b,width:N,height:Q}=l.bbox;nn(W,V-E,b-E,N+E*2,Q+E*2);let X=q=>{if(p[q]!=null){let fe=I(S(d[q],m,T,A)),U=I(h(p[q],w,P,L));k(B,fe+O,U),F(B,fe,U,O,0,Ul*2)}};if(u)u.forEach(X);else for(let q=n;q<=i;q++)X(q);return{stroke:x>0?B:null,fill:B,clip:W,flags:Nt|Jl}})}function Bs(e){return(l,s,n,i,u,f)=>{n!=i&&(u!=n&&f!=n&&e(l,s,n),u!=i&&f!=i&&e(l,s,i),e(l,s,f))}}var wa=Bs(ol),Sa=Bs(sl);function Us(e){let l=oe(e?.alignGaps,0);return(s,n,i,u)=>Ot(s,n,(f,d,p,m,w,S,h,A,L,T,P)=>{let I=f.pxRound,C=z=>I(S(z,m,T,A)),k=z=>I(h(z,w,P,L)),F,x;m.ori==0?(F=ol,x=wa):(F=sl,x=Sa);let O=m.dir*(m.ori==0?1:-1),E={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Nt},B=E.stroke,W=$,V=-$,b,N,Q,X=C(d[O==1?i:u]),q=Qt(p,i,u,1*O),fe=Qt(p,i,u,-1*O),U=C(d[q]),$e=C(d[fe]),Ce=!1;for(let z=O==1?i:u;z>=i&&z<=u;z+=O){let pe=C(d[z]),H=p[z];pe==X?H!=null?(N=k(H),W==$&&(F(B,pe,N),b=N),W=Ue(N,W),V=Te(N,V)):H===null&&(Ce=!0):(W!=$&&(x(B,X,W,V,b,N),Q=X),H!=null?(N=k(H),F(B,pe,N),W=V=b=N):(W=$,V=-$,H===null&&(Ce=!0)),X=pe)}W!=$&&W!=V&&Q!=X&&x(B,X,W,V,b,N);let[ee,se]=Xl(s,n);if(f.fill!=null||ee!=0){let z=E.fill=new Path2D(B),pe=f.fillTo(s,n,f.min,f.max,ee),H=k(pe);F(z,$e,H),F(z,U,H)}if(!f.spanGaps){let z=[];Ce&&z.push(...$n(d,p,i,u,O,C,l)),E.gaps=z=f.gaps(s,n,i,u,z),E.clip=en(z,m.ori,A,L,T,P)}return se!=0&&(E.band=se==2?[gt(s,n,i,u,B,-1),gt(s,n,i,u,B,1)]:gt(s,n,i,u,B,se)),E})}function va(e){let l=oe(e.align,1),s=oe(e.ascDesc,!1),n=oe(e.alignGaps,0),i=oe(e.extend,!1);return(u,f,d,p)=>Ot(u,f,(m,w,S,h,A,L,T,P,I,C,k)=>{let F=m.pxRound,{left:x,width:O}=u.bbox,E=ee=>F(L(ee,h,C,P)),B=ee=>F(T(ee,A,k,I)),W=h.ori==0?ol:sl,V={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Nt},b=V.stroke,N=h.dir*(h.ori==0?1:-1);d=Qt(S,d,p,1),p=Qt(S,d,p,-1);let Q=B(S[N==1?d:p]),X=E(w[N==1?d:p]),q=X,fe=X;i&&l==-1&&(fe=x,W(b,fe,Q)),W(b,X,Q);for(let ee=N==1?d:p;ee>=d&&ee<=p;ee+=N){let se=S[ee];if(se==null)continue;let z=E(w[ee]),pe=B(se);l==1?W(b,z,Q):W(b,q,pe),W(b,z,pe),Q=pe,q=z}let U=q;i&&l==1&&(U=x+O,W(b,U,Q));let[$e,Ce]=Xl(u,f);if(m.fill!=null||$e!=0){let ee=V.fill=new Path2D(b),se=m.fillTo(u,f,m.min,m.max,$e),z=B(se);W(ee,U,z),W(ee,fe,z)}if(!m.spanGaps){let ee=[];ee.push(...$n(w,S,d,p,N,E,n));let se=m.width*ne/2,z=s||l==1?se:-se,pe=s||l==-1?-se:se;ee.forEach(H=>{H[0]+=z,H[1]+=pe}),V.gaps=ee=m.gaps(u,f,d,p,ee),V.clip=en(ee,h.ori,P,I,C,k)}return Ce!=0&&(V.band=Ce==2?[gt(u,f,d,p,b,-1),gt(u,f,d,p,b,1)]:gt(u,f,d,p,b,Ce)),V})}function ya(e){e=e||xl;let l=oe(e.size,[.6,$,1]),s=e.align||0,n=(e.gap||0)*ne,i=e.radius;i=i==null?[0,0]:typeof i=="number"?[i,0]:i;let u=Z(i),f=1-l[0],d=oe(l[1],$)*ne,p=oe(l[2],1)*ne,m=oe(e.disp,xl),w=oe(e.each,A=>{}),{fill:S,stroke:h}=m;return(A,L,T,P)=>Ot(A,L,(I,C,k,F,x,O,E,B,W,V,b)=>{let N=I.pxRound,Q,X;F.ori==0?[Q,X]=u(A,L):[X,Q]=u(A,L);let q=F.dir*(F.ori==0?1:-1),fe=x.dir*(x.ori==1?1:-1),U=F.ori==0?nn:Qn,$e=F.ori==0?w:(K,we,Oe,Me,We,xe,nt)=>{w(K,we,Oe,We,Me,nt,xe)},[Ce,ee]=Xl(A,L),se=x.distr==3?Ce==1?x.max:x.min:0,z=E(se,x,b,W),pe,H,ue=N(I.width*ne),lt=!1,wt=null,ct=null,Qe=null,St=null;S!=null&&(ue==0||h!=null)&&(lt=!0,wt=S.values(A,L,T,P),ct=new Map,new Set(wt).forEach(K=>{K!=null&&ct.set(K,new Path2D)}),ue>0&&(Qe=h.values(A,L,T,P),St=new Map,new Set(Qe).forEach(K=>{K!=null&&St.set(K,new Path2D)})));let{x0:il,size:Ht}=m;if(il!=null&&Ht!=null){C=il.values(A,L,T,P),il.unit==2&&(C=C.map(we=>A.posToVal(B+we*V,F.key,!0)));let K=Ht.values(A,L,T,P);Ht.unit==2?H=K[0]*V:H=O(K[0],F,V,B)-O(0,F,V,B),H=N(H-ue),pe=q==1?-ue/2:H+ue/2}else{let K=V;if(C.length>1){let Oe=null;for(let Me=0,We=1/0;Me<C.length;Me++)if(k[Me]!==void 0){if(Oe!=null){let xe=Ge(C[Me]-C[Oe]);xe<We&&(We=xe,K=Ge(O(C[Me],F,V,B)-O(C[Oe],F,V,B)))}Oe=Me}}let we=K*f;H=N(Ue(d,Te(p,K-we))-ue-n),pe=(s==0?H/2:s==q?0:H)-s*q*n/2}let Mt={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:Nt|Jl},rl;ee!=0&&(Mt.band=new Path2D,rl=N(E(ee==1?x.max:x.min,x,b,W)));let ht=lt?null:new Path2D,rt=Mt.band,{y0:al,y1:xt}=m,vt=null;al!=null&&xt!=null&&(k=xt.values(A,L,T,P),vt=al.values(A,L,T,P));let te=Q*H,le=X*H;for(let K=q==1?T:P;K>=T&&K<=P;K+=q){let we=k[K];if(we===void 0)continue;let Oe=F.distr!=2||m!=null?C[K]:K,Me=O(Oe,F,V,B),We=E(oe(we,se),x,b,W);vt!=null&&we!=null&&(z=E(vt[K],x,b,W));let xe=N(Me-pe),nt=N(Te(We,z)),Ie=N(Ue(We,z)),je=nt-Ie;if(we!=null){let at=we<0?le:te,At=we<0?te:le;lt?(ue>0&&Qe[K]!=null&&U(St.get(Qe[K]),xe,Ie+tt(ue/2),H,Te(0,je-ue),at,At),wt[K]!=null&&U(ct.get(wt[K]),xe,Ie+tt(ue/2),H,Te(0,je-ue),at,At)):U(ht,xe,Ie+tt(ue/2),H,Te(0,je-ue),at,At),$e(A,L,K,xe-ue/2,Ie,H+ue,je)}ee!=0&&(fe*ee==1?(nt=Ie,Ie=rl):(Ie=nt,nt=rl),je=nt-Ie,U(rt,xe-ue/2,Ie,H+ue,Te(0,je),0,0))}return ue>0&&(Mt.stroke=lt?St:ht),Mt.fill=lt?ct:ht,Mt})}function _a(e,l){let s=oe(l?.alignGaps,0);return(n,i,u,f)=>Ot(n,i,(d,p,m,w,S,h,A,L,T,P,I)=>{let C=d.pxRound,k=U=>C(h(U,w,P,L)),F=U=>C(A(U,S,I,T)),x,O,E;w.ori==0?(x=tn,E=ol,O=Gs):(x=ln,E=sl,O=Ws);let B=w.dir*(w.ori==0?1:-1);u=Qt(m,u,f,1),f=Qt(m,u,f,-1);let W=k(p[B==1?u:f]),V=W,b=[],N=[];for(let U=B==1?u:f;U>=u&&U<=f;U+=B)if(m[U]!=null){let Ce=p[U],ee=k(Ce);b.push(V=ee),N.push(F(m[U]))}let Q={stroke:e(b,N,x,E,O,C),fill:null,clip:null,band:null,gaps:null,flags:Nt},X=Q.stroke,[q,fe]=Xl(n,i);if(d.fill!=null||q!=0){let U=Q.fill=new Path2D(X),$e=d.fillTo(n,i,d.min,d.max,q),Ce=F($e);E(U,V,Ce),E(U,W,Ce)}if(!d.spanGaps){let U=[];U.push(...$n(p,m,u,f,B,k,s)),Q.gaps=U=d.gaps(n,i,u,f,U),Q.clip=en(U,w.ori,L,T,P,I)}return fe!=0&&(Q.band=fe==2?[gt(n,i,u,f,X,-1),gt(n,i,u,f,X,1)]:gt(n,i,u,f,X,fe)),Q})}function ba(e){return _a(ka,e)}function ka(e,l,s,n,i,u){let f=e.length;if(f<2)return null;let d=new Path2D;if(s(d,e[0],l[0]),f==2)n(d,e[1],l[1]);else{let p=Array(f),m=Array(f-1),w=Array(f-1),S=Array(f-1);for(let h=0;h<f-1;h++)w[h]=l[h+1]-l[h],S[h]=e[h+1]-e[h],m[h]=w[h]/S[h];p[0]=m[0];for(let h=1;h<f-1;h++)m[h]===0||m[h-1]===0||m[h-1]>0!=m[h]>0?p[h]=0:(p[h]=3*(S[h-1]+S[h])/((2*S[h]+S[h-1])/m[h-1]+(S[h]+2*S[h-1])/m[h]),isFinite(p[h])||(p[h]=0));p[f-1]=m[f-2];for(let h=0;h<f-1;h++)i(d,e[h]+S[h]/3,l[h]+p[h]*S[h]/3,e[h+1]-S[h]/3,l[h+1]-p[h+1]*S[h]/3,e[h+1],l[h+1])}return d}var Hn=new Set;function ps(){for(let e of Hn)e.syncRect(!0)}nl&&(Tt(er,$t,ps),Tt(tr,$t,ps,!0),Tt(ql,$t,()=>{Ne.pxRatio=ne}));var Ta=Us(),Ma=Is();function ms(e,l,s,n){return(n?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((u,f)=>Gn(u,f,l,s))}function xa(e,l){return e.map((s,n)=>n==0?null:be({},l,s))}function Gn(e,l,s,n){return be({},l==0?s:n,e)}function qs(e,l,s){return l==null?ll:[l,s]}var Aa=qs;function Ea(e,l,s){return l==null?ll:Yl(l,s,qn,!0)}function Ys(e,l,s,n){return l==null?ll:Zl(l,s,e.scales[n].log,!1)}var Da=Ys;function Ks(e,l,s,n){return l==null?ll:Un(l,s,e.scales[n].log,!1)}var Pa=Ks;function La(e,l,s,n,i){let u=Te(Yo(e),Yo(l)),f=l-e,d=kt(i/n*f,s);do{let p=s[d],m=n*p/f;if(m>=i&&u+(p<5?$l.get(p):0)<=17)return[p,m]}while(++d<s.length);return[0,0]}function ds(e){let l,s;return e=e.replace(/(\d+)px/,(n,i)=>(l=Ve((s=+i)*ne))+"px"),[e,l,s]}function Ca(e){e.show&&[e.font,e.labelFont].forEach(l=>{let s=ce(l[2]*ne,1);l[0]=l[0].replace(/[0-9.]+px/,s+"px"),l[1]=s})}function Ne(e,l,s){let n={mode:oe(e.mode,1)},i=n.mode;function u(t,o){return((o.distr==3?dt(t>0?t:o.clamp(n,t,o.min,o.max,o.key)):o.distr==4?Pn(t,o.asinh):t)-o._min)/(o._max-o._min)}function f(t,o,r,a){let c=u(t,o);return a+r*(o.dir==-1?1-c:c)}function d(t,o,r,a){let c=u(t,o);return a+r*(o.dir==-1?c:1-c)}function p(t,o,r,a){return o.ori==0?f(t,o,r,a):d(t,o,r,a)}n.valToPosH=f,n.valToPosV=d;let m=!1;n.status=0;let w=n.root=et(zi);if(e.id!=null&&(w.id=e.id),Je(w,e.class),e.title){let t=et(Oi,w);t.textContent=e.title}let S=mt("canvas"),h=n.ctx=S.getContext("2d"),A=et(Hi,w);Tt("click",A,t=>{(me!=Wt||de!=It)&&Fe.click(n,t)},!0);let L=n.under=et(Gi,A);A.appendChild(S);let T=n.over=et(Wi,A);e=Vt(e);let P=+oe(e.pxAlign,1),I=hs(P);(e.plugins||[]).forEach(t=>{t.opts&&(e=t.opts(n,e)||e)});let C=e.ms||.001,k=n.series=i==1?ms(e.series||[],is,us,!1):xa(e.series||[null],fs),F=n.axes=ms(e.axes||[],ss,rs,!0),x=n.scales={},O=n.bands=e.bands||[];O.forEach(t=>{t.fill=Z(t.fill||null),t.dir=oe(t.dir,-1)});let E=i==2?k[1].facets[0].scale:k[0].scale,B={axes:hi,series:ri},W=(e.drawOrder||["axes","series"]).map(t=>B[t]);function V(t){let o=x[t];if(o==null){let r=(e.scales||xl)[t]||xl;if(r.from!=null)V(r.from),x[t]=be({},x[r.from],r,{key:t});else{o=x[t]=be({},t==E?zs:ma,r),o.key=t;let a=o.time,c=o.range,g=zt(c);if((t!=E||i==2&&!a)&&(g&&(c[0]==null||c[1]==null)&&(c={min:c[0]==null?Bo:{mode:1,hard:c[0],soft:c[0]},max:c[1]==null?Bo:{mode:1,hard:c[1],soft:c[1]}},g=!1),!g&&Ql(c))){let v=c;c=(_,M,R)=>M==null?ll:Yl(M,R,v)}o.range=Z(c||(a?Aa:t==E?o.distr==3?Da:o.distr==4?Pa:qs:o.distr==3?Ys:o.distr==4?Ks:Ea)),o.auto=Z(g?!1:o.auto),o.clamp=Z(o.clamp||pa),o._min=o._max=null}}}V("x"),V("y"),i==1&&k.forEach(t=>{V(t.scale)}),F.forEach(t=>{V(t.scale)});for(let t in e.scales)V(t);let b=x[E],N=b.distr,Q,X;b.ori==0?(Je(w,Vi),Q=f,X=d):(Je(w,Ni),Q=d,X=f);let q={};for(let t in x){let o=x[t];(o.min!=null||o.max!=null)&&(q[t]={min:o.min,max:o.max},o.min=o.max=null)}let fe=e.tzDate||(t=>new Date(Ve(t/C))),U=e.fmtDate||Kn,$e=C==1?Nr(fe):Gr(fe),Ce=ls(fe,ts(C==1?Vr:Hr,U)),ee=os(fe,ns(Ir,U)),se=[],z=n.legend=be({},qr,e.legend),pe=z.show,H=z.markers;z.idxs=se,H.width=Z(H.width),H.dash=Z(H.dash),H.stroke=Z(H.stroke),H.fill=Z(H.fill);let ue,lt=[],wt=[],ct,Qe=!1,St={};if(z.live){let t=k[1]?k[1].values:null;Qe=t!=null,ct=Qe?t(n,1,0):{_:0};for(let o in ct)St[o]=In}if(pe)if(ue=mt("table",Ki,w),z.mount(n,ue),Qe){let t=mt("tr",Zi,ue);mt("th",null,t);for(var il in ct)mt("th",Lo,t).textContent=il}else Je(ue,Ji),z.live&&Je(ue,ji);let Ht={show:!0},Mt={show:!1};function rl(t,o){if(o==0&&(Qe||!z.live||i==2))return ll;let r=[],a=mt("tr",$i,ue,ue.childNodes[o]);Je(a,t.class),t.show||Je(a,Rt);let c=mt("th",null,a);if(H.show){let _=et(Qi,c);if(o>0){let M=H.width(n,o);M&&(_.style.border=M+"px "+H.dash(n,o)+" "+H.stroke(n,o)),_.style.background=H.fill(n,o)}}let g=et(Lo,c);g.textContent=t.label,o>0&&(H.show||(g.style.color=t.width>0?H.stroke(n,o):H.fill(n,o)),rt("click",c,_=>{if(G._lock)return;let M=k.indexOf(t);if((_.ctrlKey||_.metaKey)!=z.isolate){let R=k.some((y,D)=>D>0&&D!=M&&y.show);k.forEach((y,D)=>{D>0&&ft(D,R?D==M?Ht:Mt:Ht,!0,ze.setSeries)})}else ft(M,{show:!t.show},!0,ze.setSeries)}),fl&&rt(Vo,c,_=>{G._lock||ft(k.indexOf(t),Ut,!0,ze.setSeries)}));for(var v in ct){let _=mt("td",Xi,a);_.textContent="--",r.push(_)}return[a,r]}let ht=new Map;function rt(t,o,r){let a=ht.get(o)||{},c=G.bind[t](n,o,r);c&&(Tt(t,o,a[t]=c),ht.set(o,a))}function al(t,o,r){let a=ht.get(o)||{};for(let c in a)(t==null||c==t)&&(Nn(c,o,a[c]),delete a[c]);t==null&&ht.delete(o)}let xt=0,vt=0,te=0,le=0,K=0,we=0,Oe=0,Me=0,We=0,xe=0;n.bbox={};let nt=!1,Ie=!1,je=!1,at=!1,At=!1,Xe=!1;function rn(t,o,r){(r||t!=n.width||o!=n.height)&&to(t,o),hl(!1),je=!0,Ie=!0,G.left>=0&&(at=Xe=!0),Pt()}function to(t,o){n.width=xt=te=t,n.height=vt=le=o,K=we=0,Xs(),ei();let r=n.bbox;Oe=r.left=Ft(K*ne,.5),Me=r.top=Ft(we*ne,.5),We=r.width=Ft(te*ne,.5),xe=r.height=Ft(le*ne,.5)}let Zs=3;function $s(){let t=!1,o=0;for(;!t;){o++;let r=ui(o),a=ci(o);t=o==Zs||r&&a,t||(to(n.width,n.height),Ie=!0)}}function Qs({width:t,height:o}){rn(t,o)}n.setSize=Qs;function Xs(){let t=!1,o=!1,r=!1,a=!1;F.forEach((c,g)=>{if(c.show&&c._show){let{side:v,_size:_}=c,M=v%2,R=c.label!=null?c.labelSize:0,y=_+R;y>0&&(M?(te-=y,v==3?(K+=y,a=!0):r=!0):(le-=y,v==0?(we+=y,t=!0):o=!0))}}),Dt[0]=t,Dt[1]=r,Dt[2]=o,Dt[3]=a,te-=yt[1]+yt[3],K+=yt[3],le-=yt[2]+yt[0],we+=yt[0]}function ei(){let t=K+te,o=we+le,r=K,a=we;function c(g,v){switch(g){case 1:return t+=v,t-v;case 2:return o+=v,o-v;case 3:return r-=v,r+v;case 0:return a-=v,a+v}}F.forEach((g,v)=>{if(g.show&&g._show){let _=g.side;g._pos=c(_,g._size),g.label!=null&&(g._lpos=c(_,g.labelSize))}})}let G=n.cursor=be({},Qr,{drag:{y:i==2}},e.cursor);{G.idxs=se,G._lock=!1;let t=G.points;t.show=Z(t.show),t.size=Z(t.size),t.stroke=Z(t.stroke),t.width=Z(t.width),t.fill=Z(t.fill)}let Et=n.focus=be({},e.focus||{alpha:.3},G.focus);Et.bias!=0&&(Et.prox=1e5);let fl=Et.prox>=0,qe=[null];function ti(t,o){if(o>0){let r=G.points.show(n,o);if(r)return Je(r,Yi),Je(r,t.class),Jt(r,-10,-10,te,le),T.insertBefore(r,qe[o]),r}}function lo(t,o){if(i==1||o>0){let r=i==1&&x[t.scale].time,a=t.value;t.value=r?Zo(a)?os(fe,ns(a,U)):a||ee:a||ua,t.label=t.label||(r?ta:ea)}if(o>0){t.width=t.width==null?1:t.width,t.paths=t.paths||Ta||pr,t.fillTo=Z(t.fillTo||da),t.pxAlign=+oe(t.pxAlign,P),t.pxRound=hs(t.pxAlign),t.stroke=Z(t.stroke||null),t.fill=Z(t.fill||null),t._stroke=t._fill=t._paths=t._focus=null;let r=ca(Te(1,t.width),1),a=t.points=be({},{size:r,width:Te(1,r*.2),stroke:t.stroke,space:r*2,paths:Ma,_stroke:null,_fill:null},t.points);a.show=Z(a.show),a.filter=Z(a.filter),a.fill=Z(a.fill),a.stroke=Z(a.stroke),a.paths=Z(a.paths),a.pxAlign=t.pxAlign}if(pe){let r=rl(t,o);lt.splice(o,0,r[0]),wt.splice(o,0,r[1]),z.values.push(null)}if(G.show){se.splice(o,0,null);let r=ti(t,o);r&&qe.splice(o,0,r)}Re("addSeries",o)}function li(t,o){o=o??k.length,t=i==1?Gn(t,o,is,us):Gn(t,o,null,fs),k.splice(o,0,t),lo(k[o],o)}n.addSeries=li;function ni(t){if(k.splice(t,1),pe){z.values.splice(t,1),wt.splice(t,1);let o=lt.splice(t,1)[0];al(null,o.firstChild),o.remove()}G.show&&(se.splice(t,1),qe.length>1&&qe.splice(t,1)[0].remove()),Re("delSeries",t)}n.delSeries=ni;let Dt=[!1,!1,!1,!1];function oi(t,o){if(t._show=t.show,t.show){let r=t.side%2,a=x[t.scale];a==null&&(t.scale=r?k[1].scale:E,a=x[t.scale]);let c=a.time;t.size=Z(t.size),t.space=Z(t.space),t.rotate=Z(t.rotate),t.incrs=Z(t.incrs||(a.distr==2?Cr:c?C==1?zr:Or:Fr)),t.splits=Z(t.splits||(c&&a.distr==1?$e:a.distr==3?On:a.distr==4?oa:na)),t.stroke=Z(t.stroke),t.grid.stroke=Z(t.grid.stroke),t.ticks.stroke=Z(t.ticks.stroke),t.border.stroke=Z(t.border.stroke);let g=t.values;t.values=zt(g)&&!zt(g[0])?Z(g):c?zt(g)?ls(fe,ts(g,U)):Zo(g)?Wr(fe,g):g||Ce:g||la,t.filter=Z(t.filter||(a.distr>=3&&a.log==10?fa:Ss)),t.font=ds(t.font),t.labelFont=ds(t.labelFont),t._size=t.size(n,null,o,0),t._space=t._rotate=t._incrs=t._found=t._splits=t._values=null,t._size>0&&(Dt[o]=!0,t._el=et(Ii,A))}}function ul(t,o,r,a){let[c,g,v,_]=r,M=o%2,R=0;return M==0&&(_||g)&&(R=o==0&&!c||o==2&&!v?Ve(ss.size/3):0),M==1&&(c||v)&&(R=o==1&&!g||o==3&&!_?Ve(rs.size/2):0),R}let no=n.padding=(e.padding||[ul,ul,ul,ul]).map(t=>Z(oe(t,ul))),yt=n._padding=no.map((t,o)=>t(n,o,Dt,0)),Ae,Ee=null,De=null,Dl=i==1?k[0].idxs:null,ot=null,Pl=!1;function oo(t,o){if(l=t==null?[]:Vt(t,$o),i==2){Ae=0;for(let r=1;r<k.length;r++)Ae+=l[r][0].length;n.data=l=t}else if(l[0]==null&&(l[0]=[]),n.data=l.slice(),ot=l[0],Ae=ot.length,N==2){l[0]=Array(Ae);for(let r=0;r<Ae;r++)l[0][r]=r}if(n._data=l,hl(!0),Re("setData"),N==2&&(je=!0),o!==!1){let r=b;r.auto(n,Pl)?an():Bt(E,r.min,r.max),at=G.left>=0,Xe=!0,Pt()}}n.setData=oo;function an(){Pl=!0;let t,o;i==1&&(Ae>0?(Ee=Dl[0]=0,De=Dl[1]=Ae-1,t=l[0][Ee],o=l[0][De],N==2?(t=Ee,o=De):Ae==1&&(N==3?[t,o]=Zl(t,t,b.log,!1):N==4?[t,o]=Un(t,t,b.log,!1):b.time?o=t+Ve(86400/C):[t,o]=Yl(t,o,qn,!0))):(Ee=Dl[0]=t=null,De=Dl[1]=o=null)),Bt(E,t,o)}let Ll,Gt,fn,un,cn,hn,pn,mn,dn,cl;function so(t,o,r,a,c,g){t??(t=Fo),r??(r=ys),a??(a="butt"),c??(c=Fo),g??(g="round"),t!=Ll&&(h.strokeStyle=Ll=t),c!=Gt&&(h.fillStyle=Gt=c),o!=fn&&(h.lineWidth=fn=o),g!=cn&&(h.lineJoin=cn=g),a!=hn&&(h.lineCap=hn=a),r!=un&&h.setLineDash(un=r)}function io(t,o,r,a){o!=Gt&&(h.fillStyle=Gt=o),t!=pn&&(h.font=pn=t),r!=mn&&(h.textAlign=mn=r),a!=dn&&(h.textBaseline=dn=a)}function gn(t,o,r,a,c=0){if(a.length>0&&t.auto(n,Pl)&&(o==null||o.min==null)){let g=oe(Ee,0),v=oe(De,a.length-1),_=r.min==null?t.distr==3?ir(a,g,v):sr(a,g,v,c):[r.min,r.max];t.min=Ue(t.min,r.min=_[0]),t.max=Te(t.max,r.max=_[1])}}function si(){let t=Vt(x,$o);for(let a in t){let c=t[a],g=q[a];if(g!=null&&g.min!=null)be(c,g),a==E&&hl(!0);else if(a!=E||i==2)if(Ae==0&&c.from==null){let v=c.range(n,null,null,a);c.min=v[0],c.max=v[1]}else c.min=$,c.max=-$}if(Ae>0){k.forEach((a,c)=>{if(i==1){let g=a.scale,v=t[g],_=q[g];if(c==0){let M=v.range(n,v.min,v.max,g);v.min=M[0],v.max=M[1],Ee=kt(v.min,l[0]),De=kt(v.max,l[0]),De-Ee>1&&(l[0][Ee]<v.min&&Ee++,l[0][De]>v.max&&De--),a.min=ot[Ee],a.max=ot[De]}else a.show&&a.auto&&gn(v,_,a,l[c],a.sorted);a.idxs[0]=Ee,a.idxs[1]=De}else if(c>0&&a.show&&a.auto){let[g,v]=a.facets,_=g.scale,M=v.scale,[R,y]=l[c];gn(t[_],q[_],g,R,g.sorted),gn(t[M],q[M],v,y,v.sorted),a.min=v.min,a.max=v.max}});for(let a in t){let c=t[a],g=q[a];if(c.from==null&&(g==null||g.min==null)){let v=c.range(n,c.min==$?null:c.min,c.max==-$?null:c.max,a);c.min=v[0],c.max=v[1]}}}for(let a in t){let c=t[a];if(c.from!=null){let g=t[c.from];if(g.min==null)c.min=c.max=null;else{let v=c.range(n,g.min,g.max,a);c.min=v[0],c.max=v[1]}}}let o={},r=!1;for(let a in t){let c=t[a],g=x[a];if(g.min!=c.min||g.max!=c.max){g.min=c.min,g.max=c.max;let v=g.distr;g._min=v==3?dt(g.min):v==4?Pn(g.min,g.asinh):g.min,g._max=v==3?dt(g.max):v==4?Pn(g.max,g.asinh):g.max,o[a]=r=!0}}if(r){k.forEach((a,c)=>{i==2?c>0&&o.y&&(a._paths=null):o[a.scale]&&(a._paths=null)});for(let a in o)je=!0,Re("setScale",a);G.show&&G.left>=0&&(at=Xe=!0)}for(let a in q)q[a]=null}function ii(t){let o=Ko(Ee-1,0,Ae-1),r=Ko(De+1,0,Ae-1);for(;t[o]==null&&o>0;)o--;for(;t[r]==null&&r<Ae-1;)r++;return[o,r]}function ri(){Ae>0&&(k.forEach((t,o)=>{if(o>0&&t.show&&t._paths==null){let r=i==2?[0,l[o][0].length-1]:ii(l[o]);t._paths=t.paths(n,o,r[0],r[1])}}),k.forEach((t,o)=>{if(o>0&&t.show){cl!=t.alpha&&(h.globalAlpha=cl=t.alpha),ro(o,!1),t._paths&&ao(o,!1);{ro(o,!0);let r=t._paths?t._paths.gaps:null,a=t.points.show(n,o,Ee,De,r),c=t.points.filter(n,o,a,r);(a||c)&&(t.points._paths=t.points.paths(n,o,Ee,De,c),ao(o,!0))}cl!=1&&(h.globalAlpha=cl=1),Re("drawSeries",o)}}))}function ro(t,o){let r=o?k[t].points:k[t];r._stroke=r.stroke(n,t),r._fill=r.fill(n,t)}function ao(t,o){let r=o?k[t].points:k[t],a=r._stroke,c=r._fill,{stroke:g,fill:v,clip:_,flags:M}=r._paths,R=null,y=ce(r.width*ne,3),D=y%2/2;o&&c==null&&(c=y>0?"#fff":a);let Y=r.pxAlign==1;if(Y&&h.translate(D,D),!o){let Se=Oe,j=Me,ie=We,J=xe,re=y*ne/2;r.min==0&&(J+=re),r.max==0&&(j-=re,J+=re),R=new Path2D,R.rect(Se,j,ie,J)}o?wn(a,y,r.dash,r.cap,c,g,v,M,_):ai(t,a,y,r.dash,r.cap,c,g,v,M,R,_),Y&&h.translate(-D,-D)}function ai(t,o,r,a,c,g,v,_,M,R,y){let D=!1;O.forEach((Y,Se)=>{if(Y.series[0]==t){let j=k[Y.series[1]],ie=l[Y.series[1]],J=(j._paths||xl).band;zt(J)&&(J=Y.dir==1?J[0]:J[1]);let re,ye=null;j.show&&J&&ar(ie,Ee,De)?(ye=Y.fill(n,Se)||g,re=j._paths.clip):J=null,wn(o,r,a,c,ye,v,_,M,R,y,re,J),D=!0}}),D||wn(o,r,a,c,g,v,_,M,R,y)}let fo=Nt|Jl;function wn(t,o,r,a,c,g,v,_,M,R,y,D){so(t,o,r,a,c),(M||R||D)&&(h.save(),M&&h.clip(M),R&&h.clip(R)),D?(_&fo)==fo?(h.clip(D),y&&h.clip(y),Fl(c,v),Cl(t,g,o)):_&Jl?(Fl(c,v),h.clip(D),Cl(t,g,o)):_&Nt&&(h.save(),h.clip(D),y&&h.clip(y),Fl(c,v),h.restore(),Cl(t,g,o)):(Fl(c,v),Cl(t,g,o)),(M||R||D)&&h.restore()}function Cl(t,o,r){r>0&&(o instanceof Map?o.forEach((a,c)=>{h.strokeStyle=Ll=c,h.stroke(a)}):o!=null&&t&&h.stroke(o))}function Fl(t,o){o instanceof Map?o.forEach((r,a)=>{h.fillStyle=Gt=a,h.fill(r)}):o!=null&&t&&h.fill(o)}function fi(t,o,r,a){let c=F[t],g;if(a<=0)g=[0,0];else{let v=c._space=c.space(n,t,o,r,a),_=c._incrs=c.incrs(n,t,o,r,a,v);g=La(o,r,_,a,v)}return c._found=g}function Sn(t,o,r,a,c,g,v,_,M,R){let y=v%2/2;P==1&&h.translate(y,y),so(_,v,M,R,_),h.beginPath();let D,Y,Se,j,ie=c+(a==0||a==3?-g:g);r==0?(Y=c,j=ie):(D=c,Se=ie);for(let J=0;J<t.length;J++)o[J]!=null&&(r==0?D=Se=t[J]:Y=j=t[J],h.moveTo(D,Y),h.lineTo(Se,j));h.stroke(),P==1&&h.translate(-y,-y)}function ui(t){let o=!0;return F.forEach((r,a)=>{if(!r.show)return;let c=x[r.scale];if(c.min==null){r._show&&(o=!1,r._show=!1,hl(!1));return}else r._show||(o=!1,r._show=!0,hl(!1));let g=r.side,v=g%2,{min:_,max:M}=c,[R,y]=fi(a,_,M,v==0?te:le);if(y==0)return;let D=c.distr==2,Y=r._splits=r.splits(n,a,_,M,R,y,D),Se=c.distr==2?Y.map(re=>ot[re]):Y,j=c.distr==2?ot[Y[1]]-ot[Y[0]]:R,ie=r._values=r.values(n,r.filter(n,Se,a,y,j),a,y,j);r._rotate=g==2?r.rotate(n,ie,a,y):0;let J=r._size;r._size=Kl(r.size(n,ie,a,t)),J!=null&&r._size!=J&&(o=!1)}),o}function ci(t){let o=!0;return no.forEach((r,a)=>{let c=r(n,a,Dt,t);c!=yt[a]&&(o=!1),yt[a]=c}),o}function hi(){for(let t=0;t<F.length;t++){let o=F[t];if(!o.show||!o._show)continue;let r=o.side,a=r%2,c,g,v=o.stroke(n,t),_=r==0||r==3?-1:1;if(o.label){let it=o.labelGap*_,pt=Ve((o._lpos+it)*ne);io(o.labelFont[0],v,"center",r==2?yl:Co),h.save(),a==1?(c=g=0,h.translate(pt,Ve(Me+xe/2)),h.rotate((r==3?-Ul:Ul)/2)):(c=Ve(Oe+We/2),g=pt),h.fillText(o.label,c,g),h.restore()}let[M,R]=o._found;if(R==0)continue;let y=x[o.scale],D=a==0?We:xe,Y=a==0?Oe:Me,Se=Ve(o.gap*ne),j=o._splits,ie=y.distr==2?j.map(it=>ot[it]):j,J=y.distr==2?ot[j[1]]-ot[j[0]]:M,re=o.ticks,ye=o.border,Ke=re.show?Ve(re.size*ne):0,he=o._rotate*-Ul/180,_e=I(o._pos*ne),He=(Ke+Se)*_,ve=_e+He;g=a==0?ve:0,c=a==1?ve:0;let Be=o.font[0],st=o.align==1?jt:o.align==2?En:he>0?jt:he<0?En:a==0?"center":r==3?En:jt,bt=he||a==1?"middle":r==2?yl:Co;io(Be,v,st,bt);let To=o.font[1]*Xr,Hl=j.map(it=>I(p(it,y,D,Y))),Mo=o._values;for(let it=0;it<Mo.length;it++){let pt=Mo[it];if(pt!=null){a==0?c=Hl[it]:g=Hl[it],pt=""+pt;let xo=pt.indexOf(`
`)==-1?[pt]:pt.split(/\n/gm);for(let vl=0;vl<xo.length;vl++){let Ao=xo[vl];he?(h.save(),h.translate(c,g+vl*To),h.rotate(he),h.fillText(Ao,0,0),h.restore()):h.fillText(Ao,c,g+vl*To)}}}re.show&&Sn(Hl,re.filter(n,ie,t,R,J),a,r,_e,Ke,ce(re.width*ne,3),re.stroke(n,t),re.dash,re.cap);let Kt=o.grid;Kt.show&&Sn(Hl,Kt.filter(n,ie,t,R,J),a,a==0?2:1,a==0?Me:Oe,a==0?xe:We,ce(Kt.width*ne,3),Kt.stroke(n,t),Kt.dash,Kt.cap),ye.show&&Sn([_e],[1],a==0?1:0,a==0?1:2,a==1?Me:Oe,a==1?xe:We,ce(ye.width*ne,3),ye.stroke(n,t),ye.dash,ye.cap)}Re("drawAxes")}function hl(t){k.forEach((o,r)=>{r>0&&(o._paths=null,t&&(i==1?(o.min=null,o.max=null):o.facets.forEach(a=>{a.min=null,a.max=null})))})}let vn=!1;function Pt(){vn||(kr(pi),vn=!0)}function pi(){nt&&(si(),nt=!1),je&&($s(),je=!1),Ie&&(ge(L,jt,K),ge(L,yl,we),ge(L,bl,te),ge(L,kl,le),ge(T,jt,K),ge(T,yl,we),ge(T,bl,te),ge(T,kl,le),ge(A,bl,xt),ge(A,kl,vt),S.width=Ve(xt*ne),S.height=Ve(vt*ne),F.forEach(({_el:t,_show:o,_size:r,_pos:a,side:c})=>{if(t!=null)if(o){let g=c===3||c===0?r:0,v=c%2==1;ge(t,v?"left":"top",a-g),ge(t,v?"width":"height",r),ge(t,v?"top":"left",v?we:K),ge(t,v?"height":"width",v?le:te),Vn(t,Rt)}else Je(t,Rt)}),Ll=Gt=fn=cn=hn=pn=mn=dn=un=null,cl=1,Nl(!0),Re("setSize"),Ie=!1),xt>0&&vt>0&&(h.clearRect(0,0,S.width,S.height),Re("drawClear"),W.forEach(t=>t()),Re("draw")),Ye.show&&At&&(Vl(Ye),At=!1),G.show&&at&&(Ct(null,!0,!1),at=!1),z.show&&z.live&&Xe&&(kn(),Xe=!1),m||(m=!0,n.status=1,Re("ready")),Pl=!1,vn=!1}n.redraw=(t,o)=>{je=o||!1,t!==!1?Bt(E,b.min,b.max):Pt()};function yn(t,o){let r=x[t];if(r.from==null){if(Ae==0){let a=r.range(n,o.min,o.max,t);o.min=a[0],o.max=a[1]}if(o.min>o.max){let a=o.min;o.min=o.max,o.max=a}if(Ae>1&&o.min!=null&&o.max!=null&&o.max-o.min<1e-16)return;t==E&&r.distr==2&&Ae>0&&(o.min=kt(o.min,l[0]),o.max=kt(o.max,l[0]),o.min==o.max&&o.max++),q[t]=o,nt=!0,Pt()}}n.setScale=yn;let _n,bn,Rl,zl,uo,co,Wt,It,ho,po,me,de,_t=!1,Fe=G.drag,Pe=Fe.x,Le=Fe.y;G.show&&(G.x&&(_n=et(Ui,T)),G.y&&(bn=et(qi,T)),b.ori==0?(Rl=_n,zl=bn):(Rl=bn,zl=_n),me=G.left,de=G.top);let Ye=n.select=be({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),pl=Ye.show?et(Bi,Ye.over?T:L):null;function Vl(t,o){if(Ye.show){for(let r in t)Ye[r]=t[r],r in So&&ge(pl,r,t[r]);o!==!1&&Re("setSelect")}}n.setSelect=Vl;function mi(t,o){let r=k[t],a=pe?lt[t]:null;r.show?a&&Vn(a,Rt):(a&&Je(a,Rt),qe.length>1&&Jt(qe[t],-10,-10,te,le))}function Bt(t,o,r){yn(t,{min:o,max:r})}function ft(t,o,r,a){o.focus!=null&&vi(t),o.show!=null&&k.forEach((c,g)=>{g>0&&(t==g||t==null)&&(c.show=o.show,mi(g,o.show),Bt(i==2?c.facets[1].scale:c.scale,null,null),Pt())}),r!==!1&&Re("setSeries",t,o),a&&Sl("setSeries",n,t,o)}n.setSeries=ft;function di(t,o){be(O[t],o)}function gi(t,o){t.fill=Z(t.fill||null),t.dir=oe(t.dir,-1),o=o??O.length,O.splice(o,0,t)}function wi(t){t==null?O.length=0:O.splice(t,1)}n.addBand=gi,n.setBand=di,n.delBand=wi;function Si(t,o){k[t].alpha=o,G.show&&qe[t]&&(qe[t].style.opacity=o),pe&&lt[t]&&(lt[t].style.opacity=o)}let Lt,ml,dl,Ut={focus:!0};function vi(t){if(t!=dl){let o=t==null,r=Et.alpha!=1;k.forEach((a,c)=>{let g=o||c==0||c==t;a._focus=o?null:g,r&&Si(c,g?1:Et.alpha)}),dl=t,r&&Pt()}}pe&&fl&&Tt(No,ue,t=>{G._lock||dl!=null&&ft(null,Ut,!0,ze.setSeries)});function ut(t,o,r){let a=x[o];r&&(t=t/ne-(a.ori==1?we:K));let c=te;a.ori==1&&(c=le,t=c-t),a.dir==-1&&(t=c-t);let g=a._min,v=a._max,_=t/c,M=g+(v-g)*_,R=a.distr;return R==3?Xt(10,M):R==4?ur(M,a.asinh):M}function yi(t,o){let r=ut(t,E,o);return kt(r,l[0],Ee,De)}n.valToIdx=t=>kt(t,l[0]),n.posToIdx=yi,n.posToVal=ut,n.valToPos=(t,o,r)=>x[o].ori==0?f(t,x[o],r?We:te,r?Oe:0):d(t,x[o],r?xe:le,r?Me:0);function _i(t){t(n),Pt()}n.batch=_i,n.setCursor=(t,o,r)=>{me=t.left,de=t.top,Ct(null,o,r)};function mo(t,o){ge(pl,jt,Ye.left=t),ge(pl,bl,Ye.width=o)}function go(t,o){ge(pl,yl,Ye.top=t),ge(pl,kl,Ye.height=o)}let gl=b.ori==0?mo:go,wl=b.ori==1?mo:go;function bi(){if(pe&&z.live)for(let t=i==2?1:0;t<k.length;t++){if(t==0&&Qe)continue;let o=z.values[t],r=0;for(let a in o)wt[t][r++].firstChild.nodeValue=o[a]}}function kn(t,o){t!=null&&(t.idxs?t.idxs.forEach((r,a)=>{se[a]=r}):gr(t.idx)||se.fill(t.idx),z.idx=se[0]);for(let r=0;r<k.length;r++)(r>0||i==1&&!Qe)&&ki(r,se[r]);pe&&z.live&&bi(),Xe=!1,o!==!1&&Re("setLegend")}n.setLegend=kn;function ki(t,o){let r=k[t],a=t==0&&N==2?ot:l[t],c;Qe?c=r.values(n,t,o)??St:(c=r.value(n,o==null?null:a[o],t,o),c=c==null?St:{_:c}),z.values[t]=c}function Ct(t,o,r){ho=me,po=de,[me,de]=G.move(n,me,de),G.show&&(Rl&&Jt(Rl,Ve(me),0,te,le),zl&&Jt(zl,0,Ve(de),te,le));let a,c=Ee>De;Lt=$;let g=b.ori==0?te:le,v=b.ori==1?te:le;if(me<0||Ae==0||c){a=null;for(let _=0;_<k.length;_++)_>0&&qe.length>1&&Jt(qe[_],-10,-10,te,le);fl&&ft(null,Ut,!0,t==null&&ze.setSeries),z.live&&(se.fill(a),Xe=!0)}else{let _,M,R;i==1&&(_=b.ori==0?me:de,M=ut(_,E),a=kt(M,l[0],Ee,De),R=Q(l[0][a],b,g,0));for(let y=i==2?1:0;y<k.length;y++){let D=k[y],Y=se[y],Se=i==1?l[y][Y]:l[y][1][Y],j=G.dataIdx(n,y,a,M),ie=i==1?l[y][j]:l[y][1][j];Xe=Xe||ie!=Se||j!=Y,se[y]=j;let J=tl(j==a?R:Q(i==1?l[0][j]:l[y][0][j],b,g,0),1);if(y>0&&D.show){let re=ie==null?-10:tl(X(ie,i==1?x[D.scale]:x[D.facets[1].scale],v,0),1);if(fl&&re>=0&&i==1){let he=Ge(re-de),_e=Et.bias;if(_e!=0){let He=b.ori==1?me:de,ve=ut(He,D.scale),Be=ie>=0?1:-1,st=ve>=0?1:-1;st==Be&&he<Lt&&(st==1?_e==1?ie>=ve:ie<=ve:_e==1?ie<=ve:ie>=ve)&&(Lt=he,ml=y)}else he<Lt&&(Lt=he,ml=y)}let ye,Ke;if(b.ori==0?(ye=J,Ke=re):(ye=re,Ke=J),Xe&&qe.length>1){nr(qe[y],G.points.fill(n,y),G.points.stroke(n,y));let he,_e,He,ve,Be=!0,st=G.points.bbox;if(st!=null){Be=!1;let bt=st(n,y);He=bt.left,ve=bt.top,he=bt.width,_e=bt.height}else He=ye,ve=Ke,he=_e=G.points.size(n,y);or(qe[y],he,_e,Be),Jt(qe[y],He,ve,te,le)}}}}if(G.idx=a,G.left=me,G.top=de,Xe&&(z.idx=a,kn()),Ye.show&&_t)if(t!=null){let[_,M]=ze.scales,[R,y]=ze.match,[D,Y]=t.cursor.sync.scales,Se=t.cursor.drag;if(Pe=Se._x,Le=Se._y,Pe||Le){let{left:j,top:ie,width:J,height:re}=t.select,ye=t.scales[_].ori,Ke=t.posToVal,he,_e,He,ve,Be,st=_!=null&&R(_,D),bt=M!=null&&y(M,Y);st&&Pe?(ye==0?(he=j,_e=J):(he=ie,_e=re),He=x[_],ve=Q(Ke(he,D),He,g,0),Be=Q(Ke(he+_e,D),He,g,0),gl(Ue(ve,Be),Ge(Be-ve))):gl(0,g),bt&&Le?(ye==1?(he=j,_e=J):(he=ie,_e=re),He=x[M],ve=X(Ke(he,Y),He,v,0),Be=X(Ke(he+_e,Y),He,v,0),wl(Ue(ve,Be),Ge(Be-ve))):wl(0,v)}else Mn()}else{let _=Ge(ho-uo),M=Ge(po-co);if(b.ori==1){let Y=_;_=M,M=Y}Pe=Fe.x&&_>=Fe.dist,Le=Fe.y&&M>=Fe.dist;let R=Fe.uni;R!=null?Pe&&Le&&(Pe=_>=R,Le=M>=R,!Pe&&!Le&&(M>_?Le=!0:Pe=!0)):Fe.x&&Fe.y&&(Pe||Le)&&(Pe=Le=!0);let y,D;Pe&&(b.ori==0?(y=Wt,D=me):(y=It,D=de),gl(Ue(y,D),Ge(D-y)),Le||wl(0,v)),Le&&(b.ori==1?(y=Wt,D=me):(y=It,D=de),wl(Ue(y,D),Ge(D-y)),Pe||gl(0,g)),!Pe&&!Le&&(gl(0,0),wl(0,0))}if(Fe._x=Pe,Fe._y=Le,t==null){if(r){if(ko!=null){let[_,M]=ze.scales;ze.values[0]=_!=null?ut(b.ori==0?me:de,_):null,ze.values[1]=M!=null?ut(b.ori==1?me:de,M):null}Sl(Ro,n,me,de,te,le,a)}if(fl){let _=r&&ze.setSeries,M=Et.prox;dl==null?Lt<=M&&ft(ml,Ut,!0,_):Lt>M?ft(null,Ut,!0,_):ml!=dl&&ft(ml,Ut,!0,_)}}o!==!1&&Re("setCursor")}let qt=null;function Nl(t){t===!0?qt=null:(qt=T.getBoundingClientRect(),Re("syncRect",qt))}function wo(t,o,r,a,c,g,v){G._lock||_t&&t!=null&&t.movementX==0&&t.movementY==0||(Tn(t,o,r,a,c,g,v,!1,t!=null),t!=null?Ct(null,!0,!0):Ct(o,!0,!1))}function Tn(t,o,r,a,c,g,v,_,M){if(qt==null&&Nl(!1),t!=null)r=t.clientX-qt.left,a=t.clientY-qt.top;else{if(r<0||a<0){me=-10,de=-10;return}let[R,y]=ze.scales,D=o.cursor.sync,[Y,Se]=D.values,[j,ie]=D.scales,[J,re]=ze.match,ye=o.axes[0].side%2==1,Ke=b.ori==0?te:le,he=b.ori==1?te:le,_e=ye?g:c,He=ye?c:g,ve=ye?a:r,Be=ye?r:a;if(j!=null?r=J(R,j)?p(Y,x[R],Ke,0):-10:r=Ke*(ve/_e),ie!=null?a=re(y,ie)?p(Se,x[y],he,0):-10:a=he*(Be/He),b.ori==1){let st=r;r=a,a=st}}M&&((r<=1||r>=te-1)&&(r=Ft(r,te)),(a<=1||a>=le-1)&&(a=Ft(a,le))),_?(uo=r,co=a,[Wt,It]=G.move(n,r,a)):(me=r,de=a)}let So={width:0,height:0,left:0,top:0};function Mn(){Vl(So,!1)}function vo(t,o,r,a,c,g,v){_t=!0,Pe=Le=Fe._x=Fe._y=!1,Tn(t,o,r,a,c,g,v,!0,!1),t!=null&&(rt(Dn,Rn,yo),Sl(zo,n,Wt,It,te,le,null))}function yo(t,o,r,a,c,g,v){_t=Fe._x=Fe._y=!1,Tn(t,o,r,a,c,g,v,!1,!0);let{left:_,top:M,width:R,height:y}=Ye,D=R>0||y>0;if(D&&Vl(Ye),Fe.setScale&&D){let Y=_,Se=R,j=M,ie=y;if(b.ori==1&&(Y=M,Se=y,j=_,ie=R),Pe&&Bt(E,ut(Y,E),ut(Y+Se,E)),Le)for(let J in x){let re=x[J];J!=E&&re.from==null&&re.min!=$&&Bt(J,ut(j+ie,J),ut(j,J))}Mn()}else G.lock&&(G._lock=!G._lock,G._lock||Ct(null,!0,!1));t!=null&&(al(Dn,Rn),Sl(Dn,n,me,de,te,le,null))}function Ti(t,o,r,a,c,g,v){if(!G._lock){let _=_t;if(_t){let M=!0,R=!0,y=10,D,Y;b.ori==0?(D=Pe,Y=Le):(D=Le,Y=Pe),D&&Y&&(M=me<=y||me>=te-y,R=de<=y||de>=le-y),D&&M&&(me=me<Wt?0:te),Y&&R&&(de=de<It?0:le),Ct(null,!0,!0),_t=!1}me=-10,de=-10,Ct(null,!0,!0),_&&(_t=_)}}function _o(t,o,r,a,c,g,v){an(),Mn(),t!=null&&Sl(Oo,n,me,de,te,le,null)}function bo(){F.forEach(Ca),rn(n.width,n.height,!0)}Tt(ql,$t,bo);let Yt={};Yt.mousedown=vo,Yt.mousemove=wo,Yt.mouseup=yo,Yt.dblclick=_o,Yt.setSeries=(t,o,r,a)=>{ft(r,a,!0,!1)},G.show&&(rt(zo,T,vo),rt(Ro,T,wo),rt(Vo,T,Nl),rt(No,T,Ti),rt(Oo,T,_o),Hn.add(n),n.syncRect=Nl);let Ol=n.hooks=e.hooks||{};function Re(t,o,r){t in Ol&&Ol[t].forEach(a=>{a.call(null,n,o,r)})}(e.plugins||[]).forEach(t=>{for(let o in t.hooks)Ol[o]=(Ol[o]||[]).concat(t.hooks[o])});let ze=be({key:null,setSeries:!1,filters:{pub:jo,sub:jo},scales:[E,k[1]?k[1].scale:null],match:[Jo,Jo],values:[null,null]},G.sync);G.sync=ze;let ko=ze.key,xn=Vs(ko);function Sl(t,o,r,a,c,g,v){ze.filters.pub(t,o,r,a,c,g,v)&&xn.pub(t,o,r,a,c,g,v)}xn.sub(n);function Mi(t,o,r,a,c,g,v){ze.filters.sub(t,o,r,a,c,g,v)&&Yt[t](null,o,r,a,c,g,v)}n.pub=Mi;function xi(){xn.unsub(n),Hn.delete(n),ht.clear(),Nn(ql,$t,bo),w.remove(),ue?.remove(),Re("destroy")}n.destroy=xi;function An(){Re("init",e,l),oo(l||e.data,!1),q[E]?yn(E,q[E]):an(),At=Ye.show,at=Xe=!0,rn(e.width,e.height)}return k.forEach(lo),F.forEach(oi),s?s instanceof HTMLElement?(s.appendChild(w),An()):s(n,An):An(),n}Ne.assign=be;Ne.fmtNum=Yn;Ne.rangeNum=Yl;Ne.rangeLog=Zl;Ne.rangeAsinh=Un;Ne.orient=Ot;Ne.pxRatio=ne;Ne.join=br;Ne.fmtDate=Kn,Ne.tzDate=Pr;Ne.sync=Vs;{Ne.addGap=ga,Ne.clipGaps=en;let e=Ne.paths={points:Is};e.linear=Us,e.stepped=va,e.bars=ya,e.spline=ba}function Xn(e,l,s,n){let i=e.series[l],u=e.data[0],f=e.data[l],d="x",p=i.scale,m=new Path2D,w=Math.abs((e.valToPos(u[0],d,!0)-e.valToPos(u[1],d,!0))/2);m.moveTo(Math.round(e.valToPos(u[0],d,!0)),Math.round(e.valToPos(f[0],p,!0)));for(let T=s;T<n;T++){let P=Math.round(e.valToPos(u[T],d,!0)),I=Math.round(e.valToPos(f[T],p,!0)),C=Math.round(e.valToPos(u[T+1],d,!0)),k=Math.round(e.valToPos(f[T+1],p,!0));m.lineTo(P-w,I),m.lineTo(C-w,I),T==n-1&&(m.lineTo(C-w,k),m.lineTo(C,k))}let S=new Path2D(m),h=Math.round(e.valToPos(e.scales[p].min,p,!0)),A=Math.round(e.valToPos(e.scales[d].min,d,!0)),L=Math.round(e.valToPos(e.scales[d].max,d,!0));return S.lineTo(L,h),S.lineTo(A,h),{stroke:m,fill:S}}function El(e,l){return e&&e.toFixed(l)}function Fa(e,l){let s={width:e.clientWidth,height:600},n=null;return l=="Linear"?n=i=>i&&i:l=="Log10"?n=i=>i&&Math.pow(10,i):l=="Log2"&&(n=i=>i&&Math.pow(2,i)),{id:e.id+"-chart",width:s.width,height:s.height,labelSize:10,labelFont:"bold 8px Arial",ticks:{show:!1},points:{show:!1},font:"8px Arial",padding:[null,30,null,30],series:[{value:"{HH}:{mm}:{ss}"},{label:"P99",stroke:"rgb(155, 214, 206)",value:(i,u)=>El(n(u),3)+"ms",fill:"rgb(155, 214, 206, 0.5 )",paths:Xn,scale:"ms"},{label:"P90",stroke:"rgb(79, 169, 184)",value:(i,u)=>El(n(u),3)+"ms",fill:"rgb(79, 169, 184, 0.5)",paths:Xn,scale:"ms"},{label:"P50",stroke:"rgb(2, 88, 115)",value:(i,u)=>El(n(u),3)+"ms",fill:"rgb(2, 88, 115, 0.5)",paths:Xn,scale:"ms"},{label:"count",stroke:"rgb(30, 30, 30)",value:(i,u)=>n(u)+"cps",scale:"calls"}],axes:[{values:[[1,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1]]},{scale:"ms",grid:{show:!1},values:(i,u,f)=>u.map(d=>El(n(d),3)+"ms")},{side:1,values:(i,u,f)=>u.map(d=>El(n(d),1)+" calls"),scale:"calls",grid:{show:!1}}]}}var eo=class{constructor(l,s,n){let i=Fa(l,n);this.uplotChart=new Ne(i,s,l)}updateData(l,s){this.uplotChart.setData(l,s)}},on="",js={mounted(){let e=this.el.parentElement.querySelector(".chart");on=JSON.parse(e.dataset.scale);let l=JSON.parse(e.dataset.quantile);this.chart=new eo(e,l,on)},updated(){let e=JSON.parse(this.el.dataset.scale);if(on==e){let l=JSON.parse(this.el.dataset.quantile);this.chart.updateData(l,on)}else this.mounted()}};var Ra=document.querySelector("html").getAttribute("phx-socket")||"/live",za=document.querySelector("meta[name='csrf-token']").getAttribute("content"),Va={ChartData:js},Js=new LiveView.LiveSocket(Ra,Phoenix.Socket,{hooks:Va,params:{_csrf_token:za}});sn.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",e=>sn.default.show());window.addEventListener("phx:page-loading-stop",e=>sn.default.hide());Js.connect();window.liveSocket=Js;})();
/*! Bundled license information:
topbar/topbar.min.js:
(**
* @license MIT
* topbar 1.0.0, 2021-01-06
* http://buunguyen.github.io/topbar
* Copyright (c) 2021 Buu Nguyen
*)
*/