import{aV as Jt,aW as $t,aX as Kt,aY as en,aZ as Fn,a_ as rt,a$ as En,aH as vt,aI as bt,_ as d,b0 as ae,d as _e,s as Ln,g as An,p as In,q as Wn,c as On,b as Hn,v as Nn,m as Vn,l as Qe,j as Ze,k as zn,e as Pn,u as Rn}from"./md-index-DzLM0flJ.js";import{b as Bn,t as It,c as Zn,a as qn,l as Xn}from"./md-linear-Cb1Btf1w.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Qn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(e){return e}var Xe=1,at=2,mt=3,qe=4,Wt=1e-6;function $n(e){return"translate("+e+",0)"}function Kn(e){return"translate(0,"+e+")"}function er(e){return t=>+e(t)}function tr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nr(){return!this.__axis}function tn(e,t){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,v=e===Xe||e===qe?-1:1,g=e===qe||e===at?"x":"y",F=e===Xe||e===mt?$n:Kn;function D(b){var X=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Jn),C=Math.max(i,0)+k,I=t.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(t.bandwidth?tr:er)(t.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,t).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",v*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,v*C).attr("dy",e===Xe?"0em":e===mt?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",Wt).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",Wt).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",e===qe||e===at?s?"M"+v*s+","+V+"H"+M+"V"+W+"H"+v*s:"M"+M+","+V+"V"+W:s?"M"+V+","+v*s+"V"+M+"H"+W+"V"+v*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",v*i),S.attr(g,v*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===at?"start":e===qe?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(t=b,D):t},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(e){return tn(Xe,e)}function ar(e){return tn(mt,e)}const ir=Math.PI/180,sr=180/Math.PI,Je=18,nn=.96422,rn=1,an=.82521,sn=4/29,Se=6/29,on=3*Se*Se,or=Se*Se*Se;function cn(e){if(e instanceof fe)return new fe(e.l,e.a,e.b,e.opacity);if(e instanceof he)return un(e);e instanceof Kt||(e=Fn(e));var t=ct(e.r),n=ct(e.g),r=ct(e.b),a=it((.2225045*t+.7168786*n+.0606169*r)/rn),i,s;return t===n&&n===r?i=s=a:(i=it((.4360747*t+.3850649*n+.1430804*r)/nn),s=it((.0139322*t+.0971045*n+.7141733*r)/an)),new fe(116*a-16,500*(i-a),200*(a-s),e.opacity)}function cr(e,t,n,r){return arguments.length===1?cn(e):new fe(e,t,n,r??1)}function fe(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Jt(fe,cr,$t(en,{brighter(e){return new fe(this.l+Je*(e??1),this.a,this.b,this.opacity)},darker(e){return new fe(this.l-Je*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nn*st(t),e=rn*st(e),n=an*st(n),new Kt(ot(3.1338561*t-1.6168667*e-.4906146*n),ot(-.9787684*t+1.9161415*e+.033454*n),ot(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function it(e){return e>or?Math.pow(e,1/3):e/on+sn}function st(e){return e>Se?e*e*e:on*(e-sn)}function ot(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof fe||(e=cn(e)),e.a===0&&e.b===0)return new he(NaN,0(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let v;do M.push(v=new Date(+i)),t(i,k),e(i);while(vte(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;t(s,-1),!i(s););else for(;--k>=0;)for(;t(s,1),!i(s););}),n&&(a.count=(i,s)=>(ut.setTime(+i),lt.setTime(+s),e(ut),e(lt),Math.floor(n(ut,lt))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ue=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ue.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?te(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ue);Ue.range;const me=1e3,ce=me*60,ge=ce*60,ye=ge*24,xt=ye*7,Ot=ye*30,ft=ye*365,Te=te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCSeconds());Te.range;const We=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getMinutes());We.range;const hr=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getUTCMinutes());hr.range;const Oe=te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me-e.getMinutes()*ce)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getHours());Oe.range;const mr=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCHours());mr.range;const ve=te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ce)/ye,e=>e.getDate()-1);ve.range;const wt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>e.getUTCDate()-1);wt.range;const gr=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>Math.floor(e/ye));gr.range;function we(e){return te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ce)/xt)}const Ve=we(0),He=we(1),ln=we(2),fn=we(3),be=we(4),dn=we(5),hn=we(6);Ve.range;He.range;ln.range;fn.range;be.range;dn.range;hn.range;function De(e){return te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/xt)}const mn=De(0),$e=De(1),yr=De(2),kr=De(3),Fe=De(4),pr=De(5),Tr=De(6);mn.range;$e.range;yr.range;kr.range;Fe.range;pr.range;Tr.range;const Ne=te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ne.range;const vr=te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vr.range;const ke=te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ke.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ke.range;const xe=te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xe.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});xe.range;function br(e,t,n,r,a,i){const s=[[Te,1,me],[Te,5,5*me],[Te,15,15*me],[Te,30,30*me],[i,1,ce],[i,5,5*ce],[i,15,15*ce],[i,30,30*ce],[a,1,ge],[a,3,3*ge],[a,6,6*ge],[a,12,12*ge],[r,1,ye],[r,2,2*ye],[n,1,xt],[t,1,Ot],[t,3,3*Ot],[e,1,ft]];function k(v,g,F){const D=gC).right(s,D);if(b===s.length)return e.every(It(v/ft,g/ft,F));if(b===0)return Ue.every(Math.max(It(v,g,F),1));const[X,O]=s[D/s[b-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(L=ht(Le(l.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$e.ceil(L):$e(L),L=wt.offset(L,(l.V-1)*7),l.y=L.getUTCFullYear(),l.m=L.getUTCMonth(),l.d=L.getUTCDate()+(l.w+6)%7):(L=dt(Le(l.y,0,1)),j=L.getDay(),L=j>4||j===0?He.ceil(L):He(L),L=ve.offset(L,(l.V-1)*7),l.y=L.getFullYear(),l.m=L.getMonth(),l.d=L.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?ht(Le(l.y,0,1)).getUTCDay():dt(Le(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ht(l)):dt(l)}}function x(T,A,N,l){for(var $=0,L=A.length,j=N.length,q,re;$=j)return-1;if(q=A.charCodeAt($++),q===37){if(q=A.charAt($++),re=Q[q in Ht?A.charAt($++):q],!re||(l=re(T,N,l))<0)return-1}else if(q!=N.charCodeAt(l++))return-1}return l}function Y(T,A,N){var l=v.exec(A.slice(N));return l?(T.p=g.get(l[0].toLowerCase()),N+l[0].length):-1}function _(T,A,N){var l=b.exec(A.slice(N));return l?(T.w=X.get(l[0].toLowerCase()),N+l[0].length):-1}function S(T,A,N){var l=F.exec(A.slice(N));return l?(T.w=D.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,A,N){var l=I.exec(A.slice(N));return l?(T.m=V.get(l[0].toLowerCase()),N+l[0].length):-1}function U(T,A,N){var l=O.exec(A.slice(N));return l?(T.m=C.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,A,N){return x(T,t,A,N)}function f(T,A,N){return x(T,n,A,N)}function y(T,A,N){return x(T,r,A,N)}function m(T){return s[T.getDay()]}function E(T){return i[T.getDay()]}function c(T){return M[T.getMonth()]}function h(T){return k[T.getMonth()]}function o(T){return a[+(T.getHours()>=12)]}function P(T){return 1+~~(T.getMonth()/3)}function z(T){return s[T.getUTCDay()]}function R(T){return i[T.getUTCDay()]}function K(T){return M[T.getUTCMonth()]}function G(T){return k[T.getUTCMonth()]}function J(T){return a[+(T.getUTCHours()>=12)]}function ie(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var A=w(T+="",W);return A.toString=function(){return T},A},parse:function(T){var A=H(T+="",!1);return A.toString=function(){return T},A},utcFormat:function(T){var A=w(T+="",Z);return A.toString=function(){return T},A},utcParse:function(T){var A=H(T+="",!0);return A.toString=function(){return T},A}}}var Ht={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Sr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nt(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Vt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ir(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=ne.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(e,t,n){var r=Cr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rt(e,t){return B(e.getDate(),t,2)}function Br(e,t){return B(e.getHours(),t,2)}function Zr(e,t){return B(e.getHours()%12||12,t,2)}function qr(e,t){return B(1+ve.count(ke(e),e),t,3)}function gn(e,t){return B(e.getMilliseconds(),t,3)}function Xr(e,t){return gn(e,t)+"000"}function Gr(e,t){return B(e.getMonth()+1,t,2)}function jr(e,t){return B(e.getMinutes(),t,2)}function Qr(e,t){return B(e.getSeconds(),t,2)}function Jr(e){var t=e.getDay();return t===0?7:t}function $r(e,t){return B(Ve.count(ke(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||t===0?be(e):be.ceil(e)}function Kr(e,t){return e=yn(e),B(be.count(ke(e),e)+(ke(e).getDay()===4),t,2)}function ea(e){return e.getDay()}function ta(e,t){return B(He.count(ke(e)-1,e),t,2)}function na(e,t){return B(e.getFullYear()%100,t,2)}function ra(e,t){return e=yn(e),B(e.getFullYear()%100,t,2)}function aa(e,t){return B(e.getFullYear()%1e4,t,4)}function ia(e,t){var n=e.getDay();return e=n>=4||n===0?be(e):be.ceil(e),B(e.getFullYear()%1e4,t,4)}function sa(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+B(t/60|0,"0",2)+B(t%60,"0",2)}function Bt(e,t){return B(e.getUTCDate(),t,2)}function oa(e,t){return B(e.getUTCHours(),t,2)}function ca(e,t){return B(e.getUTCHours()%12||12,t,2)}function ua(e,t){return B(1+wt.count(xe(e),e),t,3)}function kn(e,t){return B(e.getUTCMilliseconds(),t,3)}function la(e,t){return kn(e,t)+"000"}function fa(e,t){return B(e.getUTCMonth()+1,t,2)}function da(e,t){return B(e.getUTCMinutes(),t,2)}function ha(e,t){return B(e.getUTCSeconds(),t,2)}function ma(e){var t=e.getUTCDay();return t===0?7:t}function ga(e,t){return B(mn.count(xe(e)-1,e),t,2)}function pn(e){var t=e.getUTCDay();return t>=4||t===0?Fe(e):Fe.ceil(e)}function ya(e,t){return e=pn(e),B(Fe.count(xe(e),e)+(xe(e).getUTCDay()===4),t,2)}function ka(e){return e.getUTCDay()}function pa(e,t){return B($e.count(xe(e)-1,e),t,2)}function Ta(e,t){return B(e.getUTCFullYear()%100,t,2)}function va(e,t){return e=pn(e),B(e.getUTCFullYear()%100,t,2)}function ba(e,t){return B(e.getUTCFullYear()%1e4,t,4)}function xa(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fe(e):Fe.ceil(e),B(e.getUTCFullYear()%1e4,t,4)}function wa(){return"+0000"}function Zt(){return"%"}function qt(e){return+e}function Xt(e){return Math.floor(+e/1e3)}var Me,Ke;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(e){return Me=Dr(e),Ke=Me.format,Me.parse,Me.utcFormat,Me.utcParse,Me}function Ca(e){return new Date(e)}function Ma(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,t,n,r,a,i,s,k,M,v){var g=Zn(),F=g.invert,D=g.domain,b=v(".%L"),X=v(":%S"),O=v("%I:%M"),C=v("%I %p"),I=v("%a %d"),V=v("%b %d"),W=v("%B"),Z=v("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return X.diff(O,"week")+1},k.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var M=k.startOf;k.startOf=function(v,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(v)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(v,g)}}})})(vn);var Sa=vn.exports;const Ya=bt(Sa);var bn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},v=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},X={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=v(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,ie=o.milliseconds,T=o.zone,A=o.week,N=new Date,l=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,q=K||0,re=G||0,se=J||0,pe=ie||0;return T?new Date(Date.UTC($,L,l,q,re,se,pe+60*T.offset*1e3)):c?new Date(Date.UTC($,L,l,q,re,se,pe)):(j=new Date($,L,l,q,re,se,pe),A&&(j=h(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var u=Y.length,f=1;f<=u;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=bt(Ua);var xn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vt,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var v=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return v.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return v.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return v.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=bt(Ea);var yt=function(){var e=d(function(U,u,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=u);return f},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],v=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],X=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,y,m,E,c,h){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:v,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:v,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var y=new Error(u);throw y.hash=f,y}},"parseError"),parse:d(function(u){var f=this,y=[0],m=[],E=[null],c=[],h=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),ie={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(ie.yy[T]=this.yy[T]);J.setInput(u,ie.yy),ie.yy.lexer=J,ie.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(oe){y.length=y.length-2*oe,E.length=E.length-oe,c.length=c.length-oe}d(l,"popStack");function $(){var oe;return oe=m.pop()||J.lex()||K,typeof oe!="number"&&(oe instanceof Array&&(m=oe,oe=m.pop()),oe=f.symbols_[oe]||oe),oe}d($,"lex");for(var L,j,q,re,se={},pe,ue,At,Be;;){if(j=y[y.length-1],this.defaultActions[j]?q=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),q=h[j]&&h[j][L]),typeof q>"u"||!q.length||!q[0]){var nt="";Be=[];for(pe in h[j])this.terminals_[pe]&&pe>R&&Be.push("'"+this.terminals_[pe]+"'");J.showPosition?nt="Parse error on line "+(P+1)+`: `+J.showPosition()+` Expecting `+Be.join(", ")+", got '"+(this.terminals_[L]||L)+"'":nt="Parse error on line "+(P+1)+": Unexpected "+(L==K?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(nt,{text:J.match,token:this.terminals_[L]||L,line:J.yylineno,loc:A,expected:Be})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+L);switch(q[0]){case 1:y.push(L),E.push(J.yytext),c.push(J.yylloc),y.push(q[1]),L=null,z=J.yyleng,o=J.yytext,P=J.yylineno,A=J.yylloc;break;case 2:if(ue=this.productions_[q[1]][1],se.$=E[E.length-ue],se._$={first_line:c[c.length-(ue||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ue||1)].first_column,last_column:c[c.length-1].last_column},N&&(se._$.range=[c[c.length-(ue||1)].range[0],c[c.length-1].range[1]]),re=this.performAction.apply(se,[o,z,P,ie.yy,q[1],E,c].concat(G)),typeof re<"u")return re;ue&&(y=y.slice(0,-1*ue*2),E=E.slice(0,-1*ue),c=c.slice(0,-1*ue)),y.push(this.productions_[q[1]][0]),E.push(se.$),c.push(se._$),At=h[y[y.length-2]][y[y.length-1]],y.push(At);break;case 3:return!0}}return!0},"parse")},S=function(){var U={EOF:1,parseError:d(function(f,y){if(this.yy.parser)this.yy.parser.parseError(f,y);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,y=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+` `+f+"^"},"showPosition"),test_match:d(function(u,f){var y,m,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),m=u[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],y=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var c in E)this[c]=E[c];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,f,y,m;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),c=0;cf[0].length)){if(f=y,m=c,this.options.backtrack_lexer){if(u=this.test_match(y,E[c]),u!==!1)return u;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(u=this.test_match(f,E[m]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var f=this.next();return f||this.lex()},"lex"),begin:d(function(f){this.conditionStack.push(f)},"begin"),popState:d(function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),pushState:d(function(f){this.begin(f)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(f,y,m,E){switch(m){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return U}();_.lexer=S;function p(){this.yy={}}return d(p,"Parser"),p.prototype=_,_.Parser=p,new p}();yt.parser=yt;var Aa=yt;ae.extend(Ya);ae.extend(Fa);ae.extend(La);var Gt={friday:5,saturday:6},le="",Dt="",Ct=void 0,Mt="",ze=[],Pe=[],_t=new Map,St=[],et=[],Ee="",Yt="",wn=["active","done","crit","milestone"],Ut=[],Re=!1,Ft=!1,Et="sunday",tt="saturday",kt=0,Ia=d(function(){St=[],et=[],Ee="",Ut=[],Ge=0,Tt=void 0,je=void 0,ee=[],le="",Dt="",Yt="",Ct=void 0,Mt="",ze=[],Pe=[],Re=!1,Ft=!1,kt=0,_t=new Map,Nn(),Et="sunday",tt="saturday"},"clear"),Wa=d(function(e){Dt=e},"setAxisFormat"),Oa=d(function(){return Dt},"getAxisFormat"),Ha=d(function(e){Ct=e},"setTickInterval"),Na=d(function(){return Ct},"getTickInterval"),Va=d(function(e){Mt=e},"setTodayMarker"),za=d(function(){return Mt},"getTodayMarker"),Pa=d(function(e){le=e},"setDateFormat"),Ra=d(function(){Re=!0},"enableInclusiveEndDates"),Ba=d(function(){return Re},"endDatesAreInclusive"),Za=d(function(){Ft=!0},"enableTopAxis"),qa=d(function(){return Ft},"topAxisEnabled"),Xa=d(function(e){Yt=e},"setDisplayMode"),Ga=d(function(){return Yt},"getDisplayMode"),ja=d(function(){return le},"getDateFormat"),Qa=d(function(e){ze=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),Ja=d(function(){return ze},"getIncludes"),$a=d(function(e){Pe=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),Ka=d(function(){return Pe},"getExcludes"),ei=d(function(){return _t},"getLinks"),ti=d(function(e){Ee=e,St.push(e)},"addSection"),ni=d(function(){return St},"getSections"),ri=d(function(){let e=jt();const t=10;let n=0;for(;!e&&n[\d\w- ]+)/.exec(n);if(a!==null){let s=null;for(const M of a.groups.ids.split(" ")){let v=Ce(M);v!==void 0&&(!s||v.endTime>s.endTime)&&(s=v)}if(s)return s.endTime;const k=new Date;return k.setHours(0,0,0,0),k}let i=ae(n,t.trim(),!0);if(i.isValid())return i.toDate();{Qe.debug("Invalid date:"+n),Qe.debug("With date format:"+t.trim());const s=new Date(n);if(s===void 0||isNaN(s.getTime())||s.getFullYear()<-1e4||s.getFullYear()>1e4)throw new Error("Invalid date:"+n);return s}},"getStartDate"),Mn=d(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),_n=d(function(e,t,n,r=!1){n=n.trim();const i=/^until\s+(?[\d\w- ]+)/.exec(n);if(i!==null){let g=null;for(const D of i.groups.ids.split(" ")){let b=Ce(D);b!==void 0&&(!g||b.startTime{window.open(n,"_self")}),_t.set(r,n))}),Yn(e,"clickable")},"setLink"),Yn=d(function(e,t){e.split(",").forEach(function(n){let r=Ce(n);r!==void 0&&r.classes.push(t)})},"setClass"),hi=d(function(e,t,n){if(_e().securityLevel!=="loose"||t===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i{Rn.runFunc(t,...r)})},"setClickFun"),Un=d(function(e,t){Ut.push(function(){const n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener("click",function(){t()})},function(){const n=document.querySelector(`[id="${e}-text"]`);n!==null&&n.addEventListener("click",function(){t()})})},"pushFun"),mi=d(function(e,t,n){e.split(",").forEach(function(r){hi(r,t,n)}),Yn(e,"clickable")},"setClickEvent"),gi=d(function(e){Ut.forEach(function(t){t(e)})},"bindFunctions"),yi={getConfig:d(()=>_e().gantt,"getConfig"),clear:Ia,setDateFormat:Pa,getDateFormat:ja,enableInclusiveEndDates:Ra,endDatesAreInclusive:Ba,enableTopAxis:Za,topAxisEnabled:qa,setAxisFormat:Wa,getAxisFormat:Oa,setTickInterval:Ha,getTickInterval:Na,setTodayMarker:Va,getTodayMarker:za,setAccTitle:Ln,getAccTitle:An,setDiagramTitle:In,getDiagramTitle:Wn,setDisplayMode:Xa,getDisplayMode:Ga,setAccDescription:On,getAccDescription:Hn,addSection:ti,getSections:ni,getTasks:ri,addTask:li,findTaskById:Ce,addTaskOrg:fi,setIncludes:Qa,getIncludes:Ja,setExcludes:$a,getExcludes:Ka,setClickEvent:mi,setLink:di,getLinks:ei,bindFunctions:gi,parseDuration:Mn,isInvalidDate:Dn,setWeekday:ai,getWeekday:ii,setWeekend:si};function Lt(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(a){const i="^\\s*"+a+"\\s*$",s=new RegExp(i);e[0].match(s)&&(t[a]=!0,e.shift(1),r=!0)})}d(Lt,"getTaskTags");var ki=d(function(){Qe.debug("Something is calling, setConf, remove the call")},"setConf"),Qt={monday:He,tuesday:ln,wednesday:fn,thursday:be,friday:dn,saturday:hn,sunday:Ve},pi=d((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((i,s)=>i.startTime-s.startTime||i.order-s.order),a=0;for(const i of r)for(let s=0;s=n[s]){n[s]=i.endTime,i.order=s+t,s>a&&(a=s);break}return a},"getMaxIntersections"),de,Ti=d(function(e,t,n,r){const a=_e().gantt,i=_e().securityLevel;let s;i==="sandbox"&&(s=Ze("#i"+t));const k=i==="sandbox"?Ze(s.nodes()[0].contentDocument.body):Ze("body"),M=i==="sandbox"?s.nodes()[0].contentDocument:document,v=M.getElementById(t);de=v.parentElement.offsetWidth,de===void 0&&(de=1200),a.useWidth!==void 0&&(de=a.useWidth);const g=r.db.getTasks();let F=[];for(const x of g)F.push(x.type);F=H(F);const D={};let b=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const x={};for(const _ of g)x[_.section]===void 0?x[_.section]=[_]:x[_.section].push(_);let Y=0;for(const _ of Object.keys(x)){const S=pi(x[_],Y)+1;Y+=S,b+=S*(a.barHeight+a.barGap),D[_]=S}}else{b+=g.length*(a.barHeight+a.barGap);for(const x of F)D[x]=g.filter(Y=>Y.type===x).length}v.setAttribute("viewBox","0 0 "+de+" "+b);const X=k.select(`[id="${t}"]`),O=_a().domain([Qn(g,function(x){return x.startTime}),jn(g,function(x){return x.endTime})]).rangeRound([0,de-a.leftPadding-a.rightPadding]);function C(x,Y){const _=x.startTime,S=Y.startTime;let p=0;return _>S?p=1:_h.order))].map(h=>x.find(o=>o.order===h));X.append("g").selectAll("rect").data(y).enter().append("rect").attr("x",0).attr("y",function(h,o){return o=h.order,o*Y+_-2}).attr("width",function(){return u-a.rightPadding/2}).attr("height",Y).attr("class",function(h){for(const[o,P]of F.entries())if(h.type===P)return"section section"+o%a.numberSectionStyles;return"section section0"});const m=X.append("g").selectAll("rect").data(x).enter(),E=r.db.getLinks();if(m.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?O(h.startTime)+S+.5*(O(h.endTime)-O(h.startTime))-.5*p:O(h.startTime)+S}).attr("y",function(h,o){return o=h.order,o*Y+_}).attr("width",function(h){return h.milestone?p:O(h.renderEndTime||h.endTime)-O(h.startTime)}).attr("height",p).attr("transform-origin",function(h,o){return o=h.order,(O(h.startTime)+S+.5*(O(h.endTime)-O(h.startTime))).toString()+"px "+(o*Y+_+.5*p).toString()+"px"}).attr("class",function(h){const o="task";let P="";h.classes.length>0&&(P=h.classes.join(" "));let z=0;for(const[K,G]of F.entries())h.type===G&&(z=K%a.numberSectionStyles);let R="";return h.active?h.crit?R+=" activeCrit":R=" active":h.done?h.crit?R=" doneCrit":R=" done":h.crit&&(R+=" crit"),R.length===0&&(R=" task"),h.milestone&&(R=" milestone "+R),R+=z,R+=" "+P,o+R}),m.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",a.fontSize).attr("x",function(h){let o=O(h.startTime),P=O(h.renderEndTime||h.endTime);h.milestone&&(o+=.5*(O(h.endTime)-O(h.startTime))-.5*p),h.milestone&&(P=o+p);const z=this.getBBox().width;return z>P-o?P+z+1.5*a.leftPadding>u?o+S-5:P+S+5:(P-o)/2+o+S}).attr("y",function(h,o){return o=h.order,o*Y+a.barHeight/2+(a.fontSize/2-2)+_}).attr("text-height",p).attr("class",function(h){const o=O(h.startTime);let P=O(h.endTime);h.milestone&&(P=o+p);const z=this.getBBox().width;let R="";h.classes.length>0&&(R=h.classes.join(" "));let K=0;for(const[J,ie]of F.entries())h.type===ie&&(K=J%a.numberSectionStyles);let G="";return h.active&&(h.crit?G="activeCritText"+K:G="activeText"+K),h.done?h.crit?G=G+" doneCritText"+K:G=G+" doneText"+K:h.crit&&(G=G+" critText"+K),h.milestone&&(G+=" milestoneText"),z>P-o?P+z+1.5*a.leftPadding>u?R+" taskTextOutsideLeft taskTextOutside"+K+" "+G:R+" taskTextOutsideRight taskTextOutside"+K+" "+G+" width-"+z:R+" taskText taskText"+K+" "+G+" width-"+z}),_e().securityLevel==="sandbox"){let h;h=Ze("#i"+t);const o=h.nodes()[0].contentDocument;m.filter(function(P){return E.has(P.id)}).each(function(P){var z=o.querySelector("#"+P.id),R=o.querySelector("#"+P.id+"-text");const K=z.parentNode;var G=o.createElement("a");G.setAttribute("xlink:href",E.get(P.id)),G.setAttribute("target","_top"),K.appendChild(G),G.appendChild(z),G.appendChild(R)})}}d(V,"drawRects");function W(x,Y,_,S,p,U,u,f){if(u.length===0&&f.length===0)return;let y,m;for(const{startTime:z,endTime:R}of U)(y===void 0||zm)&&(m=R);if(!y||!m)return;if(ae(m).diff(ae(y),"year")>5){Qe.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const E=r.db.getDateFormat(),c=[];let h=null,o=ae(y);for(;o.valueOf()<=m;)r.db.isInvalidDate(o,E,u,f)?h?h.end=o:h={start:o,end:o}:h&&(c.push(h),h=null),o=o.add(1,"d");X.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",function(z){return"exclude-"+z.start.format("YYYY-MM-DD")}).attr("x",function(z){return O(z.start)+_}).attr("y",a.gridLineStartPadding).attr("width",function(z){const R=z.end.add(1,"day");return O(R)-O(z.start)}).attr("height",p-Y-a.gridLineStartPadding).attr("transform-origin",function(z,R){return(O(z.start)+_+.5*(O(z.end)-O(z.start))).toString()+"px "+(R*x+.5*p).toString()+"px"}).attr("class","exclude-range")}d(W,"drawExcludeDays");function Z(x,Y,_,S){let p=ar(O).tickSize(-S+Y+a.gridLineStartPadding).tickFormat(Ke(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||a.tickInterval);if(u!==null){const f=u[1],y=u[2],m=r.db.getWeekday()||a.weekday;switch(y){case"millisecond":p.ticks(Ue.every(f));break;case"second":p.ticks(Te.every(f));break;case"minute":p.ticks(We.every(f));break;case"hour":p.ticks(Oe.every(f));break;case"day":p.ticks(ve.every(f));break;case"week":p.ticks(Qt[m].every(f));break;case"month":p.ticks(Ne.every(f));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+x+", "+(S-50)+")").call(p).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let f=rr(O).tickSize(-S+Y+a.gridLineStartPadding).tickFormat(Ke(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(u!==null){const y=u[1],m=u[2],E=r.db.getWeekday()||a.weekday;switch(m){case"millisecond":f.ticks(Ue.every(y));break;case"second":f.ticks(Te.every(y));break;case"minute":f.ticks(We.every(y));break;case"hour":f.ticks(Oe.every(y));break;case"day":f.ticks(ve.every(y));break;case"week":f.ticks(Qt[E].every(y));break;case"month":f.ticks(Ne.every(y));break}}X.append("g").attr("class","grid").attr("transform","translate("+x+", "+Y+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(Z,"makeGrid");function Q(x,Y){let _=0;const S=Object.keys(D).map(p=>[p,D[p]]);X.append("g").selectAll("text").data(S).enter().append(function(p){const U=p[0].split(Pn.lineBreakRegex),u=-(U.length-1)/2,f=M.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",u+"em");for(const[y,m]of U.entries()){const E=M.createElementNS("http://www.w3.org/2000/svg","tspan");E.setAttribute("alignment-baseline","central"),E.setAttribute("x","10"),y>0&&E.setAttribute("dy","1em"),E.textContent=m,f.appendChild(E)}return f}).attr("x",10).attr("y",function(p,U){if(U>0)for(let u=0;u` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .exclude-range { fill: ${e.excludeBkgColor}; } .section { stroke: none; opacity: 0.2; } .section0 { fill: ${e.sectionBkgColor}; } .section2 { fill: ${e.sectionBkgColor2}; } .section1, .section3 { fill: ${e.altSectionBkgColor}; opacity: 0.2; } .sectionTitle0 { fill: ${e.titleColor}; } .sectionTitle1 { fill: ${e.titleColor}; } .sectionTitle2 { fill: ${e.titleColor}; } .sectionTitle3 { fill: ${e.titleColor}; } .sectionTitle { text-anchor: start; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } /* Grid and axis */ .grid .tick { stroke: ${e.gridColor}; opacity: 0.8; shape-rendering: crispEdges; } .grid .tick text { font-family: ${e.fontFamily}; fill: ${e.textColor}; } .grid path { stroke-width: 0; } /* Today line */ .today { fill: none; stroke: ${e.todayLineColor}; stroke-width: 2px; } /* Task styling */ /* Default task */ .task { stroke-width: 2; } .taskText { text-anchor: middle; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .taskTextOutsideRight { fill: ${e.taskTextDarkColor}; text-anchor: start; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } .taskTextOutsideLeft { fill: ${e.taskTextDarkColor}; text-anchor: end; } /* Special case clickable */ .task.clickable { cursor: pointer; } .taskText.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideLeft.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideRight.clickable { cursor: pointer; fill: ${e.taskTextClickableColor} !important; font-weight: bold; } /* Specific task settings for the sections*/ .taskText0, .taskText1, .taskText2, .taskText3 { fill: ${e.taskTextColor}; } .task0, .task1, .task2, .task3 { fill: ${e.taskBkgColor}; stroke: ${e.taskBorderColor}; } .taskTextOutside0, .taskTextOutside2 { fill: ${e.taskTextOutsideColor}; } .taskTextOutside1, .taskTextOutside3 { fill: ${e.taskTextOutsideColor}; } /* Active task */ .active0, .active1, .active2, .active3 { fill: ${e.activeTaskBkgColor}; stroke: ${e.activeTaskBorderColor}; } .activeText0, .activeText1, .activeText2, .activeText3 { fill: ${e.taskTextDarkColor} !important; } /* Completed task */ .done0, .done1, .done2, .done3 { stroke: ${e.doneTaskBorderColor}; fill: ${e.doneTaskBkgColor}; stroke-width: 2; } .doneText0, .doneText1, .doneText2, .doneText3 { fill: ${e.taskTextDarkColor} !important; } /* Tasks on the critical line */ .crit0, .crit1, .crit2, .crit3 { stroke: ${e.critBorderColor}; fill: ${e.critBkgColor}; stroke-width: 2; } .activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 { stroke: ${e.critBorderColor}; fill: ${e.activeTaskBkgColor}; stroke-width: 2; } .doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 { stroke: ${e.critBorderColor}; fill: ${e.doneTaskBkgColor}; stroke-width: 2; cursor: pointer; shape-rendering: crispEdges; } .milestone { transform: rotate(45deg) scale(0.8,0.8); } .milestoneText { font-style: italic; } .doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 { fill: ${e.taskTextDarkColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill: ${e.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; fill: ${e.titleColor||e.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } `,"getStyles"),xi=bi,Mi={parser:Aa,db:yi,renderer:vi,styles:xi};export{Mi as diagram};