Files
lightrag/lightrag/api/webui/assets/ganttDiagram-APWFNJXF-jRIf1Auh.js
2025-04-22 12:07:39 +08:00

258 lines
61 KiB
JavaScript
Generated

import{aT as nn,aU as An,aV as rn,aW as an,aX as sn,aY as st,aZ as Ln,aG as wt,_ as d,g as In,s as Wn,q as On,p as Hn,a as Nn,b as Vn,c as _e,d as Be,e as Pn,a_ as ae,l as Ke,k as zn,j as Rn,y as qn,u as Bn}from"./index-D_eVD4HC.js";import{b as Zn,t as Ot,c as Xn,a as Gn,l as Qn}from"./linear-BoakK0rb.js";import{i as jn}from"./init-Gi6I4Gst.js";function $n(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,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 Kn(e){return e}var Xe=1,ot=2,kt=3,Ze=4,Ht=1e-6;function er(e){return"translate("+e+",0)"}function tr(e){return"translate(0,"+e+")"}function nr(e){return t=>+e(t)}function rr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function ar(){return!this.__axis}function on(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===Ze?-1:1,g=e===Ze||e===ot?"x":"y",U=e===Xe||e===kt?er:tr;function C(x){var X=r??(t.ticks?t.ticks.apply(t,n):t.domain()),O=a??(t.tickFormat?t.tickFormat.apply(t,n):Kn),D=Math.max(i,0)+k,I=t.range(),V=+I[0]+M,W=+I[I.length-1]+M,B=(t.bandwidth?rr:nr)(t.copy(),M),j=x.selection?x.selection():x,w=j.selectAll(".domain").data([null]),H=j.selectAll(".tick").data(X,t).order(),b=H.exit(),F=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(F),_=_.merge(F.append("line").attr("stroke","currentColor").attr(g+"2",v*i)),S=S.merge(F.append("text").attr("fill","currentColor").attr(g,v*D).attr("dy",e===Xe?"0em":e===kt?"0.71em":"0.32em")),x!==j&&(w=w.transition(x),H=H.transition(x),_=_.transition(x),S=S.transition(x),b=b.transition(x).attr("opacity",Ht).attr("transform",function(p){return isFinite(p=B(p))?U(p+M):this.getAttribute("transform")}),F.attr("opacity",Ht).attr("transform",function(p){var Y=this.parentNode.__axis;return U((Y&&isFinite(Y=Y(p))?Y:B(p))+M)})),b.remove(),w.attr("d",e===Ze||e===ot?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 U(B(p)+M)}),_.attr(g+"2",v*i),S.attr(g,v*D).text(O),j.filter(ar).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===ot?"start":e===Ze?"end":"middle"),j.each(function(){this.__axis=B})}return C.scale=function(x){return arguments.length?(t=x,C):t},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(x){return arguments.length?(n=x==null?[]:Array.from(x),C):n.slice()},C.tickValues=function(x){return arguments.length?(r=x==null?null:Array.from(x),C):r&&r.slice()},C.tickFormat=function(x){return arguments.length?(a=x,C):a},C.tickSize=function(x){return arguments.length?(i=s=+x,C):i},C.tickSizeInner=function(x){return arguments.length?(i=+x,C):i},C.tickSizeOuter=function(x){return arguments.length?(s=+x,C):s},C.tickPadding=function(x){return arguments.length?(k=+x,C):k},C.offset=function(x){return arguments.length?(M=+x,C):M},C}function ir(e){return on(Xe,e)}function sr(e){return on(kt,e)}const or=Math.PI/180,cr=180/Math.PI,et=18,cn=.96422,un=1,ln=.82521,fn=4/29,Se=6/29,dn=3*Se*Se,ur=Se*Se*Se;function hn(e){if(e instanceof fe)return new fe(e.l,e.a,e.b,e.opacity);if(e instanceof he)return mn(e);e instanceof nn||(e=An(e));var t=ft(e.r),n=ft(e.g),r=ft(e.b),a=ct((.2225045*t+.7168786*n+.0606169*r)/un),i,s;return t===n&&n===r?i=s=a:(i=ct((.4360747*t+.3850649*n+.1430804*r)/cn),s=ct((.0139322*t+.0971045*n+.7141733*r)/ln)),new fe(116*a-16,500*(i-a),200*(a-s),e.opacity)}function lr(e,t,n,r){return arguments.length===1?hn(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}rn(fe,lr,an(sn,{brighter(e){return new fe(this.l+et*(e??1),this.a,this.b,this.opacity)},darker(e){return new fe(this.l-et*(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=cn*ut(t),e=un*ut(e),n=ln*ut(n),new nn(lt(3.1338561*t-1.6168667*e-.4906146*n),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function ct(e){return e>ur?Math.pow(e,1/3):e/dn+fn}function ut(e){return e>Se?e*e*e:dn*(e-fn)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fr(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof fe||(e=hn(e)),e.a===0&&e.b===0)return new he(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cr;return new he(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function pt(e,t,n,r){return arguments.length===1?fr(e):new he(e,t,n,r??1)}function he(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function mn(e){if(isNaN(e.h))return new fe(e.l,0,0,e.opacity);var t=e.h*or;return new fe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}rn(he,pt,an(sn,{brighter(e){return new he(this.h,this.c,this.l+et*(e??1),this.opacity)},darker(e){return new he(this.h,this.c,this.l-et*(e??1),this.opacity)},rgb(){return mn(this).rgb()}}));function dr(e){return function(t,n){var r=e((t=pt(t)).h,(n=pt(n)).h),a=st(t.c,n.c),i=st(t.l,n.l),s=st(t.opacity,n.opacity);return function(k){return t.h=r(k),t.c=a(k),t.l=i(k),t.opacity=s(k),t+""}}}const hr=dr(Ln);function mr(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],s;return i<a&&(s=n,n=r,r=s,s=a,a=i,i=s),e[n]=t.floor(a),e[r]=t.ceil(i),e}const dt=new Date,ht=new Date;function te(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(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<k-i?s:k},a.offset=(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),!(i<s)||!(k>0))return M;let v;do M.push(v=new Date(+i)),t(i,k),e(i);while(v<i&&i<s);return M},a.filter=i=>te(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)=>(dt.setTime(+i),ht.setTime(+s),e(dt),e(ht),Math.floor(n(dt,ht))),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 Ye=te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ye.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):Ye);Ye.range;const me=1e3,ce=me*60,ge=ce*60,ye=ge*24,Ct=ye*7,Nt=ye*30,mt=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 gr=te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ce)},(e,t)=>(t-e)/ce,e=>e.getUTCMinutes());gr.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 yr=te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCHours());yr.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 Dt=te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>e.getUTCDate()-1);Dt.range;const kr=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));kr.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)/Ct)}const Ve=we(0),He=we(1),gn=we(2),yn=we(3),xe=we(4),kn=we(5),pn=we(6);Ve.range;He.range;gn.range;yn.range;xe.range;kn.range;pn.range;function Ce(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)/Ct)}const Tn=Ce(0),tt=Ce(1),pr=Ce(2),Tr=Ce(3),Ue=Ce(4),vr=Ce(5),xr=Ce(6);Tn.range;tt.range;pr.range;Tr.range;Ue.range;vr.range;xr.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 br=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());br.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 be=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());be.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)});be.range;function wr(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,Ct],[t,1,Nt],[t,3,3*Nt],[e,1,mt]];function k(v,g,U){const C=g<v;C&&([v,g]=[g,v]);const x=U&&typeof U.range=="function"?U:M(v,g,U),X=x?x.range(v,+g+1):[];return C?X.reverse():X}function M(v,g,U){const C=Math.abs(g-v)/U,x=Zn(([,,D])=>D).right(s,C);if(x===s.length)return e.every(Ot(v/mt,g/mt,U));if(x===0)return Ye.every(Math.max(Ot(v,g,U),1));const[X,O]=s[C/s[x-1][2]<s[x][2]/C?x-1:x];return X.every(O)}return[k,M]}const[Cr,Dr]=wr(ke,Ne,Ve,ve,Oe,We);function gt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function yt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ae(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Mr(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,s=e.shortDays,k=e.months,M=e.shortMonths,v=Le(a),g=Ie(a),U=Le(i),C=Ie(i),x=Le(s),X=Ie(s),O=Le(k),D=Ie(k),I=Le(M),V=Ie(M),W={a:m,A:E,b:c,B:h,c:null,d:Bt,e:Bt,f:Qr,g:ia,G:oa,H:Zr,I:Xr,j:Gr,L:vn,m:jr,M:$r,p:o,q:z,Q:Gt,s:Qt,S:Jr,u:Kr,U:ea,V:ta,w:na,W:ra,x:null,X:null,y:aa,Y:sa,Z:ca,"%":Xt},B={a:P,A:R,b:K,B:G,c:null,d:Zt,e:Zt,f:da,g:ba,G:Ca,H:ua,I:la,j:fa,L:bn,m:ha,M:ma,p:$,q:ie,Q:Gt,s:Qt,S:ga,u:ya,U:ka,V:pa,w:Ta,W:va,x:null,X:null,y:xa,Y:wa,Z:Da,"%":Xt},j={a:_,A:S,b:p,B:Y,c:u,d:Rt,e:Rt,f:zr,g:zt,G:Pt,H:qt,I:qt,j:Hr,L:Pr,m:Or,M:Nr,p:F,q:Wr,Q:qr,s:Br,S:Vr,u:Ur,U:Er,V:Ar,w:Yr,W:Lr,x:f,X:y,y:zt,Y:Pt,Z:Ir,"%":Rr};W.x=w(n,W),W.X=w(r,W),W.c=w(t,W),B.x=w(n,B),B.X=w(r,B),B.c=w(t,B);function w(T,L){return function(N){var l=[],J=-1,A=0,Q=T.length,Z,re,se;for(N instanceof Date||(N=new Date(+N));++J<Q;)T.charCodeAt(J)===37&&(l.push(T.slice(A,J)),(re=Vt[Z=T.charAt(++J)])!=null?Z=T.charAt(++J):re=Z==="e"?" ":"0",(se=L[Z])&&(Z=se(N,re)),l.push(Z),A=J+1);return l.push(T.slice(A,J)),l.join("")}}function H(T,L){return function(N){var l=Ae(1900,void 0,1),J=b(l,T,N+="",0),A,Q;if(J!=N.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(L&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(A=yt(Ae(l.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?tt.ceil(A):tt(A),A=Dt.offset(A,(l.V-1)*7),l.y=A.getUTCFullYear(),l.m=A.getUTCMonth(),l.d=A.getUTCDate()+(l.w+6)%7):(A=gt(Ae(l.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?He.ceil(A):He(A),A=ve.offset(A,(l.V-1)*7),l.y=A.getFullYear(),l.m=A.getMonth(),l.d=A.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),Q="Z"in l?yt(Ae(l.y,0,1)).getUTCDay():gt(Ae(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,yt(l)):gt(l)}}function b(T,L,N,l){for(var J=0,A=L.length,Q=N.length,Z,re;J<A;){if(l>=Q)return-1;if(Z=L.charCodeAt(J++),Z===37){if(Z=L.charAt(J++),re=j[Z in Vt?L.charAt(J++):Z],!re||(l=re(T,N,l))<0)return-1}else if(Z!=N.charCodeAt(l++))return-1}return l}function F(T,L,N){var l=v.exec(L.slice(N));return l?(T.p=g.get(l[0].toLowerCase()),N+l[0].length):-1}function _(T,L,N){var l=x.exec(L.slice(N));return l?(T.w=X.get(l[0].toLowerCase()),N+l[0].length):-1}function S(T,L,N){var l=U.exec(L.slice(N));return l?(T.w=C.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,L,N){var l=I.exec(L.slice(N));return l?(T.m=V.get(l[0].toLowerCase()),N+l[0].length):-1}function Y(T,L,N){var l=O.exec(L.slice(N));return l?(T.m=D.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,L,N){return b(T,t,L,N)}function f(T,L,N){return b(T,n,L,N)}function y(T,L,N){return b(T,r,L,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 z(T){return 1+~~(T.getMonth()/3)}function P(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 $(T){return a[+(T.getUTCHours()>=12)]}function ie(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var L=w(T+="",W);return L.toString=function(){return T},L},parse:function(T){var L=H(T+="",!1);return L.toString=function(){return T},L},utcFormat:function(T){var L=w(T+="",B);return L.toString=function(){return T},L},utcParse:function(T){var L=H(T+="",!0);return L.toString=function(){return T},L}}}var Vt={"-":"",_:" ",0:"0"},ne=/^\s*\d+/,_r=/^%/,Sr=/[\\^$*+?|[\]().{}]/g;function q(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function Fr(e){return e.replace(Sr,"\\$&")}function Le(e){return new RegExp("^(?:"+e.map(Fr).join("|")+")","i")}function Ie(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Yr(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=ne.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=ne.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function zt(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 Ir(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 Wr(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 Or(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 Rt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Hr(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 qt(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=ne.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pr(e,t,n){var r=ne.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function zr(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 Rr(e,t,n){var r=_r.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function qr(e,t,n){var r=ne.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=ne.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Bt(e,t){return q(e.getDate(),t,2)}function Zr(e,t){return q(e.getHours(),t,2)}function Xr(e,t){return q(e.getHours()%12||12,t,2)}function Gr(e,t){return q(1+ve.count(ke(e),e),t,3)}function vn(e,t){return q(e.getMilliseconds(),t,3)}function Qr(e,t){return vn(e,t)+"000"}function jr(e,t){return q(e.getMonth()+1,t,2)}function $r(e,t){return q(e.getMinutes(),t,2)}function Jr(e,t){return q(e.getSeconds(),t,2)}function Kr(e){var t=e.getDay();return t===0?7:t}function ea(e,t){return q(Ve.count(ke(e)-1,e),t,2)}function xn(e){var t=e.getDay();return t>=4||t===0?xe(e):xe.ceil(e)}function ta(e,t){return e=xn(e),q(xe.count(ke(e),e)+(ke(e).getDay()===4),t,2)}function na(e){return e.getDay()}function ra(e,t){return q(He.count(ke(e)-1,e),t,2)}function aa(e,t){return q(e.getFullYear()%100,t,2)}function ia(e,t){return e=xn(e),q(e.getFullYear()%100,t,2)}function sa(e,t){return q(e.getFullYear()%1e4,t,4)}function oa(e,t){var n=e.getDay();return e=n>=4||n===0?xe(e):xe.ceil(e),q(e.getFullYear()%1e4,t,4)}function ca(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+q(t/60|0,"0",2)+q(t%60,"0",2)}function Zt(e,t){return q(e.getUTCDate(),t,2)}function ua(e,t){return q(e.getUTCHours(),t,2)}function la(e,t){return q(e.getUTCHours()%12||12,t,2)}function fa(e,t){return q(1+Dt.count(be(e),e),t,3)}function bn(e,t){return q(e.getUTCMilliseconds(),t,3)}function da(e,t){return bn(e,t)+"000"}function ha(e,t){return q(e.getUTCMonth()+1,t,2)}function ma(e,t){return q(e.getUTCMinutes(),t,2)}function ga(e,t){return q(e.getUTCSeconds(),t,2)}function ya(e){var t=e.getUTCDay();return t===0?7:t}function ka(e,t){return q(Tn.count(be(e)-1,e),t,2)}function wn(e){var t=e.getUTCDay();return t>=4||t===0?Ue(e):Ue.ceil(e)}function pa(e,t){return e=wn(e),q(Ue.count(be(e),e)+(be(e).getUTCDay()===4),t,2)}function Ta(e){return e.getUTCDay()}function va(e,t){return q(tt.count(be(e)-1,e),t,2)}function xa(e,t){return q(e.getUTCFullYear()%100,t,2)}function ba(e,t){return e=wn(e),q(e.getUTCFullYear()%100,t,2)}function wa(e,t){return q(e.getUTCFullYear()%1e4,t,4)}function Ca(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ue(e):Ue.ceil(e),q(e.getUTCFullYear()%1e4,t,4)}function Da(){return"+0000"}function Xt(){return"%"}function Gt(e){return+e}function Qt(e){return Math.floor(+e/1e3)}var Me,nt;Ma({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 Ma(e){return Me=Mr(e),nt=Me.format,Me.parse,Me.utcFormat,Me.utcParse,Me}function _a(e){return new Date(e)}function Sa(e){return e instanceof Date?+e:+new Date(+e)}function Cn(e,t,n,r,a,i,s,k,M,v){var g=Xn(),U=g.invert,C=g.domain,x=v(".%L"),X=v(":%S"),O=v("%I:%M"),D=v("%I %p"),I=v("%a %d"),V=v("%b %d"),W=v("%B"),B=v("%Y");function j(w){return(M(w)<w?x:k(w)<w?X:s(w)<w?O:i(w)<w?D:r(w)<w?a(w)<w?I:V:n(w)<w?W:B)(w)}return g.invert=function(w){return new Date(U(w))},g.domain=function(w){return arguments.length?C(Array.from(w,Sa)):C().map(_a)},g.ticks=function(w){var H=C();return e(H[0],H[H.length-1],w??10)},g.tickFormat=function(w,H){return H==null?j:v(H)},g.nice=function(w){var H=C();return(!w||typeof w.range!="function")&&(w=t(H[0],H[H.length-1],w??10)),w?C(mr(H,w)):g},g.copy=function(){return Gn(g,Cn(e,t,n,r,a,i,s,k,M,v))},g}function Fa(){return jn.apply(Cn(Cr,Dr,ke,Ne,Ve,ve,Oe,We,Te,nt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Ge={exports:{}},Ya=Ge.exports,jt;function Ua(){return jt||(jt=1,function(e,t){(function(n,r){e.exports=r()})(Ya,function(){var n="day";return function(r,a,i){var s=function(v){return v.add(4-v.isoWeekday(),n)},k=a.prototype;k.isoWeekYear=function(){return s(this).year()},k.isoWeek=function(v){if(!this.$utils().u(v))return this.add(7*(v-this.isoWeek()),n);var g,U,C,x,X=s(this),O=(g=this.isoWeekYear(),U=this.$u,C=(U?i.utc:i)().year(g).startOf("year"),x=4-C.isoWeekday(),C.isoWeekday()>4&&(x+=7),C.add(x,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 U=this.$utils(),C=!!U.u(g)||g;return U.p(v)==="isoweek"?C?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)}}})}(Ge)),Ge.exports}var Ea=Ua();const Aa=wt(Ea);var Qe={exports:{}},La=Qe.exports,$t;function Ia(){return $t||($t=1,function(e,t){(function(n,r){e.exports=r()})(La,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(D){return(D=+D)+(D>68?1900:2e3)},g=function(D){return function(I){this[D]=+I}},U=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(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}(D)}],C=function(D){var I=M[D];return I&&(I.indexOf?I:I.s.concat(I.f))},x=function(D,I){var V,W=M.meridiem;if(W){for(var B=1;B<=24;B+=1)if(D.indexOf(W(B,0,I))>-1){V=B>12;break}}else V=D===(I?"pm":"PM");return V},X={A:[k,function(D){this.afternoon=x(D,!1)}],a:[k,function(D){this.afternoon=x(D,!0)}],Q:[a,function(D){this.month=3*(D-1)+1}],S:[a,function(D){this.milliseconds=100*+D}],SS:[i,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],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(D){var I=M.ordinal,V=D.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===D&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(D){var I=C("months"),V=(C("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(D)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(D){var I=C("months").indexOf(D)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(D){this.year=v(D)}],YYYY:[/\d{4}/,g("year")],Z:U,ZZ:U};function O(D){var I,V;I=D,V=M&&M.formats;for(var W=(D=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var Y=p&&p.toUpperCase();return S||V[p]||n[p]||V[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,y){return f||y.slice(1)})})).match(r),B=W.length,j=0;j<B;j+=1){var w=W[j],H=X[w],b=H&&H[0],F=H&&H[1];W[j]=F?{regex:b,parser:F}:w.replace(/^\[|\]$/g,"")}return function(_){for(var S={},p=0,Y=0;p<B;p+=1){var u=W[p];if(typeof u=="string")Y+=u.length;else{var f=u.regex,y=u.parser,m=_.slice(Y),E=f.exec(m)[0];y.call(S,E),_=_.replace(E,"")}}return function(c){var h=c.afternoon;if(h!==void 0){var o=c.hours;h?o<12&&(c.hours+=12):o===12&&(c.hours=0),delete c.afternoon}}(S),S}}return function(D,I,V){V.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(v=D.parseTwoDigitYear);var W=I.prototype,B=W.parse;W.parse=function(j){var w=j.date,H=j.utc,b=j.args;this.$u=H;var F=b[1];if(typeof F=="string"){var _=b[2]===!0,S=b[3]===!0,p=_||S,Y=b[2];S&&(Y=b[2]),M=this.$locale(),!_&&Y&&(M=V.Ls[Y]),this.$d=function(m,E,c,h){try{if(["x","X"].indexOf(E)>-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),z=o.year,P=o.month,R=o.day,K=o.hours,G=o.minutes,$=o.seconds,ie=o.milliseconds,T=o.zone,L=o.week,N=new Date,l=R||(z||P?1:N.getDate()),J=z||N.getFullYear(),A=0;z&&!P||(A=P>0?P-1:N.getMonth());var Q,Z=K||0,re=G||0,se=$||0,pe=ie||0;return T?new Date(Date.UTC(J,A,l,Z,re,se,pe+60*T.offset*1e3)):c?new Date(Date.UTC(J,A,l,Z,re,se,pe)):(Q=new Date(J,A,l,Z,re,se,pe),L&&(Q=h(Q).week(L).toDate()),Q)}catch{return new Date("")}}(w,F,H,V),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),p&&w!=this.format(F)&&(this.$d=new Date("")),M={}}else if(F instanceof Array)for(var u=F.length,f=1;f<=u;f+=1){b[1]=F[f-1];var y=V.apply(this,b);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===u&&(this.$d=new Date(""))}else B.call(this,j)}}})}(Qe)),Qe.exports}var Wa=Ia();const Oa=wt(Wa);var je={exports:{}},Ha=je.exports,Jt;function Na(){return Jt||(Jt=1,function(e,t){(function(n,r){e.exports=r()})(Ha,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(U){switch(U){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(),U==="w"?1:2,"0");case"W":case"WW":return v.s(k.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return v.s(String(k.$H===0?24:k.$H),U==="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 U}});return i.bind(this)(g)}}})}(je)),je.exports}var Va=Na();const Pa=wt(Va);var Tt=function(){var e=d(function(Y,u,f,y){for(f=f||{},y=Y.length;y--;f[Y[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],U=[1,9],C=[1,10],x=[1,11],X=[1,12],O=[1,13],D=[1,14],I=[1,15],V=[1,16],W=[1,19],B=[1,20],j=[1,21],w=[1,22],H=[1,23],b=[1,25],F=[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:U,23:C,24:x,25:X,26:O,27:D,28:I,29:V,30:W,31:B,33:j,35:w,36:H,37:24,38:b,40:F},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:U,23:C,24:x,25:X,26:O,27:D,28:I,29:V,30:W,31:B,33:j,35:w,36:H,37:24,38:b,40:F},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="",z=0,P=0,R=2,K=1,G=c.slice.call(arguments,1),$=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]);$.setInput(u,ie.yy),ie.yy.lexer=$,ie.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var L=$.yylloc;c.push(L);var N=$.options&&$.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 J(){var oe;return oe=m.pop()||$.lex()||K,typeof oe!="number"&&(oe instanceof Array&&(m=oe,oe=m.pop()),oe=f.symbols_[oe]||oe),oe}d(J,"lex");for(var A,Q,Z,re,se={},pe,ue,Wt,qe;;){if(Q=y[y.length-1],this.defaultActions[Q]?Z=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=J()),Z=h[Q]&&h[Q][A]),typeof Z>"u"||!Z.length||!Z[0]){var it="";qe=[];for(pe in h[Q])this.terminals_[pe]&&pe>R&&qe.push("'"+this.terminals_[pe]+"'");$.showPosition?it="Parse error on line "+(z+1)+`:
`+$.showPosition()+`
Expecting `+qe.join(", ")+", got '"+(this.terminals_[A]||A)+"'":it="Parse error on line "+(z+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(it,{text:$.match,token:this.terminals_[A]||A,line:$.yylineno,loc:L,expected:qe})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(Z[0]){case 1:y.push(A),E.push($.yytext),c.push($.yylloc),y.push(Z[1]),A=null,P=$.yyleng,o=$.yytext,z=$.yylineno,L=$.yylloc;break;case 2:if(ue=this.productions_[Z[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,P,z,ie.yy,Z[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_[Z[1]][0]),E.push(se.$),c.push(se._$),Wt=h[y[y.length-2]][y[y.length-1]],y.push(Wt);break;case 3:return!0}}return!0},"parse")},S=function(){var Y={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;c<E.length;c++)if(y=this._input.match(this.rules[E[c]]),y&&(!f||y[0].length>f[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 Y}();_.lexer=S;function p(){this.yy={}}return d(p,"Parser"),p.prototype=_,_.Parser=p,new p}();Tt.parser=Tt;var za=Tt;ae.extend(Aa);ae.extend(Oa);ae.extend(Pa);var Kt={friday:5,saturday:6},le="",Mt="",_t=void 0,St="",Pe=[],ze=[],Ft=new Map,Yt=[],rt=[],Ee="",Ut="",Dn=["active","done","crit","milestone"],Et=[],Re=!1,At=!1,Lt="sunday",at="saturday",vt=0,Ra=d(function(){Yt=[],rt=[],Ee="",Et=[],$e=0,bt=void 0,Je=void 0,ee=[],le="",Mt="",Ut="",_t=void 0,St="",Pe=[],ze=[],Re=!1,At=!1,vt=0,Ft=new Map,qn(),Lt="sunday",at="saturday"},"clear"),qa=d(function(e){Mt=e},"setAxisFormat"),Ba=d(function(){return Mt},"getAxisFormat"),Za=d(function(e){_t=e},"setTickInterval"),Xa=d(function(){return _t},"getTickInterval"),Ga=d(function(e){St=e},"setTodayMarker"),Qa=d(function(){return St},"getTodayMarker"),ja=d(function(e){le=e},"setDateFormat"),$a=d(function(){Re=!0},"enableInclusiveEndDates"),Ja=d(function(){return Re},"endDatesAreInclusive"),Ka=d(function(){At=!0},"enableTopAxis"),ei=d(function(){return At},"topAxisEnabled"),ti=d(function(e){Ut=e},"setDisplayMode"),ni=d(function(){return Ut},"getDisplayMode"),ri=d(function(){return le},"getDateFormat"),ai=d(function(e){Pe=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),ii=d(function(){return Pe},"getIncludes"),si=d(function(e){ze=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),oi=d(function(){return ze},"getExcludes"),ci=d(function(){return Ft},"getLinks"),ui=d(function(e){Ee=e,Yt.push(e)},"addSection"),li=d(function(){return Yt},"getSections"),fi=d(function(){let e=en();const t=10;let n=0;for(;!e&&n<t;)e=en(),n++;return rt=ee,rt},"getTasks"),Mn=d(function(e,t,n,r){return r.includes(e.format(t.trim()))?!1:n.includes("weekends")&&(e.isoWeekday()===Kt[at]||e.isoWeekday()===Kt[at]+1)||n.includes(e.format("dddd").toLowerCase())?!0:n.includes(e.format(t.trim()))},"isInvalidDate"),di=d(function(e){Lt=e},"setWeekday"),hi=d(function(){return Lt},"getWeekday"),mi=d(function(e){at=e},"setWeekend"),_n=d(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let a;e.startTime instanceof Date?a=ae(e.startTime):a=ae(e.startTime,t,!0),a=a.add(1,"d");let i;e.endTime instanceof Date?i=ae(e.endTime):i=ae(e.endTime,t,!0);const[s,k]=gi(a,i,t,n,r);e.endTime=s.toDate(),e.renderEndTime=k},"checkTaskDates"),gi=d(function(e,t,n,r,a){let i=!1,s=null;for(;e<=t;)i||(s=t.toDate()),i=Mn(e,n,r,a),i&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,s]},"fixTaskDates"),xt=d(function(e,t,n){n=n.trim();const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let s=null;for(const M of a.groups.ids.split(" ")){let v=De(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();{Ke.debug("Invalid date:"+n),Ke.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"),Sn=d(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),Fn=d(function(e,t,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let g=null;for(const C of i.groups.ids.split(" ")){let x=De(C);x!==void 0&&(!g||x.startTime<g.startTime)&&(g=x)}if(g)return g.startTime;const U=new Date;return U.setHours(0,0,0,0),U}let s=ae(n,t.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let k=ae(e);const[M,v]=Sn(n);if(!Number.isNaN(M)){const g=k.add(M,v);g.isValid()&&(k=g)}return k.toDate()},"getEndDate"),$e=0,Fe=d(function(e){return e===void 0?($e=$e+1,"task"+$e):e},"parseId"),yi=d(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),a={};It(r,a,Dn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();let i="";switch(r.length){case 1:a.id=Fe(),a.startTime=e.endTime,i=r[0];break;case 2:a.id=Fe(),a.startTime=xt(void 0,le,r[0]),i=r[1];break;case 3:a.id=Fe(r[0]),a.startTime=xt(void 0,le,r[1]),i=r[2];break}return i&&(a.endTime=Fn(a.startTime,le,i,Re),a.manualEndTime=ae(i,"YYYY-MM-DD",!0).isValid(),_n(a,le,ze,Pe)),a},"compileData"),ki=d(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),a={};It(r,a,Dn);for(let i=0;i<r.length;i++)r[i]=r[i].trim();switch(r.length){case 1:a.id=Fe(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:r[0]};break;case 2:a.id=Fe(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=Fe(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a},"parseData"),bt,Je,ee=[],Yn={},pi=d(function(e,t){const n={section:Ee,type:Ee,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=ki(Je,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Je,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=vt,vt++;const a=ee.push(n);Je=n.id,Yn[n.id]=a-1},"addTask"),De=d(function(e){const t=Yn[e];return ee[t]},"findTaskById"),Ti=d(function(e,t){const n={section:Ee,type:Ee,description:e,task:e,classes:[]},r=yi(bt,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,bt=n,rt.push(n)},"addTaskOrg"),en=d(function(){const e=d(function(n){const r=ee[n];let a="";switch(ee[n].raw.startTime.type){case"prevTaskEnd":{const i=De(r.prevTaskId);r.startTime=i.endTime;break}case"getStartDate":a=xt(void 0,le,ee[n].raw.startTime.startData),a&&(ee[n].startTime=a);break}return ee[n].startTime&&(ee[n].endTime=Fn(ee[n].startTime,le,ee[n].raw.endTime.data,Re),ee[n].endTime&&(ee[n].processed=!0,ee[n].manualEndTime=ae(ee[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),_n(ee[n],le,ze,Pe))),ee[n].processed},"compileTask");let t=!0;for(const[n,r]of ee.entries())e(n),t=t&&r.processed;return t},"compileTasks"),vi=d(function(e,t){let n=t;_e().securityLevel!=="loose"&&(n=Rn.sanitizeUrl(t)),e.split(",").forEach(function(r){De(r)!==void 0&&(En(r,()=>{window.open(n,"_self")}),Ft.set(r,n))}),Un(e,"clickable")},"setLink"),Un=d(function(e,t){e.split(",").forEach(function(n){let r=De(n);r!==void 0&&r.classes.push(t)})},"setClass"),xi=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<r.length;i++){let s=r[i].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),r[i]=s}}r.length===0&&r.push(e),De(e)!==void 0&&En(e,()=>{Bn.runFunc(t,...r)})},"setClickFun"),En=d(function(e,t){Et.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"),bi=d(function(e,t,n){e.split(",").forEach(function(r){xi(r,t,n)}),Un(e,"clickable")},"setClickEvent"),wi=d(function(e){Et.forEach(function(t){t(e)})},"bindFunctions"),Ci={getConfig:d(()=>_e().gantt,"getConfig"),clear:Ra,setDateFormat:ja,getDateFormat:ri,enableInclusiveEndDates:$a,endDatesAreInclusive:Ja,enableTopAxis:Ka,topAxisEnabled:ei,setAxisFormat:qa,getAxisFormat:Ba,setTickInterval:Za,getTickInterval:Xa,setTodayMarker:Ga,getTodayMarker:Qa,setAccTitle:Vn,getAccTitle:Nn,setDiagramTitle:Hn,getDiagramTitle:On,setDisplayMode:ti,getDisplayMode:ni,setAccDescription:Wn,getAccDescription:In,addSection:ui,getSections:li,getTasks:fi,addTask:pi,findTaskById:De,addTaskOrg:Ti,setIncludes:ai,getIncludes:ii,setExcludes:si,getExcludes:oi,setClickEvent:bi,setLink:vi,getLinks:ci,bindFunctions:wi,parseDuration:Sn,isInvalidDate:Mn,setWeekday:di,getWeekday:hi,setWeekend:mi};function It(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(It,"getTaskTags");var Di=d(function(){Ke.debug("Something is calling, setConf, remove the call")},"setConf"),tn={monday:He,tuesday:gn,wednesday:yn,thursday:xe,friday:kn,saturday:pn,sunday:Ve},Mi=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.length;s++)if(i.startTime>=n[s]){n[s]=i.endTime,i.order=s+t,s>a&&(a=s);break}return a},"getMaxIntersections"),de,_i=d(function(e,t,n,r){const a=_e().gantt,i=_e().securityLevel;let s;i==="sandbox"&&(s=Be("#i"+t));const k=i==="sandbox"?Be(s.nodes()[0].contentDocument.body):Be("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 U=[];for(const b of g)U.push(b.type);U=H(U);const C={};let x=2*a.topPadding;if(r.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const b={};for(const _ of g)b[_.section]===void 0?b[_.section]=[_]:b[_.section].push(_);let F=0;for(const _ of Object.keys(b)){const S=Mi(b[_],F)+1;F+=S,x+=S*(a.barHeight+a.barGap),C[_]=S}}else{x+=g.length*(a.barHeight+a.barGap);for(const b of U)C[b]=g.filter(F=>F.type===b).length}v.setAttribute("viewBox","0 0 "+de+" "+x);const X=k.select(`[id="${t}"]`),O=Fa().domain([Jn(g,function(b){return b.startTime}),$n(g,function(b){return b.endTime})]).rangeRound([0,de-a.leftPadding-a.rightPadding]);function D(b,F){const _=b.startTime,S=F.startTime;let p=0;return _>S?p=1:_<S&&(p=-1),p}d(D,"taskCompare"),g.sort(D),I(g,de,x),Pn(X,x,de,a.useMaxWidth),X.append("text").text(r.db.getDiagramTitle()).attr("x",de/2).attr("y",a.titleTopMargin).attr("class","titleText");function I(b,F,_){const S=a.barHeight,p=S+a.barGap,Y=a.topPadding,u=a.leftPadding,f=Qn().domain([0,U.length]).range(["#00B9FA","#F95002"]).interpolate(hr);W(p,Y,u,F,_,b,r.db.getExcludes(),r.db.getIncludes()),B(u,Y,F,_),V(b,p,Y,u,S,f,F),j(p,Y),w(u,Y,F,_)}d(I,"makeGantt");function V(b,F,_,S,p,Y,u){const y=[...new Set(b.map(h=>h.order))].map(h=>b.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*F+_-2}).attr("width",function(){return u-a.rightPadding/2}).attr("height",F).attr("class",function(h){for(const[o,z]of U.entries())if(h.type===z)return"section section"+o%a.numberSectionStyles;return"section section0"});const m=X.append("g").selectAll("rect").data(b).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*F+_}).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*F+_+.5*p).toString()+"px"}).attr("class",function(h){const o="task";let z="";h.classes.length>0&&(z=h.classes.join(" "));let P=0;for(const[K,G]of U.entries())h.type===G&&(P=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+=P,R+=" "+z,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),z=O(h.renderEndTime||h.endTime);h.milestone&&(o+=.5*(O(h.endTime)-O(h.startTime))-.5*p),h.milestone&&(z=o+p);const P=this.getBBox().width;return P>z-o?z+P+1.5*a.leftPadding>u?o+S-5:z+S+5:(z-o)/2+o+S}).attr("y",function(h,o){return o=h.order,o*F+a.barHeight/2+(a.fontSize/2-2)+_}).attr("text-height",p).attr("class",function(h){const o=O(h.startTime);let z=O(h.endTime);h.milestone&&(z=o+p);const P=this.getBBox().width;let R="";h.classes.length>0&&(R=h.classes.join(" "));let K=0;for(const[$,ie]of U.entries())h.type===ie&&(K=$%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"),P>z-o?z+P+1.5*a.leftPadding>u?R+" taskTextOutsideLeft taskTextOutside"+K+" "+G:R+" taskTextOutsideRight taskTextOutside"+K+" "+G+" width-"+P:R+" taskText taskText"+K+" "+G+" width-"+P}),_e().securityLevel==="sandbox"){let h;h=Be("#i"+t);const o=h.nodes()[0].contentDocument;m.filter(function(z){return E.has(z.id)}).each(function(z){var P=o.querySelector("#"+z.id),R=o.querySelector("#"+z.id+"-text");const K=P.parentNode;var G=o.createElement("a");G.setAttribute("xlink:href",E.get(z.id)),G.setAttribute("target","_top"),K.appendChild(G),G.appendChild(P),G.appendChild(R)})}}d(V,"drawRects");function W(b,F,_,S,p,Y,u,f){if(u.length===0&&f.length===0)return;let y,m;for(const{startTime:P,endTime:R}of Y)(y===void 0||P<y)&&(y=P),(m===void 0||R>m)&&(m=R);if(!y||!m)return;if(ae(m).diff(ae(y),"year")>5){Ke.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(P){return"exclude-"+P.start.format("YYYY-MM-DD")}).attr("x",function(P){return O(P.start)+_}).attr("y",a.gridLineStartPadding).attr("width",function(P){const R=P.end.add(1,"day");return O(R)-O(P.start)}).attr("height",p-F-a.gridLineStartPadding).attr("transform-origin",function(P,R){return(O(P.start)+_+.5*(O(P.end)-O(P.start))).toString()+"px "+(R*b+.5*p).toString()+"px"}).attr("class","exclude-range")}d(W,"drawExcludeDays");function B(b,F,_,S){let p=sr(O).tickSize(-S+F+a.gridLineStartPadding).tickFormat(nt(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(Ye.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(tn[m].every(f));break;case"month":p.ticks(Ne.every(f));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+b+", "+(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=ir(O).tickSize(-S+F+a.gridLineStartPadding).tickFormat(nt(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(Ye.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(tn[E].every(y));break;case"month":f.ticks(Ne.every(y));break}}X.append("g").attr("class","grid").attr("transform","translate("+b+", "+F+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(B,"makeGrid");function j(b,F){let _=0;const S=Object.keys(C).map(p=>[p,C[p]]);X.append("g").selectAll("text").data(S).enter().append(function(p){const Y=p[0].split(zn.lineBreakRegex),u=-(Y.length-1)/2,f=M.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",u+"em");for(const[y,m]of Y.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,Y){if(Y>0)for(let u=0;u<Y;u++)return _+=S[Y-1][1],p[1]*b/2+_*b+F;else return p[1]*b/2+F}).attr("font-size",a.sectionFontSize).attr("class",function(p){for(const[Y,u]of U.entries())if(p[0]===u)return"sectionTitle sectionTitle"+Y%a.numberSectionStyles;return"sectionTitle"})}d(j,"vertLabels");function w(b,F,_,S){const p=r.db.getTodayMarker();if(p==="off")return;const Y=X.append("g").attr("class","today"),u=new Date,f=Y.append("line");f.attr("x1",O(u)+b).attr("x2",O(u)+b).attr("y1",a.titleTopMargin).attr("y2",S-a.titleTopMargin).attr("class","today"),p!==""&&f.attr("style",p.replace(/,/g,";"))}d(w,"drawToday");function H(b){const F={},_=[];for(let S=0,p=b.length;S<p;++S)Object.prototype.hasOwnProperty.call(F,b[S])||(F[b[S]]=!0,_.push(b[S]));return _}d(H,"checkUnique")},"draw"),Si={setConf:Di,draw:_i},Fi=d(e=>`
.mermaid-main-font {
font-family: ${e.fontFamily};
}
.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: ${e.fontFamily};
}
/* 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: ${e.fontFamily};
}
.taskTextOutsideRight {
fill: ${e.taskTextDarkColor};
text-anchor: start;
font-family: ${e.fontFamily};
}
.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: ${e.fontFamily};
}
`,"getStyles"),Yi=Fi,Li={parser:za,db:Ci,renderer:Si,styles:Yi};export{Li as diagram};