%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ganttDiagram-b62c793e-DgklVKVk.chunk.mjs

/*! third party licenses: js/vendor.LICENSE.txt */
import{au as Ne,av as Ve,aw as qe,ax as Ge,ay as Cn,az as Jt,aA as Dn,aB as R,c as Ct,s as _n,g as Mn,x as Sn,y as Yn,b as $n,a as An,A as Un,m as Fn,l as Gt,h as Pt,i as Ln,j as En,z as In}from"./mermaid.core-CHhv7cmw.chunk.mjs";import{c as me,g as ye}from"./emoji-picker-SoWZqoso.chunk.mjs";import"./NcNoteCard-CImn6F9p-7OG_jBLc.chunk.mjs";import{b as On,t as Se,c as Hn,a as Wn,l as zn}from"./linear-BxkBBwC9.chunk.mjs";import{i as Pn}from"./init-q33yAy1W.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Nn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Vn(t){return t}var Nt=1,Rt=2,le=3,Bt=4,Ye=1e-6;function qn(t){return"translate("+t+",0)"}function Gn(t){return"translate(0,"+t+")"}function Zn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ze(t,e){var n=[],r=null,i=null,s=6,l=6,m=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===Nt||t===Bt?-1:1,w=t===Bt||t===Rt?"x":"y",S=t===Nt||t===le?qn:Gn;function b(x){var V=r!=null?r:e.ticks?e.ticks.apply(e,n):e.domain(),g=i!=null?i:e.tickFormat?e.tickFormat.apply(e,n):Vn,U=Math.max(s,0)+m,W=e.range(),H=+W[0]+M,B=+W[W.length-1]+M,N=(e.bandwidth?jn:Zn)(e.copy(),M),Q=x.selection?x.selection():x,p=Q.selectAll(".domain").data([null]),L=Q.selectAll(".tick").data(V,e).order(),k=L.exit(),Y=L.enter().append("g").attr("class","tick"),_=L.select("line"),T=L.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(w+"2",h*s)),T=T.merge(Y.append("text").attr("fill","currentColor").attr(w,h*U).attr("dy",t===Nt?"0em":t===le?"0.71em":"0.32em")),x!==Q&&(p=p.transition(x),L=L.transition(x),_=_.transition(x),T=T.transition(x),k=k.transition(x).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=N(o))?S(o+M):this.getAttribute("transform")}),Y.attr("opacity",Ye).attr("transform",function(o){var f=this.parentNode.__axis;return S((f&&isFinite(f=f(o))?f:N(o))+M)})),k.remove(),p.attr("d",t===Bt||t===Rt?l?"M"+h*l+","+H+"H"+M+"V"+B+"H"+h*l:"M"+M+","+H+"V"+B:l?"M"+H+","+h*l+"V"+M+"H"+B+"V"+h*l:"M"+H+","+M+"H"+B),L.attr("opacity",1).attr("transform",function(o){return S(N(o)+M)}),_.attr(w+"2",h*s),T.attr(w,h*U).text(g),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Rt?"start":t===Bt?"end":"middle"),Q.each(function(){this.__axis=N})}return b.scale=function(x){return arguments.length?(e=x,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(x){return arguments.length?(n=x==null?[]:Array.from(x),b):n.slice()},b.tickValues=function(x){return arguments.length?(r=x==null?null:Array.from(x),b):r&&r.slice()},b.tickFormat=function(x){return arguments.length?(i=x,b):i},b.tickSize=function(x){return arguments.length?(s=l=+x,b):s},b.tickSizeInner=function(x){return arguments.length?(s=+x,b):s},b.tickSizeOuter=function(x){return arguments.length?(l=+x,b):l},b.tickPadding=function(x){return arguments.length?(m=+x,b):m},b.offset=function(x){return arguments.length?(M=+x,b):M},b}function Xn(t){return Ze(Nt,t)}function Kn(t){return Ze(le,t)}const Jn=Math.PI/180,Rn=180/Math.PI,Zt=18,je=.96422,Qe=1,Xe=.82521,Ke=4/29,Dt=6/29,Je=3*Dt*Dt,tr=Dt*Dt*Dt;function Re(t){if(t instanceof it)return new it(t.l,t.a,t.b,t.opacity);if(t instanceof ct)return tn(t);t instanceof qe||(t=Cn(t));var e=re(t.r),n=re(t.g),r=re(t.b),i=te((.2225045*e+.7168786*n+.0606169*r)/Qe),s,l;return e===n&&n===r?s=l=i:(s=te((.4360747*e+.3850649*n+.1430804*r)/je),l=te((.0139322*e+.0971045*n+.7141733*r)/Xe)),new it(116*i-16,500*(s-i),200*(i-l),t.opacity)}function er(t,e,n,r){return arguments.length===1?Re(t):new it(t,e,n,r!=null?r:1)}function it(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Ne(it,er,Ve(Ge,{brighter(t){return new it(this.l+Zt*(t!=null?t:1),this.a,this.b,this.opacity)},darker(t){return new it(this.l-Zt*(t!=null?t:1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ee(e),t=Qe*ee(t),n=Xe*ee(n),new qe(ne(3.1338561*e-1.6168667*t-.4906146*n),ne(-.9787684*e+1.9161415*t+.033454*n),ne(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function te(t){return t>tr?Math.pow(t,1/3):t/Je+Ke}function ee(t){return t>Dt?t*t*t:Je*(t-Ke)}function ne(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function re(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function nr(t){if(t instanceof ct)return new ct(t.h,t.c,t.l,t.opacity);if(t instanceof it||(t=Re(t)),t.a===0&&t.b===0)return new ct(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Rn;return new ct(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ue(t,e,n,r){return arguments.length===1?nr(t):new ct(t,e,n,r!=null?r:1)}function ct(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function tn(t){if(isNaN(t.h))return new it(t.l,0,0,t.opacity);var e=t.h*Jn;return new it(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ne(ct,ue,Ve(Ge,{brighter(t){return new ct(this.h,this.c,this.l+Zt*(t!=null?t:1),this.opacity)},darker(t){return new ct(this.h,this.c,this.l-Zt*(t!=null?t:1),this.opacity)},rgb(){return tn(this).rgb()}}));function rr(t){return function(e,n){var r=t((e=ue(e)).h,(n=ue(n)).h),i=Jt(e.c,n.c),s=Jt(e.l,n.l),l=Jt(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=i(m),e.l=s(m),e.opacity=l(m),e+""}}}const ir=rr(Dn);function sr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],l;return s<i&&(l=n,n=r,r=l,l=i,i=s,s=l),t[n]=e.floor(i),t[r]=e.ceil(s),t}const ie=new Date,se=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const l=i(s),m=i.ceil(s);return s-l<m-s?l:m},i.offset=(s,l)=>(e(s=new Date(+s),l==null?1:Math.floor(l)),s),i.range=(s,l,m)=>{const M=[];if(s=i.ceil(s),m=m==null?1:Math.floor(m),!(s<l)||!(m>0))return M;let h;do M.push(h=new Date(+s)),e(s,m),t(s);while(h<s&&s<l);return M},i.filter=s=>K(l=>{if(l>=l)for(;t(l),!s(l);)l.setTime(l-1)},(l,m)=>{if(l>=l)if(m<0)for(;++m<=0;)for(;e(l,-1),!s(l););else for(;--m>=0;)for(;e(l,1),!s(l););}),n&&(i.count=(s,l)=>(ie.setTime(+s),se.setTime(+l),t(ie),t(se),Math.floor(n(ie,se))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?l=>r(l)%s===0:l=>i.count(0,l)%s===0):i)),i}const _t=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);_t.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):_t),_t.range;const lt=1e3,et=lt*60,ut=et*60,dt=ut*24,ke=dt*7,$e=dt*30,ae=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCSeconds());gt.range;const Ft=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},(t,e)=>{t.setTime(+t+e*et)},(t,e)=>(e-t)/et,t=>t.getMinutes());Ft.range;const ar=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*et)},(t,e)=>(e-t)/et,t=>t.getUTCMinutes());ar.range;const Lt=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*et)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getHours());Lt.range;const or=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCHours());or.range;const kt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*et)/dt,t=>t.getDate()-1);kt.range;const pe=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);pe.range;const cr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));cr.range;function vt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*et)/ke)}const Ot=vt(0),Et=vt(1),en=vt(2),nn=vt(3),pt=vt(4),rn=vt(5),sn=vt(6);Ot.range,Et.range,en.range,nn.range,pt.range,rn.range,sn.range;function bt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ke)}const an=bt(0),jt=bt(1),lr=bt(2),ur=bt(3),St=bt(4),dr=bt(5),fr=bt(6);an.range,jt.range,lr.range,ur.range,St.range,dr.range,fr.range;const It=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());It.range;const hr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());hr.range;const ft=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ft.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),ft.range;const Tt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Tt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),Tt.range;function gr(t,e,n,r,i,s){const l=[[gt,1,lt],[gt,5,5*lt],[gt,15,15*lt],[gt,30,30*lt],[s,1,et],[s,5,5*et],[s,15,15*et],[s,30,30*et],[i,1,ut],[i,3,3*ut],[i,6,6*ut],[i,12,12*ut],[r,1,dt],[r,2,2*dt],[n,1,ke],[e,1,$e],[e,3,3*$e],[t,1,ae]];function m(h,w,S){const b=w<h;b&&([h,w]=[w,h]);const x=S&&typeof S.range=="function"?S:M(h,w,S),V=x?x.range(h,+w+1):[];return b?V.reverse():V}function M(h,w,S){const b=Math.abs(w-h)/S,x=On(([,,U])=>U).right(l,b);if(x===l.length)return t.every(Se(h/ae,w/ae,S));if(x===0)return _t.every(Math.max(Se(h,w,S),1));const[V,g]=l[b/l[x-1][2]<l[x][2]/b?x-1:x];return V.every(g)}return[m,M]}const[mr,yr]=gr(ft,It,Ot,kt,Lt,Ft);function oe(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ce(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $t(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function kr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,l=t.shortDays,m=t.months,M=t.shortMonths,h=At(i),w=Ut(i),S=At(s),b=Ut(s),x=At(l),V=Ut(l),g=At(m),U=Ut(m),W=At(M),H=Ut(M),B={a:I,A:a,b:D,B:E,c:null,d:Ie,e:Ie,f:zr,g:Xr,G:Jr,H:Or,I:Hr,j:Wr,L:on,m:Pr,M:Br,p:P,q:F,Q:We,s:ze,S:Nr,u:Vr,U:qr,V:Gr,w:Zr,W:jr,x:null,X:null,y:Qr,Y:Kr,Z:Rr,"%":He},N={a:q,A,b:tt,B:st,c:null,d:Oe,e:Oe,f:ri,g:hi,G:mi,H:ti,I:ei,j:ni,L:ln,m:ii,M:si,p:ht,q:mt,Q:We,s:ze,S:ai,u:oi,U:ci,V:li,w:ui,W:di,x:null,X:null,y:fi,Y:gi,Z:yi,"%":He},Q={a:_,A:T,b:o,B:f,c:u,d:Le,e:Le,f:Fr,g:Fe,G:Ue,H:Ee,I:Ee,j:Yr,L:Ur,m:Sr,M:$r,p:Y,q:Mr,Q:Er,s:Ir,S:Ar,u:xr,U:wr,V:Cr,w:br,W:Dr,x:v,X:c,y:Fe,Y:Ue,Z:_r,"%":Lr};B.x=p(n,B),B.X=p(r,B),B.c=p(e,B),N.x=p(n,N),N.X=p(r,N),N.c=p(e,N);function p(y,C){return function($){var d=[],Z=-1,O=0,j=y.length,G,nt,yt;for($ instanceof Date||($=new Date(+$));++Z<j;)y.charCodeAt(Z)===37&&(d.push(y.slice(O,Z)),(nt=Ae[G=y.charAt(++Z)])!=null?G=y.charAt(++Z):nt=G==="e"?" ":"0",(yt=C[G])&&(G=yt($,nt)),d.push(G),O=Z+1);return d.push(y.slice(O,Z)),d.join("")}}function L(y,C){return function($){var d=$t(1900,void 0,1),Z=k(d,y,$+="",0),O,j;if(Z!=$.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(d.s*1e3+("L"in d?d.L:0));if(C&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+d.p*12),d.m===void 0&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(O=ce($t(d.y,0,1)),j=O.getUTCDay(),O=j>4||j===0?jt.ceil(O):jt(O),O=pe.offset(O,(d.V-1)*7),d.y=O.getUTCFullYear(),d.m=O.getUTCMonth(),d.d=O.getUTCDate()+(d.w+6)%7):(O=oe($t(d.y,0,1)),j=O.getDay(),O=j>4||j===0?Et.ceil(O):Et(O),O=kt.offset(O,(d.V-1)*7),d.y=O.getFullYear(),d.m=O.getMonth(),d.d=O.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),j="Z"in d?ce($t(d.y,0,1)).getUTCDay():oe($t(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+d.W*7-(j+5)%7:d.w+d.U*7-(j+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,ce(d)):oe(d)}}function k(y,C,$,d){for(var Z=0,O=C.length,j=$.length,G,nt;Z<O;){if(d>=j)return-1;if(G=C.charCodeAt(Z++),G===37){if(G=C.charAt(Z++),nt=Q[G in Ae?C.charAt(Z++):G],!nt||(d=nt(y,$,d))<0)return-1}else if(G!=$.charCodeAt(d++))return-1}return d}function Y(y,C,$){var d=h.exec(C.slice($));return d?(y.p=w.get(d[0].toLowerCase()),$+d[0].length):-1}function _(y,C,$){var d=x.exec(C.slice($));return d?(y.w=V.get(d[0].toLowerCase()),$+d[0].length):-1}function T(y,C,$){var d=S.exec(C.slice($));return d?(y.w=b.get(d[0].toLowerCase()),$+d[0].length):-1}function o(y,C,$){var d=W.exec(C.slice($));return d?(y.m=H.get(d[0].toLowerCase()),$+d[0].length):-1}function f(y,C,$){var d=g.exec(C.slice($));return d?(y.m=U.get(d[0].toLowerCase()),$+d[0].length):-1}function u(y,C,$){return k(y,e,C,$)}function v(y,C,$){return k(y,n,C,$)}function c(y,C,$){return k(y,r,C,$)}function I(y){return l[y.getDay()]}function a(y){return s[y.getDay()]}function D(y){return M[y.getMonth()]}function E(y){return m[y.getMonth()]}function P(y){return i[+(y.getHours()>=12)]}function F(y){return 1+~~(y.getMonth()/3)}function q(y){return l[y.getUTCDay()]}function A(y){return s[y.getUTCDay()]}function tt(y){return M[y.getUTCMonth()]}function st(y){return m[y.getUTCMonth()]}function ht(y){return i[+(y.getUTCHours()>=12)]}function mt(y){return 1+~~(y.getUTCMonth()/3)}return{format:function(y){var C=p(y+="",B);return C.toString=function(){return y},C},parse:function(y){var C=L(y+="",!1);return C.toString=function(){return y},C},utcFormat:function(y){var C=p(y+="",N);return C.toString=function(){return y},C},utcParse:function(y){var C=L(y+="",!0);return C.toString=function(){return y},C}}}var Ae={"-":"",_:" ",0:"0"},J=/^\s*\d+/,pr=/^%/,Tr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function vr(t){return t.replace(Tr,"\\$&")}function At(t){return new RegExp("^(?:"+t.map(vr).join("|")+")","i")}function Ut(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function br(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=J.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Fe(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _r(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Mr(t,e,n){var r=J.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Sr(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Le(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function $r(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=J.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=J.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=J.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Lr(t,e,n){var r=pr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Er(t,e,n){var r=J.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=J.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ie(t,e){return z(t.getDate(),e,2)}function Or(t,e){return z(t.getHours(),e,2)}function Hr(t,e){return z(t.getHours()%12||12,e,2)}function Wr(t,e){return z(1+kt.count(ft(t),t),e,3)}function on(t,e){return z(t.getMilliseconds(),e,3)}function zr(t,e){return on(t,e)+"000"}function Pr(t,e){return z(t.getMonth()+1,e,2)}function Br(t,e){return z(t.getMinutes(),e,2)}function Nr(t,e){return z(t.getSeconds(),e,2)}function Vr(t){var e=t.getDay();return e===0?7:e}function qr(t,e){return z(Ot.count(ft(t)-1,t),e,2)}function cn(t){var e=t.getDay();return e>=4||e===0?pt(t):pt.ceil(t)}function Gr(t,e){return t=cn(t),z(pt.count(ft(t),t)+(ft(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function jr(t,e){return z(Et.count(ft(t)-1,t),e,2)}function Qr(t,e){return z(t.getFullYear()%100,e,2)}function Xr(t,e){return t=cn(t),z(t.getFullYear()%100,e,2)}function Kr(t,e){return z(t.getFullYear()%1e4,e,4)}function Jr(t,e){var n=t.getDay();return t=n>=4||n===0?pt(t):pt.ceil(t),z(t.getFullYear()%1e4,e,4)}function Rr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function Oe(t,e){return z(t.getUTCDate(),e,2)}function ti(t,e){return z(t.getUTCHours(),e,2)}function ei(t,e){return z(t.getUTCHours()%12||12,e,2)}function ni(t,e){return z(1+pe.count(Tt(t),t),e,3)}function ln(t,e){return z(t.getUTCMilliseconds(),e,3)}function ri(t,e){return ln(t,e)+"000"}function ii(t,e){return z(t.getUTCMonth()+1,e,2)}function si(t,e){return z(t.getUTCMinutes(),e,2)}function ai(t,e){return z(t.getUTCSeconds(),e,2)}function oi(t){var e=t.getUTCDay();return e===0?7:e}function ci(t,e){return z(an.count(Tt(t)-1,t),e,2)}function un(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function li(t,e){return t=un(t),z(St.count(Tt(t),t)+(Tt(t).getUTCDay()===4),e,2)}function ui(t){return t.getUTCDay()}function di(t,e){return z(jt.count(Tt(t)-1,t),e,2)}function fi(t,e){return z(t.getUTCFullYear()%100,e,2)}function hi(t,e){return t=un(t),z(t.getUTCFullYear()%100,e,2)}function gi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function yi(){return"+0000"}function He(){return"%"}function We(t){return+t}function ze(t){return Math.floor(+t/1e3)}var wt,Qt;ki({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 ki(t){return wt=kr(t),Qt=wt.format,wt.parse,wt.utcFormat,wt.utcParse,wt}function pi(t){return new Date(t)}function Ti(t){return t instanceof Date?+t:+new Date(+t)}function dn(t,e,n,r,i,s,l,m,M,h){var w=Hn(),S=w.invert,b=w.domain,x=h(".%L"),V=h(":%S"),g=h("%I:%M"),U=h("%I %p"),W=h("%a %d"),H=h("%b %d"),B=h("%B"),N=h("%Y");function Q(p){return(M(p)<p?x:m(p)<p?V:l(p)<p?g:s(p)<p?U:r(p)<p?i(p)<p?W:H:n(p)<p?B:N)(p)}return w.invert=function(p){return new Date(S(p))},w.domain=function(p){return arguments.length?b(Array.from(p,Ti)):b().map(pi)},w.ticks=function(p){var L=b();return t(L[0],L[L.length-1],p!=null?p:10)},w.tickFormat=function(p,L){return L==null?Q:h(L)},w.nice=function(p){var L=b();return(!p||typeof p.range!="function")&&(p=e(L[0],L[L.length-1],p!=null?p:10)),p?b(sr(L,p)):w},w.copy=function(){return Wn(w,dn(t,e,n,r,i,s,l,m,M,h))},w}function vi(){return Pn.apply(dn(mr,yr,ft,It,Ot,kt,Lt,Ft,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var fn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){var n="day";return function(r,i,s){var l=function(h){return h.add(4-h.isoWeekday(),n)},m=i.prototype;m.isoWeekYear=function(){return l(this).year()},m.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),n);var w,S,b,x,V=l(this),g=(w=this.isoWeekYear(),S=this.$u,b=(S?s.utc:s)().year(w).startOf("year"),x=4-b.isoWeekday(),b.isoWeekday()>4&&(x+=7),b.add(x,n));return V.diff(g,"week")+1},m.isoWeekday=function(h){return this.$utils().u(h)?this.day()||7:this.day(this.day()%7?h:h-7)};var M=m.startOf;m.startOf=function(h,w){var S=this.$utils(),b=!!S.u(w)||w;return S.p(h)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(h,w)}}})})(fn);var bi=fn.exports;const xi=ye(bi);var hn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,m={},M=function(g){return(g=+g)+(g>68?1900:2e3)},h=function(g){return function(U){this[g]=+U}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(U){if(!U||U==="Z")return 0;var W=U.match(/([+-]|\d\d)/g),H=60*W[1]+(+W[2]||0);return H===0?0:W[0]==="+"?-H:H}(g)}],S=function(g){var U=m[g];return U&&(U.indexOf?U:U.s.concat(U.f))},b=function(g,U){var W,H=m.meridiem;if(H){for(var B=1;B<=24;B+=1)if(g.indexOf(H(B,0,U))>-1){W=B>12;break}}else W=g===(U?"pm":"PM");return W},x={A:[l,function(g){this.afternoon=b(g,!1)}],a:[l,function(g){this.afternoon=b(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[i,h("day")],Do:[l,function(g){var U=m.ordinal,W=g.match(/\d+/);if(this.day=W[0],U)for(var H=1;H<=31;H+=1)U(H).replace(/\[|\]/g,"")===g&&(this.day=H)}],M:[s,h("month")],MM:[i,h("month")],MMM:[l,function(g){var U=S("months"),W=(S("monthsShort")||U.map(function(H){return H.slice(0,3)})).indexOf(g)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[l,function(g){var U=S("months").indexOf(g)+1;if(U<1)throw new Error;this.month=U%12||U}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(g){this.year=M(g)}],YYYY:[/\d{4}/,h("year")],Z:w,ZZ:w};function V(g){var U,W;U=g,W=m&&m.formats;for(var H=(g=U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Y,_,T){var o=T&&T.toUpperCase();return _||W[T]||n[T]||W[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,u,v){return u||v.slice(1)})})).match(r),B=H.length,N=0;N<B;N+=1){var Q=H[N],p=x[Q],L=p&&p[0],k=p&&p[1];H[N]=k?{regex:L,parser:k}:Q.replace(/^\[|\]$/g,"")}return function(Y){for(var _={},T=0,o=0;T<B;T+=1){var f=H[T];if(typeof f=="string")o+=f.length;else{var u=f.regex,v=f.parser,c=Y.slice(o),I=u.exec(c)[0];v.call(_,I),Y=Y.replace(I,"")}}return function(a){var D=a.afternoon;if(D!==void 0){var E=a.hours;D?E<12&&(a.hours+=12):E===12&&(a.hours=0),delete a.afternoon}}(_),_}}return function(g,U,W){W.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(M=g.parseTwoDigitYear);var H=U.prototype,B=H.parse;H.parse=function(N){var Q=N.date,p=N.utc,L=N.args;this.$u=p;var k=L[1];if(typeof k=="string"){var Y=L[2]===!0,_=L[3]===!0,T=Y||_,o=L[2];_&&(o=L[2]),m=this.$locale(),!Y&&o&&(m=W.Ls[o]),this.$d=function(c,I,a){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*c);var D=V(I)(c),E=D.year,P=D.month,F=D.day,q=D.hours,A=D.minutes,tt=D.seconds,st=D.milliseconds,ht=D.zone,mt=new Date,y=F||(E||P?1:mt.getDate()),C=E||mt.getFullYear(),$=0;E&&!P||($=P>0?P-1:mt.getMonth());var d=q||0,Z=A||0,O=tt||0,j=st||0;return ht?new Date(Date.UTC(C,$,y,d,Z,O,j+60*ht.offset*1e3)):a?new Date(Date.UTC(C,$,y,d,Z,O,j)):new Date(C,$,y,d,Z,O,j)}catch{return new Date("")}}(Q,k,p),this.init(),o&&o!==!0&&(this.$L=this.locale(o).$L),T&&Q!=this.format(k)&&(this.$d=new Date("")),m={}}else if(k instanceof Array)for(var f=k.length,u=1;u<=f;u+=1){L[1]=k[u-1];var v=W.apply(this,L);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}u===f&&(this.$d=new Date(""))}else B.call(this,N)}}})})(hn);var wi=hn.exports;const Ci=ye(wi);var gn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(me,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(l){var m=this,M=this.$locale();if(!this.isValid())return s.bind(this)(l);var h=this.$utils(),w=(l||"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(S){switch(S){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return M.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return M.ordinal(m.week(),"W");case"w":case"ww":return h.s(m.week(),S==="w"?1:2,"0");case"W":case"WW":return h.s(m.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return h.s(String(m.$H===0?24:m.$H),S==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return S}});return s.bind(this)(w)}}})})(gn);var Di=gn.exports;const _i=ye(Di);var de=function(){var t=function(T,o,f,u){for(f=f||{},u=T.length;u--;f[T[u]]=o);return f},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],l=[1,29],m=[1,30],M=[1,31],h=[1,9],w=[1,10],S=[1,11],b=[1,12],x=[1,13],V=[1,14],g=[1,15],U=[1,16],W=[1,18],H=[1,19],B=[1,20],N=[1,21],Q=[1,22],p=[1,24],L=[1,32],k={trace:function(){},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,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$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",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"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],[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],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(T,o,f,u,v,c,I){var a=c.length-1;switch(v){case 1:return c[a-1];case 2:this.$=[];break;case 3:c[a-1].push(c[a]),this.$=c[a-1];break;case 4:case 5:this.$=c[a];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[a].substr(11)),this.$=c[a].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[a].substr(18);break;case 17:u.TopAxis(),this.$=c[a].substr(8);break;case 18:u.setAxisFormat(c[a].substr(11)),this.$=c[a].substr(11);break;case 19:u.setTickInterval(c[a].substr(13)),this.$=c[a].substr(13);break;case 20:u.setExcludes(c[a].substr(9)),this.$=c[a].substr(9);break;case 21:u.setIncludes(c[a].substr(9)),this.$=c[a].substr(9);break;case 22:u.setTodayMarker(c[a].substr(12)),this.$=c[a].substr(12);break;case 24:u.setDiagramTitle(c[a].substr(6)),this.$=c[a].substr(6);break;case 25:this.$=c[a].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[a].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[a].substr(8)),this.$=c[a].substr(8);break;case 30:u.addTask(c[a-1],c[a]),this.$="task";break;case 31:this.$=c[a-1],u.setClickEvent(c[a-1],c[a],null);break;case 32:this.$=c[a-2],u.setClickEvent(c[a-2],c[a-1],c[a]);break;case 33:this.$=c[a-2],u.setClickEvent(c[a-2],c[a-1],null),u.setLink(c[a-2],c[a]);break;case 34:this.$=c[a-3],u.setClickEvent(c[a-3],c[a-2],c[a-1]),u.setLink(c[a-3],c[a]);break;case 35:this.$=c[a-2],u.setClickEvent(c[a-2],c[a],null),u.setLink(c[a-2],c[a-1]);break;case 36:this.$=c[a-3],u.setClickEvent(c[a-3],c[a-1],c[a]),u.setLink(c[a-3],c[a-2]);break;case 37:this.$=c[a-1],u.setLink(c[a-1],c[a]);break;case 38:case 44:this.$=c[a-1]+" "+c[a];break;case 39:case 40:case 42:this.$=c[a-2]+" "+c[a-1]+" "+c[a];break;case 41:case 43:this.$=c[a-3]+" "+c[a-2]+" "+c[a-1]+" "+c[a];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:l,17:m,18:M,19:h,20:w,21:S,22:b,23:x,24:V,25:g,26:U,27:W,28:H,30:B,32:N,33:Q,34:23,35:p,37:L},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:l,17:m,18:M,19:h,20:w,21:S,22:b,23:x,24:V,25:g,26:U,27:W,28:H,30:B,32:N,33:Q,34:23,35:p,37:L},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(T,o){if(o.recoverable)this.trace(T);else{var f=new Error(T);throw f.hash=o,f}},parse:function(T){var o=this,f=[0],u=[],v=[null],c=[],I=this.table,a="",D=0,E=0,P=2,F=1,q=c.slice.call(arguments,1),A=Object.create(this.lexer),tt={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(tt.yy[st]=this.yy[st]);A.setInput(T,tt.yy),tt.yy.lexer=A,tt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var ht=A.yylloc;c.push(ht);var mt=A.options&&A.options.ranges;typeof tt.yy.parseError=="function"?this.parseError=tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function y(){var at;return at=u.pop()||A.lex()||F,typeof at!="number"&&(at instanceof Array&&(u=at,at=u.pop()),at=o.symbols_[at]||at),at}for(var C,$,d,Z,O={},j,G,nt,yt;;){if($=f[f.length-1],this.defaultActions[$]?d=this.defaultActions[$]:((C===null||typeof C>"u")&&(C=y()),d=I[$]&&I[$][C]),typeof d>"u"||!d.length||!d[0]){var Kt="";yt=[];for(j in I[$])this.terminals_[j]&&j>P&&yt.push("'"+this.terminals_[j]+"'");A.showPosition?Kt="Parse error on line "+(D+1)+":\n"+A.showPosition()+"\nExpecting "+yt.join(", ")+", got '"+(this.terminals_[C]||C)+"'":Kt="Parse error on line "+(D+1)+": Unexpected "+(C==F?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(Kt,{text:A.match,token:this.terminals_[C]||C,line:A.yylineno,loc:ht,expected:yt})}if(d[0]instanceof Array&&d.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+C);switch(d[0]){case 1:f.push(C),v.push(A.yytext),c.push(A.yylloc),f.push(d[1]),C=null,E=A.yyleng,a=A.yytext,D=A.yylineno,ht=A.yylloc;break;case 2:if(G=this.productions_[d[1]][1],O.$=v[v.length-G],O._$={first_line:c[c.length-(G||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(G||1)].first_column,last_column:c[c.length-1].last_column},mt&&(O._$.range=[c[c.length-(G||1)].range[0],c[c.length-1].range[1]]),Z=this.performAction.apply(O,[a,E,D,tt.yy,d[1],v,c].concat(q)),typeof Z<"u")return Z;G&&(f=f.slice(0,-1*G*2),v=v.slice(0,-1*G),c=c.slice(0,-1*G)),f.push(this.productions_[d[1]][0]),v.push(O.$),c.push(O._$),nt=I[f[f.length-2]][f[f.length-1]],f.push(nt);break;case 3:return!0}}return!0}},Y=function(){var T={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(o,f){return this.yy=f||this.yy||{},this._input=o,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},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.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),o},unput:function(o){var f=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var v=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),u.length-1&&(this.yylineno-=u.length-1);var c=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:u?(u.length===v.length?this.yylloc.first_column:0)+v[v.length-u.length].length-u[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+"\n"+f+"^"},test_match:function(o,f){var u,v,c;if(this.options.backtrack_lexer&&(c={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&&(c.yylloc.range=this.yylloc.range.slice(0))),v=o[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],u=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var I in c)this[I]=c[I];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,f,u,v;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),I=0;I<c.length;I++)if(u=this._input.match(this.rules[c[I]]),u&&(!f||u[0].length>f[0].length)){if(f=u,v=I,this.options.backtrack_lexer){if(o=this.test_match(u,c[I]),o!==!1)return o;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(o=this.test_match(f,c[v]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,f,u,v){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;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 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;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"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},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,/^(?:\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],inclusive:!0}}};return T}();k.lexer=Y;function _(){this.yy={}}return _.prototype=k,k.Parser=_,new _}();de.parser=de;const Mi=de;R.extend(xi),R.extend(Ci),R.extend(_i);let rt="",Te="",ve,be="",Ht=[],Wt=[],xe={},we=[],Xt=[],Yt="",Ce="";const mn=["active","done","crit","milestone"];let De=[],zt=!1,_e=!1,Me="sunday",fe=0;const Si=function(){we=[],Xt=[],Yt="",De=[],Vt=0,ge=void 0,qt=void 0,X=[],rt="",Te="",Ce="",ve=void 0,be="",Ht=[],Wt=[],zt=!1,_e=!1,fe=0,xe={},Un(),Me="sunday"},Yi=function(t){Te=t},$i=function(){return Te},Ai=function(t){ve=t},Ui=function(){return ve},Fi=function(t){be=t},Li=function(){return be},Ei=function(t){rt=t},Ii=function(){zt=!0},Oi=function(){return zt},Hi=function(){_e=!0},Wi=function(){return _e},zi=function(t){Ce=t},Pi=function(){return Ce},Bi=function(){return rt},Ni=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},Vi=function(){return Ht},qi=function(t){Wt=t.toLowerCase().split(/[\s,]+/)},Gi=function(){return Wt},Zi=function(){return xe},ji=function(t){Yt=t,we.push(t)},Qi=function(){return we},Xi=function(){let t=Pe();const e=10;let n=0;for(;!t&&n<e;)t=Pe(),n++;return Xt=X,Xt},yn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},Ki=function(t){Me=t},Ji=function(){return Me},kn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=R(t.startTime):i=R(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=R(t.endTime):s=R(t.endTime,e,!0);const[l,m]=Ri(i,s,e,n,r);t.endTime=l.toDate(),t.renderEndTime=m},Ri=function(t,e,n,r,i){let s=!1,l=null;for(;t<=e;)s||(l=e.toDate()),s=yn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,l]},he=function(t,e,n){n=n.trim();const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(r!==null){let s=null;for(const m of r.groups.ids.split(" ")){let M=xt(m);M!==void 0&&(!s||M.endTime>s.endTime)&&(s=M)}if(s)return s.endTime;const l=new Date;return l.setHours(0,0,0,0),l}let i=R(n,e.trim(),!0);if(i.isValid())return i.toDate();{Gt.debug("Invalid date:"+n),Gt.debug("With date format:"+e.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}},pn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},Tn=function(t,e,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let h=null;for(const S of i.groups.ids.split(" ")){let b=xt(S);b!==void 0&&(!h||b.startTime<h.startTime)&&(h=b)}if(h)return h.startTime;const w=new Date;return w.setHours(0,0,0,0),w}let s=R(n,e.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let l=R(t);const[m,M]=pn(n);if(!Number.isNaN(m)){const h=l.add(m,M);h.isValid()&&(l=h)}return l.toDate()};let Vt=0;const Mt=function(t){return t===void 0?(Vt=Vt+1,"task"+Vt):t},ts=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};wn(r,i,mn);for(let l=0;l<r.length;l++)r[l]=r[l].trim();let s="";switch(r.length){case 1:i.id=Mt(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Mt(),i.startTime=he(void 0,rt,r[0]),s=r[1];break;case 3:i.id=Mt(r[0]),i.startTime=he(void 0,rt,r[1]),s=r[2];break}return s&&(i.endTime=Tn(i.startTime,rt,s,zt),i.manualEndTime=R(s,"YYYY-MM-DD",!0).isValid(),kn(i,rt,Wt,Ht)),i},es=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};wn(r,i,mn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Mt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Mt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Mt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,qt,X=[];const vn={},ns=function(t,e){const n={section:Yt,type:Yt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=es(qt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=qt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=fe,fe++;const i=X.push(n);qt=n.id,vn[n.id]=i-1},xt=function(t){const e=vn[t];return X[e]},rs=function(t,e){const n={section:Yt,type:Yt,description:t,task:t,classes:[]},r=ts(ge,e);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,ge=n,Xt.push(n)},Pe=function(){const t=function(n){const r=X[n];let i="";switch(X[n].raw.startTime.type){case"prevTaskEnd":{const s=xt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=he(void 0,rt,X[n].raw.startTime.startData),i&&(X[n].startTime=i);break}return X[n].startTime&&(X[n].endTime=Tn(X[n].startTime,rt,X[n].raw.endTime.data,zt),X[n].endTime&&(X[n].processed=!0,X[n].manualEndTime=R(X[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),kn(X[n],rt,Wt,Ht))),X[n].processed};let e=!0;for(const[n,r]of X.entries())t(n),e=e&&r.processed;return e},is=function(t,e){let n=e;Ct().securityLevel!=="loose"&&(n=Fn(e)),t.split(",").forEach(function(r){xt(r)!==void 0&&(xn(r,()=>{window.open(n,"_self")}),xe[r]=n)}),bn(t,"clickable")},bn=function(t,e){t.split(",").forEach(function(n){let r=xt(n);r!==void 0&&r.classes.push(e)})},ss=function(t,e,n){if(Ct().securityLevel!=="loose"||e===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.charAt(0)==='"'&&s.charAt(s.length-1)==='"'&&(s=s.substr(1,s.length-2)),r[i]=s}}r.length===0&&r.push(t),xt(t)!==void 0&&xn(t,()=>{In.runFunc(e,...r)})},xn=function(t,e){De.push(function(){const n=document.querySelector('[id="'.concat(t,'"]'));n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector('[id="'.concat(t,'-text"]'));n!==null&&n.addEventListener("click",function(){e()})})},as=function(t,e,n){t.split(",").forEach(function(r){ss(r,e,n)}),bn(t,"clickable")},os=function(t){De.forEach(function(e){e(t)})},cs={getConfig:()=>Ct().gantt,clear:Si,setDateFormat:Ei,getDateFormat:Bi,enableInclusiveEndDates:Ii,endDatesAreInclusive:Oi,enableTopAxis:Hi,topAxisEnabled:Wi,setAxisFormat:Yi,getAxisFormat:$i,setTickInterval:Ai,getTickInterval:Ui,setTodayMarker:Fi,getTodayMarker:Li,setAccTitle:_n,getAccTitle:Mn,setDiagramTitle:Sn,getDiagramTitle:Yn,setDisplayMode:zi,getDisplayMode:Pi,setAccDescription:$n,getAccDescription:An,addSection:ji,getSections:Qi,getTasks:Xi,addTask:ns,findTaskById:xt,addTaskOrg:rs,setIncludes:Ni,getIncludes:Vi,setExcludes:qi,getExcludes:Gi,setClickEvent:as,setLink:is,getLinks:Zi,bindFunctions:os,parseDuration:pn,isInvalidDate:yn,setWeekday:Ki,getWeekday:Ji};function wn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",l=new RegExp(s);t[0].match(l)&&(e[i]=!0,t.shift(1),r=!0)})}const ls=function(){Gt.debug("Something is calling, setConf, remove the call")},Be={monday:Et,tuesday:en,wednesday:nn,thursday:pt,friday:rn,saturday:sn,sunday:Ot},us=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,l)=>s.startTime-l.startTime||s.order-l.order),i=0;for(const s of r)for(let l=0;l<n.length;l++)if(s.startTime>=n[l]){n[l]=s.endTime,s.order=l+e,l>i&&(i=l);break}return i};let ot;const ds=function(t,e,n,r){const i=Ct().gantt,s=Ct().securityLevel;let l;s==="sandbox"&&(l=Pt("#i"+e));const m=s==="sandbox"?Pt(l.nodes()[0].contentDocument.body):Pt("body"),M=s==="sandbox"?l.nodes()[0].contentDocument:document,h=M.getElementById(e);ot=h.parentElement.offsetWidth,ot===void 0&&(ot=1200),i.useWidth!==void 0&&(ot=i.useWidth);const w=r.db.getTasks();let S=[];for(const k of w)S.push(k.type);S=L(S);const b={};let x=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const k={};for(const _ of w)k[_.section]===void 0?k[_.section]=[_]:k[_.section].push(_);let Y=0;for(const _ of Object.keys(k)){const T=us(k[_],Y)+1;Y+=T,x+=T*(i.barHeight+i.barGap),b[_]=T}}else{x+=w.length*(i.barHeight+i.barGap);for(const k of S)b[k]=w.filter(Y=>Y.type===k).length}h.setAttribute("viewBox","0 0 "+ot+" "+x);const V=m.select('[id="'.concat(e,'"]')),g=vi().domain([Nn(w,function(k){return k.startTime}),Bn(w,function(k){return k.endTime})]).rangeRound([0,ot-i.leftPadding-i.rightPadding]);function U(k,Y){const _=k.startTime,T=Y.startTime;let o=0;return _>T?o=1:_<T&&(o=-1),o}w.sort(U),W(w,ot,x),Ln(V,x,ot,i.useMaxWidth),V.append("text").text(r.db.getDiagramTitle()).attr("x",ot/2).attr("y",i.titleTopMargin).attr("class","titleText");function W(k,Y,_){const T=i.barHeight,o=T+i.barGap,f=i.topPadding,u=i.leftPadding,v=zn().domain([0,S.length]).range(["#00B9FA","#F95002"]).interpolate(ir);B(o,f,u,Y,_,k,r.db.getExcludes(),r.db.getIncludes()),N(u,f,Y,_),H(k,o,f,u,T,v,Y),Q(o,f),p(u,f,Y,_)}function H(k,Y,_,T,o,f,u){const v=[...new Set(k.map(a=>a.order))].map(a=>k.find(D=>D.order===a));V.append("g").selectAll("rect").data(v).enter().append("rect").attr("x",0).attr("y",function(a,D){return D=a.order,D*Y+_-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",Y).attr("class",function(a){for(const[D,E]of S.entries())if(a.type===E)return"section section"+D%i.numberSectionStyles;return"section section0"});const c=V.append("g").selectAll("rect").data(k).enter(),I=r.db.getLinks();if(c.append("rect").attr("id",function(a){return a.id}).attr("rx",3).attr("ry",3).attr("x",function(a){return a.milestone?g(a.startTime)+T+.5*(g(a.endTime)-g(a.startTime))-.5*o:g(a.startTime)+T}).attr("y",function(a,D){return D=a.order,D*Y+_}).attr("width",function(a){return a.milestone?o:g(a.renderEndTime||a.endTime)-g(a.startTime)}).attr("height",o).attr("transform-origin",function(a,D){return D=a.order,(g(a.startTime)+T+.5*(g(a.endTime)-g(a.startTime))).toString()+"px "+(D*Y+_+.5*o).toString()+"px"}).attr("class",function(a){const D="task";let E="";a.classes.length>0&&(E=a.classes.join(" "));let P=0;for(const[q,A]of S.entries())a.type===A&&(P=q%i.numberSectionStyles);let F="";return a.active?a.crit?F+=" activeCrit":F=" active":a.done?a.crit?F=" doneCrit":F=" done":a.crit&&(F+=" crit"),F.length===0&&(F=" task"),a.milestone&&(F=" milestone "+F),F+=P,F+=" "+E,D+F}),c.append("text").attr("id",function(a){return a.id+"-text"}).text(function(a){return a.task}).attr("font-size",i.fontSize).attr("x",function(a){let D=g(a.startTime),E=g(a.renderEndTime||a.endTime);a.milestone&&(D+=.5*(g(a.endTime)-g(a.startTime))-.5*o),a.milestone&&(E=D+o);const P=this.getBBox().width;return P>E-D?E+P+1.5*i.leftPadding>u?D+T-5:E+T+5:(E-D)/2+D+T}).attr("y",function(a,D){return D=a.order,D*Y+i.barHeight/2+(i.fontSize/2-2)+_}).attr("text-height",o).attr("class",function(a){const D=g(a.startTime);let E=g(a.endTime);a.milestone&&(E=D+o);const P=this.getBBox().width;let F="";a.classes.length>0&&(F=a.classes.join(" "));let q=0;for(const[tt,st]of S.entries())a.type===st&&(q=tt%i.numberSectionStyles);let A="";return a.active&&(a.crit?A="activeCritText"+q:A="activeText"+q),a.done?a.crit?A=A+" doneCritText"+q:A=A+" doneText"+q:a.crit&&(A=A+" critText"+q),a.milestone&&(A+=" milestoneText"),P>E-D?E+P+1.5*i.leftPadding>u?F+" taskTextOutsideLeft taskTextOutside"+q+" "+A:F+" taskTextOutsideRight taskTextOutside"+q+" "+A+" width-"+P:F+" taskText taskText"+q+" "+A+" width-"+P}),Ct().securityLevel==="sandbox"){let a;a=Pt("#i"+e);const D=a.nodes()[0].contentDocument;c.filter(function(E){return I[E.id]!==void 0}).each(function(E){var P=D.querySelector("#"+E.id),F=D.querySelector("#"+E.id+"-text");const q=P.parentNode;var A=D.createElement("a");A.setAttribute("xlink:href",I[E.id]),A.setAttribute("target","_top"),q.appendChild(A),A.appendChild(P),A.appendChild(F)})}}function B(k,Y,_,T,o,f,u,v){if(u.length===0&&v.length===0)return;let c,I;for(const{startTime:F,endTime:q}of f)(c===void 0||F<c)&&(c=F),(I===void 0||q>I)&&(I=q);if(!c||!I)return;if(R(I).diff(R(c),"year")>5){Gt.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 a=r.db.getDateFormat(),D=[];let E=null,P=R(c);for(;P.valueOf()<=I;)r.db.isInvalidDate(P,a,u,v)?E?E.end=P:E={start:P,end:P}:E&&(D.push(E),E=null),P=P.add(1,"d");V.append("g").selectAll("rect").data(D).enter().append("rect").attr("id",function(F){return"exclude-"+F.start.format("YYYY-MM-DD")}).attr("x",function(F){return g(F.start)+_}).attr("y",i.gridLineStartPadding).attr("width",function(F){const q=F.end.add(1,"day");return g(q)-g(F.start)}).attr("height",o-Y-i.gridLineStartPadding).attr("transform-origin",function(F,q){return(g(F.start)+_+.5*(g(F.end)-g(F.start))).toString()+"px "+(q*k+.5*o).toString()+"px"}).attr("class","exclude-range")}function N(k,Y,_,T){let o=Kn(g).tickSize(-T+Y+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const f=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(f!==null){const u=f[1],v=f[2],c=r.db.getWeekday()||i.weekday;switch(v){case"millisecond":o.ticks(_t.every(u));break;case"second":o.ticks(gt.every(u));break;case"minute":o.ticks(Ft.every(u));break;case"hour":o.ticks(Lt.every(u));break;case"day":o.ticks(kt.every(u));break;case"week":o.ticks(Be[c].every(u));break;case"month":o.ticks(It.every(u));break}}if(V.append("g").attr("class","grid").attr("transform","translate("+k+", "+(T-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Xn(g).tickSize(-T+Y+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(f!==null){const v=f[1],c=f[2],I=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(_t.every(v));break;case"second":u.ticks(gt.every(v));break;case"minute":u.ticks(Ft.every(v));break;case"hour":u.ticks(Lt.every(v));break;case"day":u.ticks(kt.every(v));break;case"week":u.ticks(Be[I].every(v));break;case"month":u.ticks(It.every(v));break}}V.append("g").attr("class","grid").attr("transform","translate("+k+", "+Y+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Q(k,Y){let _=0;const T=Object.keys(b).map(o=>[o,b[o]]);V.append("g").selectAll("text").data(T).enter().append(function(o){const f=o[0].split(En.lineBreakRegex),u=-(f.length-1)/2,v=M.createElementNS("http://www.w3.org/2000/svg","text");v.setAttribute("dy",u+"em");for(const[c,I]of f.entries()){const a=M.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),c>0&&a.setAttribute("dy","1em"),a.textContent=I,v.appendChild(a)}return v}).attr("x",10).attr("y",function(o,f){if(f>0)for(let u=0;u<f;u++)return _+=T[f-1][1],o[1]*k/2+_*k+Y;else return o[1]*k/2+Y}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[f,u]of S.entries())if(o[0]===u)return"sectionTitle sectionTitle"+f%i.numberSectionStyles;return"sectionTitle"})}function p(k,Y,_,T){const o=r.db.getTodayMarker();if(o==="off")return;const f=V.append("g").attr("class","today"),u=new Date,v=f.append("line");v.attr("x1",g(u)+k).attr("x2",g(u)+k).attr("y1",i.titleTopMargin).attr("y2",T-i.titleTopMargin).attr("class","today"),o!==""&&v.attr("style",o.replace(/,/g,";"))}function L(k){const Y={},_=[];for(let T=0,o=k.length;T<o;++T)Object.prototype.hasOwnProperty.call(Y,k[T])||(Y[k[T]]=!0,_.push(k[T]));return _}},fs={setConf:ls,draw:ds},hs=t=>'\n  .mermaid-main-font {\n    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n  }\n\n  .exclude-range {\n    fill: '.concat(t.excludeBkgColor,";\n  }\n\n  .section {\n    stroke: none;\n    opacity: 0.2;\n  }\n\n  .section0 {\n    fill: ").concat(t.sectionBkgColor,";\n  }\n\n  .section2 {\n    fill: ").concat(t.sectionBkgColor2,";\n  }\n\n  .section1,\n  .section3 {\n    fill: ").concat(t.altSectionBkgColor,";\n    opacity: 0.2;\n  }\n\n  .sectionTitle0 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle1 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle2 {\n    fill: ").concat(t.titleColor,";\n  }\n\n  .sectionTitle3 {\n    fill: ").concat(t.titleColor,';\n  }\n\n  .sectionTitle {\n    text-anchor: start;\n    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n  }\n\n\n  /* Grid and axis */\n\n  .grid .tick {\n    stroke: ').concat(t.gridColor,";\n    opacity: 0.8;\n    shape-rendering: crispEdges;\n  }\n\n  .grid .tick text {\n    font-family: ").concat(t.fontFamily,";\n    fill: ").concat(t.textColor,";\n  }\n\n  .grid path {\n    stroke-width: 0;\n  }\n\n\n  /* Today line */\n\n  .today {\n    fill: none;\n    stroke: ").concat(t.todayLineColor,';\n    stroke-width: 2px;\n  }\n\n\n  /* Task styling */\n\n  /* Default task */\n\n  .task {\n    stroke-width: 2;\n  }\n\n  .taskText {\n    text-anchor: middle;\n    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n  }\n\n  .taskTextOutsideRight {\n    fill: ').concat(t.taskTextDarkColor,';\n    text-anchor: start;\n    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n  }\n\n  .taskTextOutsideLeft {\n    fill: ').concat(t.taskTextDarkColor,";\n    text-anchor: end;\n  }\n\n\n  /* Special case clickable */\n\n  .task.clickable {\n    cursor: pointer;\n  }\n\n  .taskText.clickable {\n    cursor: pointer;\n    fill: ").concat(t.taskTextClickableColor," !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideLeft.clickable {\n    cursor: pointer;\n    fill: ").concat(t.taskTextClickableColor," !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideRight.clickable {\n    cursor: pointer;\n    fill: ").concat(t.taskTextClickableColor," !important;\n    font-weight: bold;\n  }\n\n\n  /* Specific task settings for the sections*/\n\n  .taskText0,\n  .taskText1,\n  .taskText2,\n  .taskText3 {\n    fill: ").concat(t.taskTextColor,";\n  }\n\n  .task0,\n  .task1,\n  .task2,\n  .task3 {\n    fill: ").concat(t.taskBkgColor,";\n    stroke: ").concat(t.taskBorderColor,";\n  }\n\n  .taskTextOutside0,\n  .taskTextOutside2\n  {\n    fill: ").concat(t.taskTextOutsideColor,";\n  }\n\n  .taskTextOutside1,\n  .taskTextOutside3 {\n    fill: ").concat(t.taskTextOutsideColor,";\n  }\n\n\n  /* Active task */\n\n  .active0,\n  .active1,\n  .active2,\n  .active3 {\n    fill: ").concat(t.activeTaskBkgColor,";\n    stroke: ").concat(t.activeTaskBorderColor,";\n  }\n\n  .activeText0,\n  .activeText1,\n  .activeText2,\n  .activeText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n\n  /* Completed task */\n\n  .done0,\n  .done1,\n  .done2,\n  .done3 {\n    stroke: ").concat(t.doneTaskBorderColor,";\n    fill: ").concat(t.doneTaskBkgColor,";\n    stroke-width: 2;\n  }\n\n  .doneText0,\n  .doneText1,\n  .doneText2,\n  .doneText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n\n  /* Tasks on the critical line */\n\n  .crit0,\n  .crit1,\n  .crit2,\n  .crit3 {\n    stroke: ").concat(t.critBorderColor,";\n    fill: ").concat(t.critBkgColor,";\n    stroke-width: 2;\n  }\n\n  .activeCrit0,\n  .activeCrit1,\n  .activeCrit2,\n  .activeCrit3 {\n    stroke: ").concat(t.critBorderColor,";\n    fill: ").concat(t.activeTaskBkgColor,";\n    stroke-width: 2;\n  }\n\n  .doneCrit0,\n  .doneCrit1,\n  .doneCrit2,\n  .doneCrit3 {\n    stroke: ").concat(t.critBorderColor,";\n    fill: ").concat(t.doneTaskBkgColor,";\n    stroke-width: 2;\n    cursor: pointer;\n    shape-rendering: crispEdges;\n  }\n\n  .milestone {\n    transform: rotate(45deg) scale(0.8,0.8);\n  }\n\n  .milestoneText {\n    font-style: italic;\n  }\n  .doneCritText0,\n  .doneCritText1,\n  .doneCritText2,\n  .doneCritText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n  .activeCritText0,\n  .activeCritText1,\n  .activeCritText2,\n  .activeCritText3 {\n    fill: ").concat(t.taskTextDarkColor," !important;\n  }\n\n  .titleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ").concat(t.titleColor||t.textColor,';\n    font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n  }\n'),gs=hs,xs={parser:Mi,db:cs,renderer:fs,styles:gs};export{xs as diagram};

Zerion Mini Shell 1.0