Files
Awperative/docs/_site/public/ganttDiagram-LVOFAZNH-QDRZKNR4.min.js
2026-02-09 17:03:28 -05:00

269 lines
42 KiB
JavaScript
Executable File

import{m as Ct}from"./chunk-QZZKR5JD.min.js";import{a as Xt}from"./chunk-CM5D5KZN.min.js";import{K as st,L as nt,P as at,Q as ot,R as ct,S as lt,T as ut,U as dt,V as ft,W as se}from"./chunk-3EE2TK35.min.js";import"./chunk-E5F23VE2.min.js";import{A as wt,B as _t,C as Dt,D as Fe,E as We,F as St,a as it,b as l,d as ke,f as ht,g as kt,h as mt,i as yt,j as me,k as gt,q as pt,r as Me,s as Ie,t as Ae,u as Le,v as Ye,w as vt,x as bt,y as Tt,z as xt}from"./chunk-6TVUEPFY.min.js";import{a as Ee,d as de}from"./chunk-OSRY5VT3.min.js";var Et=Ee((Oe,Ve)=>{(function(e,r){typeof Oe=="object"&&typeof Ve<"u"?Ve.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Oe,(function(){"use strict";var e="day";return function(r,n,a){var i=function(D){return D.add(4-D.isoWeekday(),e)},d=n.prototype;d.isoWeekYear=function(){return i(this).year()},d.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,L,S,W,G=i(this),z=(_=this.isoWeekYear(),L=this.$u,S=(L?a.utc:a)().year(_).startOf("year"),W=4-S.isoWeekday(),S.isoWeekday()>4&&(W+=7),S.add(W,e));return G.diff(z,"week")+1},d.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var h=d.startOf;d.startOf=function(D,_){var L=this.$utils(),S=!!L.u(_)||_;return L.p(D)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(D,_)}}}))});var Mt=Ee((Pe,ze)=>{(function(e,r){typeof Pe=="object"&&typeof ze<"u"?ze.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(Pe,(function(){"use strict";var e={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,n=/\d/,a=/\d\d/,i=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,h={},D=function(g){return(g=+g)+(g>68?1900:2e3)},_=function(g){return function(y){this[g]=+y}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var M=y.match(/([+-]|\d\d)/g),A=60*M[1]+(+M[2]||0);return A===0?0:M[0]==="+"?-A:A})(g)}],S=function(g){var y=h[g];return y&&(y.indexOf?y:y.s.concat(y.f))},W=function(g,y){var M,A=h.meridiem;if(A){for(var N=1;N<=24;N+=1)if(g.indexOf(A(N,0,y))>-1){M=N>12;break}}else M=g===(y?"pm":"PM");return M},G={A:[d,function(g){this.afternoon=W(g,!1)}],a:[d,function(g){this.afternoon=W(g,!0)}],Q:[n,function(g){this.month=3*(g-1)+1}],S:[n,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,_("seconds")],ss:[i,_("seconds")],m:[i,_("minutes")],mm:[i,_("minutes")],H:[i,_("hours")],h:[i,_("hours")],HH:[i,_("hours")],hh:[i,_("hours")],D:[i,_("day")],DD:[a,_("day")],Do:[d,function(g){var y=h.ordinal,M=g.match(/\d+/);if(this.day=M[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===g&&(this.day=A)}],w:[i,_("week")],ww:[a,_("week")],M:[i,_("month")],MM:[a,_("month")],MMM:[d,function(g){var y=S("months"),M=(S("monthsShort")||y.map((function(A){return A.slice(0,3)}))).indexOf(g)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(g){var y=S("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,_("year")],YY:[a,function(g){this.year=D(g)}],YYYY:[/\d{4}/,_("year")],Z:L,ZZ:L};function z(g){var y,M;y=g,M=h&&h.formats;for(var A=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,x,T){var b=T&&T.toUpperCase();return x||M[T]||e[T]||M[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,w,c){return w||c.slice(1)}))}))).match(r),N=A.length,R=0;R<N;R+=1){var Z=A[R],H=G[Z],B=H&&H[0],j=H&&H[1];A[R]=j?{regex:B,parser:j}:Z.replace(/^\[|\]$/g,"")}return function(p){for(var x={},T=0,b=0;T<N;T+=1){var v=A[T];if(typeof v=="string")b+=v.length;else{var w=v.regex,c=v.parser,f=p.slice(b),k=w.exec(f)[0];c.call(x,k),p=p.replace(k,"")}}return(function(u){var m=u.afternoon;if(m!==void 0){var t=u.hours;m?t<12&&(u.hours+=12):t===12&&(u.hours=0),delete u.afternoon}})(x),x}}return function(g,y,M){M.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(D=g.parseTwoDigitYear);var A=y.prototype,N=A.parse;A.parse=function(R){var Z=R.date,H=R.utc,B=R.args;this.$u=H;var j=B[1];if(typeof j=="string"){var p=B[2]===!0,x=B[3]===!0,T=p||x,b=B[2];x&&(b=B[2]),h=this.$locale(),!p&&b&&(h=M.Ls[b]),this.$d=(function(f,k,u,m){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1e3:1)*f);var t=z(k)(f),o=t.year,s=t.month,I=t.day,C=t.hours,E=t.minutes,P=t.seconds,Y=t.milliseconds,ae=t.zone,F=t.week,Q=new Date,te=I||(o||s?1:Q.getDate()),re=o||Q.getFullYear(),oe=0;o&&!s||(oe=s>0?s-1:Q.getMonth());var ce,le=C||0,O=E||0,ie=P||0,$=Y||0;return ae?new Date(Date.UTC(re,oe,te,le,O,ie,$+60*ae.offset*1e3)):u?new Date(Date.UTC(re,oe,te,le,O,ie,$)):(ce=new Date(re,oe,te,le,O,ie,$),F&&(ce=m(ce).week(F).toDate()),ce)}catch{return new Date("")}})(Z,j,H,M),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),T&&Z!=this.format(j)&&(this.$d=new Date("")),h={}}else if(j instanceof Array)for(var v=j.length,w=1;w<=v;w+=1){B[1]=j[w-1];var c=M.apply(this,B);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}w===v&&(this.$d=new Date(""))}else N.call(this,R)}}}))});var It=Ee((Ne,Re)=>{(function(e,r){typeof Ne=="object"&&typeof Re<"u"?Re.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(Ne,(function(){"use strict";return function(e,r){var n=r.prototype,a=n.format;n.format=function(i){var d=this,h=this.$locale();if(!this.isValid())return a.bind(this)(i);var D=this.$utils(),_=(i||"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(L){switch(L){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return h.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return h.ordinal(d.week(),"W");case"w":case"ww":return D.s(d.week(),L==="w"?1:2,"0");case"W":case"WW":return D.s(d.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return D.s(String(d.$H===0?24:d.$H),L==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return L}}));return a.bind(this)(_)}}}))});var Ft=de(Xt(),1),U=de(it(),1),Wt=de(Et(),1),Ot=de(Mt(),1),Vt=de(It(),1),we=de(it(),1);var Be=(function(){var e=l(function(w,c,f,k){for(f=f||{},k=w.length;k--;f[w[k]]=c);return f},"o"),r=[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],a=[1,27],i=[1,28],d=[1,29],h=[1,30],D=[1,31],_=[1,32],L=[1,33],S=[1,34],W=[1,9],G=[1,10],z=[1,11],g=[1,12],y=[1,13],M=[1,14],A=[1,15],N=[1,16],R=[1,19],Z=[1,20],H=[1,21],B=[1,22],j=[1,23],p=[1,25],x=[1,35],T={trace:l(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:l(function(c,f,k,u,m,t,o){var s=t.length-1;switch(m){case 1:return t[s-1];case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];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.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(t[s].substr(11)),this.$=t[s].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=t[s].substr(18);break;case 19:u.TopAxis(),this.$=t[s].substr(8);break;case 20:u.setAxisFormat(t[s].substr(11)),this.$=t[s].substr(11);break;case 21:u.setTickInterval(t[s].substr(13)),this.$=t[s].substr(13);break;case 22:u.setExcludes(t[s].substr(9)),this.$=t[s].substr(9);break;case 23:u.setIncludes(t[s].substr(9)),this.$=t[s].substr(9);break;case 24:u.setTodayMarker(t[s].substr(12)),this.$=t[s].substr(12);break;case 27:u.setDiagramTitle(t[s].substr(6)),this.$=t[s].substr(6);break;case 28:this.$=t[s].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=t[s].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(t[s].substr(8)),this.$=t[s].substr(8);break;case 33:u.addTask(t[s-1],t[s]),this.$="task";break;case 34:this.$=t[s-1],u.setClickEvent(t[s-1],t[s],null);break;case 35:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],t[s]);break;case 36:this.$=t[s-2],u.setClickEvent(t[s-2],t[s-1],null),u.setLink(t[s-2],t[s]);break;case 37:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-2],t[s-1]),u.setLink(t[s-3],t[s]);break;case 38:this.$=t[s-2],u.setClickEvent(t[s-2],t[s],null),u.setLink(t[s-2],t[s-1]);break;case 39:this.$=t[s-3],u.setClickEvent(t[s-3],t[s-1],t[s]),u.setLink(t[s-3],t[s-2]);break;case 40:this.$=t[s-1],u.setLink(t[s-1],t[s]);break;case 41:case 47:this.$=t[s-1]+" "+t[s];break;case 42:case 43:case 45:this.$=t[s-2]+" "+t[s-1]+" "+t[s];break;case 44:case 46:this.$=t[s-3]+" "+t[s-2]+" "+t[s-1]+" "+t[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:a,14:i,15:d,16:h,17:D,18:_,19:18,20:L,21:S,22:W,23:G,24:z,25:g,26:y,27:M,28:A,29:N,30:R,31:Z,33:H,35:B,36:j,37:24,38:p,40:x},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:a,14:i,15:d,16:h,17:D,18:_,19:18,20:L,21:S,22:W,23:G,24:z,25:g,26:y,27:M,28:A,29:N,30:R,31:Z,33:H,35:B,36:j,37:24,38:p,40:x},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:l(function(c,f){if(f.recoverable)this.trace(c);else{var k=new Error(c);throw k.hash=f,k}},"parseError"),parse:l(function(c){var f=this,k=[0],u=[],m=[null],t=[],o=this.table,s="",I=0,C=0,E=0,P=2,Y=1,ae=t.slice.call(arguments,1),F=Object.create(this.lexer),Q={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(Q.yy[te]=this.yy[te]);F.setInput(c,Q.yy),Q.yy.lexer=F,Q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var re=F.yylloc;t.push(re);var oe=F.options&&F.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(q){k.length=k.length-2*q,m.length=m.length-q,t.length=t.length-q}l(ce,"popStack");function le(){var q;return q=u.pop()||F.lex()||Y,typeof q!="number"&&(q instanceof Array&&(u=q,q=u.pop()),q=f.symbols_[q]||q),q}l(le,"lex");for(var O,ie,$,X,Or,Se,ue={},ve,J,rt,be;;){if($=k[k.length-1],this.defaultActions[$]?X=this.defaultActions[$]:((O===null||typeof O>"u")&&(O=le()),X=o[$]&&o[$][O]),typeof X>"u"||!X.length||!X[0]){var Ce="";be=[];for(ve in o[$])this.terminals_[ve]&&ve>P&&be.push("'"+this.terminals_[ve]+"'");F.showPosition?Ce="Parse error on line "+(I+1)+`:
`+F.showPosition()+`
Expecting `+be.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Ce="Parse error on line "+(I+1)+": Unexpected "+(O==Y?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Ce,{text:F.match,token:this.terminals_[O]||O,line:F.yylineno,loc:re,expected:be})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+O);switch(X[0]){case 1:k.push(O),m.push(F.yytext),t.push(F.yylloc),k.push(X[1]),O=null,ie?(O=ie,ie=null):(C=F.yyleng,s=F.yytext,I=F.yylineno,re=F.yylloc,E>0&&E--);break;case 2:if(J=this.productions_[X[1]][1],ue.$=m[m.length-J],ue._$={first_line:t[t.length-(J||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(J||1)].first_column,last_column:t[t.length-1].last_column},oe&&(ue._$.range=[t[t.length-(J||1)].range[0],t[t.length-1].range[1]]),Se=this.performAction.apply(ue,[s,C,I,Q.yy,X[1],m,t].concat(ae)),typeof Se<"u")return Se;J&&(k=k.slice(0,-1*J*2),m=m.slice(0,-1*J),t=t.slice(0,-1*J)),k.push(this.productions_[X[1]][0]),m.push(ue.$),t.push(ue._$),rt=o[k[k.length-2]][k[k.length-1]],k.push(rt);break;case 3:return!0}}return!0},"parse")},b=(function(){var w={EOF:1,parseError:l(function(f,k){if(this.yy.parser)this.yy.parser.parseError(f,k);else throw new Error(f)},"parseError"),setInput:l(function(c,f){return this.yy=f||this.yy||{},this._input=c,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:l(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var f=c.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),c},"input"),unput:l(function(c){var f=c.length,k=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var u=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),k.length-1&&(this.yylineno-=k.length-1);var m=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:k?(k.length===u.length?this.yylloc.first_column:0)+u[u.length-k.length].length-k[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(c){this.unput(this.match.slice(c))},"less"),pastInput:l(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var c=this.pastInput(),f=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
`+f+"^"},"showPosition"),test_match:l(function(c,f){var k,u,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],k=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var t in m)this[t]=m[t];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,f,k,u;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),t=0;t<m.length;t++)if(k=this._input.match(this.rules[m[t]]),k&&(!f||k[0].length>f[0].length)){if(f=k,u=t,this.options.backtrack_lexer){if(c=this.test_match(k,m[t]),c!==!1)return c;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(c=this.test_match(f,m[u]),c!==!1?c:!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:l(function(){var f=this.next();return f||this.lex()},"lex"),begin:l(function(f){this.conditionStack.push(f)},"begin"),popState:l(function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),pushState:l(function(f){this.begin(f)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(f,k,u,m){var t=m;switch(u){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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 w})();T.lexer=b;function v(){this.yy={}}return l(v,"Parser"),v.prototype=T,T.Parser=v,new v})();Be.parser=Be;var qt=Be;U.default.extend(Wt.default);U.default.extend(Ot.default);U.default.extend(Vt.default);var At={friday:5,saturday:6},K="",Xe="",qe=void 0,Ue="",ye=[],ge=[],Ze=new Map,Qe=[],_e=[],he="",$e="",Pt=["active","done","crit","milestone","vert"],Ke=[],pe=!1,Je=!1,et="sunday",De="saturday",je=0,Ut=l(function(){Qe=[],_e=[],he="",Ke=[],Te=0,He=void 0,xe=void 0,V=[],K="",Xe="",$e="",qe=void 0,Ue="",ye=[],ge=[],pe=!1,Je=!1,je=0,Ze=new Map,at(),et="sunday",De="saturday"},"clear"),Zt=l(function(e){Xe=e},"setAxisFormat"),Qt=l(function(){return Xe},"getAxisFormat"),$t=l(function(e){qe=e},"setTickInterval"),Kt=l(function(){return qe},"getTickInterval"),Jt=l(function(e){Ue=e},"setTodayMarker"),er=l(function(){return Ue},"getTodayMarker"),tr=l(function(e){K=e},"setDateFormat"),rr=l(function(){pe=!0},"enableInclusiveEndDates"),ir=l(function(){return pe},"endDatesAreInclusive"),sr=l(function(){Je=!0},"enableTopAxis"),nr=l(function(){return Je},"topAxisEnabled"),ar=l(function(e){$e=e},"setDisplayMode"),or=l(function(){return $e},"getDisplayMode"),cr=l(function(){return K},"getDateFormat"),lr=l(function(e){ye=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),ur=l(function(){return ye},"getIncludes"),dr=l(function(e){ge=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),fr=l(function(){return ge},"getExcludes"),hr=l(function(){return Ze},"getLinks"),kr=l(function(e){he=e,Qe.push(e)},"addSection"),mr=l(function(){return Qe},"getSections"),yr=l(function(){let e=Lt(),r=10,n=0;for(;!e&&n<r;)e=Lt(),n++;return _e=V,_e},"getTasks"),zt=l(function(e,r,n,a){let i=e.format(r.trim()),d=e.format("YYYY-MM-DD");return a.includes(i)||a.includes(d)?!1:n.includes("weekends")&&(e.isoWeekday()===At[De]||e.isoWeekday()===At[De]+1)||n.includes(e.format("dddd").toLowerCase())?!0:n.includes(i)||n.includes(d)},"isInvalidDate"),gr=l(function(e){et=e},"setWeekday"),pr=l(function(){return et},"getWeekday"),vr=l(function(e){De=e},"setWeekend"),Nt=l(function(e,r,n,a){if(!n.length||e.manualEndTime)return;let i;e.startTime instanceof Date?i=(0,U.default)(e.startTime):i=(0,U.default)(e.startTime,r,!0),i=i.add(1,"d");let d;e.endTime instanceof Date?d=(0,U.default)(e.endTime):d=(0,U.default)(e.endTime,r,!0);let[h,D]=br(i,d,r,n,a);e.endTime=h.toDate(),e.renderEndTime=D},"checkTaskDates"),br=l(function(e,r,n,a,i){let d=!1,h=null;for(;e<=r;)d||(h=r.toDate()),d=zt(e,n,a,i),d&&(r=r.add(1,"d")),e=e.add(1,"d");return[r,h]},"fixTaskDates"),Ge=l(function(e,r,n){if(n=n.trim(),(r.trim()==="x"||r.trim()==="X")&&/^\d+$/.test(n))return new Date(Number(n));let i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let h=null;for(let _ of i.groups.ids.split(" ")){let L=ne(_);L!==void 0&&(!h||L.endTime>h.endTime)&&(h=L)}if(h)return h.endTime;let D=new Date;return D.setHours(0,0,0,0),D}let d=(0,U.default)(n,r.trim(),!0);if(d.isValid())return d.toDate();{ke.debug("Invalid date:"+n),ke.debug("With date format:"+r.trim());let h=new Date(n);if(h===void 0||isNaN(h.getTime())||h.getFullYear()<-1e4||h.getFullYear()>1e4)throw new Error("Invalid date:"+n);return h}},"getStartDate"),Rt=l(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return r!==null?[Number.parseFloat(r[1]),r[2]]:[NaN,"ms"]},"parseDuration"),Bt=l(function(e,r,n,a=!1){n=n.trim();let d=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(d!==null){let S=null;for(let G of d.groups.ids.split(" ")){let z=ne(G);z!==void 0&&(!S||z.startTime<S.startTime)&&(S=z)}if(S)return S.startTime;let W=new Date;return W.setHours(0,0,0,0),W}let h=(0,U.default)(n,r.trim(),!0);if(h.isValid())return a&&(h=h.add(1,"d")),h.toDate();let D=(0,U.default)(e),[_,L]=Rt(n);if(!Number.isNaN(_)){let S=D.add(_,L);S.isValid()&&(D=S)}return D.toDate()},"getEndDate"),Te=0,fe=l(function(e){return e===void 0?(Te=Te+1,"task"+Te):e},"parseId"),Tr=l(function(e,r){let n;r.substr(0,1)===":"?n=r.substr(1,r.length):n=r;let a=n.split(","),i={};tt(a,i,Pt);for(let h=0;h<a.length;h++)a[h]=a[h].trim();let d="";switch(a.length){case 1:i.id=fe(),i.startTime=e.endTime,d=a[0];break;case 2:i.id=fe(),i.startTime=Ge(void 0,K,a[0]),d=a[1];break;case 3:i.id=fe(a[0]),i.startTime=Ge(void 0,K,a[1]),d=a[2];break;default:}return d&&(i.endTime=Bt(i.startTime,K,d,pe),i.manualEndTime=(0,U.default)(d,"YYYY-MM-DD",!0).isValid(),Nt(i,K,ge,ye)),i},"compileData"),xr=l(function(e,r){let n;r.substr(0,1)===":"?n=r.substr(1,r.length):n=r;let a=n.split(","),i={};tt(a,i,Pt);for(let d=0;d<a.length;d++)a[d]=a[d].trim();switch(a.length){case 1:i.id=fe(),i.startTime={type:"prevTaskEnd",id:e},i.endTime={data:a[0]};break;case 2:i.id=fe(),i.startTime={type:"getStartDate",startData:a[0]},i.endTime={data:a[1]};break;case 3:i.id=fe(a[0]),i.startTime={type:"getStartDate",startData:a[1]},i.endTime={data:a[2]};break;default:}return i},"parseData"),He,xe,V=[],jt={},wr=l(function(e,r){let n={section:he,type:he,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},a=xr(xe,r);n.raw.startTime=a.startTime,n.raw.endTime=a.endTime,n.id=a.id,n.prevTaskId=xe,n.active=a.active,n.done=a.done,n.crit=a.crit,n.milestone=a.milestone,n.vert=a.vert,n.order=je,je++;let i=V.push(n);xe=n.id,jt[n.id]=i-1},"addTask"),ne=l(function(e){let r=jt[e];return V[r]},"findTaskById"),_r=l(function(e,r){let n={section:he,type:he,description:e,task:e,classes:[]},a=Tr(He,r);n.startTime=a.startTime,n.endTime=a.endTime,n.id=a.id,n.active=a.active,n.done=a.done,n.crit=a.crit,n.milestone=a.milestone,n.vert=a.vert,He=n,_e.push(n)},"addTaskOrg"),Lt=l(function(){let e=l(function(n){let a=V[n],i="";switch(V[n].raw.startTime.type){case"prevTaskEnd":{let d=ne(a.prevTaskId);a.startTime=d.endTime;break}case"getStartDate":i=Ge(void 0,K,V[n].raw.startTime.startData),i&&(V[n].startTime=i);break}return V[n].startTime&&(V[n].endTime=Bt(V[n].startTime,K,V[n].raw.endTime.data,pe),V[n].endTime&&(V[n].processed=!0,V[n].manualEndTime=(0,U.default)(V[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Nt(V[n],K,ge,ye))),V[n].processed},"compileTask"),r=!0;for(let[n,a]of V.entries())e(n),r=r&&a.processed;return r},"compileTasks"),Dr=l(function(e,r){let n=r;se().securityLevel!=="loose"&&(n=(0,Ft.sanitizeUrl)(r)),e.split(",").forEach(function(a){ne(a)!==void 0&&(Ht(a,()=>{window.open(n,"_self")}),Ze.set(a,n))}),Gt(e,"clickable")},"setLink"),Gt=l(function(e,r){e.split(",").forEach(function(n){let a=ne(n);a!==void 0&&a.classes.push(r)})},"setClass"),Sr=l(function(e,r,n){if(se().securityLevel!=="loose"||r===void 0)return;let a=[];if(typeof n=="string"){a=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let d=0;d<a.length;d++){let h=a[d].trim();h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),a[d]=h}}a.length===0&&a.push(e),ne(e)!==void 0&&Ht(e,()=>{Ct.runFunc(r,...a)})},"setClickFun"),Ht=l(function(e,r){Ke.push(function(){let n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener("click",function(){r()})},function(){let n=document.querySelector(`[id="${e}-text"]`);n!==null&&n.addEventListener("click",function(){r()})})},"pushFun"),Cr=l(function(e,r,n){e.split(",").forEach(function(a){Sr(a,r,n)}),Gt(e,"clickable")},"setClickEvent"),Er=l(function(e){Ke.forEach(function(r){r(e)})},"bindFunctions"),Mr={getConfig:l(()=>se().gantt,"getConfig"),clear:Ut,setDateFormat:tr,getDateFormat:cr,enableInclusiveEndDates:rr,endDatesAreInclusive:ir,enableTopAxis:sr,topAxisEnabled:nr,setAxisFormat:Zt,getAxisFormat:Qt,setTickInterval:$t,getTickInterval:Kt,setTodayMarker:Jt,getTodayMarker:er,setAccTitle:ot,getAccTitle:ct,setDiagramTitle:dt,getDiagramTitle:ft,setDisplayMode:ar,getDisplayMode:or,setAccDescription:lt,getAccDescription:ut,addSection:kr,getSections:mr,getTasks:yr,addTask:wr,findTaskById:ne,addTaskOrg:_r,setIncludes:lr,getIncludes:ur,setExcludes:dr,getExcludes:fr,setClickEvent:Cr,setLink:Dr,getLinks:hr,bindFunctions:Er,parseDuration:Rt,isInvalidDate:zt,setWeekday:gr,getWeekday:pr,setWeekend:vr};function tt(e,r,n){let a=!0;for(;a;)a=!1,n.forEach(function(i){let d="^\\s*"+i+"\\s*$",h=new RegExp(d);e[0].match(h)&&(r[i]=!0,e.shift(1),a=!0)})}l(tt,"getTaskTags");var Ir=l(function(){ke.debug("Something is calling, setConf, remove the call")},"setConf"),Yt={monday:bt,tuesday:Tt,wednesday:xt,thursday:wt,friday:_t,saturday:Dt,sunday:vt},Ar=l((e,r)=>{let n=[...e].map(()=>-1/0),a=[...e].sort((d,h)=>d.startTime-h.startTime||d.order-h.order),i=0;for(let d of a)for(let h=0;h<n.length;h++)if(d.startTime>=n[h]){n[h]=d.endTime,d.order=h+r,h>i&&(i=h);break}return i},"getMaxIntersections"),ee,Lr=l(function(e,r,n,a){let i=se().gantt,d=se().securityLevel,h;d==="sandbox"&&(h=me("#i"+r));let D=d==="sandbox"?me(h.nodes()[0].contentDocument.body):me("body"),_=d==="sandbox"?h.nodes()[0].contentDocument:document,L=_.getElementById(r);ee=L.parentElement.offsetWidth,ee===void 0&&(ee=1200),i.useWidth!==void 0&&(ee=i.useWidth);let S=a.db.getTasks(),W=[];for(let p of S)W.push(p.type);W=j(W);let G={},z=2*i.topPadding;if(a.db.getDisplayMode()==="compact"||i.displayMode==="compact"){let p={};for(let T of S)p[T.section]===void 0?p[T.section]=[T]:p[T.section].push(T);let x=0;for(let T of Object.keys(p)){let b=Ar(p[T],x)+1;x+=b,z+=b*(i.barHeight+i.barGap),G[T]=b}}else{z+=S.length*(i.barHeight+i.barGap);for(let p of W)G[p]=S.filter(x=>x.type===p).length}L.setAttribute("viewBox","0 0 "+ee+" "+z);let g=D.select(`[id="${r}"]`),y=St().domain([kt(S,function(p){return p.startTime}),ht(S,function(p){return p.endTime})]).rangeRound([0,ee-i.leftPadding-i.rightPadding]);function M(p,x){let T=p.startTime,b=x.startTime,v=0;return T>b?v=1:T<b&&(v=-1),v}l(M,"taskCompare"),S.sort(M),A(S,ee,z),nt(g,z,ee,i.useMaxWidth),g.append("text").text(a.db.getDiagramTitle()).attr("x",ee/2).attr("y",i.titleTopMargin).attr("class","titleText");function A(p,x,T){let b=i.barHeight,v=b+i.barGap,w=i.topPadding,c=i.leftPadding,f=pt().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(gt);R(v,w,c,x,T,p,a.db.getExcludes(),a.db.getIncludes()),Z(c,w,x,T),N(p,v,w,c,b,f,x,T),H(v,w,c,b,f),B(c,w,x,T)}l(A,"makeGantt");function N(p,x,T,b,v,w,c){p.sort((o,s)=>o.vert===s.vert?0:o.vert?1:-1);let k=[...new Set(p.map(o=>o.order))].map(o=>p.find(s=>s.order===o));g.append("g").selectAll("rect").data(k).enter().append("rect").attr("x",0).attr("y",function(o,s){return s=o.order,s*x+T-2}).attr("width",function(){return c-i.rightPadding/2}).attr("height",x).attr("class",function(o){for(let[s,I]of W.entries())if(o.type===I)return"section section"+s%i.numberSectionStyles;return"section section0"}).enter();let u=g.append("g").selectAll("rect").data(p).enter(),m=a.db.getLinks();if(u.append("rect").attr("id",function(o){return o.id}).attr("rx",3).attr("ry",3).attr("x",function(o){return o.milestone?y(o.startTime)+b+.5*(y(o.endTime)-y(o.startTime))-.5*v:y(o.startTime)+b}).attr("y",function(o,s){return s=o.order,o.vert?i.gridLineStartPadding:s*x+T}).attr("width",function(o){return o.milestone?v:o.vert?.08*v:y(o.renderEndTime||o.endTime)-y(o.startTime)}).attr("height",function(o){return o.vert?S.length*(i.barHeight+i.barGap)+i.barHeight*2:v}).attr("transform-origin",function(o,s){return s=o.order,(y(o.startTime)+b+.5*(y(o.endTime)-y(o.startTime))).toString()+"px "+(s*x+T+.5*v).toString()+"px"}).attr("class",function(o){let s="task",I="";o.classes.length>0&&(I=o.classes.join(" "));let C=0;for(let[P,Y]of W.entries())o.type===Y&&(C=P%i.numberSectionStyles);let E="";return o.active?o.crit?E+=" activeCrit":E=" active":o.done?o.crit?E=" doneCrit":E=" done":o.crit&&(E+=" crit"),E.length===0&&(E=" task"),o.milestone&&(E=" milestone "+E),o.vert&&(E=" vert "+E),E+=C,E+=" "+I,s+E}),u.append("text").attr("id",function(o){return o.id+"-text"}).text(function(o){return o.task}).attr("font-size",i.fontSize).attr("x",function(o){let s=y(o.startTime),I=y(o.renderEndTime||o.endTime);if(o.milestone&&(s+=.5*(y(o.endTime)-y(o.startTime))-.5*v,I=s+v),o.vert)return y(o.startTime)+b;let C=this.getBBox().width;return C>I-s?I+C+1.5*i.leftPadding>c?s+b-5:I+b+5:(I-s)/2+s+b}).attr("y",function(o,s){return o.vert?i.gridLineStartPadding+S.length*(i.barHeight+i.barGap)+60:(s=o.order,s*x+i.barHeight/2+(i.fontSize/2-2)+T)}).attr("text-height",v).attr("class",function(o){let s=y(o.startTime),I=y(o.endTime);o.milestone&&(I=s+v);let C=this.getBBox().width,E="";o.classes.length>0&&(E=o.classes.join(" "));let P=0;for(let[ae,F]of W.entries())o.type===F&&(P=ae%i.numberSectionStyles);let Y="";return o.active&&(o.crit?Y="activeCritText"+P:Y="activeText"+P),o.done?o.crit?Y=Y+" doneCritText"+P:Y=Y+" doneText"+P:o.crit&&(Y=Y+" critText"+P),o.milestone&&(Y+=" milestoneText"),o.vert&&(Y+=" vertText"),C>I-s?I+C+1.5*i.leftPadding>c?E+" taskTextOutsideLeft taskTextOutside"+P+" "+Y:E+" taskTextOutsideRight taskTextOutside"+P+" "+Y+" width-"+C:E+" taskText taskText"+P+" "+Y+" width-"+C}),se().securityLevel==="sandbox"){let o;o=me("#i"+r);let s=o.nodes()[0].contentDocument;u.filter(function(I){return m.has(I.id)}).each(function(I){var C=s.querySelector("#"+I.id),E=s.querySelector("#"+I.id+"-text");let P=C.parentNode;var Y=s.createElement("a");Y.setAttribute("xlink:href",m.get(I.id)),Y.setAttribute("target","_top"),P.appendChild(Y),Y.appendChild(C),Y.appendChild(E)})}}l(N,"drawRects");function R(p,x,T,b,v,w,c,f){if(c.length===0&&f.length===0)return;let k,u;for(let{startTime:C,endTime:E}of w)(k===void 0||C<k)&&(k=C),(u===void 0||E>u)&&(u=E);if(!k||!u)return;if((0,we.default)(u).diff((0,we.default)(k),"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}let m=a.db.getDateFormat(),t=[],o=null,s=(0,we.default)(k);for(;s.valueOf()<=u;)a.db.isInvalidDate(s,m,c,f)?o?o.end=s:o={start:s,end:s}:o&&(t.push(o),o=null),s=s.add(1,"d");g.append("g").selectAll("rect").data(t).enter().append("rect").attr("id",C=>"exclude-"+C.start.format("YYYY-MM-DD")).attr("x",C=>y(C.start.startOf("day"))+T).attr("y",i.gridLineStartPadding).attr("width",C=>y(C.end.endOf("day"))-y(C.start.startOf("day"))).attr("height",v-x-i.gridLineStartPadding).attr("transform-origin",function(C,E){return(y(C.start)+T+.5*(y(C.end)-y(C.start))).toString()+"px "+(E*p+.5*v).toString()+"px"}).attr("class","exclude-range")}l(R,"drawExcludeDays");function Z(p,x,T,b){let v=a.db.getDateFormat(),w=a.db.getAxisFormat(),c;w?c=w:v==="D"?c="%d":c=i.axisFormat??"%Y-%m-%d";let f=yt(y).tickSize(-b+x+i.gridLineStartPadding).tickFormat(We(c)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||i.tickInterval);if(u!==null){let m=u[1],t=u[2],o=a.db.getWeekday()||i.weekday;switch(t){case"millisecond":f.ticks(Me.every(m));break;case"second":f.ticks(Ie.every(m));break;case"minute":f.ticks(Ae.every(m));break;case"hour":f.ticks(Le.every(m));break;case"day":f.ticks(Ye.every(m));break;case"week":f.ticks(Yt[o].every(m));break;case"month":f.ticks(Fe.every(m));break}}if(g.append("g").attr("class","grid").attr("transform","translate("+p+", "+(b-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||i.topAxis){let m=mt(y).tickSize(-b+x+i.gridLineStartPadding).tickFormat(We(c));if(u!==null){let t=u[1],o=u[2],s=a.db.getWeekday()||i.weekday;switch(o){case"millisecond":m.ticks(Me.every(t));break;case"second":m.ticks(Ie.every(t));break;case"minute":m.ticks(Ae.every(t));break;case"hour":m.ticks(Le.every(t));break;case"day":m.ticks(Ye.every(t));break;case"week":m.ticks(Yt[s].every(t));break;case"month":m.ticks(Fe.every(t));break}}g.append("g").attr("class","grid").attr("transform","translate("+p+", "+x+")").call(m).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}l(Z,"makeGrid");function H(p,x){let T=0,b=Object.keys(G).map(v=>[v,G[v]]);g.append("g").selectAll("text").data(b).enter().append(function(v){let w=v[0].split(st.lineBreakRegex),c=-(w.length-1)/2,f=_.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("dy",c+"em");for(let[k,u]of w.entries()){let m=_.createElementNS("http://www.w3.org/2000/svg","tspan");m.setAttribute("alignment-baseline","central"),m.setAttribute("x","10"),k>0&&m.setAttribute("dy","1em"),m.textContent=u,f.appendChild(m)}return f}).attr("x",10).attr("y",function(v,w){if(w>0)for(let c=0;c<w;c++)return T+=b[w-1][1],v[1]*p/2+T*p+x;else return v[1]*p/2+x}).attr("font-size",i.sectionFontSize).attr("class",function(v){for(let[w,c]of W.entries())if(v[0]===c)return"sectionTitle sectionTitle"+w%i.numberSectionStyles;return"sectionTitle"})}l(H,"vertLabels");function B(p,x,T,b){let v=a.db.getTodayMarker();if(v==="off")return;let w=g.append("g").attr("class","today"),c=new Date,f=w.append("line");f.attr("x1",y(c)+p).attr("x2",y(c)+p).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),v!==""&&f.attr("style",v.replace(/,/g,";"))}l(B,"drawToday");function j(p){let x={},T=[];for(let b=0,v=p.length;b<v;++b)Object.prototype.hasOwnProperty.call(x,p[b])||(x[p[b]]=!0,T.push(p[b]));return T}l(j,"checkUnique")},"draw"),Yr={setConf:Ir,draw:Lr},Fr=l(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;
}
.vert {
stroke: ${e.vertLineColor};
}
.vertText {
font-size: 15px;
text-anchor: middle;
fill: ${e.vertLineColor} !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"),Wr=Fr,Rr={parser:qt,db:Mr,renderer:Yr,styles:Wr};export{Rr as diagram};
//# sourceMappingURL=ganttDiagram-LVOFAZNH-QDRZKNR4.min.js.map