@marimo-team/frontend 0.11.7-dev1 → 0.11.7-dev11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ConnectedDataExplorerComponent-DcogHHSq.js → ConnectedDataExplorerComponent-Dw0lgEx7.js} +1 -1
- package/dist/assets/{VegaLite-CDzGWsBX.js → VegaLite-i28zbrOg.js} +1 -1
- package/dist/assets/{_baseEach-Cs4q2XaB.js → _baseEach-DRLOG7FR.js} +1 -1
- package/dist/assets/_baseMap-Csmk0lES.js +1 -0
- package/dist/assets/{_baseUniq-qacu5unw.js → _baseUniq-Z6tslDId.js} +1 -1
- package/dist/assets/{any-language-editor-D6fUTWon.js → any-language-editor-CN-68zq0.js} +1 -1
- package/dist/assets/{architectureDiagram-UYN6MBPD-CsnA_GOH.js → architectureDiagram-UYN6MBPD-CLCthGnb.js} +1 -1
- package/dist/assets/{blockDiagram-ZHA2E4KO-CaXV3NM6.js → blockDiagram-ZHA2E4KO-D8VEqjcW.js} +1 -1
- package/dist/assets/{c4Diagram-6F5ED5ID-Brk6yUxz.js → c4Diagram-6F5ED5ID-CSsWcf65.js} +1 -1
- package/dist/assets/channel-DHzdgD-d.js +1 -0
- package/dist/assets/{chunk-5HRBRIJM-Daa28vB_.js → chunk-5HRBRIJM-i5Phh7bi.js} +1 -1
- package/dist/assets/{chunk-7U56Z5CX-BCHIRxEJ.js → chunk-7U56Z5CX-D088hXP5.js} +1 -1
- package/dist/assets/{chunk-ASOPGD6M-BcqFWuop.js → chunk-ASOPGD6M-Bsu_b9jH.js} +1 -1
- package/dist/assets/{chunk-KFBOBJHC-CRwVpqef.js → chunk-KFBOBJHC-C9sMPfZc.js} +1 -1
- package/dist/assets/{chunk-T2TOU4HS-B1Gahndf.js → chunk-T2TOU4HS-Depm1_8y.js} +1 -1
- package/dist/assets/{chunk-TMUBEWPD-BE1V10DQ.js → chunk-TMUBEWPD-yD_WnSdD.js} +1 -1
- package/dist/assets/classDiagram-LNE6IOMH-K-Wjg4zZ.js +1 -0
- package/dist/assets/classDiagram-v2-MQ7JQ4JX-K-Wjg4zZ.js +1 -0
- package/dist/assets/clone-C6gbuftv.js +1 -0
- package/dist/assets/{compile-BEGEjj2i.js → compile-BgV4bhlK.js} +1 -1
- package/dist/assets/{createWsUrl-sxQR1CaL.js → createWsUrl-BclB4Lh8.js} +1 -1
- package/dist/assets/{dagre-4EVJKHTY-CXguGjsg.js → dagre-4EVJKHTY-qlyr5wai.js} +1 -1
- package/dist/assets/{data-editor-yU6gIm2T.js → data-editor-O7GB1dOJ.js} +1 -1
- package/dist/assets/{diagram-QW4FP2JN-C9EtAmSA.js → diagram-QW4FP2JN-CeEn361s.js} +1 -1
- package/dist/assets/{edit-page-PWSVxwzx.js → edit-page-D09PcIbh.js} +3 -3
- package/dist/assets/{erDiagram-6RL3IURR-CbQRzHbQ.js → erDiagram-6RL3IURR-V5QiSeMD.js} +1 -1
- package/dist/assets/{flowDiagram-7ASYPVHJ-C9CLFeMh.js → flowDiagram-7ASYPVHJ-DswX-o5B.js} +1 -1
- package/dist/assets/{ganttDiagram-NTVNEXSI-D3PjJu-8.js → ganttDiagram-NTVNEXSI-O1FeJt3C.js} +1 -1
- package/dist/assets/{gitGraph-YCYPL57B-DYUuXYQI.js → gitGraph-YCYPL57B-CrdOXnVg.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NRZ2UAAF-DPUQ4rNm.js → gitGraphDiagram-NRZ2UAAF-DqXKCt3x.js} +1 -1
- package/dist/assets/{graph-DWbl08mG.js → graph-CuAM9DuN.js} +1 -1
- package/dist/assets/{home-page-BBckzMMK.js → home-page-D_b-tjJr.js} +1 -1
- package/dist/assets/{index-DdvgHEMS.js → index-6w92-PnA.js} +1 -1
- package/dist/assets/{index-BXdFvdxo.js → index-BXs5VcPX.js} +1 -1
- package/dist/assets/{index-CejGDE2x.js → index-BZUrKLLV.js} +1 -1
- package/dist/assets/{index-wjBqrtV7.js → index-BhVxrMm_.js} +4 -4
- package/dist/assets/{index-CuAg8t-t.js → index-BxXkbUY_.js} +1 -1
- package/dist/assets/{index-DjOXVkmx.js → index-C4vyzbl_.js} +1 -1
- package/dist/assets/{index-B7PnFL2_.js → index-CBffH0xV.js} +1 -1
- package/dist/assets/{index-CtlOxPB6.js → index-Cex802kZ.js} +1 -1
- package/dist/assets/{index-DGZCFawe.js → index-DWSqZU7l.js} +1 -1
- package/dist/assets/{index-BOeneVAE.js → index-D_b38AF4.js} +1 -1
- package/dist/assets/{index-DDelBX25.js → index-DhKR_xS-.js} +1 -1
- package/dist/assets/{index-BI_3zEGK.js → index-RZIsHI4j.js} +1 -1
- package/dist/assets/{index-BdhNpmBc.js → index-YvMhMx5m.js} +1 -1
- package/dist/assets/{index-Cw9YsglJ.js → index-dBf568lL.js} +1 -1
- package/dist/assets/{index-DZJp4C8l.js → index-eUGIYQ9e.js} +1 -1
- package/dist/assets/{index-D3Y5BJO0.js → index-nafBc7vH.js} +1 -1
- package/dist/assets/{index-x6JH5r4f.js → index-ooJzGCEl.js} +1 -1
- package/dist/assets/{infoDiagram-A4XQUW5V-BG8IKb48.js → infoDiagram-A4XQUW5V-BQi5KH8U.js} +1 -1
- package/dist/assets/{journeyDiagram-G5WM74LC-CvhFwndC.js → journeyDiagram-G5WM74LC-CYv86MSD.js} +1 -1
- package/dist/assets/{kanban-definition-QRCXZQQD-Be4sprPy.js → kanban-definition-QRCXZQQD-LxchZzZC.js} +1 -1
- package/dist/assets/{layout-BLi8SUk6.js → layout-BVzdLZD3.js} +1 -1
- package/dist/assets/{linear-DhBB271S.js → linear-DnzJFOVg.js} +1 -1
- package/dist/assets/{mermaid-BF5zIAOB.js → mermaid-Bic4bmVF.js} +3 -3
- package/dist/assets/{min-CilVlQce.js → min-Dw7ZDVyc.js} +1 -1
- package/dist/assets/{mindmap-definition-GWI6TPTV-BIbjgJ9G.js → mindmap-definition-GWI6TPTV-Dgrbeals.js} +1 -1
- package/dist/assets/{pieDiagram-YF2LJOPJ-BR9FyclX.js → pieDiagram-YF2LJOPJ-DH_aAvgk.js} +1 -1
- package/dist/assets/{quadrantDiagram-OS5C2QUG-BlpyQeJz.js → quadrantDiagram-OS5C2QUG-Cdx6px7r.js} +1 -1
- package/dist/assets/{react-plotly-CayoDFXf.js → react-plotly-ABMk2537.js} +1 -1
- package/dist/assets/{requirementDiagram-MIRIMTAZ-DGx5ORLy.js → requirementDiagram-MIRIMTAZ-foNUTolX.js} +1 -1
- package/dist/assets/{run-page-DPK63qTH.js → run-page-BpxdWHNP.js} +1 -1
- package/dist/assets/{sankeyDiagram-Y46BX6SQ-DyWOboQA.js → sankeyDiagram-Y46BX6SQ-2stxT0h5.js} +1 -1
- package/dist/assets/{save-worker-BwuET9oo.js → save-worker-BqZe45Ma.js} +1 -1
- package/dist/assets/{sequenceDiagram-G6AWOVSC-BH0GV0xl.js → sequenceDiagram-G6AWOVSC-DsLWeuD6.js} +1 -1
- package/dist/assets/{slides-component-D64ruOeu.js → slides-component-CpzjtzJd.js} +1 -1
- package/dist/assets/{sortBy-8g8pUsgl.js → sortBy-D5PrM5k_.js} +1 -1
- package/dist/assets/{stateDiagram-MAYHULR4-DD_qZXqK.js → stateDiagram-MAYHULR4-DTsueJwY.js} +1 -1
- package/dist/assets/stateDiagram-v2-4JROLMXI-Co4r5BV4.js +1 -0
- package/dist/assets/{terminal-D2514_vF.js → terminal-DCpCpEop.js} +1 -1
- package/dist/assets/{time-M2WCnnK9.js → time-B-QFhLuD.js} +1 -1
- package/dist/assets/{timeline-definition-U7ZMHBDA-QOCLm8SB.js → timeline-definition-U7ZMHBDA-Cu5fPfiD.js} +1 -1
- package/dist/assets/{tree-Cd4AGQIT.js → tree-CYy93deY.js} +1 -1
- package/dist/assets/{useMarimoWebSocket-DJEJ9oJF.js → useMarimoWebSocket-m-9tpiCT.js} +3 -3
- package/dist/assets/{vega-component-DUHTPDDo.js → vega-component-530U8AUz.js} +1 -1
- package/dist/assets/{worker-CUYqvMbU.js → worker-C9mG3T84.js} +1 -1
- package/dist/assets/{worker-DLFs-pr_.js → worker-HYHI8xOX.js} +1 -1
- package/dist/assets/{xychartDiagram-6QU3TZC5-NUCJ7sKG.js → xychartDiagram-6QU3TZC5-C7CZWV9M.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/_baseMap-BBgr3rzs.js +0 -1
- package/dist/assets/channel-D6B6-SHZ.js +0 -1
- package/dist/assets/classDiagram-LNE6IOMH-p2xZvmcv.js +0 -1
- package/dist/assets/classDiagram-v2-MQ7JQ4JX-p2xZvmcv.js +0 -1
- package/dist/assets/clone-Cfzpp0xr.js +0 -1
- package/dist/assets/stateDiagram-v2-4JROLMXI-BNvCxR6T.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,am as e,d as n,s as i,g as s,p as r,q as a,c as o,b as c,v as l,k as d,l as u,j as h,e as f,u as m}from"./mermaid-BF5zIAOB.js";import{aC as y,g as k,bF as p,bE as g,bC as b,bB as x,bA as v,bo as T,bl as w,bG as _,bH as D,bI as $,bJ as C,bK as S,bL as E,bD as M}from"./index-wjBqrtV7.js";import{s as A}from"./transform-D6ULhE8R.js";import{t as I,m as Y,a as L,i as F}from"./time-M2WCnnK9.js";import{l as W}from"./linear-DhBB271S.js";import"./step-CaHXtLdi.js";import"./init-DLRA0X12.js";function O(t){return t}var P=1e-6;function z(t){return"translate("+t+",0)"}function B(t){return"translate(0,"+t+")"}function j(t){return e=>+t(e)}function N(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function H(){return!this.__axis}function G(t,e){var n=[],i=null,s=null,r=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",u=1===t||3===t?z:B;function h(h){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,m=null==s?e.tickFormat?e.tickFormat.apply(e,n):O:s,y=Math.max(r,0)+o,k=e.range(),p=+k[0]+c,g=+k[k.length-1]+c,b=(e.bandwidth?N:j)(e.copy(),c),x=h.selection?h.selection():h,v=x.selectAll(".domain").data([null]),T=x.selectAll(".tick").data(f,e).order(),w=T.exit(),_=T.enter().append("g").attr("class","tick"),D=T.select("line"),$=T.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(_),D=D.merge(_.append("line").attr("stroke","currentColor").attr(d+"2",l*r)),$=$.merge(_.append("text").attr("fill","currentColor").attr(d,l*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==x&&(v=v.transition(h),T=T.transition(h),D=D.transition(h),$=$.transition(h),w=w.transition(h).attr("opacity",P).attr("transform",(function(t){return isFinite(t=b(t))?u(t+c):this.getAttribute("transform")})),_.attr("opacity",P).attr("transform",(function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:b(t))+c)}))),w.remove(),v.attr("d",4===t||2===t?a?"M"+l*a+","+p+"H"+c+"V"+g+"H"+l*a:"M"+c+","+p+"V"+g:a?"M"+p+","+l*a+"V"+c+"H"+g+"V"+l*a:"M"+p+","+c+"H"+g),T.attr("opacity",1).attr("transform",(function(t){return u(b(t)+c)})),D.attr(d+"2",l*r),$.attr(d,l*y).text(m),x.filter(H).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),h):i&&i.slice()},h.tickFormat=function(t){return arguments.length?(s=t,h):s},h.tickSize=function(t){return arguments.length?(r=a=+t,h):r},h.tickSizeInner=function(t){return arguments.length?(r=+t,h):r},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}var V,R={exports:{}};const Z=k(R.exports=(V="day",function(t,e,n){var i=function(t){return t.add(4-t.isoWeekday(),V)},s=e.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),V);var e,s,r,a=i(this),o=(e=this.isoWeekYear(),r=4-(s=(this.$u?n.utc:n)().year(e).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(r+=7),s.add(r,V));return a.diff(o,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var r=s.startOf;s.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(t,e)}}));var q={exports:{}};q.exports=function(){var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,r={},a=function(t){return(t=+t)+(t>68?1900:2e3)},o=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=r[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,i=r.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},u={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[n,o("day")],Do:[s,function(t){var e=r.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,o("month")],MM:[n,o("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,o("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,o("year")],Z:c,ZZ:c};function h(n){var i,s;i=n,s=r&&r.formats;for(var a=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var r=i&&i.toUpperCase();return n||s[i]||t[i]||s[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=a.length,c=0;c<o;c+=1){var l=a[c],d=u[l],h=d&&d[0],f=d&&d[1];a[c]=f?{regex:h,parser:f}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<o;n+=1){var s=a[n];if("string"==typeof s)i+=s.length;else{var r=s.regex,c=s.parser,l=t.slice(i),d=r.exec(l)[0];c.call(e,d),t=t.replace(d,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,a=t.args;this.$u=i;var o=a[1];if("string"==typeof o){var c=!0===a[2],l=!0===a[3],d=c||l,u=a[2];l&&(u=a[2]),r=this.$locale(),!c&&u&&(r=n.Ls[u]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=h(e)(t),s=i.year,r=i.month,a=i.day,o=i.hours,c=i.minutes,l=i.seconds,d=i.milliseconds,u=i.zone,f=new Date,m=a||(s||r?1:f.getDate()),y=s||f.getFullYear(),k=0;s&&!r||(k=r>0?r-1:f.getMonth());var p=o||0,g=c||0,b=l||0,x=d||0;return u?new Date(Date.UTC(y,k,m,p,g,b,x+60*u.offset*1e3)):n?new Date(Date.UTC(y,k,m,p,g,b,x)):new Date(y,k,m,p,g,b,x)}catch(v){return new Date("")}}(e,o,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&e!=this.format(o)&&(this.$d=new Date("")),r={}}else if(o instanceof Array)for(var f=o.length,m=1;m<=f;m+=1){a[1]=o[m-1];var y=n.apply(this,a);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}m===f&&(this.$d=new Date(""))}else s.call(this,t)}}}();const U=k(q.exports);var X={exports:{}};const Q=k(X.exports=function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var s=this.$utils(),r=(t||"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(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(r)}});var J=function(){var e=t((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),n=[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],i=[1,26],s=[1,27],r=[1,28],a=[1,29],o=[1,30],c=[1,31],l=[1,32],d=[1,33],u=[1,34],h=[1,9],f=[1,10],m=[1,11],y=[1,12],k=[1,13],p=[1,14],g=[1,15],b=[1,16],x=[1,19],v=[1,20],T=[1,21],w=[1,22],_=[1,23],D=[1,25],$=[1,35],C={trace:t((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:t((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:i.TopAxis(),this.$=r[o].substr(8);break;case 20:i.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:i.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:i.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:i.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:i.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:i.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],i.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],null),i.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2],r[o-1]),i.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],i.setClickEvent(r[o-2],r[o],null),i.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-1],r[o]),i.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:s,14:r,15:a,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:m,25:y,26:k,27:p,28:g,29:b,30:x,31:v,33:T,35:w,36:_,37:24,38:D,40:$},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:36,11:17,12:i,13:s,14:r,15:a,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:m,25:y,26:k,27:p,28:g,29:b,30:x,31:v,33:T,35:w,36:_,37:24,38:D,40:$},e(n,[2,5]),e(n,[2,6]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,20]),e(n,[2,21]),e(n,[2,22]),e(n,[2,23]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),e(n,[2,27]),{32:[1,37]},{34:[1,38]},e(n,[2,30]),e(n,[2,31]),e(n,[2,32]),{39:[1,39]},e(n,[2,8]),e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),{41:[1,40],43:[1,41]},e(n,[2,4]),e(n,[2,28]),e(n,[2,29]),e(n,[2,33]),e(n,[2,34],{42:[1,42],43:[1,43]}),e(n,[2,40],{41:[1,44]}),e(n,[2,35],{43:[1,45]}),e(n,[2,36]),e(n,[2,38],{42:[1,46]}),e(n,[2,37]),e(n,[2,39])],defaultActions:{},parseError:t((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:t((function(e){var n=this,i=[0],s=[],r=[null],a=[],o=this.table,c="",l=0,d=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);h.setInput(e,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;a.push(y);var k=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=s.pop()||h.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t((function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),t(p,"lex");for(var g,b,x,v,T,w,_,D,$={};;){if(b=i[i.length-1],this.defaultActions[b]?x=this.defaultActions[b]:(null==g&&(g=p()),x=o[b]&&o[b][g]),void 0===x||!x.length||!x[0]){var C="";for(T in D=[],o[b])this.terminals_[T]&&T>2&&D.push("'"+this.terminals_[T]+"'");C=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(C,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:y,expected:D})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(x[0]){case 1:i.push(g),r.push(h.yytext),a.push(h.yylloc),i.push(x[1]),g=null,d=h.yyleng,c=h.yytext,l=h.yylineno,y=h.yylloc;break;case 2:if(w=this.productions_[x[1]][1],$.$=r[r.length-w],$._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},k&&($._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply($,[c,d,l,f.yy,x[1],r,a].concat(u))))return v;w&&(i=i.slice(0,-1*w*2),r=r.slice(0,-1*w),a=a.slice(0,-1*w)),i.push(this.productions_[x[1]][0]),r.push($.$),a.push($._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0}),"parse")},S=function(){return{EOF:1,parseError:t((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:t((function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:t((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),n.length-1&&(this.yylineno-=n.length-1);var s=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:t((function(){return this._more=!0,this}),"more"),reject:t((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})}),"reject"),less:t((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:t((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:t((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:t((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:t((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:t((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:t((function(){var t=this.next();return t||this.lex()}),"lex"),begin:t((function(t){this.conditionStack.push(t)}),"begin"),popState:t((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:t((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:t((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:t((function(t){this.begin(t)}),"pushState"),stateStackSize:t((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:t((function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}}}();function E(){this.yy={}}return C.lexer=S,t(E,"Parser"),E.prototype=C,C.Parser=E,new E}();J.parser=J;var K=J;e.extend(Z),e.extend(U),e.extend(Q);var tt,et,nt={friday:5,saturday:6},it="",st="",rt=void 0,at="",ot=[],ct=[],lt=new Map,dt=[],ut=[],ht="",ft="",mt=["active","done","crit","milestone"],yt=[],kt=!1,pt=!1,gt="sunday",bt="saturday",xt=0,vt=t((function(){dt=[],ut=[],ht="",yt=[],Kt=0,tt=void 0,et=void 0,ie=[],it="",st="",ft="",rt=void 0,at="",ot=[],ct=[],kt=!1,pt=!1,xt=0,lt=new Map,l(),gt="sunday",bt="saturday"}),"clear"),Tt=t((function(t){st=t}),"setAxisFormat"),wt=t((function(){return st}),"getAxisFormat"),_t=t((function(t){rt=t}),"setTickInterval"),Dt=t((function(){return rt}),"getTickInterval"),$t=t((function(t){at=t}),"setTodayMarker"),Ct=t((function(){return at}),"getTodayMarker"),St=t((function(t){it=t}),"setDateFormat"),Et=t((function(){kt=!0}),"enableInclusiveEndDates"),Mt=t((function(){return kt}),"endDatesAreInclusive"),At=t((function(){pt=!0}),"enableTopAxis"),It=t((function(){return pt}),"topAxisEnabled"),Yt=t((function(t){ft=t}),"setDisplayMode"),Lt=t((function(){return ft}),"getDisplayMode"),Ft=t((function(){return it}),"getDateFormat"),Wt=t((function(t){ot=t.toLowerCase().split(/[\s,]+/)}),"setIncludes"),Ot=t((function(){return ot}),"getIncludes"),Pt=t((function(t){ct=t.toLowerCase().split(/[\s,]+/)}),"setExcludes"),zt=t((function(){return ct}),"getExcludes"),Bt=t((function(){return lt}),"getLinks"),jt=t((function(t){ht=t,dt.push(t)}),"addSection"),Nt=t((function(){return dt}),"getSections"),Ht=t((function(){let t=ce();let e=0;for(;!t&&e<10;)t=ce(),e++;return ut=ie}),"getTasks"),Gt=t((function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!(!n.includes("weekends")||t.isoWeekday()!==nt[bt]&&t.isoWeekday()!==nt[bt]+1)||(!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim()))))}),"isInvalidDate"),Vt=t((function(t){gt=t}),"setWeekday"),Rt=t((function(){return gt}),"getWeekday"),Zt=t((function(t){bt=t}),"setWeekend"),qt=t((function(t,n,i,s){if(!i.length||t.manualEndTime)return;let r,a;r=t.startTime instanceof Date?e(t.startTime):e(t.startTime,n,!0),r=r.add(1,"d"),a=t.endTime instanceof Date?e(t.endTime):e(t.endTime,n,!0);const[o,c]=Ut(r,a,n,i,s);t.endTime=o.toDate(),t.renderEndTime=c}),"checkTaskDates"),Ut=t((function(t,e,n,i,s){let r=!1,a=null;for(;t<=e;)r||(a=e.toDate()),r=Gt(t,n,i,s),r&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]}),"fixTaskDates"),Xt=t((function(t,n,i){i=i.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(null!==s){let t=null;for(const n of s.groups.ids.split(" ")){let e=ae(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let r=e(i,n.trim(),!0);if(r.isValid())return r.toDate();{u.debug("Invalid date:"+i),u.debug("With date format:"+n.trim());const t=new Date(i);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+i);return t}}),"getStartDate"),Qt=t((function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]}),"parseDuration"),Jt=t((function(t,n,i,s=!1){i=i.trim();const r=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=ae(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let a=e(i,n.trim(),!0);if(a.isValid())return s&&(a=a.add(1,"d")),a.toDate();let o=e(t);const[c,l]=Qt(i);if(!Number.isNaN(c)){const t=o.add(c,l);t.isValid()&&(o=t)}return o.toDate()}),"getEndDate"),Kt=0,te=t((function(t){return void 0===t?"task"+(Kt+=1):t}),"parseId"),ee=t((function(t,n){let i;i=":"===n.substr(0,1)?n.substr(1,n.length):n;const s=i.split(","),r={};ke(s,r,mt);for(let e=0;e<s.length;e++)s[e]=s[e].trim();let a="";switch(s.length){case 1:r.id=te(),r.startTime=t.endTime,a=s[0];break;case 2:r.id=te(),r.startTime=Xt(void 0,it,s[0]),a=s[1];break;case 3:r.id=te(s[0]),r.startTime=Xt(void 0,it,s[1]),a=s[2]}return a&&(r.endTime=Jt(r.startTime,it,a,kt),r.manualEndTime=e(a,"YYYY-MM-DD",!0).isValid(),qt(r,it,ct,ot)),r}),"compileData"),ne=t((function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};ke(i,s,mt);for(let r=0;r<i.length;r++)i[r]=i[r].trim();switch(i.length){case 1:s.id=te(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:i[0]};break;case 2:s.id=te(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=te(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]}}return s}),"parseData"),ie=[],se={},re=t((function(t,e){const n={section:ht,type:ht,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=ne(et,e);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=et,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.order=xt,xt++;const s=ie.push(n);et=n.id,se[n.id]=s-1}),"addTask"),ae=t((function(t){const e=se[t];return ie[e]}),"findTaskById"),oe=t((function(t,e){const n={section:ht,type:ht,description:t,task:t,classes:[]},i=ee(tt,e);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,tt=n,ut.push(n)}),"addTaskOrg"),ce=t((function(){const n=t((function(t){const n=ie[t];let i="";switch(ie[t].raw.startTime.type){case"prevTaskEnd":{const t=ae(n.prevTaskId);n.startTime=t.endTime;break}case"getStartDate":i=Xt(void 0,it,ie[t].raw.startTime.startData),i&&(ie[t].startTime=i)}return ie[t].startTime&&(ie[t].endTime=Jt(ie[t].startTime,it,ie[t].raw.endTime.data,kt),ie[t].endTime&&(ie[t].processed=!0,ie[t].manualEndTime=e(ie[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),qt(ie[t],it,ct,ot))),ie[t].processed}),"compileTask");let i=!0;for(const[t,e]of ie.entries())n(t),i=i&&e.processed;return i}),"compileTasks"),le=t((function(t,e){let i=e;"loose"!==n().securityLevel&&(i=d(e)),t.split(",").forEach((function(t){void 0!==ae(t)&&(he(t,(()=>{window.open(i,"_self")})),lt.set(t,i))})),de(t,"clickable")}),"setLink"),de=t((function(t,e){t.split(",").forEach((function(t){let n=ae(t);void 0!==n&&n.classes.push(e)}))}),"setClass"),ue=t((function(t,e,i){if("loose"!==n().securityLevel)return;if(void 0===e)return;let s=[];if("string"==typeof i){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<s.length;t++){let e=s[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),s[t]=e}}0===s.length&&s.push(t),void 0!==ae(t)&&he(t,(()=>{m.runFunc(e,...s)}))}),"setClickFun"),he=t((function(t,e){yt.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))}),"pushFun"),fe=t((function(t,e,n){t.split(",").forEach((function(t){ue(t,e,n)})),de(t,"clickable")}),"setClickEvent"),me=t((function(t){yt.forEach((function(e){e(t)}))}),"bindFunctions"),ye={getConfig:t((()=>n().gantt),"getConfig"),clear:vt,setDateFormat:St,getDateFormat:Ft,enableInclusiveEndDates:Et,endDatesAreInclusive:Mt,enableTopAxis:At,topAxisEnabled:It,setAxisFormat:Tt,getAxisFormat:wt,setTickInterval:_t,getTickInterval:Dt,setTodayMarker:$t,getTodayMarker:Ct,setAccTitle:i,getAccTitle:s,setDiagramTitle:r,getDiagramTitle:a,setDisplayMode:Yt,getDisplayMode:Lt,setAccDescription:o,getAccDescription:c,addSection:jt,getSections:Nt,getTasks:Ht,addTask:re,findTaskById:ae,addTaskOrg:oe,setIncludes:Wt,getIncludes:Ot,setExcludes:Pt,getExcludes:zt,setClickEvent:fe,setLink:le,getLinks:Bt,bindFunctions:me,parseDuration:Qt,isInvalidDate:Gt,setWeekday:Vt,getWeekday:Rt,setWeekend:Zt};function ke(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const s=new RegExp("^\\s*"+n+"\\s*$");t[0].match(s)&&(e[n]=!0,t.shift(1),i=!0)}))}t(ke,"getTaskTags");var pe,ge=t((function(){u.debug("Something is calling, setConf, remove the call")}),"setConf"),be={monday:_,tuesday:D,wednesday:$,thursday:C,friday:S,saturday:E,sunday:M},xe=t(((t,e)=>{let n=[...t].map((()=>-1/0)),i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)),s=0;for(const r of i)for(let t=0;t<n.length;t++)if(r.startTime>=n[t]){n[t]=r.endTime,r.order=t+e,t>s&&(s=t);break}return s}),"getMaxIntersections"),ve={parser:K,db:ye,renderer:{setConf:ge,draw:t((function(i,s,r,a){const o=n().gantt,c=n().securityLevel;let l;"sandbox"===c&&(l=A("#i"+s));const d=A("sandbox"===c?l.nodes()[0].contentDocument.body:"body"),m="sandbox"===c?l.nodes()[0].contentDocument:document,y=m.getElementById(s);void 0===(pe=y.parentElement.offsetWidth)&&(pe=1200),void 0!==o.useWidth&&(pe=o.useWidth);const k=a.db.getTasks();let _=[];for(const t of k)_.push(t.type);_=N(_);const D={};let $=2*o.topPadding;if("compact"===a.db.getDisplayMode()||"compact"===o.displayMode){const t={};for(const n of k)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const i=xe(t[n],e)+1;e+=i,$+=i*(o.barHeight+o.barGap),D[n]=i}}else{$+=k.length*(o.barHeight+o.barGap);for(const t of _)D[t]=k.filter((e=>e.type===t)).length}y.setAttribute("viewBox","0 0 "+pe+" "+$);const C=d.select(`[id="${s}"]`),S=I().domain([Y(k,(function(t){return t.startTime})),L(k,(function(t){return t.endTime}))]).rangeRound([0,pe-o.leftPadding-o.rightPadding]);function E(t,e){const n=t.startTime,i=e.startTime;let s=0;return n>i?s=1:n<i&&(s=-1),s}function M(t,e,n){const i=o.barHeight,s=i+o.barGap,r=o.topPadding,c=o.leftPadding,l=W().domain([0,_.length]).range(["#00B9FA","#F95002"]).interpolate(F);P(s,r,c,e,n,t,a.db.getExcludes(),a.db.getIncludes()),z(c,r,e,n),O(t,s,r,c,i,l,e),B(s,r),j(c,r,e,n)}function O(t,e,i,r,c,l,d){const u=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));C.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",(function(t,n){return t.order*e+i-2})).attr("width",(function(){return d-o.rightPadding/2})).attr("height",e).attr("class",(function(t){for(const[e,n]of _.entries())if(t.type===n)return"section section"+e%o.numberSectionStyles;return"section section0"}));const h=C.append("g").selectAll("rect").data(t).enter(),f=a.db.getLinks();h.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?S(t.startTime)+r+.5*(S(t.endTime)-S(t.startTime))-.5*c:S(t.startTime)+r})).attr("y",(function(t,n){return t.order*e+i})).attr("width",(function(t){return t.milestone?c:S(t.renderEndTime||t.endTime)-S(t.startTime)})).attr("height",c).attr("transform-origin",(function(t,n){return n=t.order,(S(t.startTime)+r+.5*(S(t.endTime)-S(t.startTime))).toString()+"px "+(n*e+i+.5*c).toString()+"px"})).attr("class",(function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,r]of _.entries())t.type===r&&(n=s%o.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),i+=n,i+=" "+e,"task"+i})),h.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",o.fontSize).attr("x",(function(t){let e=S(t.startTime),n=S(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(S(t.endTime)-S(t.startTime))-.5*c),t.milestone&&(n=e+c);const i=this.getBBox().width;return i>n-e?n+i+1.5*o.leftPadding>d?e+r-5:n+r+5:(n-e)/2+e+r})).attr("y",(function(t,n){return t.order*e+o.barHeight/2+(o.fontSize/2-2)+i})).attr("text-height",c).attr("class",(function(t){const e=S(t.startTime);let n=S(t.endTime);t.milestone&&(n=e+c);const i=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let r=0;for(const[c,l]of _.entries())t.type===l&&(r=c%o.numberSectionStyles);let a="";return t.active&&(a=t.crit?"activeCritText"+r:"activeText"+r),t.done?a=t.crit?a+" doneCritText"+r:a+" doneText"+r:t.crit&&(a=a+" critText"+r),t.milestone&&(a+=" milestoneText"),i>n-e?n+i+1.5*o.leftPadding>d?s+" taskTextOutsideLeft taskTextOutside"+r+" "+a:s+" taskTextOutsideRight taskTextOutside"+r+" "+a+" width-"+i:s+" taskText taskText"+r+" "+a+" width-"+i}));if("sandbox"===n().securityLevel){let t;t=A("#i"+s);const e=t.nodes()[0].contentDocument;h.filter((function(t){return f.has(t.id)})).each((function(t){var n=e.querySelector("#"+t.id),i=e.querySelector("#"+t.id+"-text");const s=n.parentNode;var r=e.createElement("a");r.setAttribute("xlink:href",f.get(t.id)),r.setAttribute("target","_top"),s.appendChild(r),r.appendChild(n),r.appendChild(i)}))}}function P(t,n,i,s,r,c,l,d){if(0===l.length&&0===d.length)return;let h,f;for(const{startTime:e,endTime:a}of c)(void 0===h||e<h)&&(h=e),(void 0===f||a>f)&&(f=a);if(!h||!f)return;if(e(f).diff(e(h),"year")>5)return void u.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const m=a.db.getDateFormat(),y=[];let k=null,p=e(h);for(;p.valueOf()<=f;)a.db.isInvalidDate(p,m,l,d)?k?k.end=p:k={start:p,end:p}:k&&(y.push(k),k=null),p=p.add(1,"d");C.append("g").selectAll("rect").data(y).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return S(t.start)+i})).attr("y",o.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return S(e)-S(t.start)})).attr("height",r-n-o.gridLineStartPadding).attr("transform-origin",(function(e,n){return(S(e.start)+i+.5*(S(e.end)-S(e.start))).toString()+"px "+(n*t+.5*r).toString()+"px"})).attr("class","exclude-range")}function z(t,e,n,i){let s=(r=S,G(3,r)).tickSize(-i+e+o.gridLineStartPadding).tickFormat(p(a.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));var r;const c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(null!==c){const t=c[1],e=c[2],n=a.db.getWeekday()||o.weekday;switch(e){case"millisecond":s.ticks(w.every(t));break;case"second":s.ticks(T.every(t));break;case"minute":s.ticks(v.every(t));break;case"hour":s.ticks(x.every(t));break;case"day":s.ticks(b.every(t));break;case"week":s.ticks(be[n].every(t));break;case"month":s.ticks(g.every(t))}}if(C.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let n=function(t){return G(1,t)}(S).tickSize(-i+e+o.gridLineStartPadding).tickFormat(p(a.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));if(null!==c){const t=c[1],e=c[2],i=a.db.getWeekday()||o.weekday;switch(e){case"millisecond":n.ticks(w.every(t));break;case"second":n.ticks(T.every(t));break;case"minute":n.ticks(v.every(t));break;case"hour":n.ticks(x.every(t));break;case"day":n.ticks(b.every(t));break;case"week":n.ticks(be[i].every(t));break;case"month":n.ticks(g.every(t))}}C.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function B(t,e){let n=0;const i=Object.keys(D).map((t=>[t,D[t]]));C.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(f.lineBreakRegex),n=-(e.length-1)/2,i=m.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[s,r]of e.entries()){const t=m.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),s>0&&t.setAttribute("dy","1em"),t.textContent=r,i.appendChild(t)}return i})).attr("x",10).attr("y",(function(s,r){if(!(r>0))return s[1]*t/2+e;for(let a=0;a<r;a++)return n+=i[r-1][1],s[1]*t/2+n*t+e})).attr("font-size",o.sectionFontSize).attr("class",(function(t){for(const[e,n]of _.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%o.numberSectionStyles;return"sectionTitle"}))}function j(t,e,n,i){const s=a.db.getTodayMarker();if("off"===s)return;const r=C.append("g").attr("class","today"),c=new Date,l=r.append("line");l.attr("x1",S(c)+t).attr("x2",S(c)+t).attr("y1",o.titleTopMargin).attr("y2",i-o.titleTopMargin).attr("class","today"),""!==s&&l.attr("style",s.replace(/,/g,";"))}function N(t){const e={},n=[];for(let i=0,s=t.length;i<s;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,n.push(t[i]));return n}t(E,"taskCompare"),k.sort(E),M(k,pe,$),h(C,$,pe,o.useMaxWidth),C.append("text").text(a.db.getDiagramTitle()).attr("x",pe/2).attr("y",o.titleTopMargin).attr("class","titleText"),t(M,"makeGantt"),t(O,"drawRects"),t(P,"drawExcludeDays"),t(z,"makeGrid"),t(B,"vertLabels"),t(j,"drawToday"),t(N,"checkUnique")}),"draw")},styles:t((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: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${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: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${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: ${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: ${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: ${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: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${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: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${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: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n`),"getStyles")};export{ve as diagram};
|
|
1
|
+
import{_ as t,am as e,d as n,s as i,g as s,p as r,q as a,c as o,b as c,v as l,k as d,l as u,j as h,e as f,u as m}from"./mermaid-Bic4bmVF.js";import{aC as y,g as k,bF as p,bE as g,bC as b,bB as x,bA as v,bo as T,bl as w,bG as _,bH as D,bI as $,bJ as C,bK as S,bL as E,bD as M}from"./index-BhVxrMm_.js";import{s as A}from"./transform-D6ULhE8R.js";import{t as I,m as Y,a as L,i as F}from"./time-B-QFhLuD.js";import{l as W}from"./linear-DnzJFOVg.js";import"./step-CaHXtLdi.js";import"./init-DLRA0X12.js";function O(t){return t}var P=1e-6;function z(t){return"translate("+t+",0)"}function B(t){return"translate(0,"+t+")"}function j(t){return e=>+t(e)}function N(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function H(){return!this.__axis}function G(t,e){var n=[],i=null,s=null,r=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",u=1===t||3===t?z:B;function h(h){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,m=null==s?e.tickFormat?e.tickFormat.apply(e,n):O:s,y=Math.max(r,0)+o,k=e.range(),p=+k[0]+c,g=+k[k.length-1]+c,b=(e.bandwidth?N:j)(e.copy(),c),x=h.selection?h.selection():h,v=x.selectAll(".domain").data([null]),T=x.selectAll(".tick").data(f,e).order(),w=T.exit(),_=T.enter().append("g").attr("class","tick"),D=T.select("line"),$=T.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(_),D=D.merge(_.append("line").attr("stroke","currentColor").attr(d+"2",l*r)),$=$.merge(_.append("text").attr("fill","currentColor").attr(d,l*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==x&&(v=v.transition(h),T=T.transition(h),D=D.transition(h),$=$.transition(h),w=w.transition(h).attr("opacity",P).attr("transform",(function(t){return isFinite(t=b(t))?u(t+c):this.getAttribute("transform")})),_.attr("opacity",P).attr("transform",(function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:b(t))+c)}))),w.remove(),v.attr("d",4===t||2===t?a?"M"+l*a+","+p+"H"+c+"V"+g+"H"+l*a:"M"+c+","+p+"V"+g:a?"M"+p+","+l*a+"V"+c+"H"+g+"V"+l*a:"M"+p+","+c+"H"+g),T.attr("opacity",1).attr("transform",(function(t){return u(b(t)+c)})),D.attr(d+"2",l*r),$.attr(d,l*y).text(m),x.filter(H).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),h):i&&i.slice()},h.tickFormat=function(t){return arguments.length?(s=t,h):s},h.tickSize=function(t){return arguments.length?(r=a=+t,h):r},h.tickSizeInner=function(t){return arguments.length?(r=+t,h):r},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}var V,R={exports:{}};const Z=k(R.exports=(V="day",function(t,e,n){var i=function(t){return t.add(4-t.isoWeekday(),V)},s=e.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),V);var e,s,r,a=i(this),o=(e=this.isoWeekYear(),r=4-(s=(this.$u?n.utc:n)().year(e).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(r+=7),s.add(r,V));return a.diff(o,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var r=s.startOf;s.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(t,e)}}));var q={exports:{}};q.exports=function(){var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,r={},a=function(t){return(t=+t)+(t>68?1900:2e3)},o=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=r[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,i=r.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},u={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[n,o("day")],Do:[s,function(t){var e=r.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,o("month")],MM:[n,o("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,o("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,o("year")],Z:c,ZZ:c};function h(n){var i,s;i=n,s=r&&r.formats;for(var a=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var r=i&&i.toUpperCase();return n||s[i]||t[i]||s[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=a.length,c=0;c<o;c+=1){var l=a[c],d=u[l],h=d&&d[0],f=d&&d[1];a[c]=f?{regex:h,parser:f}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<o;n+=1){var s=a[n];if("string"==typeof s)i+=s.length;else{var r=s.regex,c=s.parser,l=t.slice(i),d=r.exec(l)[0];c.call(e,d),t=t.replace(d,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,a=t.args;this.$u=i;var o=a[1];if("string"==typeof o){var c=!0===a[2],l=!0===a[3],d=c||l,u=a[2];l&&(u=a[2]),r=this.$locale(),!c&&u&&(r=n.Ls[u]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=h(e)(t),s=i.year,r=i.month,a=i.day,o=i.hours,c=i.minutes,l=i.seconds,d=i.milliseconds,u=i.zone,f=new Date,m=a||(s||r?1:f.getDate()),y=s||f.getFullYear(),k=0;s&&!r||(k=r>0?r-1:f.getMonth());var p=o||0,g=c||0,b=l||0,x=d||0;return u?new Date(Date.UTC(y,k,m,p,g,b,x+60*u.offset*1e3)):n?new Date(Date.UTC(y,k,m,p,g,b,x)):new Date(y,k,m,p,g,b,x)}catch(v){return new Date("")}}(e,o,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&e!=this.format(o)&&(this.$d=new Date("")),r={}}else if(o instanceof Array)for(var f=o.length,m=1;m<=f;m+=1){a[1]=o[m-1];var y=n.apply(this,a);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}m===f&&(this.$d=new Date(""))}else s.call(this,t)}}}();const U=k(q.exports);var X={exports:{}};const Q=k(X.exports=function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var s=this.$utils(),r=(t||"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(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(r)}});var J=function(){var e=t((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),n=[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],i=[1,26],s=[1,27],r=[1,28],a=[1,29],o=[1,30],c=[1,31],l=[1,32],d=[1,33],u=[1,34],h=[1,9],f=[1,10],m=[1,11],y=[1,12],k=[1,13],p=[1,14],g=[1,15],b=[1,16],x=[1,19],v=[1,20],T=[1,21],w=[1,22],_=[1,23],D=[1,25],$=[1,35],C={trace:t((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:t((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:i.TopAxis(),this.$=r[o].substr(8);break;case 20:i.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:i.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:i.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:i.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:i.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:i.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],i.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],null),i.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2],r[o-1]),i.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],i.setClickEvent(r[o-2],r[o],null),i.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-1],r[o]),i.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:s,14:r,15:a,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:m,25:y,26:k,27:p,28:g,29:b,30:x,31:v,33:T,35:w,36:_,37:24,38:D,40:$},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:36,11:17,12:i,13:s,14:r,15:a,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:m,25:y,26:k,27:p,28:g,29:b,30:x,31:v,33:T,35:w,36:_,37:24,38:D,40:$},e(n,[2,5]),e(n,[2,6]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,20]),e(n,[2,21]),e(n,[2,22]),e(n,[2,23]),e(n,[2,24]),e(n,[2,25]),e(n,[2,26]),e(n,[2,27]),{32:[1,37]},{34:[1,38]},e(n,[2,30]),e(n,[2,31]),e(n,[2,32]),{39:[1,39]},e(n,[2,8]),e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),{41:[1,40],43:[1,41]},e(n,[2,4]),e(n,[2,28]),e(n,[2,29]),e(n,[2,33]),e(n,[2,34],{42:[1,42],43:[1,43]}),e(n,[2,40],{41:[1,44]}),e(n,[2,35],{43:[1,45]}),e(n,[2,36]),e(n,[2,38],{42:[1,46]}),e(n,[2,37]),e(n,[2,39])],defaultActions:{},parseError:t((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:t((function(e){var n=this,i=[0],s=[],r=[null],a=[],o=this.table,c="",l=0,d=0,u=a.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);h.setInput(e,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;a.push(y);var k=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=s.pop()||h.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t((function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),t(p,"lex");for(var g,b,x,v,T,w,_,D,$={};;){if(b=i[i.length-1],this.defaultActions[b]?x=this.defaultActions[b]:(null==g&&(g=p()),x=o[b]&&o[b][g]),void 0===x||!x.length||!x[0]){var C="";for(T in D=[],o[b])this.terminals_[T]&&T>2&&D.push("'"+this.terminals_[T]+"'");C=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(C,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:y,expected:D})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(x[0]){case 1:i.push(g),r.push(h.yytext),a.push(h.yylloc),i.push(x[1]),g=null,d=h.yyleng,c=h.yytext,l=h.yylineno,y=h.yylloc;break;case 2:if(w=this.productions_[x[1]][1],$.$=r[r.length-w],$._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},k&&($._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply($,[c,d,l,f.yy,x[1],r,a].concat(u))))return v;w&&(i=i.slice(0,-1*w*2),r=r.slice(0,-1*w),a=a.slice(0,-1*w)),i.push(this.productions_[x[1]][0]),r.push($.$),a.push($._$),_=o[i[i.length-2]][i[i.length-1]],i.push(_);break;case 3:return!0}}return!0}),"parse")},S=function(){return{EOF:1,parseError:t((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:t((function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:t((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),n.length-1&&(this.yylineno-=n.length-1);var s=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:t((function(){return this._more=!0,this}),"more"),reject:t((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})}),"reject"),less:t((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:t((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:t((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:t((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:t((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:t((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:t((function(){var t=this.next();return t||this.lex()}),"lex"),begin:t((function(t){this.conditionStack.push(t)}),"begin"),popState:t((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:t((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:t((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:t((function(t){this.begin(t)}),"pushState"),stateStackSize:t((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:t((function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");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}}}}();function E(){this.yy={}}return C.lexer=S,t(E,"Parser"),E.prototype=C,C.Parser=E,new E}();J.parser=J;var K=J;e.extend(Z),e.extend(U),e.extend(Q);var tt,et,nt={friday:5,saturday:6},it="",st="",rt=void 0,at="",ot=[],ct=[],lt=new Map,dt=[],ut=[],ht="",ft="",mt=["active","done","crit","milestone"],yt=[],kt=!1,pt=!1,gt="sunday",bt="saturday",xt=0,vt=t((function(){dt=[],ut=[],ht="",yt=[],Kt=0,tt=void 0,et=void 0,ie=[],it="",st="",ft="",rt=void 0,at="",ot=[],ct=[],kt=!1,pt=!1,xt=0,lt=new Map,l(),gt="sunday",bt="saturday"}),"clear"),Tt=t((function(t){st=t}),"setAxisFormat"),wt=t((function(){return st}),"getAxisFormat"),_t=t((function(t){rt=t}),"setTickInterval"),Dt=t((function(){return rt}),"getTickInterval"),$t=t((function(t){at=t}),"setTodayMarker"),Ct=t((function(){return at}),"getTodayMarker"),St=t((function(t){it=t}),"setDateFormat"),Et=t((function(){kt=!0}),"enableInclusiveEndDates"),Mt=t((function(){return kt}),"endDatesAreInclusive"),At=t((function(){pt=!0}),"enableTopAxis"),It=t((function(){return pt}),"topAxisEnabled"),Yt=t((function(t){ft=t}),"setDisplayMode"),Lt=t((function(){return ft}),"getDisplayMode"),Ft=t((function(){return it}),"getDateFormat"),Wt=t((function(t){ot=t.toLowerCase().split(/[\s,]+/)}),"setIncludes"),Ot=t((function(){return ot}),"getIncludes"),Pt=t((function(t){ct=t.toLowerCase().split(/[\s,]+/)}),"setExcludes"),zt=t((function(){return ct}),"getExcludes"),Bt=t((function(){return lt}),"getLinks"),jt=t((function(t){ht=t,dt.push(t)}),"addSection"),Nt=t((function(){return dt}),"getSections"),Ht=t((function(){let t=ce();let e=0;for(;!t&&e<10;)t=ce(),e++;return ut=ie}),"getTasks"),Gt=t((function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!(!n.includes("weekends")||t.isoWeekday()!==nt[bt]&&t.isoWeekday()!==nt[bt]+1)||(!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim()))))}),"isInvalidDate"),Vt=t((function(t){gt=t}),"setWeekday"),Rt=t((function(){return gt}),"getWeekday"),Zt=t((function(t){bt=t}),"setWeekend"),qt=t((function(t,n,i,s){if(!i.length||t.manualEndTime)return;let r,a;r=t.startTime instanceof Date?e(t.startTime):e(t.startTime,n,!0),r=r.add(1,"d"),a=t.endTime instanceof Date?e(t.endTime):e(t.endTime,n,!0);const[o,c]=Ut(r,a,n,i,s);t.endTime=o.toDate(),t.renderEndTime=c}),"checkTaskDates"),Ut=t((function(t,e,n,i,s){let r=!1,a=null;for(;t<=e;)r||(a=e.toDate()),r=Gt(t,n,i,s),r&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]}),"fixTaskDates"),Xt=t((function(t,n,i){i=i.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(null!==s){let t=null;for(const n of s.groups.ids.split(" ")){let e=ae(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let r=e(i,n.trim(),!0);if(r.isValid())return r.toDate();{u.debug("Invalid date:"+i),u.debug("With date format:"+n.trim());const t=new Date(i);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+i);return t}}),"getStartDate"),Qt=t((function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]}),"parseDuration"),Jt=t((function(t,n,i,s=!1){i=i.trim();const r=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=ae(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let a=e(i,n.trim(),!0);if(a.isValid())return s&&(a=a.add(1,"d")),a.toDate();let o=e(t);const[c,l]=Qt(i);if(!Number.isNaN(c)){const t=o.add(c,l);t.isValid()&&(o=t)}return o.toDate()}),"getEndDate"),Kt=0,te=t((function(t){return void 0===t?"task"+(Kt+=1):t}),"parseId"),ee=t((function(t,n){let i;i=":"===n.substr(0,1)?n.substr(1,n.length):n;const s=i.split(","),r={};ke(s,r,mt);for(let e=0;e<s.length;e++)s[e]=s[e].trim();let a="";switch(s.length){case 1:r.id=te(),r.startTime=t.endTime,a=s[0];break;case 2:r.id=te(),r.startTime=Xt(void 0,it,s[0]),a=s[1];break;case 3:r.id=te(s[0]),r.startTime=Xt(void 0,it,s[1]),a=s[2]}return a&&(r.endTime=Jt(r.startTime,it,a,kt),r.manualEndTime=e(a,"YYYY-MM-DD",!0).isValid(),qt(r,it,ct,ot)),r}),"compileData"),ne=t((function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};ke(i,s,mt);for(let r=0;r<i.length;r++)i[r]=i[r].trim();switch(i.length){case 1:s.id=te(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:i[0]};break;case 2:s.id=te(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=te(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]}}return s}),"parseData"),ie=[],se={},re=t((function(t,e){const n={section:ht,type:ht,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=ne(et,e);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=et,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.order=xt,xt++;const s=ie.push(n);et=n.id,se[n.id]=s-1}),"addTask"),ae=t((function(t){const e=se[t];return ie[e]}),"findTaskById"),oe=t((function(t,e){const n={section:ht,type:ht,description:t,task:t,classes:[]},i=ee(tt,e);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,tt=n,ut.push(n)}),"addTaskOrg"),ce=t((function(){const n=t((function(t){const n=ie[t];let i="";switch(ie[t].raw.startTime.type){case"prevTaskEnd":{const t=ae(n.prevTaskId);n.startTime=t.endTime;break}case"getStartDate":i=Xt(void 0,it,ie[t].raw.startTime.startData),i&&(ie[t].startTime=i)}return ie[t].startTime&&(ie[t].endTime=Jt(ie[t].startTime,it,ie[t].raw.endTime.data,kt),ie[t].endTime&&(ie[t].processed=!0,ie[t].manualEndTime=e(ie[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),qt(ie[t],it,ct,ot))),ie[t].processed}),"compileTask");let i=!0;for(const[t,e]of ie.entries())n(t),i=i&&e.processed;return i}),"compileTasks"),le=t((function(t,e){let i=e;"loose"!==n().securityLevel&&(i=d(e)),t.split(",").forEach((function(t){void 0!==ae(t)&&(he(t,(()=>{window.open(i,"_self")})),lt.set(t,i))})),de(t,"clickable")}),"setLink"),de=t((function(t,e){t.split(",").forEach((function(t){let n=ae(t);void 0!==n&&n.classes.push(e)}))}),"setClass"),ue=t((function(t,e,i){if("loose"!==n().securityLevel)return;if(void 0===e)return;let s=[];if("string"==typeof i){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<s.length;t++){let e=s[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),s[t]=e}}0===s.length&&s.push(t),void 0!==ae(t)&&he(t,(()=>{m.runFunc(e,...s)}))}),"setClickFun"),he=t((function(t,e){yt.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))}),"pushFun"),fe=t((function(t,e,n){t.split(",").forEach((function(t){ue(t,e,n)})),de(t,"clickable")}),"setClickEvent"),me=t((function(t){yt.forEach((function(e){e(t)}))}),"bindFunctions"),ye={getConfig:t((()=>n().gantt),"getConfig"),clear:vt,setDateFormat:St,getDateFormat:Ft,enableInclusiveEndDates:Et,endDatesAreInclusive:Mt,enableTopAxis:At,topAxisEnabled:It,setAxisFormat:Tt,getAxisFormat:wt,setTickInterval:_t,getTickInterval:Dt,setTodayMarker:$t,getTodayMarker:Ct,setAccTitle:i,getAccTitle:s,setDiagramTitle:r,getDiagramTitle:a,setDisplayMode:Yt,getDisplayMode:Lt,setAccDescription:o,getAccDescription:c,addSection:jt,getSections:Nt,getTasks:Ht,addTask:re,findTaskById:ae,addTaskOrg:oe,setIncludes:Wt,getIncludes:Ot,setExcludes:Pt,getExcludes:zt,setClickEvent:fe,setLink:le,getLinks:Bt,bindFunctions:me,parseDuration:Qt,isInvalidDate:Gt,setWeekday:Vt,getWeekday:Rt,setWeekend:Zt};function ke(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const s=new RegExp("^\\s*"+n+"\\s*$");t[0].match(s)&&(e[n]=!0,t.shift(1),i=!0)}))}t(ke,"getTaskTags");var pe,ge=t((function(){u.debug("Something is calling, setConf, remove the call")}),"setConf"),be={monday:_,tuesday:D,wednesday:$,thursday:C,friday:S,saturday:E,sunday:M},xe=t(((t,e)=>{let n=[...t].map((()=>-1/0)),i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)),s=0;for(const r of i)for(let t=0;t<n.length;t++)if(r.startTime>=n[t]){n[t]=r.endTime,r.order=t+e,t>s&&(s=t);break}return s}),"getMaxIntersections"),ve={parser:K,db:ye,renderer:{setConf:ge,draw:t((function(i,s,r,a){const o=n().gantt,c=n().securityLevel;let l;"sandbox"===c&&(l=A("#i"+s));const d=A("sandbox"===c?l.nodes()[0].contentDocument.body:"body"),m="sandbox"===c?l.nodes()[0].contentDocument:document,y=m.getElementById(s);void 0===(pe=y.parentElement.offsetWidth)&&(pe=1200),void 0!==o.useWidth&&(pe=o.useWidth);const k=a.db.getTasks();let _=[];for(const t of k)_.push(t.type);_=N(_);const D={};let $=2*o.topPadding;if("compact"===a.db.getDisplayMode()||"compact"===o.displayMode){const t={};for(const n of k)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const i=xe(t[n],e)+1;e+=i,$+=i*(o.barHeight+o.barGap),D[n]=i}}else{$+=k.length*(o.barHeight+o.barGap);for(const t of _)D[t]=k.filter((e=>e.type===t)).length}y.setAttribute("viewBox","0 0 "+pe+" "+$);const C=d.select(`[id="${s}"]`),S=I().domain([Y(k,(function(t){return t.startTime})),L(k,(function(t){return t.endTime}))]).rangeRound([0,pe-o.leftPadding-o.rightPadding]);function E(t,e){const n=t.startTime,i=e.startTime;let s=0;return n>i?s=1:n<i&&(s=-1),s}function M(t,e,n){const i=o.barHeight,s=i+o.barGap,r=o.topPadding,c=o.leftPadding,l=W().domain([0,_.length]).range(["#00B9FA","#F95002"]).interpolate(F);P(s,r,c,e,n,t,a.db.getExcludes(),a.db.getIncludes()),z(c,r,e,n),O(t,s,r,c,i,l,e),B(s,r),j(c,r,e,n)}function O(t,e,i,r,c,l,d){const u=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));C.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",(function(t,n){return t.order*e+i-2})).attr("width",(function(){return d-o.rightPadding/2})).attr("height",e).attr("class",(function(t){for(const[e,n]of _.entries())if(t.type===n)return"section section"+e%o.numberSectionStyles;return"section section0"}));const h=C.append("g").selectAll("rect").data(t).enter(),f=a.db.getLinks();h.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?S(t.startTime)+r+.5*(S(t.endTime)-S(t.startTime))-.5*c:S(t.startTime)+r})).attr("y",(function(t,n){return t.order*e+i})).attr("width",(function(t){return t.milestone?c:S(t.renderEndTime||t.endTime)-S(t.startTime)})).attr("height",c).attr("transform-origin",(function(t,n){return n=t.order,(S(t.startTime)+r+.5*(S(t.endTime)-S(t.startTime))).toString()+"px "+(n*e+i+.5*c).toString()+"px"})).attr("class",(function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,r]of _.entries())t.type===r&&(n=s%o.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),i+=n,i+=" "+e,"task"+i})),h.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",o.fontSize).attr("x",(function(t){let e=S(t.startTime),n=S(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(S(t.endTime)-S(t.startTime))-.5*c),t.milestone&&(n=e+c);const i=this.getBBox().width;return i>n-e?n+i+1.5*o.leftPadding>d?e+r-5:n+r+5:(n-e)/2+e+r})).attr("y",(function(t,n){return t.order*e+o.barHeight/2+(o.fontSize/2-2)+i})).attr("text-height",c).attr("class",(function(t){const e=S(t.startTime);let n=S(t.endTime);t.milestone&&(n=e+c);const i=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let r=0;for(const[c,l]of _.entries())t.type===l&&(r=c%o.numberSectionStyles);let a="";return t.active&&(a=t.crit?"activeCritText"+r:"activeText"+r),t.done?a=t.crit?a+" doneCritText"+r:a+" doneText"+r:t.crit&&(a=a+" critText"+r),t.milestone&&(a+=" milestoneText"),i>n-e?n+i+1.5*o.leftPadding>d?s+" taskTextOutsideLeft taskTextOutside"+r+" "+a:s+" taskTextOutsideRight taskTextOutside"+r+" "+a+" width-"+i:s+" taskText taskText"+r+" "+a+" width-"+i}));if("sandbox"===n().securityLevel){let t;t=A("#i"+s);const e=t.nodes()[0].contentDocument;h.filter((function(t){return f.has(t.id)})).each((function(t){var n=e.querySelector("#"+t.id),i=e.querySelector("#"+t.id+"-text");const s=n.parentNode;var r=e.createElement("a");r.setAttribute("xlink:href",f.get(t.id)),r.setAttribute("target","_top"),s.appendChild(r),r.appendChild(n),r.appendChild(i)}))}}function P(t,n,i,s,r,c,l,d){if(0===l.length&&0===d.length)return;let h,f;for(const{startTime:e,endTime:a}of c)(void 0===h||e<h)&&(h=e),(void 0===f||a>f)&&(f=a);if(!h||!f)return;if(e(f).diff(e(h),"year")>5)return void u.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const m=a.db.getDateFormat(),y=[];let k=null,p=e(h);for(;p.valueOf()<=f;)a.db.isInvalidDate(p,m,l,d)?k?k.end=p:k={start:p,end:p}:k&&(y.push(k),k=null),p=p.add(1,"d");C.append("g").selectAll("rect").data(y).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return S(t.start)+i})).attr("y",o.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return S(e)-S(t.start)})).attr("height",r-n-o.gridLineStartPadding).attr("transform-origin",(function(e,n){return(S(e.start)+i+.5*(S(e.end)-S(e.start))).toString()+"px "+(n*t+.5*r).toString()+"px"})).attr("class","exclude-range")}function z(t,e,n,i){let s=(r=S,G(3,r)).tickSize(-i+e+o.gridLineStartPadding).tickFormat(p(a.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));var r;const c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(null!==c){const t=c[1],e=c[2],n=a.db.getWeekday()||o.weekday;switch(e){case"millisecond":s.ticks(w.every(t));break;case"second":s.ticks(T.every(t));break;case"minute":s.ticks(v.every(t));break;case"hour":s.ticks(x.every(t));break;case"day":s.ticks(b.every(t));break;case"week":s.ticks(be[n].every(t));break;case"month":s.ticks(g.every(t))}}if(C.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let n=function(t){return G(1,t)}(S).tickSize(-i+e+o.gridLineStartPadding).tickFormat(p(a.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));if(null!==c){const t=c[1],e=c[2],i=a.db.getWeekday()||o.weekday;switch(e){case"millisecond":n.ticks(w.every(t));break;case"second":n.ticks(T.every(t));break;case"minute":n.ticks(v.every(t));break;case"hour":n.ticks(x.every(t));break;case"day":n.ticks(b.every(t));break;case"week":n.ticks(be[i].every(t));break;case"month":n.ticks(g.every(t))}}C.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function B(t,e){let n=0;const i=Object.keys(D).map((t=>[t,D[t]]));C.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(f.lineBreakRegex),n=-(e.length-1)/2,i=m.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[s,r]of e.entries()){const t=m.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),s>0&&t.setAttribute("dy","1em"),t.textContent=r,i.appendChild(t)}return i})).attr("x",10).attr("y",(function(s,r){if(!(r>0))return s[1]*t/2+e;for(let a=0;a<r;a++)return n+=i[r-1][1],s[1]*t/2+n*t+e})).attr("font-size",o.sectionFontSize).attr("class",(function(t){for(const[e,n]of _.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%o.numberSectionStyles;return"sectionTitle"}))}function j(t,e,n,i){const s=a.db.getTodayMarker();if("off"===s)return;const r=C.append("g").attr("class","today"),c=new Date,l=r.append("line");l.attr("x1",S(c)+t).attr("x2",S(c)+t).attr("y1",o.titleTopMargin).attr("y2",i-o.titleTopMargin).attr("class","today"),""!==s&&l.attr("style",s.replace(/,/g,";"))}function N(t){const e={},n=[];for(let i=0,s=t.length;i<s;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,n.push(t[i]));return n}t(E,"taskCompare"),k.sort(E),M(k,pe,$),h(C,$,pe,o.useMaxWidth),C.append("text").text(a.db.getDiagramTitle()).attr("x",pe/2).attr("y",o.titleTopMargin).attr("class","titleText"),t(M,"makeGantt"),t(O,"drawRects"),t(P,"drawExcludeDays"),t(z,"makeGrid"),t(B,"vertLabels"),t(j,"drawToday"),t(N,"checkUnique")}),"draw")},styles:t((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: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${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: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${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: ${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: ${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: ${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: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${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: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${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: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n`),"getStyles")};export{ve as diagram};
|