cc-viewer 1.6.259 → 1.6.261

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.
Files changed (79) hide show
  1. package/dist/assets/App-Co-5BI9q.js +1 -0
  2. package/dist/assets/{MdxEditorPanel-CWT3SFgC.js → MdxEditorPanel-DFNyQW6b.js} +1 -1
  3. package/dist/assets/Mobile-DwYIskc6.js +1 -0
  4. package/dist/assets/{_baseUniq-DXjKWfhk.js → _baseUniq-DGKwdzTD.js} +1 -1
  5. package/dist/assets/{arc-DsQxkW5T.js → arc-nTLBi2ib.js} +1 -1
  6. package/dist/assets/{architectureDiagram-Q4EWVU46-D24v83bq.js → architectureDiagram-Q4EWVU46-pWWvthzV.js} +1 -1
  7. package/dist/assets/{blockDiagram-DXYQGD6D-D5ezdfnY.js → blockDiagram-DXYQGD6D-CpU6v2gv.js} +1 -1
  8. package/dist/assets/{c4Diagram-AHTNJAMY-g5VhpI4X.js → c4Diagram-AHTNJAMY-zdTsx1jJ.js} +1 -1
  9. package/dist/assets/{channel-Bohj9Wcp.js → channel-Cq1UANGu.js} +1 -1
  10. package/dist/assets/{chunk-4BX2VUAB-5LFKrDPS.js → chunk-4BX2VUAB-D6w9m5kB.js} +1 -1
  11. package/dist/assets/{chunk-4TB4RGXK-B7I8vecx.js → chunk-4TB4RGXK-DjZZc11c.js} +1 -1
  12. package/dist/assets/{chunk-55IACEB6-BBIiUctL.js → chunk-55IACEB6-Cw2U09Tu.js} +1 -1
  13. package/dist/assets/{chunk-EDXVE4YY-BYpcDSKa.js → chunk-EDXVE4YY-Cv-G70H7.js} +1 -1
  14. package/dist/assets/{chunk-FMBD7UC4-Dpw6TUJP.js → chunk-FMBD7UC4-Dykxux6b.js} +1 -1
  15. package/dist/assets/{chunk-OYMX7WX6-1R1GcGjy.js → chunk-OYMX7WX6-Cn9oAaEC.js} +1 -1
  16. package/dist/assets/{chunk-QZHKN3VN-B43hQ2vS.js → chunk-QZHKN3VN-CA1IccbG.js} +1 -1
  17. package/dist/assets/{chunk-YZCP3GAM-1IZth8n2.js → chunk-YZCP3GAM-CbReBNg5.js} +1 -1
  18. package/dist/assets/classDiagram-6PBFFD2Q-PgwmelQQ.js +1 -0
  19. package/dist/assets/classDiagram-v2-HSJHXN6E-PgwmelQQ.js +1 -0
  20. package/dist/assets/clone-Dnu1HdEX.js +1 -0
  21. package/dist/assets/{cose-bilkent-S5V4N54A-D05nug0R.js → cose-bilkent-S5V4N54A-TwxpCIwM.js} +1 -1
  22. package/dist/assets/{dagre-KV5264BT-DZ9d_ZUE.js → dagre-KV5264BT-CxuHKd9a.js} +1 -1
  23. package/dist/assets/{diagram-5BDNPKRD-DdyX_gXl.js → diagram-5BDNPKRD-BzR9Peib.js} +1 -1
  24. package/dist/assets/{diagram-G4DWMVQ6-cjq8tNSZ.js → diagram-G4DWMVQ6-PWFXrQqF.js} +1 -1
  25. package/dist/assets/{diagram-MMDJMWI5-NiKFms6e.js → diagram-MMDJMWI5-CqnrwtNB.js} +1 -1
  26. package/dist/assets/{diagram-TYMM5635-Dpig5X9-.js → diagram-TYMM5635-Do2MhBCf.js} +1 -1
  27. package/dist/assets/{erDiagram-SMLLAGMA-D2sWo3Zv.js → erDiagram-SMLLAGMA-CklZI6kO.js} +1 -1
  28. package/dist/assets/{flowDiagram-DWJPFMVM-D85Dj_yq.js → flowDiagram-DWJPFMVM-C_SKJN0d.js} +1 -1
  29. package/dist/assets/{ganttDiagram-T4ZO3ILL-DxAjpfgn.js → ganttDiagram-T4ZO3ILL-ChhhqFiR.js} +1 -1
  30. package/dist/assets/{gitGraphDiagram-UUTBAWPF-BO9g8cL0.js → gitGraphDiagram-UUTBAWPF-HarEJVSI.js} +1 -1
  31. package/dist/assets/{graph-BfcDIvNk.js → graph-BTcI3kpi.js} +1 -1
  32. package/dist/assets/{index-PkTBRWSU.js → index-B0NtFDg2.js} +1 -1
  33. package/dist/assets/{index-Bxmjxqf5.js → index-B7-pqPyp.js} +1 -1
  34. package/dist/assets/{index-CGqcaIdp.js → index-BG6Hzhck.js} +1 -1
  35. package/dist/assets/{index-BEpSzlsR.js → index-Bzp41aRh.js} +1 -1
  36. package/dist/assets/index-C6MrFmhs.js +2 -0
  37. package/dist/assets/{index-BJjKgolB.js → index-CF0YP7s8.js} +1 -1
  38. package/dist/assets/{index-9sv7BDJr.js → index-CQ579eP2.js} +1 -1
  39. package/dist/assets/{index-sVTuiL15.css → index-Dzkxj8m_.css} +1 -1
  40. package/dist/assets/{index-7d_JTozZ.js → index-NNx0667m.js} +1 -1
  41. package/dist/assets/{infoDiagram-42DDH7IO-BnOW3PpN.js → infoDiagram-42DDH7IO-DOcCtSEj.js} +1 -1
  42. package/dist/assets/{ishikawaDiagram-UXIWVN3A-BdRWHTx5.js → ishikawaDiagram-UXIWVN3A-Crb_pmG4.js} +1 -1
  43. package/dist/assets/{journeyDiagram-VCZTEJTY-6-pOxb-c.js → journeyDiagram-VCZTEJTY-BUv2Exj_.js} +1 -1
  44. package/dist/assets/{jszip.min-DKP-m-LG.js → jszip.min-BuZCDHia.js} +1 -1
  45. package/dist/assets/{kanban-definition-6JOO6SKY-BBX4NlcN.js → kanban-definition-6JOO6SKY-DwSHz9oV.js} +1 -1
  46. package/dist/assets/{layout-DtQNOuH0.js → layout-Dp3N3WRT.js} +1 -1
  47. package/dist/assets/{linear-6Y3OZ7u2.js → linear-JU5ltHCp.js} +1 -1
  48. package/dist/assets/{mermaid.core-CAsnLdlL.js → mermaid.core-f1mZHh7u.js} +2 -2
  49. package/dist/assets/{min-BRPZJLHh.js → min-CDzial6q.js} +1 -1
  50. package/dist/assets/{mindmap-definition-QFDTVHPH-BkmfcnFE.js → mindmap-definition-QFDTVHPH-DnhPHplB.js} +1 -1
  51. package/dist/assets/{pieDiagram-DEJITSTG-D4a_1EvH.js → pieDiagram-DEJITSTG-dMhPj5wG.js} +1 -1
  52. package/dist/assets/{quadrantDiagram-34T5L4WZ-kKniISLU.js → quadrantDiagram-34T5L4WZ-GCi1_zHo.js} +1 -1
  53. package/dist/assets/{requirementDiagram-MS252O5E-DPikXO53.js → requirementDiagram-MS252O5E-WeErs64x.js} +1 -1
  54. package/dist/assets/{sankeyDiagram-XADWPNL6--rY8uDK7.js → sankeyDiagram-XADWPNL6-BKpP6-8Q.js} +1 -1
  55. package/dist/assets/seqResourceLoaders-80G7f5Kr.js +2 -0
  56. package/dist/assets/seqResourceLoaders-B8CyM6Ul.css +41 -0
  57. package/dist/assets/{sequenceDiagram-FGHM5R23-C57z6bd_.js → sequenceDiagram-FGHM5R23-CAC5BKbx.js} +1 -1
  58. package/dist/assets/{stateDiagram-FHFEXIEX-D7q_cBTL.js → stateDiagram-FHFEXIEX-Cxrg604Z.js} +1 -1
  59. package/dist/assets/{stateDiagram-v2-QKLJ7IA2-Co3EU6Nf.js → stateDiagram-v2-QKLJ7IA2-DaUpf340.js} +1 -1
  60. package/dist/assets/{timeline-definition-GMOUNBTQ-DBV-lv69.js → timeline-definition-GMOUNBTQ-DbvXGDTU.js} +1 -1
  61. package/dist/assets/{vendor-antd-BeN8xqGk.js → vendor-antd-jGWxgt_-.js} +1 -1
  62. package/dist/assets/{vendor-codemirror-2nbmPewy.js → vendor-codemirror-9gysGjWj.js} +1 -1
  63. package/dist/assets/{vendor-mdxeditor-C7DYEBoH.js → vendor-mdxeditor-BFiCaYAL.js} +2 -2
  64. package/dist/assets/{vendor-qrcode-BFV_3WPO.js → vendor-qrcode-DjZ-VpGR.js} +1 -1
  65. package/dist/assets/{vendor-virtuoso-COKXGpsa.js → vendor-virtuoso-DB1J9xKG.js} +1 -1
  66. package/dist/assets/{vennDiagram-DHZGUBPP-ngWDn_ip.js → vennDiagram-DHZGUBPP-BoIw-nWl.js} +1 -1
  67. package/dist/assets/{wardley-RL74JXVD-BhMXVlU_.js → wardley-RL74JXVD-4PjirsHP.js} +1 -1
  68. package/dist/assets/{wardleyDiagram-NUSXRM2D-lpdygHK-.js → wardleyDiagram-NUSXRM2D-C8RzJmfU.js} +1 -1
  69. package/dist/assets/{xychartDiagram-5P7HB3ND-DVafENtB.js → xychartDiagram-5P7HB3ND-Ct6fDXwq.js} +1 -1
  70. package/dist/index.html +5 -5
  71. package/package.json +1 -1
  72. package/dist/assets/App-eBSb5fy2.js +0 -1
  73. package/dist/assets/Mobile-DdB1mwp_.js +0 -1
  74. package/dist/assets/ProxyModal-DGzTxXqd.js +0 -2
  75. package/dist/assets/ProxyModal-DzTu4uGE.css +0 -41
  76. package/dist/assets/classDiagram-6PBFFD2Q-BBoAxatM.js +0 -1
  77. package/dist/assets/classDiagram-v2-HSJHXN6E-BBoAxatM.js +0 -1
  78. package/dist/assets/clone-Cc7ofJ6W.js +0 -1
  79. package/dist/assets/index-BGEXf37A.js +0 -2
@@ -1 +1 @@
1
- import{bc as Rgb,bd as rgbConvert,be as define,bf as extend,bg as Color,bh as nogamma,bi as hue,g as getAccDescription,s as setAccDescription,q as getDiagramTitle,p as setDiagramTitle,a as getAccTitle,b as setAccTitle,_ as __name,c as getConfig2,d as select,e as configureSvgSize,l as log,k as common_default,j as distExports,y as clear,u as utils_default}from"./mermaid.core-CAsnLdlL.js";import{g as getDefaultExportFromCjs,O as dayjs2,Q as dayjsCustomParseFormat,U as dayjsAdvancedFormat}from"./vendor-antd-BeN8xqGk.js";import{b as bisector,t as tickStep,c as continuous,a as copy,l as linear}from"./linear-6Y3OZ7u2.js";import{i as initRange}from"./init-DMZMl1PR.js";import"./vendor-mdxeditor-C7DYEBoH.js";import"./vendor-codemirror-2nbmPewy.js";import"./vendor-markdown-BFrYfpb0.js";import"./defaultLocale-DZ7E7S9R.js";function max(values,valueof){let max2;if(void 0===valueof)for(const value of values)null!=value&&(max2<value||void 0===max2&&value>=value)&&(max2=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(max2<value||void 0===max2&&value>=value)&&(max2=value)}return max2}function min(values,valueof){let min2;if(void 0===valueof)for(const value of values)null!=value&&(min2>value||void 0===min2&&value>=value)&&(min2=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(min2>value||void 0===min2&&value>=value)&&(min2=value)}return min2}function identity(x){return x}function translateX(x){return"translate("+x+",0)"}function translateY(y){return"translate(0,"+y+")"}function number$1(scale){return d=>+scale(d)}function center(scale,offset){return offset=Math.max(0,scale.bandwidth()-2*offset)/2,scale.round()&&(offset=Math.round(offset)),d=>+scale(d)+offset}function entering(){return!this.__axis}function axis(orient,scale){var tickArguments=[],tickValues=null,tickFormat=null,tickSizeInner=6,tickSizeOuter=6,tickPadding=3,offset="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,k=1===orient||4===orient?-1:1,x=4===orient||2===orient?"x":"y",transform=1===orient||3===orient?translateX:translateY;function axis2(context){var values=null==tickValues?scale.ticks?scale.ticks.apply(scale,tickArguments):scale.domain():tickValues,format=null==tickFormat?scale.tickFormat?scale.tickFormat.apply(scale,tickArguments):identity:tickFormat,spacing=Math.max(tickSizeInner,0)+tickPadding,range=scale.range(),range0=+range[0]+offset,range1=+range[range.length-1]+offset,position=(scale.bandwidth?center:number$1)(scale.copy(),offset),selection=context.selection?context.selection():context,path=selection.selectAll(".domain").data([null]),tick=selection.selectAll(".tick").data(values,scale).order(),tickExit=tick.exit(),tickEnter=tick.enter().append("g").attr("class","tick"),line=tick.select("line"),text=tick.select("text");path=path.merge(path.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),tick=tick.merge(tickEnter),line=line.merge(tickEnter.append("line").attr("stroke","currentColor").attr(x+"2",k*tickSizeInner)),text=text.merge(tickEnter.append("text").attr("fill","currentColor").attr(x,k*spacing).attr("dy",1===orient?"0em":3===orient?"0.71em":"0.32em")),context!==selection&&(path=path.transition(context),tick=tick.transition(context),line=line.transition(context),text=text.transition(context),tickExit=tickExit.transition(context).attr("opacity",1e-6).attr("transform",function(d){return isFinite(d=position(d))?transform(d+offset):this.getAttribute("transform")}),tickEnter.attr("opacity",1e-6).attr("transform",function(d){var p=this.parentNode.__axis;return transform((p&&isFinite(p=p(d))?p:position(d))+offset)})),tickExit.remove(),path.attr("d",4===orient||2===orient?tickSizeOuter?"M"+k*tickSizeOuter+","+range0+"H"+offset+"V"+range1+"H"+k*tickSizeOuter:"M"+offset+","+range0+"V"+range1:tickSizeOuter?"M"+range0+","+k*tickSizeOuter+"V"+offset+"H"+range1+"V"+k*tickSizeOuter:"M"+range0+","+offset+"H"+range1),tick.attr("opacity",1).attr("transform",function(d){return transform(position(d)+offset)}),line.attr(x+"2",k*tickSizeInner),text.attr(x,k*spacing).text(format),selection.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===orient?"start":4===orient?"end":"middle"),selection.each(function(){this.__axis=position})}return axis2.scale=function(_){return arguments.length?(scale=_,axis2):scale},axis2.ticks=function(){return tickArguments=Array.from(arguments),axis2},axis2.tickArguments=function(_){return arguments.length?(tickArguments=null==_?[]:Array.from(_),axis2):tickArguments.slice()},axis2.tickValues=function(_){return arguments.length?(tickValues=null==_?null:Array.from(_),axis2):tickValues&&tickValues.slice()},axis2.tickFormat=function(_){return arguments.length?(tickFormat=_,axis2):tickFormat},axis2.tickSize=function(_){return arguments.length?(tickSizeInner=tickSizeOuter=+_,axis2):tickSizeInner},axis2.tickSizeInner=function(_){return arguments.length?(tickSizeInner=+_,axis2):tickSizeInner},axis2.tickSizeOuter=function(_){return arguments.length?(tickSizeOuter=+_,axis2):tickSizeOuter},axis2.tickPadding=function(_){return arguments.length?(tickPadding=+_,axis2):tickPadding},axis2.offset=function(_){return arguments.length?(offset=+_,axis2):offset},axis2}const radians=Math.PI/180,degrees=180/Math.PI,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1;function labConvert(o){if(o instanceof Lab)return new Lab(o.l,o.a,o.b,o.opacity);if(o instanceof Hcl)return hcl2lab(o);o instanceof Rgb||(o=rgbConvert(o));var x,z,r=rgb2lrgb(o.r),g=rgb2lrgb(o.g),b=rgb2lrgb(o.b),y=xyz2lab((.2225045*r+.7168786*g+.0606169*b)/1);return r===g&&g===b?x=z=y:(x=xyz2lab((.4360747*r+.3850649*g+.1430804*b)/.96422),z=xyz2lab((.0139322*r+.0971045*g+.7141733*b)/.82521)),new Lab(116*y-16,500*(x-y),200*(y-z),o.opacity)}function Lab(l,a,b,opacity){this.l=+l,this.a=+a,this.b=+b,this.opacity=+opacity}function xyz2lab(t){return t>.008856451679035631?Math.pow(t,1/3):t/t2+t0$1}function lab2xyz(t){return t>t1$1?t*t*t:t2*(t-t0$1)}function lrgb2rgb(x){return 255*(x<=.0031308?12.92*x:1.055*Math.pow(x,1/2.4)-.055)}function rgb2lrgb(x){return(x/=255)<=.04045?x/12.92:Math.pow((x+.055)/1.055,2.4)}function hcl$1(h,c,l,opacity){return 1===arguments.length?function(o){if(o instanceof Hcl)return new Hcl(o.h,o.c,o.l,o.opacity);if(o instanceof Lab||(o=labConvert(o)),0===o.a&&0===o.b)return new Hcl(NaN,0<o.l&&o.l<100?0:NaN,o.l,o.opacity);var h=Math.atan2(o.b,o.a)*degrees;return new Hcl(h<0?h+360:h,Math.sqrt(o.a*o.a+o.b*o.b),o.l,o.opacity)}(h):new Hcl(h,c,l,null==opacity?1:opacity)}function Hcl(h,c,l,opacity){this.h=+h,this.c=+c,this.l=+l,this.opacity=+opacity}function hcl2lab(o){if(isNaN(o.h))return new Lab(o.l,0,0,o.opacity);var h=o.h*radians;return new Lab(o.l,Math.cos(h)*o.c,Math.sin(h)*o.c,o.opacity)}define(Lab,function(l,a,b,opacity){return 1===arguments.length?labConvert(l):new Lab(l,a,b,null==opacity?1:opacity)},extend(Color,{brighter(k){return new Lab(this.l+18*(null==k?1:k),this.a,this.b,this.opacity)},darker(k){return new Lab(this.l-18*(null==k?1:k),this.a,this.b,this.opacity)},rgb(){var y=(this.l+16)/116,x=isNaN(this.a)?y:y+this.a/500,z=isNaN(this.b)?y:y-this.b/200;return x=.96422*lab2xyz(x),y=1*lab2xyz(y),z=.82521*lab2xyz(z),new Rgb(lrgb2rgb(3.1338561*x-1.6168667*y-.4906146*z),lrgb2rgb(-.9787684*x+1.9161415*y+.033454*z),lrgb2rgb(.0719453*x-.2289914*y+1.4052427*z),this.opacity)}})),define(Hcl,hcl$1,extend(Color,{brighter(k){return new Hcl(this.h,this.c,this.l+18*(null==k?1:k),this.opacity)},darker(k){return new Hcl(this.h,this.c,this.l-18*(null==k?1:k),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));const interpolateHcl=(hue2=hue,function(start,end){var h=hue2((start=hcl$1(start)).h,(end=hcl$1(end)).h),c=nogamma(start.c,end.c),l=nogamma(start.l,end.l),opacity=nogamma(start.opacity,end.opacity);return function(t){return start.h=h(t),start.c=c(t),start.l=l(t),start.opacity=opacity(t),start+""}});var hue2;const t0=new Date,t1=new Date;function timeInterval(floori,offseti,count,field){function interval(date2){return floori(date2=0===arguments.length?new Date:new Date(+date2)),date2}return interval.floor=date2=>(floori(date2=new Date(+date2)),date2),interval.ceil=date2=>(floori(date2=new Date(date2-1)),offseti(date2,1),floori(date2),date2),interval.round=date2=>{const d0=interval(date2),d1=interval.ceil(date2);return date2-d0<d1-date2?d0:d1},interval.offset=(date2,step)=>(offseti(date2=new Date(+date2),null==step?1:Math.floor(step)),date2),interval.range=(start,stop,step)=>{const range=[];if(start=interval.ceil(start),step=null==step?1:Math.floor(step),!(start<stop&&step>0))return range;let previous;do{range.push(previous=new Date(+start)),offseti(start,step),floori(start)}while(previous<start&&start<stop);return range},interval.filter=test=>timeInterval(date2=>{if(date2>=date2)for(;floori(date2),!test(date2);)date2.setTime(date2-1)},(date2,step)=>{if(date2>=date2)if(step<0)for(;++step<=0;)for(;offseti(date2,-1),!test(date2););else for(;--step>=0;)for(;offseti(date2,1),!test(date2););}),count&&(interval.count=(start,end)=>(t0.setTime(+start),t1.setTime(+end),floori(t0),floori(t1),Math.floor(count(t0,t1))),interval.every=step=>(step=Math.floor(step),isFinite(step)&&step>0?step>1?interval.filter(field?d=>field(d)%step===0:d=>interval.count(0,d)%step===0):interval:null)),interval}const millisecond=timeInterval(()=>{},(date2,step)=>{date2.setTime(+date2+step)},(start,end)=>end-start);millisecond.every=k=>(k=Math.floor(k),isFinite(k)&&k>0?k>1?timeInterval(date2=>{date2.setTime(Math.floor(date2/k)*k)},(date2,step)=>{date2.setTime(+date2+step*k)},(start,end)=>(end-start)/k):millisecond:null),millisecond.range;const second=timeInterval(date2=>{date2.setTime(date2-date2.getMilliseconds())},(date2,step)=>{date2.setTime(+date2+1e3*step)},(start,end)=>(end-start)/1e3,date2=>date2.getUTCSeconds());second.range;const timeMinute=timeInterval(date2=>{date2.setTime(date2-date2.getMilliseconds()-1e3*date2.getSeconds())},(date2,step)=>{date2.setTime(+date2+6e4*step)},(start,end)=>(end-start)/6e4,date2=>date2.getMinutes());timeMinute.range;timeInterval(date2=>{date2.setUTCSeconds(0,0)},(date2,step)=>{date2.setTime(+date2+6e4*step)},(start,end)=>(end-start)/6e4,date2=>date2.getUTCMinutes()).range;const timeHour=timeInterval(date2=>{date2.setTime(date2-date2.getMilliseconds()-1e3*date2.getSeconds()-6e4*date2.getMinutes())},(date2,step)=>{date2.setTime(+date2+36e5*step)},(start,end)=>(end-start)/36e5,date2=>date2.getHours());timeHour.range;timeInterval(date2=>{date2.setUTCMinutes(0,0,0)},(date2,step)=>{date2.setTime(+date2+36e5*step)},(start,end)=>(end-start)/36e5,date2=>date2.getUTCHours()).range;const timeDay=timeInterval(date2=>date2.setHours(0,0,0,0),(date2,step)=>date2.setDate(date2.getDate()+step),(start,end)=>(end-start-6e4*(end.getTimezoneOffset()-start.getTimezoneOffset()))/864e5,date2=>date2.getDate()-1);timeDay.range;const utcDay=timeInterval(date2=>{date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCDate(date2.getUTCDate()+step)},(start,end)=>(end-start)/864e5,date2=>date2.getUTCDate()-1);utcDay.range;function timeWeekday(i){return timeInterval(date2=>{date2.setDate(date2.getDate()-(date2.getDay()+7-i)%7),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setDate(date2.getDate()+7*step)},(start,end)=>(end-start-6e4*(end.getTimezoneOffset()-start.getTimezoneOffset()))/6048e5)}timeInterval(date2=>{date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCDate(date2.getUTCDate()+step)},(start,end)=>(end-start)/864e5,date2=>Math.floor(date2/864e5)).range;const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);function utcWeekday(i){return timeInterval(date2=>{date2.setUTCDate(date2.getUTCDate()-(date2.getUTCDay()+7-i)%7),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCDate(date2.getUTCDate()+7*step)},(start,end)=>(end-start)/6048e5)}timeSunday.range,timeMonday.range,timeTuesday.range,timeWednesday.range,timeThursday.range,timeFriday.range,timeSaturday.range;const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;const timeMonth=timeInterval(date2=>{date2.setDate(1),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setMonth(date2.getMonth()+step)},(start,end)=>end.getMonth()-start.getMonth()+12*(end.getFullYear()-start.getFullYear()),date2=>date2.getMonth());timeMonth.range;timeInterval(date2=>{date2.setUTCDate(1),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCMonth(date2.getUTCMonth()+step)},(start,end)=>end.getUTCMonth()-start.getUTCMonth()+12*(end.getUTCFullYear()-start.getUTCFullYear()),date2=>date2.getUTCMonth()).range;const timeYear=timeInterval(date2=>{date2.setMonth(0,1),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setFullYear(date2.getFullYear()+step)},(start,end)=>end.getFullYear()-start.getFullYear(),date2=>date2.getFullYear());timeYear.every=k=>isFinite(k=Math.floor(k))&&k>0?timeInterval(date2=>{date2.setFullYear(Math.floor(date2.getFullYear()/k)*k),date2.setMonth(0,1),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setFullYear(date2.getFullYear()+step*k)}):null,timeYear.range;const utcYear=timeInterval(date2=>{date2.setUTCMonth(0,1),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCFullYear(date2.getUTCFullYear()+step)},(start,end)=>end.getUTCFullYear()-start.getUTCFullYear(),date2=>date2.getUTCFullYear());utcYear.every=k=>isFinite(k=Math.floor(k))&&k>0?timeInterval(date2=>{date2.setUTCFullYear(Math.floor(date2.getUTCFullYear()/k)*k),date2.setUTCMonth(0,1),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCFullYear(date2.getUTCFullYear()+step*k)}):null,utcYear.range;const[timeTicks,timeTickInterval]=function(year,month,week,day,hour,minute){const tickIntervals=[[second,1,1e3],[second,5,5e3],[second,15,15e3],[second,30,3e4],[minute,1,6e4],[minute,5,3e5],[minute,15,9e5],[minute,30,18e5],[hour,1,36e5],[hour,3,108e5],[hour,6,216e5],[hour,12,432e5],[day,1,864e5],[day,2,1728e5],[week,1,6048e5],[month,1,2592e6],[month,3,7776e6],[year,1,31536e6]];function tickInterval2(start,stop,count){const target=Math.abs(stop-start)/count,i=bisector(([,,step2])=>step2).right(tickIntervals,target);if(i===tickIntervals.length)return year.every(tickStep(start/31536e6,stop/31536e6,count));if(0===i)return millisecond.every(Math.max(tickStep(start,stop,count),1));const[t,step]=tickIntervals[target/tickIntervals[i-1][2]<tickIntervals[i][2]/target?i-1:i];return t.every(step)}return[function(start,stop,count){const reverse=stop<start;reverse&&([start,stop]=[stop,start]);const interval=count&&"function"==typeof count.range?count:tickInterval2(start,stop,count),ticks2=interval?interval.range(start,+stop+1):[];return reverse?ticks2.reverse():ticks2},tickInterval2]}(timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute);function localDate(d){if(0<=d.y&&d.y<100){var date2=new Date(-1,d.m,d.d,d.H,d.M,d.S,d.L);return date2.setFullYear(d.y),date2}return new Date(d.y,d.m,d.d,d.H,d.M,d.S,d.L)}function utcDate(d){if(0<=d.y&&d.y<100){var date2=new Date(Date.UTC(-1,d.m,d.d,d.H,d.M,d.S,d.L));return date2.setUTCFullYear(d.y),date2}return new Date(Date.UTC(d.y,d.m,d.d,d.H,d.M,d.S,d.L))}function newDate(y,m,d){return{y:y,m:m,d:d,H:0,M:0,S:0,L:0}}var locale,timeFormat,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(value,fill,width){var sign=value<0?"-":"",string=(sign?-value:value)+"",length=string.length;return sign+(length<width?new Array(width-length+1).join(fill)+string:string)}function requote(s){return s.replace(requoteRe,"\\$&")}function formatRe(names){return new RegExp("^(?:"+names.map(requote).join("|")+")","i")}function formatLookup(names){return new Map(names.map((name,i)=>[name.toLowerCase(),i]))}function parseWeekdayNumberSunday(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.w=+n[0],i+n[0].length):-1}function parseWeekdayNumberMonday(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.u=+n[0],i+n[0].length):-1}function parseWeekNumberSunday(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.U=+n[0],i+n[0].length):-1}function parseWeekNumberISO(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.V=+n[0],i+n[0].length):-1}function parseWeekNumberMonday(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.W=+n[0],i+n[0].length):-1}function parseFullYear(d,string,i){var n=numberRe.exec(string.slice(i,i+4));return n?(d.y=+n[0],i+n[0].length):-1}function parseYear(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.y=+n[0]+(+n[0]>68?1900:2e3),i+n[0].length):-1}function parseZone(d,string,i){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i,i+6));return n?(d.Z=n[1]?0:-(n[2]+(n[3]||"00")),i+n[0].length):-1}function parseQuarter(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.q=3*n[0]-3,i+n[0].length):-1}function parseMonthNumber(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.m=n[0]-1,i+n[0].length):-1}function parseDayOfMonth(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.d=+n[0],i+n[0].length):-1}function parseDayOfYear(d,string,i){var n=numberRe.exec(string.slice(i,i+3));return n?(d.m=0,d.d=+n[0],i+n[0].length):-1}function parseHour24(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.H=+n[0],i+n[0].length):-1}function parseMinutes(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.M=+n[0],i+n[0].length):-1}function parseSeconds(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.S=+n[0],i+n[0].length):-1}function parseMilliseconds(d,string,i){var n=numberRe.exec(string.slice(i,i+3));return n?(d.L=+n[0],i+n[0].length):-1}function parseMicroseconds(d,string,i){var n=numberRe.exec(string.slice(i,i+6));return n?(d.L=Math.floor(n[0]/1e3),i+n[0].length):-1}function parseLiteralPercent(d,string,i){var n=percentRe.exec(string.slice(i,i+1));return n?i+n[0].length:-1}function parseUnixTimestamp(d,string,i){var n=numberRe.exec(string.slice(i));return n?(d.Q=+n[0],i+n[0].length):-1}function parseUnixTimestampSeconds(d,string,i){var n=numberRe.exec(string.slice(i));return n?(d.s=+n[0],i+n[0].length):-1}function formatDayOfMonth(d,p){return pad(d.getDate(),p,2)}function formatHour24(d,p){return pad(d.getHours(),p,2)}function formatHour12(d,p){return pad(d.getHours()%12||12,p,2)}function formatDayOfYear(d,p){return pad(1+timeDay.count(timeYear(d),d),p,3)}function formatMilliseconds(d,p){return pad(d.getMilliseconds(),p,3)}function formatMicroseconds(d,p){return formatMilliseconds(d,p)+"000"}function formatMonthNumber(d,p){return pad(d.getMonth()+1,p,2)}function formatMinutes(d,p){return pad(d.getMinutes(),p,2)}function formatSeconds(d,p){return pad(d.getSeconds(),p,2)}function formatWeekdayNumberMonday(d){var day=d.getDay();return 0===day?7:day}function formatWeekNumberSunday(d,p){return pad(timeSunday.count(timeYear(d)-1,d),p,2)}function dISO(d){var day=d.getDay();return day>=4||0===day?timeThursday(d):timeThursday.ceil(d)}function formatWeekNumberISO(d,p){return d=dISO(d),pad(timeThursday.count(timeYear(d),d)+(4===timeYear(d).getDay()),p,2)}function formatWeekdayNumberSunday(d){return d.getDay()}function formatWeekNumberMonday(d,p){return pad(timeMonday.count(timeYear(d)-1,d),p,2)}function formatYear(d,p){return pad(d.getFullYear()%100,p,2)}function formatYearISO(d,p){return pad((d=dISO(d)).getFullYear()%100,p,2)}function formatFullYear(d,p){return pad(d.getFullYear()%1e4,p,4)}function formatFullYearISO(d,p){var day=d.getDay();return pad((d=day>=4||0===day?timeThursday(d):timeThursday.ceil(d)).getFullYear()%1e4,p,4)}function formatZone(d){var z=d.getTimezoneOffset();return(z>0?"-":(z*=-1,"+"))+pad(z/60|0,"0",2)+pad(z%60,"0",2)}function formatUTCDayOfMonth(d,p){return pad(d.getUTCDate(),p,2)}function formatUTCHour24(d,p){return pad(d.getUTCHours(),p,2)}function formatUTCHour12(d,p){return pad(d.getUTCHours()%12||12,p,2)}function formatUTCDayOfYear(d,p){return pad(1+utcDay.count(utcYear(d),d),p,3)}function formatUTCMilliseconds(d,p){return pad(d.getUTCMilliseconds(),p,3)}function formatUTCMicroseconds(d,p){return formatUTCMilliseconds(d,p)+"000"}function formatUTCMonthNumber(d,p){return pad(d.getUTCMonth()+1,p,2)}function formatUTCMinutes(d,p){return pad(d.getUTCMinutes(),p,2)}function formatUTCSeconds(d,p){return pad(d.getUTCSeconds(),p,2)}function formatUTCWeekdayNumberMonday(d){var dow=d.getUTCDay();return 0===dow?7:dow}function formatUTCWeekNumberSunday(d,p){return pad(utcSunday.count(utcYear(d)-1,d),p,2)}function UTCdISO(d){var day=d.getUTCDay();return day>=4||0===day?utcThursday(d):utcThursday.ceil(d)}function formatUTCWeekNumberISO(d,p){return d=UTCdISO(d),pad(utcThursday.count(utcYear(d),d)+(4===utcYear(d).getUTCDay()),p,2)}function formatUTCWeekdayNumberSunday(d){return d.getUTCDay()}function formatUTCWeekNumberMonday(d,p){return pad(utcMonday.count(utcYear(d)-1,d),p,2)}function formatUTCYear(d,p){return pad(d.getUTCFullYear()%100,p,2)}function formatUTCYearISO(d,p){return pad((d=UTCdISO(d)).getUTCFullYear()%100,p,2)}function formatUTCFullYear(d,p){return pad(d.getUTCFullYear()%1e4,p,4)}function formatUTCFullYearISO(d,p){var day=d.getUTCDay();return pad((d=day>=4||0===day?utcThursday(d):utcThursday.ceil(d)).getUTCFullYear()%1e4,p,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(d){return+d}function formatUnixTimestampSeconds(d){return Math.floor(+d/1e3)}function date(t){return new Date(t)}function number(t){return t instanceof Date?+t:+new Date(+t)}function calendar(ticks,tickInterval2,year,month,week,day,hour,minute,second2,format){var scale=continuous(),invert=scale.invert,domain=scale.domain,formatMillisecond=format(".%L"),formatSecond=format(":%S"),formatMinute=format("%I:%M"),formatHour=format("%I %p"),formatDay=format("%a %d"),formatWeek=format("%b %d"),formatMonth=format("%B"),formatYear2=format("%Y");function tickFormat(date2){return(second2(date2)<date2?formatMillisecond:minute(date2)<date2?formatSecond:hour(date2)<date2?formatMinute:day(date2)<date2?formatHour:month(date2)<date2?week(date2)<date2?formatDay:formatWeek:year(date2)<date2?formatMonth:formatYear2)(date2)}return scale.invert=function(y){return new Date(invert(y))},scale.domain=function(_){return arguments.length?domain(Array.from(_,number)):domain().map(date)},scale.ticks=function(interval){var d=domain();return ticks(d[0],d[d.length-1],null==interval?10:interval)},scale.tickFormat=function(count,specifier){return null==specifier?tickFormat:format(specifier)},scale.nice=function(interval){var d=domain();return interval&&"function"==typeof interval.range||(interval=tickInterval2(d[0],d[d.length-1],null==interval?10:interval)),interval?domain(function(domain,interval){var t,i0=0,i1=(domain=domain.slice()).length-1,x0=domain[i0],x1=domain[i1];return x1<x0&&(t=i0,i0=i1,i1=t,t=x0,x0=x1,x1=t),domain[i0]=interval.floor(x0),domain[i1]=interval.ceil(x1),domain}(d,interval)):scale},scale.copy=function(){return copy(scale,calendar(ticks,tickInterval2,year,month,week,day,hour,minute,second2,format))},scale}function time(){return initRange.apply(calendar(timeTicks,timeTickInterval,timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute,second,timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}locale=function(locale2){var locale_dateTime=locale2.dateTime,locale_date=locale2.date,locale_time=locale2.time,locale_periods=locale2.periods,locale_weekdays=locale2.days,locale_shortWeekdays=locale2.shortDays,locale_months=locale2.months,locale_shortMonths=locale2.shortMonths,periodRe=formatRe(locale_periods),periodLookup=formatLookup(locale_periods),weekdayRe=formatRe(locale_weekdays),weekdayLookup=formatLookup(locale_weekdays),shortWeekdayRe=formatRe(locale_shortWeekdays),shortWeekdayLookup=formatLookup(locale_shortWeekdays),monthRe=formatRe(locale_months),monthLookup=formatLookup(locale_months),shortMonthRe=formatRe(locale_shortMonths),shortMonthLookup=formatLookup(locale_shortMonths),formats={a:function(d){return locale_shortWeekdays[d.getDay()]},A:function(d){return locale_weekdays[d.getDay()]},b:function(d){return locale_shortMonths[d.getMonth()]},B:function(d){return locale_months[d.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(d){return locale_periods[+(d.getHours()>=12)]},q:function(d){return 1+~~(d.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},utcFormats={a:function(d){return locale_shortWeekdays[d.getUTCDay()]},A:function(d){return locale_weekdays[d.getUTCDay()]},b:function(d){return locale_shortMonths[d.getUTCMonth()]},B:function(d){return locale_months[d.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(d){return locale_periods[+(d.getUTCHours()>=12)]},q:function(d){return 1+~~(d.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},parses={a:function(d,string,i){var n=shortWeekdayRe.exec(string.slice(i));return n?(d.w=shortWeekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},A:function(d,string,i){var n=weekdayRe.exec(string.slice(i));return n?(d.w=weekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},b:function(d,string,i){var n=shortMonthRe.exec(string.slice(i));return n?(d.m=shortMonthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},B:function(d,string,i){var n=monthRe.exec(string.slice(i));return n?(d.m=monthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},c:function(d,string,i){return parseSpecifier(d,locale_dateTime,string,i)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(d,string,i){var n=periodRe.exec(string.slice(i));return n?(d.p=periodLookup.get(n[0].toLowerCase()),i+n[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(d,string,i){return parseSpecifier(d,locale_date,string,i)},X:function(d,string,i){return parseSpecifier(d,locale_time,string,i)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(specifier,formats2){return function(date2){var c,pad2,format,string=[],i=-1,j=0,n=specifier.length;for(date2 instanceof Date||(date2=new Date(+date2));++i<n;)37===specifier.charCodeAt(i)&&(string.push(specifier.slice(j,i)),null!=(pad2=pads[c=specifier.charAt(++i)])?c=specifier.charAt(++i):pad2="e"===c?" ":"0",(format=formats2[c])&&(c=format(date2,pad2)),string.push(c),j=i+1);return string.push(specifier.slice(j,i)),string.join("")}}function newParse(specifier,Z){return function(string){var week,day,d=newDate(1900,void 0,1);if(parseSpecifier(d,specifier,string+="",0)!=string.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(Z&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(day=(week=utcDate(newDate(d.y,0,1))).getUTCDay(),week=day>4||0===day?utcMonday.ceil(week):utcMonday(week),week=utcDay.offset(week,7*(d.V-1)),d.y=week.getUTCFullYear(),d.m=week.getUTCMonth(),d.d=week.getUTCDate()+(d.w+6)%7):(day=(week=localDate(newDate(d.y,0,1))).getDay(),week=day>4||0===day?timeMonday.ceil(week):timeMonday(week),week=timeDay.offset(week,7*(d.V-1)),d.y=week.getFullYear(),d.m=week.getMonth(),d.d=week.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),day="Z"in d?utcDate(newDate(d.y,0,1)).getUTCDay():localDate(newDate(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(day+5)%7:d.w+7*d.U-(day+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,utcDate(d)):localDate(d)}}function parseSpecifier(d,specifier,string,j){for(var c,parse,i=0,n=specifier.length,m=string.length;i<n;){if(j>=m)return-1;if(37===(c=specifier.charCodeAt(i++))){if(c=specifier.charAt(i++),!(parse=parses[c in pads?specifier.charAt(i++):c])||(j=parse(d,string,j))<0)return-1}else if(c!=string.charCodeAt(j++))return-1}return j}return formats.x=newFormat(locale_date,formats),formats.X=newFormat(locale_time,formats),formats.c=newFormat(locale_dateTime,formats),utcFormats.x=newFormat(locale_date,utcFormats),utcFormats.X=newFormat(locale_time,utcFormats),utcFormats.c=newFormat(locale_dateTime,utcFormats),{format:function(specifier){var f=newFormat(specifier+="",formats);return f.toString=function(){return specifier},f},parse:function(specifier){var p=newParse(specifier+="",!1);return p.toString=function(){return specifier},p},utcFormat:function(specifier){var f=newFormat(specifier+="",utcFormats);return f.toString=function(){return specifier},f},utcParse:function(specifier){var p=newParse(specifier+="",!0);return p.toString=function(){return specifier},p}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse;var hasRequiredIsoWeek,e,isoWeek$1={exports:{}};const dayjsIsoWeek=getDefaultExportFromCjs(hasRequiredIsoWeek?isoWeek$1.exports:(hasRequiredIsoWeek=1,isoWeek$1.exports=(e="day",function(t,i,s){var a=function(t4){return t4.add(4-t4.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t4){if(!this.$utils().u(t4))return this.add(7*(t4-this.isoWeek()),e);var i2,n2,o,r=a(this),u=(i2=this.isoWeekYear(),o=4-(n2=(this.$u?s.utc:s)().year(i2).startOf("year")).isoWeekday(),n2.isoWeekday()>4&&(o+=7),n2.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e2){return this.$utils().u(e2)?this.day()||7:this.day(this.day()%7?e2:e2-7)};var n=d.startOf;d.startOf=function(e2,t4){var i2=this.$utils(),s2=!!i2.u(t4)||t4;return"isoweek"===i2.p(e2)?s2?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(e2,t4)}})));var hasRequiredDuration,duration$1={exports:{}};var durationExports=(hasRequiredDuration||(hasRequiredDuration=1,duration$1.exports=function(){var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t4){return t4 instanceof g},f=function(t4,s2,n2){return new g(t4,n2,s2.$l)},m=function(t4){return s.p(t4)+"s"},l=function(t4){return t4<0},$=function(t4){return l(t4)?Math.ceil(t4):Math.floor(t4)},y=function(t4){return Math.abs(t4)},v=function(t4,s2){return t4?l(t4)?{negative:!0,format:""+y(t4)+s2}:{negative:!1,format:""+t4+s2}:{negative:!1,format:""}},g=function(){function l2(t4,s2,n2){var i2=this;if(this.$d={},this.$l=n2,void 0===t4&&(this.$ms=0,this.parseFromMilliseconds()),s2)return f(t4*h[m(s2)],this);if("number"==typeof t4)return this.$ms=t4,this.parseFromMilliseconds(),this;if("object"==typeof t4)return Object.keys(t4).forEach(function(s3){i2.$d[m(s3)]=t4[s3]}),this.calMilliseconds(),this;if("string"==typeof t4){var e2=t4.match(a);if(e2){var r2=e2.slice(2).map(function(t5){return null!=t5?Number(t5):0});return this.$d.years=r2[0],this.$d.months=r2[1],this.$d.weeks=r2[2],this.$d.days=r2[3],this.$d.hours=r2[4],this.$d.minutes=r2[5],this.$d.seconds=r2[6],this.calMilliseconds(),this}}return this}var y2=l2.prototype;return y2.calMilliseconds=function(){var t4=this;this.$ms=Object.keys(this.$d).reduce(function(s2,n2){return s2+(t4.$d[n2]||0)*h[n2]},0)},y2.parseFromMilliseconds=function(){var t4=this.$ms;this.$d.years=$(t4/u),t4%=u,this.$d.months=$(t4/d),t4%=d,this.$d.days=$(t4/r),t4%=r,this.$d.hours=$(t4/e),t4%=e,this.$d.minutes=$(t4/i),t4%=i,this.$d.seconds=$(t4/n),t4%=n,this.$d.milliseconds=t4},y2.toISOString=function(){var t4=v(this.$d.years,"Y"),s2=v(this.$d.months,"M"),n2=+this.$d.days||0;this.$d.weeks&&(n2+=7*this.$d.weeks);var i2=v(n2,"D"),e2=v(this.$d.hours,"H"),r2=v(this.$d.minutes,"M"),o2=this.$d.seconds||0;this.$d.milliseconds&&(o2+=this.$d.milliseconds/1e3,o2=Math.round(1e3*o2)/1e3);var u2=v(o2,"S"),d2=t4.negative||s2.negative||i2.negative||e2.negative||r2.negative||u2.negative,a2=e2.format||r2.format||u2.format?"T":"",h2=(d2?"-":"")+"P"+t4.format+s2.format+i2.format+a2+e2.format+r2.format+u2.format;return"P"===h2||"-P"===h2?"P0D":h2},y2.toJSON=function(){return this.toISOString()},y2.format=function(t4){var n2=t4||"YYYY-MM-DDTHH:mm:ss",i2={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return n2.replace(o,function(t5,s2){return s2||String(i2[t5])})},y2.as=function(t4){return this.$ms/h[m(t4)]},y2.get=function(t4){var s2=this.$ms,n2=m(t4);return"milliseconds"===n2?s2%=1e3:s2="weeks"===n2?$(s2/h[n2]):this.$d[n2],s2||0},y2.add=function(t4,s2,n2){var i2;return i2=s2?t4*h[m(s2)]:c(t4)?t4.$ms:f(t4,this).$ms,f(this.$ms+i2*(n2?-1:1),this)},y2.subtract=function(t4,s2){return this.add(t4,s2,!0)},y2.locale=function(t4){var s2=this.clone();return s2.$l=t4,s2},y2.clone=function(){return f(this.$ms,this)},y2.humanize=function(s2){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!s2)},y2.valueOf=function(){return this.asMilliseconds()},y2.milliseconds=function(){return this.get("milliseconds")},y2.asMilliseconds=function(){return this.as("milliseconds")},y2.seconds=function(){return this.get("seconds")},y2.asSeconds=function(){return this.as("seconds")},y2.minutes=function(){return this.get("minutes")},y2.asMinutes=function(){return this.as("minutes")},y2.hours=function(){return this.get("hours")},y2.asHours=function(){return this.as("hours")},y2.days=function(){return this.get("days")},y2.asDays=function(){return this.as("days")},y2.weeks=function(){return this.get("weeks")},y2.asWeeks=function(){return this.as("weeks")},y2.months=function(){return this.get("months")},y2.asMonths=function(){return this.as("months")},y2.years=function(){return this.get("years")},y2.asYears=function(){return this.as("years")},l2}(),p=function(t4,s2,n2){return t4.add(s2.years()*n2,"y").add(s2.months()*n2,"M").add(s2.days()*n2,"d").add(s2.hours()*n2,"h").add(s2.minutes()*n2,"m").add(s2.seconds()*n2,"s").add(s2.milliseconds()*n2,"ms")};return function(n2,i2,e2){t=e2,s=e2().$utils(),e2.duration=function(t4,s2){var n3=e2.locale();return f(t4,{$l:n3},s2)},e2.isDuration=c;var r2=i2.prototype.add,o2=i2.prototype.subtract;i2.prototype.add=function(t4,s2){return c(t4)?p(this,t4,1):r2.bind(this)(t4,s2)},i2.prototype.subtract=function(t4,s2){return c(t4)?p(this,t4,-1):o2.bind(this)(t4,s2)}}}()),duration$1.exports);const dayjsDuration=getDefaultExportFromCjs(durationExports);var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[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],$V1=[1,26],$V2=[1,27],$V3=[1,28],$V4=[1,29],$V5=[1,30],$V6=[1,31],$V7=[1,32],$V8=[1,33],$V9=[1,34],$Va=[1,9],$Vb=[1,10],$Vc=[1,11],$Vd=[1,12],$Ve=[1,13],$Vf=[1,14],$Vg=[1,15],$Vh=[1,16],$Vi=[1,19],$Vj=[1,20],$Vk=[1,21],$Vl=[1,22],$Vm=[1,23],$Vn=[1,25],$Vo=[1,35],parser2={trace:__name(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:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 1:return $$[$0-1];case 2:case 6:case 7:this.$=[];break;case 3:$$[$0-1].push($$[$0]),this.$=$$[$0-1];break;case 4:case 5:this.$=$$[$0];break;case 8:yy.setWeekday("monday");break;case 9:yy.setWeekday("tuesday");break;case 10:yy.setWeekday("wednesday");break;case 11:yy.setWeekday("thursday");break;case 12:yy.setWeekday("friday");break;case 13:yy.setWeekday("saturday");break;case 14:yy.setWeekday("sunday");break;case 15:yy.setWeekend("friday");break;case 16:yy.setWeekend("saturday");break;case 17:yy.setDateFormat($$[$0].substr(11)),this.$=$$[$0].substr(11);break;case 18:yy.enableInclusiveEndDates(),this.$=$$[$0].substr(18);break;case 19:yy.TopAxis(),this.$=$$[$0].substr(8);break;case 20:yy.setAxisFormat($$[$0].substr(11)),this.$=$$[$0].substr(11);break;case 21:yy.setTickInterval($$[$0].substr(13)),this.$=$$[$0].substr(13);break;case 22:yy.setExcludes($$[$0].substr(9)),this.$=$$[$0].substr(9);break;case 23:yy.setIncludes($$[$0].substr(9)),this.$=$$[$0].substr(9);break;case 24:yy.setTodayMarker($$[$0].substr(12)),this.$=$$[$0].substr(12);break;case 27:yy.setDiagramTitle($$[$0].substr(6)),this.$=$$[$0].substr(6);break;case 28:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 29:case 30:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 31:yy.addSection($$[$0].substr(8)),this.$=$$[$0].substr(8);break;case 33:yy.addTask($$[$0-1],$$[$0]),this.$="task";break;case 34:this.$=$$[$0-1],yy.setClickEvent($$[$0-1],$$[$0],null);break;case 35:this.$=$$[$0-2],yy.setClickEvent($$[$0-2],$$[$0-1],$$[$0]);break;case 36:this.$=$$[$0-2],yy.setClickEvent($$[$0-2],$$[$0-1],null),yy.setLink($$[$0-2],$$[$0]);break;case 37:this.$=$$[$0-3],yy.setClickEvent($$[$0-3],$$[$0-2],$$[$0-1]),yy.setLink($$[$0-3],$$[$0]);break;case 38:this.$=$$[$0-2],yy.setClickEvent($$[$0-2],$$[$0],null),yy.setLink($$[$0-2],$$[$0-1]);break;case 39:this.$=$$[$0-3],yy.setClickEvent($$[$0-3],$$[$0-1],$$[$0]),yy.setLink($$[$0-3],$$[$0-2]);break;case 40:this.$=$$[$0-1],yy.setLink($$[$0-1],$$[$0]);break;case 41:case 47:this.$=$$[$0-1]+" "+$$[$0];break;case 42:case 43:case 45:this.$=$$[$0-2]+" "+$$[$0-1]+" "+$$[$0];break;case 44:case 46:this.$=$$[$0-3]+" "+$$[$0-2]+" "+$$[$0-1]+" "+$$[$0]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:$V1,13:$V2,14:$V3,15:$V4,16:$V5,17:$V6,18:$V7,19:18,20:$V8,21:$V9,22:$Va,23:$Vb,24:$Vc,25:$Vd,26:$Ve,27:$Vf,28:$Vg,29:$Vh,30:$Vi,31:$Vj,33:$Vk,35:$Vl,36:$Vm,37:24,38:$Vn,40:$Vo},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:36,11:17,12:$V1,13:$V2,14:$V3,15:$V4,16:$V5,17:$V6,18:$V7,19:18,20:$V8,21:$V9,22:$Va,23:$Vb,24:$Vc,25:$Vd,26:$Ve,27:$Vf,28:$Vg,29:$Vh,30:$Vi,31:$Vj,33:$Vk,35:$Vl,36:$Vm,37:24,38:$Vn,40:$Vo},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,17]),o($V0,[2,18]),o($V0,[2,19]),o($V0,[2,20]),o($V0,[2,21]),o($V0,[2,22]),o($V0,[2,23]),o($V0,[2,24]),o($V0,[2,25]),o($V0,[2,26]),o($V0,[2,27]),{32:[1,37]},{34:[1,38]},o($V0,[2,30]),o($V0,[2,31]),o($V0,[2,32]),{39:[1,39]},o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),o($V0,[2,16]),{41:[1,40],43:[1,41]},o($V0,[2,4]),o($V0,[2,28]),o($V0,[2,29]),o($V0,[2,33]),o($V0,[2,34],{42:[1,42],43:[1,43]}),o($V0,[2,40],{41:[1,44]}),o($V0,[2,35],{43:[1,45]}),o($V0,[2,36]),o($V0,[2,38],{42:[1,46]}),o($V0,[2,37]),o($V0,[2,39])],defaultActions:{},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,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:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.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),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=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:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(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:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){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 Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var gantt_default=parser;dayjs2.extend(dayjsIsoWeek),dayjs2.extend(dayjsCustomParseFormat),dayjs2.extend(dayjsAdvancedFormat);var lastTask,lastTaskID,WEEKEND_START_DAY={friday:5,saturday:6},dateFormat="",axisFormat="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],links=new Map,sections=[],tasks=[],currentSection="",displayMode="",tags=["active","done","crit","milestone","vert"],funs=[],diagramId="",inclusiveEndDates=!1,topAxis=!1,weekday="sunday",weekend="saturday",lastOrder=0,clear2=__name(function(){sections=[],tasks=[],currentSection="",funs=[],taskCnt=0,lastTask=void 0,lastTaskID=void 0,rawTasks=[],dateFormat="",axisFormat="",displayMode="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],inclusiveEndDates=!1,topAxis=!1,lastOrder=0,links=new Map,diagramId="",clear(),weekday="sunday",weekend="saturday"},"clear"),setDiagramId=__name(function(id){diagramId=id},"setDiagramId"),setAxisFormat=__name(function(txt){axisFormat=txt},"setAxisFormat"),getAxisFormat=__name(function(){return axisFormat},"getAxisFormat"),setTickInterval=__name(function(txt){tickInterval=txt},"setTickInterval"),getTickInterval=__name(function(){return tickInterval},"getTickInterval"),setTodayMarker=__name(function(txt){todayMarker=txt},"setTodayMarker"),getTodayMarker=__name(function(){return todayMarker},"getTodayMarker"),setDateFormat=__name(function(txt){dateFormat=txt},"setDateFormat"),enableInclusiveEndDates=__name(function(){inclusiveEndDates=!0},"enableInclusiveEndDates"),endDatesAreInclusive=__name(function(){return inclusiveEndDates},"endDatesAreInclusive"),enableTopAxis=__name(function(){topAxis=!0},"enableTopAxis"),topAxisEnabled=__name(function(){return topAxis},"topAxisEnabled"),setDisplayMode=__name(function(txt){displayMode=txt},"setDisplayMode"),getDisplayMode=__name(function(){return displayMode},"getDisplayMode"),getDateFormat=__name(function(){return dateFormat},"getDateFormat"),setIncludes=__name(function(txt){includes=txt.toLowerCase().split(/[\s,]+/)},"setIncludes"),getIncludes=__name(function(){return includes},"getIncludes"),setExcludes=__name(function(txt){excludes=txt.toLowerCase().split(/[\s,]+/)},"setExcludes"),getExcludes=__name(function(){return excludes},"getExcludes"),getLinks=__name(function(){return links},"getLinks"),addSection=__name(function(txt){currentSection=txt,sections.push(txt)},"addSection"),getSections=__name(function(){return sections},"getSections"),getTasks=__name(function(){let allItemsProcessed=compileTasks();let iterationCount=0;for(;!allItemsProcessed&&iterationCount<10;)allItemsProcessed=compileTasks(),iterationCount++;return tasks=rawTasks},"getTasks"),isInvalidDate=__name(function(date2,dateFormat2,excludes2,includes2){const formattedDate=date2.format(dateFormat2.trim()),dateOnly=date2.format("YYYY-MM-DD");return!includes2.includes(formattedDate)&&!includes2.includes(dateOnly)&&(!(!excludes2.includes("weekends")||date2.isoWeekday()!==WEEKEND_START_DAY[weekend]&&date2.isoWeekday()!==WEEKEND_START_DAY[weekend]+1)||(!!excludes2.includes(date2.format("dddd").toLowerCase())||(excludes2.includes(formattedDate)||excludes2.includes(dateOnly))))},"isInvalidDate"),setWeekday=__name(function(txt){weekday=txt},"setWeekday"),getWeekday=__name(function(){return weekday},"getWeekday"),setWeekend=__name(function(startDay){weekend=startDay},"setWeekend"),checkTaskDates=__name(function(task,dateFormat2,excludes2,includes2){if(!excludes2.length||task.manualEndTime)return;let startTime,originalEndTime;startTime=task.startTime instanceof Date?dayjs2(task.startTime):dayjs2(task.startTime,dateFormat2,!0),startTime=startTime.add(1,"d"),originalEndTime=task.endTime instanceof Date?dayjs2(task.endTime):dayjs2(task.endTime,dateFormat2,!0);const[fixedEndTime,renderEndTime]=fixTaskDates(startTime,originalEndTime,dateFormat2,excludes2,includes2);task.endTime=fixedEndTime.toDate(),task.renderEndTime=renderEndTime},"checkTaskDates"),fixTaskDates=__name(function(startTime,endTime,dateFormat2,excludes2,includes2){let invalid=!1,renderEndTime=null;for(;startTime<=endTime;)invalid||(renderEndTime=endTime.toDate()),invalid=isInvalidDate(startTime,dateFormat2,excludes2,includes2),invalid&&(endTime=endTime.add(1,"d")),startTime=startTime.add(1,"d");return[endTime,renderEndTime]},"fixTaskDates"),getStartDate=__name(function(prevTime,dateFormat2,str){str=str.trim();if(__name(format=>{const trimmedFormat=format.trim();return"x"===trimmedFormat||"X"===trimmedFormat},"isTimestampFormat")(dateFormat2)&&/^\d+$/.test(str))return new Date(Number(str));const afterStatement=/^after\s+(?<ids>[\d\w- ]+)/.exec(str);if(null!==afterStatement){let latestTask=null;for(const id of afterStatement.groups.ids.split(" ")){let task=findTaskById(id);void 0!==task&&(!latestTask||task.endTime>latestTask.endTime)&&(latestTask=task)}if(latestTask)return latestTask.endTime;const today=new Date;return today.setHours(0,0,0,0),today}let mDate=dayjs2(str,dateFormat2.trim(),!0);if(mDate.isValid())return mDate.toDate();{log.debug("Invalid date:"+str),log.debug("With date format:"+dateFormat2.trim());const d=new Date(str);if(void 0===d||isNaN(d.getTime())||d.getFullYear()<-1e4||d.getFullYear()>1e4)throw new Error("Invalid date:"+str);return d}},"getStartDate"),parseDuration=__name(function(str){const statement=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(str.trim());return null!==statement?[Number.parseFloat(statement[1]),statement[2]]:[NaN,"ms"]},"parseDuration"),getEndDate=__name(function(prevTime,dateFormat2,str,inclusive=!1){str=str.trim();const untilStatement=/^until\s+(?<ids>[\d\w- ]+)/.exec(str);if(null!==untilStatement){let earliestTask=null;for(const id of untilStatement.groups.ids.split(" ")){let task=findTaskById(id);void 0!==task&&(!earliestTask||task.startTime<earliestTask.startTime)&&(earliestTask=task)}if(earliestTask)return earliestTask.startTime;const today=new Date;return today.setHours(0,0,0,0),today}let parsedDate=dayjs2(str,dateFormat2.trim(),!0);if(parsedDate.isValid())return inclusive&&(parsedDate=parsedDate.add(1,"d")),parsedDate.toDate();let endTime=dayjs2(prevTime);const[durationValue,durationUnit]=parseDuration(str);if(!Number.isNaN(durationValue)){const newEndTime=endTime.add(durationValue,durationUnit);newEndTime.isValid()&&(endTime=newEndTime)}return endTime.toDate()},"getEndDate"),taskCnt=0,parseId=__name(function(idStr){return void 0===idStr?"task"+(taskCnt+=1):idStr},"parseId"),compileData=__name(function(prevTask,dataStr){let ds;ds=":"===dataStr.substr(0,1)?dataStr.substr(1,dataStr.length):dataStr;const data=ds.split(","),task={};getTaskTags(data,task,tags);for(let i=0;i<data.length;i++)data[i]=data[i].trim();let endTimeData="";switch(data.length){case 1:task.id=parseId(),task.startTime=prevTask.endTime,endTimeData=data[0];break;case 2:task.id=parseId(),task.startTime=getStartDate(void 0,dateFormat,data[0]),endTimeData=data[1];break;case 3:task.id=parseId(data[0]),task.startTime=getStartDate(void 0,dateFormat,data[1]),endTimeData=data[2]}return endTimeData&&(task.endTime=getEndDate(task.startTime,dateFormat,endTimeData,inclusiveEndDates),task.manualEndTime=dayjs2(endTimeData,"YYYY-MM-DD",!0).isValid(),checkTaskDates(task,dateFormat,excludes,includes)),task},"compileData"),parseData=__name(function(prevTaskId,dataStr){let ds;ds=":"===dataStr.substr(0,1)?dataStr.substr(1,dataStr.length):dataStr;const data=ds.split(","),task={};getTaskTags(data,task,tags);for(let i=0;i<data.length;i++)data[i]=data[i].trim();switch(data.length){case 1:task.id=parseId(),task.startTime={type:"prevTaskEnd",id:prevTaskId},task.endTime={data:data[0]};break;case 2:task.id=parseId(),task.startTime={type:"getStartDate",startData:data[0]},task.endTime={data:data[1]};break;case 3:task.id=parseId(data[0]),task.startTime={type:"getStartDate",startData:data[1]},task.endTime={data:data[2]}}return task},"parseData"),rawTasks=[],taskDb={},addTask=__name(function(descr,data){const rawTask={section:currentSection,type:currentSection,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:data},task:descr,classes:[]},taskInfo=parseData(lastTaskID,data);rawTask.raw.startTime=taskInfo.startTime,rawTask.raw.endTime=taskInfo.endTime,rawTask.id=taskInfo.id,rawTask.prevTaskId=lastTaskID,rawTask.active=taskInfo.active,rawTask.done=taskInfo.done,rawTask.crit=taskInfo.crit,rawTask.milestone=taskInfo.milestone,rawTask.vert=taskInfo.vert,rawTask.order=lastOrder,lastOrder++;const pos=rawTasks.push(rawTask);lastTaskID=rawTask.id,taskDb[rawTask.id]=pos-1},"addTask"),findTaskById=__name(function(id){const pos=taskDb[id];return rawTasks[pos]},"findTaskById"),addTaskOrg=__name(function(descr,data){const newTask={section:currentSection,type:currentSection,description:descr,task:descr,classes:[]},taskInfo=compileData(lastTask,data);newTask.startTime=taskInfo.startTime,newTask.endTime=taskInfo.endTime,newTask.id=taskInfo.id,newTask.active=taskInfo.active,newTask.done=taskInfo.done,newTask.crit=taskInfo.crit,newTask.milestone=taskInfo.milestone,newTask.vert=taskInfo.vert,lastTask=newTask,tasks.push(newTask)},"addTaskOrg"),compileTasks=__name(function(){const compileTask=__name(function(pos){const task=rawTasks[pos];let startTime="";switch(rawTasks[pos].raw.startTime.type){case"prevTaskEnd":{const prevTask=findTaskById(task.prevTaskId);task.startTime=prevTask.endTime;break}case"getStartDate":startTime=getStartDate(void 0,dateFormat,rawTasks[pos].raw.startTime.startData),startTime&&(rawTasks[pos].startTime=startTime)}return rawTasks[pos].startTime&&(rawTasks[pos].endTime=getEndDate(rawTasks[pos].startTime,dateFormat,rawTasks[pos].raw.endTime.data,inclusiveEndDates),rawTasks[pos].endTime&&(rawTasks[pos].processed=!0,rawTasks[pos].manualEndTime=dayjs2(rawTasks[pos].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),checkTaskDates(rawTasks[pos],dateFormat,excludes,includes))),rawTasks[pos].processed},"compileTask");let allProcessed=!0;for(const[i,rawTask]of rawTasks.entries())compileTask(i),allProcessed=allProcessed&&rawTask.processed;return allProcessed},"compileTasks"),setLink=__name(function(ids,_linkStr){let linkStr=_linkStr;"loose"!==getConfig2().securityLevel&&(linkStr=distExports.sanitizeUrl(_linkStr)),ids.split(",").forEach(function(id){void 0!==findTaskById(id)&&(pushFun(id,()=>{window.open(linkStr,"_self")}),links.set(id,linkStr))}),setClass(ids,"clickable")},"setLink"),setClass=__name(function(ids,className){ids.split(",").forEach(function(id){let rawTask=findTaskById(id);void 0!==rawTask&&rawTask.classes.push(className)})},"setClass"),setClickFun=__name(function(id,functionName,functionArgs){if("loose"!==getConfig2().securityLevel)return;if(void 0===functionName)return;let argList=[];if("string"==typeof functionArgs){argList=functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<argList.length;i++){let item=argList[i].trim();item.startsWith('"')&&item.endsWith('"')&&(item=item.substr(1,item.length-2)),argList[i]=item}}0===argList.length&&argList.push(id),void 0!==findTaskById(id)&&pushFun(id,()=>{utils_default.runFunc(functionName,...argList)})},"setClickFun"),pushFun=__name(function(id,callbackFunction){funs.push(function(){const prefixedId=diagramId?`${diagramId}-${id}`:id,elem=document.querySelector(`[id="${prefixedId}"]`);null!==elem&&elem.addEventListener("click",function(){callbackFunction()})},function(){const prefixedId=diagramId?`${diagramId}-${id}`:id,elem=document.querySelector(`[id="${prefixedId}-text"]`);null!==elem&&elem.addEventListener("click",function(){callbackFunction()})})},"pushFun"),setClickEvent=__name(function(ids,functionName,functionArgs){ids.split(",").forEach(function(id){setClickFun(id,functionName,functionArgs)}),setClass(ids,"clickable")},"setClickEvent"),bindFunctions=__name(function(element){funs.forEach(function(fun){fun(element)})},"bindFunctions"),ganttDb_default={getConfig:__name(()=>getConfig2().gantt,"getConfig"),clear:clear2,setDateFormat:setDateFormat,getDateFormat:getDateFormat,enableInclusiveEndDates:enableInclusiveEndDates,endDatesAreInclusive:endDatesAreInclusive,enableTopAxis:enableTopAxis,topAxisEnabled:topAxisEnabled,setAxisFormat:setAxisFormat,getAxisFormat:getAxisFormat,setTickInterval:setTickInterval,getTickInterval:getTickInterval,setTodayMarker:setTodayMarker,getTodayMarker:getTodayMarker,setAccTitle:setAccTitle,getAccTitle:getAccTitle,setDiagramTitle:setDiagramTitle,getDiagramTitle:getDiagramTitle,setDiagramId:setDiagramId,setDisplayMode:setDisplayMode,getDisplayMode:getDisplayMode,setAccDescription:setAccDescription,getAccDescription:getAccDescription,addSection:addSection,getSections:getSections,getTasks:getTasks,addTask:addTask,findTaskById:findTaskById,addTaskOrg:addTaskOrg,setIncludes:setIncludes,getIncludes:getIncludes,setExcludes:setExcludes,getExcludes:getExcludes,setClickEvent:setClickEvent,setLink:setLink,getLinks:getLinks,bindFunctions:bindFunctions,parseDuration:parseDuration,isInvalidDate:isInvalidDate,setWeekday:setWeekday,getWeekday:getWeekday,setWeekend:setWeekend};function getTaskTags(data,task,tags2){let matchFound=!0;for(;matchFound;)matchFound=!1,tags2.forEach(function(t){const regex=new RegExp("^\\s*"+t+"\\s*$");data[0].match(regex)&&(task[t]=!0,data.shift(1),matchFound=!0)})}__name(getTaskTags,"getTaskTags"),dayjs2.extend(dayjsDuration);var w,setConf=__name(function(){log.debug("Something is calling, setConf, remove the call")},"setConf"),mapWeekdayToTimeFunction={monday:timeMonday,tuesday:timeTuesday,wednesday:timeWednesday,thursday:timeThursday,friday:timeFriday,saturday:timeSaturday,sunday:timeSunday},getMaxIntersections=__name((tasks2,orderOffset)=>{let timeline=[...tasks2].map(()=>-1/0),sorted=[...tasks2].sort((a,b)=>a.startTime-b.startTime||a.order-b.order),maxIntersections=0;for(const element of sorted)for(let j=0;j<timeline.length;j++)if(element.startTime>=timeline[j]){timeline[j]=element.endTime,element.order=j+orderOffset,j>maxIntersections&&(maxIntersections=j);break}return maxIntersections},"getMaxIntersections"),diagram={parser:gantt_default,db:ganttDb_default,renderer:{setConf:setConf,draw:__name(function(text,id,version,diagObj){const conf=getConfig2().gantt;diagObj.db.setDiagramId(id);const securityLevel=getConfig2().securityLevel;let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=select("#i"+id));const root=select("sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument.body:"body"),doc="sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument:document,elem=doc.getElementById(id);void 0===(w=elem.parentElement.offsetWidth)&&(w=1200),void 0!==conf.useWidth&&(w=conf.useWidth);const taskArray=diagObj.db.getTasks();let categories=[];for(const element of taskArray)categories.push(element.type);categories=checkUnique(categories);const categoryHeights={};let h=2*conf.topPadding;if("compact"===diagObj.db.getDisplayMode()||"compact"===conf.displayMode){const categoryElements={};for(const element of taskArray)void 0===categoryElements[element.section]?categoryElements[element.section]=[element]:categoryElements[element.section].push(element);let intersections=0;for(const category of Object.keys(categoryElements)){const categoryHeight=getMaxIntersections(categoryElements[category],intersections)+1;intersections+=categoryHeight,h+=categoryHeight*(conf.barHeight+conf.barGap),categoryHeights[category]=categoryHeight}}else{h+=taskArray.length*(conf.barHeight+conf.barGap);for(const category of categories)categoryHeights[category]=taskArray.filter(task=>task.type===category).length}elem.setAttribute("viewBox","0 0 "+w+" "+h);const svg=root.select(`[id="${id}"]`),timeScale=time().domain([min(taskArray,function(d){return d.startTime}),max(taskArray,function(d){return d.endTime})]).rangeRound([0,w-conf.leftPadding-conf.rightPadding]);function taskCompare(a,b){const taskA=a.startTime,taskB=b.startTime;let result=0;return taskA>taskB?result=1:taskA<taskB&&(result=-1),result}function makeGantt(tasks2,pageWidth,pageHeight){const barHeight=conf.barHeight,gap=barHeight+conf.barGap,topPadding=conf.topPadding,leftPadding=conf.leftPadding,colorScale=linear().domain([0,categories.length]).range(["#00B9FA","#F95002"]).interpolate(interpolateHcl);drawExcludeDays(gap,topPadding,leftPadding,pageWidth,pageHeight,tasks2,diagObj.db.getExcludes(),diagObj.db.getIncludes()),makeGrid(leftPadding,topPadding,pageWidth,pageHeight),drawRects(tasks2,gap,topPadding,leftPadding,barHeight,colorScale,pageWidth),vertLabels(gap,topPadding),drawToday(leftPadding,topPadding,pageWidth,pageHeight)}function drawRects(theArray,theGap,theTopPad,theSidePad,theBarHeight,theColorScale,w2){theArray.sort((a,b)=>a.vert===b.vert?0:a.vert?1:-1);const uniqueTasks=[...new Set(theArray.map(item=>item.order))].map(id2=>theArray.find(item=>item.order===id2));svg.append("g").selectAll("rect").data(uniqueTasks).enter().append("rect").attr("x",0).attr("y",function(d,i){return d.order*theGap+theTopPad-2}).attr("width",function(){return w2-conf.rightPadding/2}).attr("height",theGap).attr("class",function(d){for(const[i,category]of categories.entries())if(d.type===category)return"section section"+i%conf.numberSectionStyles;return"section section0"}).enter();const rectangles=svg.append("g").selectAll("rect").data(theArray).enter(),links2=diagObj.db.getLinks();rectangles.append("rect").attr("id",function(d){return id+"-"+d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){return d.milestone?timeScale(d.startTime)+theSidePad+.5*(timeScale(d.endTime)-timeScale(d.startTime))-.5*theBarHeight:timeScale(d.startTime)+theSidePad}).attr("y",function(d,i){return i=d.order,d.vert?conf.gridLineStartPadding:i*theGap+theTopPad}).attr("width",function(d){return d.milestone?theBarHeight:d.vert?.08*theBarHeight:timeScale(d.renderEndTime||d.endTime)-timeScale(d.startTime)}).attr("height",function(d){return d.vert?taskArray.length*(conf.barHeight+conf.barGap)+2*conf.barHeight:theBarHeight}).attr("transform-origin",function(d,i){return i=d.order,(timeScale(d.startTime)+theSidePad+.5*(timeScale(d.endTime)-timeScale(d.startTime))).toString()+"px "+(i*theGap+theTopPad+.5*theBarHeight).toString()+"px"}).attr("class",function(d){let classStr="";d.classes.length>0&&(classStr=d.classes.join(" "));let secNum=0;for(const[i,category]of categories.entries())d.type===category&&(secNum=i%conf.numberSectionStyles);let taskClass="";return d.active?d.crit?taskClass+=" activeCrit":taskClass=" active":d.done?taskClass=d.crit?" doneCrit":" done":d.crit&&(taskClass+=" crit"),0===taskClass.length&&(taskClass=" task"),d.milestone&&(taskClass=" milestone "+taskClass),d.vert&&(taskClass=" vert "+taskClass),taskClass+=secNum,taskClass+=" "+classStr,"task"+taskClass}),rectangles.append("text").attr("id",function(d){return id+"-"+d.id+"-text"}).text(function(d){return d.task}).attr("font-size",conf.fontSize).attr("x",function(d){let startX=timeScale(d.startTime),endX=timeScale(d.renderEndTime||d.endTime);if(d.milestone&&(startX+=.5*(timeScale(d.endTime)-timeScale(d.startTime))-.5*theBarHeight,endX=startX+theBarHeight),d.vert)return timeScale(d.startTime)+theSidePad;const textWidth=this.getBBox().width;return textWidth>endX-startX?endX+textWidth+1.5*conf.leftPadding>w2?startX+theSidePad-5:endX+theSidePad+5:(endX-startX)/2+startX+theSidePad}).attr("y",function(d,i){return d.vert?conf.gridLineStartPadding+taskArray.length*(conf.barHeight+conf.barGap)+60:d.order*theGap+conf.barHeight/2+(conf.fontSize/2-2)+theTopPad}).attr("text-height",theBarHeight).attr("class",function(d){const startX=timeScale(d.startTime);let endX=timeScale(d.endTime);d.milestone&&(endX=startX+theBarHeight);const textWidth=this.getBBox().width;let classStr="";d.classes.length>0&&(classStr=d.classes.join(" "));let secNum=0;for(const[i,category]of categories.entries())d.type===category&&(secNum=i%conf.numberSectionStyles);let taskType="";return d.active&&(taskType=d.crit?"activeCritText"+secNum:"activeText"+secNum),d.done?taskType=d.crit?taskType+" doneCritText"+secNum:taskType+" doneText"+secNum:d.crit&&(taskType=taskType+" critText"+secNum),d.milestone&&(taskType+=" milestoneText"),d.vert&&(taskType+=" vertText"),textWidth>endX-startX?endX+textWidth+1.5*conf.leftPadding>w2?classStr+" taskTextOutsideLeft taskTextOutside"+secNum+" "+taskType:classStr+" taskTextOutsideRight taskTextOutside"+secNum+" "+taskType+" width-"+textWidth:classStr+" taskText taskText"+secNum+" "+taskType+" width-"+textWidth});if("sandbox"===getConfig2().securityLevel){let sandboxElement2;sandboxElement2=select("#i"+id);const doc2=sandboxElement2.nodes()[0].contentDocument;rectangles.filter(function(d){return links2.has(d.id)}).each(function(o){var taskRect=doc2.querySelector("#"+CSS.escape(id+"-"+o.id)),taskText=doc2.querySelector("#"+CSS.escape(id+"-"+o.id+"-text"));const oldParent=taskRect.parentNode;var Link=doc2.createElement("a");Link.setAttribute("xlink:href",links2.get(o.id)),Link.setAttribute("target","_top"),oldParent.appendChild(Link),Link.appendChild(taskRect),Link.appendChild(taskText)})}}function drawExcludeDays(theGap,theTopPad,theSidePad,w2,h2,tasks2,excludes2,includes2){if(0===excludes2.length&&0===includes2.length)return;let minTime,maxTime;for(const{startTime:startTime,endTime:endTime}of tasks2)(void 0===minTime||startTime<minTime)&&(minTime=startTime),(void 0===maxTime||endTime>maxTime)&&(maxTime=endTime);if(!minTime||!maxTime)return;if(dayjs2(maxTime).diff(dayjs2(minTime),"year")>5)return void log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const dateFormat2=diagObj.db.getDateFormat(),excludeRanges=[];let range=null,d=dayjs2(minTime);for(;d.valueOf()<=maxTime;)diagObj.db.isInvalidDate(d,dateFormat2,excludes2,includes2)?range?range.end=d:range={start:d,end:d}:range&&(excludeRanges.push(range),range=null),d=d.add(1,"d");svg.append("g").selectAll("rect").data(excludeRanges).enter().append("rect").attr("id",d2=>id+"-exclude-"+d2.start.format("YYYY-MM-DD")).attr("x",d2=>timeScale(d2.start.startOf("day"))+theSidePad).attr("y",conf.gridLineStartPadding).attr("width",d2=>timeScale(d2.end.endOf("day"))-timeScale(d2.start.startOf("day"))).attr("height",h2-theTopPad-conf.gridLineStartPadding).attr("transform-origin",function(d2,i){return(timeScale(d2.start)+theSidePad+.5*(timeScale(d2.end)-timeScale(d2.start))).toString()+"px "+(i*theGap+.5*h2).toString()+"px"}).attr("class","exclude-range")}function getEstimatedTickCount(minTime,maxTime,every,interval){if(every<=0||minTime>maxTime)return 1/0;const timeDiffMs=maxTime-minTime,intervalMs=dayjs2.duration({[interval??"day"]:every}).asMilliseconds();return intervalMs<=0?1/0:Math.ceil(timeDiffMs/intervalMs)}function makeGrid(theSidePad,theTopPad,w2,h2){const dateFormat2=diagObj.db.getDateFormat(),userAxisFormat=diagObj.db.getAxisFormat();let axisFormat2;axisFormat2=userAxisFormat||("D"===dateFormat2?"%d":conf.axisFormat??"%Y-%m-%d");let bottomXAxis=(scale=timeScale,axis(3,scale)).tickSize(-h2+theTopPad+conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));var scale;const resultTickInterval=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(diagObj.db.getTickInterval()||conf.tickInterval);if(null!==resultTickInterval){const every=parseInt(resultTickInterval[1],10);if(isNaN(every)||every<=0)log.warn(`Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`);else{const interval=resultTickInterval[2],weekday2=diagObj.db.getWeekday()||conf.weekday,domain=timeScale.domain(),estimatedTicks=getEstimatedTickCount(domain[0],domain[1],every,interval);if(estimatedTicks>1e4)log.warn(`The tick interval "${every}${interval}" would generate ${estimatedTicks} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(interval){case"millisecond":bottomXAxis.ticks(millisecond.every(every));break;case"second":bottomXAxis.ticks(second.every(every));break;case"minute":bottomXAxis.ticks(timeMinute.every(every));break;case"hour":bottomXAxis.ticks(timeHour.every(every));break;case"day":bottomXAxis.ticks(timeDay.every(every));break;case"week":bottomXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));break;case"month":bottomXAxis.ticks(timeMonth.every(every))}}}if(svg.append("g").attr("class","grid").attr("transform","translate("+theSidePad+", "+(h2-50)+")").call(bottomXAxis).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),diagObj.db.topAxisEnabled()||conf.topAxis){let topXAxis=function(scale){return axis(1,scale)}(timeScale).tickSize(-h2+theTopPad+conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));if(null!==resultTickInterval){const every=parseInt(resultTickInterval[1],10);if(isNaN(every)||every<=0)log.warn(`Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`);else{const interval=resultTickInterval[2],weekday2=diagObj.db.getWeekday()||conf.weekday,domain=timeScale.domain();if(getEstimatedTickCount(domain[0],domain[1],every,interval)<=1e4)switch(interval){case"millisecond":topXAxis.ticks(millisecond.every(every));break;case"second":topXAxis.ticks(second.every(every));break;case"minute":topXAxis.ticks(timeMinute.every(every));break;case"hour":topXAxis.ticks(timeHour.every(every));break;case"day":topXAxis.ticks(timeDay.every(every));break;case"week":topXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));break;case"month":topXAxis.ticks(timeMonth.every(every))}}}svg.append("g").attr("class","grid").attr("transform","translate("+theSidePad+", "+theTopPad+")").call(topXAxis).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function vertLabels(theGap,theTopPad){let prevGap=0;const numOccurrences=Object.keys(categoryHeights).map(d=>[d,categoryHeights[d]]);svg.append("g").selectAll("text").data(numOccurrences).enter().append(function(d){const rows=d[0].split(common_default.lineBreakRegex),dy=-(rows.length-1)/2,svgLabel=doc.createElementNS("http://www.w3.org/2000/svg","text");svgLabel.setAttribute("dy",dy+"em");for(const[j,row]of rows.entries()){const tspan=doc.createElementNS("http://www.w3.org/2000/svg","tspan");tspan.setAttribute("alignment-baseline","central"),tspan.setAttribute("x","10"),j>0&&tspan.setAttribute("dy","1em"),tspan.textContent=row,svgLabel.appendChild(tspan)}return svgLabel}).attr("x",10).attr("y",function(d,i){if(!(i>0))return d[1]*theGap/2+theTopPad;for(let j=0;j<i;j++)return prevGap+=numOccurrences[i-1][1],d[1]*theGap/2+prevGap*theGap+theTopPad}).attr("font-size",conf.sectionFontSize).attr("class",function(d){for(const[i,category]of categories.entries())if(d[0]===category)return"sectionTitle sectionTitle"+i%conf.numberSectionStyles;return"sectionTitle"})}function drawToday(theSidePad,theTopPad,w2,h2){const todayMarker2=diagObj.db.getTodayMarker();if("off"===todayMarker2)return;const todayG=svg.append("g").attr("class","today"),today=new Date,todayLine=todayG.append("line");todayLine.attr("x1",timeScale(today)+theSidePad).attr("x2",timeScale(today)+theSidePad).attr("y1",conf.titleTopMargin).attr("y2",h2-conf.titleTopMargin).attr("class","today"),""!==todayMarker2&&todayLine.attr("style",todayMarker2.replace(/,/g,";"))}function checkUnique(arr){const hash={},result=[];for(let i=0,l=arr.length;i<l;++i)Object.prototype.hasOwnProperty.call(hash,arr[i])||(hash[arr[i]]=!0,result.push(arr[i]));return result}__name(taskCompare,"taskCompare"),taskArray.sort(taskCompare),makeGantt(taskArray,w,h),configureSvgSize(svg,h,w,conf.useMaxWidth),svg.append("text").text(diagObj.db.getDiagramTitle()).attr("x",w/2).attr("y",conf.titleTopMargin).attr("class","titleText"),__name(makeGantt,"makeGantt"),__name(drawRects,"drawRects"),__name(drawExcludeDays,"drawExcludeDays"),__name(getEstimatedTickCount,"getEstimatedTickCount"),__name(makeGrid,"makeGrid"),__name(vertLabels,"vertLabels"),__name(drawToday,"drawToday"),__name(checkUnique,"checkUnique")},"draw")},styles:__name(options=>`\n .mermaid-main-font {\n font-family: ${options.fontFamily};\n }\n\n .exclude-range {\n fill: ${options.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${options.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.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: ${options.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-family: ${options.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${options.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: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.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: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${options.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.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: ${options.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${options.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${options.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${options.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.titleColor||options.textColor};\n font-family: ${options.fontFamily};\n }\n`,"getStyles")};export{diagram};
1
+ import{bc as Rgb,bd as rgbConvert,be as define,bf as extend,bg as Color,bh as nogamma,bi as hue,g as getAccDescription,s as setAccDescription,q as getDiagramTitle,p as setDiagramTitle,a as getAccTitle,b as setAccTitle,_ as __name,c as getConfig2,d as select,e as configureSvgSize,l as log,k as common_default,j as distExports,y as clear,u as utils_default}from"./mermaid.core-f1mZHh7u.js";import{g as getDefaultExportFromCjs,O as dayjs2,Q as dayjsCustomParseFormat,U as dayjsAdvancedFormat}from"./vendor-antd-jGWxgt_-.js";import{b as bisector,t as tickStep,c as continuous,a as copy,l as linear}from"./linear-JU5ltHCp.js";import{i as initRange}from"./init-DMZMl1PR.js";import"./vendor-mdxeditor-BFiCaYAL.js";import"./vendor-codemirror-9gysGjWj.js";import"./vendor-markdown-BFrYfpb0.js";import"./defaultLocale-DZ7E7S9R.js";function max(values,valueof){let max2;if(void 0===valueof)for(const value of values)null!=value&&(max2<value||void 0===max2&&value>=value)&&(max2=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(max2<value||void 0===max2&&value>=value)&&(max2=value)}return max2}function min(values,valueof){let min2;if(void 0===valueof)for(const value of values)null!=value&&(min2>value||void 0===min2&&value>=value)&&(min2=value);else{let index=-1;for(let value of values)null!=(value=valueof(value,++index,values))&&(min2>value||void 0===min2&&value>=value)&&(min2=value)}return min2}function identity(x){return x}function translateX(x){return"translate("+x+",0)"}function translateY(y){return"translate(0,"+y+")"}function number$1(scale){return d=>+scale(d)}function center(scale,offset){return offset=Math.max(0,scale.bandwidth()-2*offset)/2,scale.round()&&(offset=Math.round(offset)),d=>+scale(d)+offset}function entering(){return!this.__axis}function axis(orient,scale){var tickArguments=[],tickValues=null,tickFormat=null,tickSizeInner=6,tickSizeOuter=6,tickPadding=3,offset="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,k=1===orient||4===orient?-1:1,x=4===orient||2===orient?"x":"y",transform=1===orient||3===orient?translateX:translateY;function axis2(context){var values=null==tickValues?scale.ticks?scale.ticks.apply(scale,tickArguments):scale.domain():tickValues,format=null==tickFormat?scale.tickFormat?scale.tickFormat.apply(scale,tickArguments):identity:tickFormat,spacing=Math.max(tickSizeInner,0)+tickPadding,range=scale.range(),range0=+range[0]+offset,range1=+range[range.length-1]+offset,position=(scale.bandwidth?center:number$1)(scale.copy(),offset),selection=context.selection?context.selection():context,path=selection.selectAll(".domain").data([null]),tick=selection.selectAll(".tick").data(values,scale).order(),tickExit=tick.exit(),tickEnter=tick.enter().append("g").attr("class","tick"),line=tick.select("line"),text=tick.select("text");path=path.merge(path.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),tick=tick.merge(tickEnter),line=line.merge(tickEnter.append("line").attr("stroke","currentColor").attr(x+"2",k*tickSizeInner)),text=text.merge(tickEnter.append("text").attr("fill","currentColor").attr(x,k*spacing).attr("dy",1===orient?"0em":3===orient?"0.71em":"0.32em")),context!==selection&&(path=path.transition(context),tick=tick.transition(context),line=line.transition(context),text=text.transition(context),tickExit=tickExit.transition(context).attr("opacity",1e-6).attr("transform",function(d){return isFinite(d=position(d))?transform(d+offset):this.getAttribute("transform")}),tickEnter.attr("opacity",1e-6).attr("transform",function(d){var p=this.parentNode.__axis;return transform((p&&isFinite(p=p(d))?p:position(d))+offset)})),tickExit.remove(),path.attr("d",4===orient||2===orient?tickSizeOuter?"M"+k*tickSizeOuter+","+range0+"H"+offset+"V"+range1+"H"+k*tickSizeOuter:"M"+offset+","+range0+"V"+range1:tickSizeOuter?"M"+range0+","+k*tickSizeOuter+"V"+offset+"H"+range1+"V"+k*tickSizeOuter:"M"+range0+","+offset+"H"+range1),tick.attr("opacity",1).attr("transform",function(d){return transform(position(d)+offset)}),line.attr(x+"2",k*tickSizeInner),text.attr(x,k*spacing).text(format),selection.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===orient?"start":4===orient?"end":"middle"),selection.each(function(){this.__axis=position})}return axis2.scale=function(_){return arguments.length?(scale=_,axis2):scale},axis2.ticks=function(){return tickArguments=Array.from(arguments),axis2},axis2.tickArguments=function(_){return arguments.length?(tickArguments=null==_?[]:Array.from(_),axis2):tickArguments.slice()},axis2.tickValues=function(_){return arguments.length?(tickValues=null==_?null:Array.from(_),axis2):tickValues&&tickValues.slice()},axis2.tickFormat=function(_){return arguments.length?(tickFormat=_,axis2):tickFormat},axis2.tickSize=function(_){return arguments.length?(tickSizeInner=tickSizeOuter=+_,axis2):tickSizeInner},axis2.tickSizeInner=function(_){return arguments.length?(tickSizeInner=+_,axis2):tickSizeInner},axis2.tickSizeOuter=function(_){return arguments.length?(tickSizeOuter=+_,axis2):tickSizeOuter},axis2.tickPadding=function(_){return arguments.length?(tickPadding=+_,axis2):tickPadding},axis2.offset=function(_){return arguments.length?(offset=+_,axis2):offset},axis2}const radians=Math.PI/180,degrees=180/Math.PI,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1;function labConvert(o){if(o instanceof Lab)return new Lab(o.l,o.a,o.b,o.opacity);if(o instanceof Hcl)return hcl2lab(o);o instanceof Rgb||(o=rgbConvert(o));var x,z,r=rgb2lrgb(o.r),g=rgb2lrgb(o.g),b=rgb2lrgb(o.b),y=xyz2lab((.2225045*r+.7168786*g+.0606169*b)/1);return r===g&&g===b?x=z=y:(x=xyz2lab((.4360747*r+.3850649*g+.1430804*b)/.96422),z=xyz2lab((.0139322*r+.0971045*g+.7141733*b)/.82521)),new Lab(116*y-16,500*(x-y),200*(y-z),o.opacity)}function Lab(l,a,b,opacity){this.l=+l,this.a=+a,this.b=+b,this.opacity=+opacity}function xyz2lab(t){return t>.008856451679035631?Math.pow(t,1/3):t/t2+t0$1}function lab2xyz(t){return t>t1$1?t*t*t:t2*(t-t0$1)}function lrgb2rgb(x){return 255*(x<=.0031308?12.92*x:1.055*Math.pow(x,1/2.4)-.055)}function rgb2lrgb(x){return(x/=255)<=.04045?x/12.92:Math.pow((x+.055)/1.055,2.4)}function hcl$1(h,c,l,opacity){return 1===arguments.length?function(o){if(o instanceof Hcl)return new Hcl(o.h,o.c,o.l,o.opacity);if(o instanceof Lab||(o=labConvert(o)),0===o.a&&0===o.b)return new Hcl(NaN,0<o.l&&o.l<100?0:NaN,o.l,o.opacity);var h=Math.atan2(o.b,o.a)*degrees;return new Hcl(h<0?h+360:h,Math.sqrt(o.a*o.a+o.b*o.b),o.l,o.opacity)}(h):new Hcl(h,c,l,null==opacity?1:opacity)}function Hcl(h,c,l,opacity){this.h=+h,this.c=+c,this.l=+l,this.opacity=+opacity}function hcl2lab(o){if(isNaN(o.h))return new Lab(o.l,0,0,o.opacity);var h=o.h*radians;return new Lab(o.l,Math.cos(h)*o.c,Math.sin(h)*o.c,o.opacity)}define(Lab,function(l,a,b,opacity){return 1===arguments.length?labConvert(l):new Lab(l,a,b,null==opacity?1:opacity)},extend(Color,{brighter(k){return new Lab(this.l+18*(null==k?1:k),this.a,this.b,this.opacity)},darker(k){return new Lab(this.l-18*(null==k?1:k),this.a,this.b,this.opacity)},rgb(){var y=(this.l+16)/116,x=isNaN(this.a)?y:y+this.a/500,z=isNaN(this.b)?y:y-this.b/200;return x=.96422*lab2xyz(x),y=1*lab2xyz(y),z=.82521*lab2xyz(z),new Rgb(lrgb2rgb(3.1338561*x-1.6168667*y-.4906146*z),lrgb2rgb(-.9787684*x+1.9161415*y+.033454*z),lrgb2rgb(.0719453*x-.2289914*y+1.4052427*z),this.opacity)}})),define(Hcl,hcl$1,extend(Color,{brighter(k){return new Hcl(this.h,this.c,this.l+18*(null==k?1:k),this.opacity)},darker(k){return new Hcl(this.h,this.c,this.l-18*(null==k?1:k),this.opacity)},rgb(){return hcl2lab(this).rgb()}}));const interpolateHcl=(hue2=hue,function(start,end){var h=hue2((start=hcl$1(start)).h,(end=hcl$1(end)).h),c=nogamma(start.c,end.c),l=nogamma(start.l,end.l),opacity=nogamma(start.opacity,end.opacity);return function(t){return start.h=h(t),start.c=c(t),start.l=l(t),start.opacity=opacity(t),start+""}});var hue2;const t0=new Date,t1=new Date;function timeInterval(floori,offseti,count,field){function interval(date2){return floori(date2=0===arguments.length?new Date:new Date(+date2)),date2}return interval.floor=date2=>(floori(date2=new Date(+date2)),date2),interval.ceil=date2=>(floori(date2=new Date(date2-1)),offseti(date2,1),floori(date2),date2),interval.round=date2=>{const d0=interval(date2),d1=interval.ceil(date2);return date2-d0<d1-date2?d0:d1},interval.offset=(date2,step)=>(offseti(date2=new Date(+date2),null==step?1:Math.floor(step)),date2),interval.range=(start,stop,step)=>{const range=[];if(start=interval.ceil(start),step=null==step?1:Math.floor(step),!(start<stop&&step>0))return range;let previous;do{range.push(previous=new Date(+start)),offseti(start,step),floori(start)}while(previous<start&&start<stop);return range},interval.filter=test=>timeInterval(date2=>{if(date2>=date2)for(;floori(date2),!test(date2);)date2.setTime(date2-1)},(date2,step)=>{if(date2>=date2)if(step<0)for(;++step<=0;)for(;offseti(date2,-1),!test(date2););else for(;--step>=0;)for(;offseti(date2,1),!test(date2););}),count&&(interval.count=(start,end)=>(t0.setTime(+start),t1.setTime(+end),floori(t0),floori(t1),Math.floor(count(t0,t1))),interval.every=step=>(step=Math.floor(step),isFinite(step)&&step>0?step>1?interval.filter(field?d=>field(d)%step===0:d=>interval.count(0,d)%step===0):interval:null)),interval}const millisecond=timeInterval(()=>{},(date2,step)=>{date2.setTime(+date2+step)},(start,end)=>end-start);millisecond.every=k=>(k=Math.floor(k),isFinite(k)&&k>0?k>1?timeInterval(date2=>{date2.setTime(Math.floor(date2/k)*k)},(date2,step)=>{date2.setTime(+date2+step*k)},(start,end)=>(end-start)/k):millisecond:null),millisecond.range;const second=timeInterval(date2=>{date2.setTime(date2-date2.getMilliseconds())},(date2,step)=>{date2.setTime(+date2+1e3*step)},(start,end)=>(end-start)/1e3,date2=>date2.getUTCSeconds());second.range;const timeMinute=timeInterval(date2=>{date2.setTime(date2-date2.getMilliseconds()-1e3*date2.getSeconds())},(date2,step)=>{date2.setTime(+date2+6e4*step)},(start,end)=>(end-start)/6e4,date2=>date2.getMinutes());timeMinute.range;timeInterval(date2=>{date2.setUTCSeconds(0,0)},(date2,step)=>{date2.setTime(+date2+6e4*step)},(start,end)=>(end-start)/6e4,date2=>date2.getUTCMinutes()).range;const timeHour=timeInterval(date2=>{date2.setTime(date2-date2.getMilliseconds()-1e3*date2.getSeconds()-6e4*date2.getMinutes())},(date2,step)=>{date2.setTime(+date2+36e5*step)},(start,end)=>(end-start)/36e5,date2=>date2.getHours());timeHour.range;timeInterval(date2=>{date2.setUTCMinutes(0,0,0)},(date2,step)=>{date2.setTime(+date2+36e5*step)},(start,end)=>(end-start)/36e5,date2=>date2.getUTCHours()).range;const timeDay=timeInterval(date2=>date2.setHours(0,0,0,0),(date2,step)=>date2.setDate(date2.getDate()+step),(start,end)=>(end-start-6e4*(end.getTimezoneOffset()-start.getTimezoneOffset()))/864e5,date2=>date2.getDate()-1);timeDay.range;const utcDay=timeInterval(date2=>{date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCDate(date2.getUTCDate()+step)},(start,end)=>(end-start)/864e5,date2=>date2.getUTCDate()-1);utcDay.range;function timeWeekday(i){return timeInterval(date2=>{date2.setDate(date2.getDate()-(date2.getDay()+7-i)%7),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setDate(date2.getDate()+7*step)},(start,end)=>(end-start-6e4*(end.getTimezoneOffset()-start.getTimezoneOffset()))/6048e5)}timeInterval(date2=>{date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCDate(date2.getUTCDate()+step)},(start,end)=>(end-start)/864e5,date2=>Math.floor(date2/864e5)).range;const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);function utcWeekday(i){return timeInterval(date2=>{date2.setUTCDate(date2.getUTCDate()-(date2.getUTCDay()+7-i)%7),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCDate(date2.getUTCDate()+7*step)},(start,end)=>(end-start)/6048e5)}timeSunday.range,timeMonday.range,timeTuesday.range,timeWednesday.range,timeThursday.range,timeFriday.range,timeSaturday.range;const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;const timeMonth=timeInterval(date2=>{date2.setDate(1),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setMonth(date2.getMonth()+step)},(start,end)=>end.getMonth()-start.getMonth()+12*(end.getFullYear()-start.getFullYear()),date2=>date2.getMonth());timeMonth.range;timeInterval(date2=>{date2.setUTCDate(1),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCMonth(date2.getUTCMonth()+step)},(start,end)=>end.getUTCMonth()-start.getUTCMonth()+12*(end.getUTCFullYear()-start.getUTCFullYear()),date2=>date2.getUTCMonth()).range;const timeYear=timeInterval(date2=>{date2.setMonth(0,1),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setFullYear(date2.getFullYear()+step)},(start,end)=>end.getFullYear()-start.getFullYear(),date2=>date2.getFullYear());timeYear.every=k=>isFinite(k=Math.floor(k))&&k>0?timeInterval(date2=>{date2.setFullYear(Math.floor(date2.getFullYear()/k)*k),date2.setMonth(0,1),date2.setHours(0,0,0,0)},(date2,step)=>{date2.setFullYear(date2.getFullYear()+step*k)}):null,timeYear.range;const utcYear=timeInterval(date2=>{date2.setUTCMonth(0,1),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCFullYear(date2.getUTCFullYear()+step)},(start,end)=>end.getUTCFullYear()-start.getUTCFullYear(),date2=>date2.getUTCFullYear());utcYear.every=k=>isFinite(k=Math.floor(k))&&k>0?timeInterval(date2=>{date2.setUTCFullYear(Math.floor(date2.getUTCFullYear()/k)*k),date2.setUTCMonth(0,1),date2.setUTCHours(0,0,0,0)},(date2,step)=>{date2.setUTCFullYear(date2.getUTCFullYear()+step*k)}):null,utcYear.range;const[timeTicks,timeTickInterval]=function(year,month,week,day,hour,minute){const tickIntervals=[[second,1,1e3],[second,5,5e3],[second,15,15e3],[second,30,3e4],[minute,1,6e4],[minute,5,3e5],[minute,15,9e5],[minute,30,18e5],[hour,1,36e5],[hour,3,108e5],[hour,6,216e5],[hour,12,432e5],[day,1,864e5],[day,2,1728e5],[week,1,6048e5],[month,1,2592e6],[month,3,7776e6],[year,1,31536e6]];function tickInterval2(start,stop,count){const target=Math.abs(stop-start)/count,i=bisector(([,,step2])=>step2).right(tickIntervals,target);if(i===tickIntervals.length)return year.every(tickStep(start/31536e6,stop/31536e6,count));if(0===i)return millisecond.every(Math.max(tickStep(start,stop,count),1));const[t,step]=tickIntervals[target/tickIntervals[i-1][2]<tickIntervals[i][2]/target?i-1:i];return t.every(step)}return[function(start,stop,count){const reverse=stop<start;reverse&&([start,stop]=[stop,start]);const interval=count&&"function"==typeof count.range?count:tickInterval2(start,stop,count),ticks2=interval?interval.range(start,+stop+1):[];return reverse?ticks2.reverse():ticks2},tickInterval2]}(timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute);function localDate(d){if(0<=d.y&&d.y<100){var date2=new Date(-1,d.m,d.d,d.H,d.M,d.S,d.L);return date2.setFullYear(d.y),date2}return new Date(d.y,d.m,d.d,d.H,d.M,d.S,d.L)}function utcDate(d){if(0<=d.y&&d.y<100){var date2=new Date(Date.UTC(-1,d.m,d.d,d.H,d.M,d.S,d.L));return date2.setUTCFullYear(d.y),date2}return new Date(Date.UTC(d.y,d.m,d.d,d.H,d.M,d.S,d.L))}function newDate(y,m,d){return{y:y,m:m,d:d,H:0,M:0,S:0,L:0}}var locale,timeFormat,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(value,fill,width){var sign=value<0?"-":"",string=(sign?-value:value)+"",length=string.length;return sign+(length<width?new Array(width-length+1).join(fill)+string:string)}function requote(s){return s.replace(requoteRe,"\\$&")}function formatRe(names){return new RegExp("^(?:"+names.map(requote).join("|")+")","i")}function formatLookup(names){return new Map(names.map((name,i)=>[name.toLowerCase(),i]))}function parseWeekdayNumberSunday(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.w=+n[0],i+n[0].length):-1}function parseWeekdayNumberMonday(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.u=+n[0],i+n[0].length):-1}function parseWeekNumberSunday(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.U=+n[0],i+n[0].length):-1}function parseWeekNumberISO(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.V=+n[0],i+n[0].length):-1}function parseWeekNumberMonday(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.W=+n[0],i+n[0].length):-1}function parseFullYear(d,string,i){var n=numberRe.exec(string.slice(i,i+4));return n?(d.y=+n[0],i+n[0].length):-1}function parseYear(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.y=+n[0]+(+n[0]>68?1900:2e3),i+n[0].length):-1}function parseZone(d,string,i){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i,i+6));return n?(d.Z=n[1]?0:-(n[2]+(n[3]||"00")),i+n[0].length):-1}function parseQuarter(d,string,i){var n=numberRe.exec(string.slice(i,i+1));return n?(d.q=3*n[0]-3,i+n[0].length):-1}function parseMonthNumber(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.m=n[0]-1,i+n[0].length):-1}function parseDayOfMonth(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.d=+n[0],i+n[0].length):-1}function parseDayOfYear(d,string,i){var n=numberRe.exec(string.slice(i,i+3));return n?(d.m=0,d.d=+n[0],i+n[0].length):-1}function parseHour24(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.H=+n[0],i+n[0].length):-1}function parseMinutes(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.M=+n[0],i+n[0].length):-1}function parseSeconds(d,string,i){var n=numberRe.exec(string.slice(i,i+2));return n?(d.S=+n[0],i+n[0].length):-1}function parseMilliseconds(d,string,i){var n=numberRe.exec(string.slice(i,i+3));return n?(d.L=+n[0],i+n[0].length):-1}function parseMicroseconds(d,string,i){var n=numberRe.exec(string.slice(i,i+6));return n?(d.L=Math.floor(n[0]/1e3),i+n[0].length):-1}function parseLiteralPercent(d,string,i){var n=percentRe.exec(string.slice(i,i+1));return n?i+n[0].length:-1}function parseUnixTimestamp(d,string,i){var n=numberRe.exec(string.slice(i));return n?(d.Q=+n[0],i+n[0].length):-1}function parseUnixTimestampSeconds(d,string,i){var n=numberRe.exec(string.slice(i));return n?(d.s=+n[0],i+n[0].length):-1}function formatDayOfMonth(d,p){return pad(d.getDate(),p,2)}function formatHour24(d,p){return pad(d.getHours(),p,2)}function formatHour12(d,p){return pad(d.getHours()%12||12,p,2)}function formatDayOfYear(d,p){return pad(1+timeDay.count(timeYear(d),d),p,3)}function formatMilliseconds(d,p){return pad(d.getMilliseconds(),p,3)}function formatMicroseconds(d,p){return formatMilliseconds(d,p)+"000"}function formatMonthNumber(d,p){return pad(d.getMonth()+1,p,2)}function formatMinutes(d,p){return pad(d.getMinutes(),p,2)}function formatSeconds(d,p){return pad(d.getSeconds(),p,2)}function formatWeekdayNumberMonday(d){var day=d.getDay();return 0===day?7:day}function formatWeekNumberSunday(d,p){return pad(timeSunday.count(timeYear(d)-1,d),p,2)}function dISO(d){var day=d.getDay();return day>=4||0===day?timeThursday(d):timeThursday.ceil(d)}function formatWeekNumberISO(d,p){return d=dISO(d),pad(timeThursday.count(timeYear(d),d)+(4===timeYear(d).getDay()),p,2)}function formatWeekdayNumberSunday(d){return d.getDay()}function formatWeekNumberMonday(d,p){return pad(timeMonday.count(timeYear(d)-1,d),p,2)}function formatYear(d,p){return pad(d.getFullYear()%100,p,2)}function formatYearISO(d,p){return pad((d=dISO(d)).getFullYear()%100,p,2)}function formatFullYear(d,p){return pad(d.getFullYear()%1e4,p,4)}function formatFullYearISO(d,p){var day=d.getDay();return pad((d=day>=4||0===day?timeThursday(d):timeThursday.ceil(d)).getFullYear()%1e4,p,4)}function formatZone(d){var z=d.getTimezoneOffset();return(z>0?"-":(z*=-1,"+"))+pad(z/60|0,"0",2)+pad(z%60,"0",2)}function formatUTCDayOfMonth(d,p){return pad(d.getUTCDate(),p,2)}function formatUTCHour24(d,p){return pad(d.getUTCHours(),p,2)}function formatUTCHour12(d,p){return pad(d.getUTCHours()%12||12,p,2)}function formatUTCDayOfYear(d,p){return pad(1+utcDay.count(utcYear(d),d),p,3)}function formatUTCMilliseconds(d,p){return pad(d.getUTCMilliseconds(),p,3)}function formatUTCMicroseconds(d,p){return formatUTCMilliseconds(d,p)+"000"}function formatUTCMonthNumber(d,p){return pad(d.getUTCMonth()+1,p,2)}function formatUTCMinutes(d,p){return pad(d.getUTCMinutes(),p,2)}function formatUTCSeconds(d,p){return pad(d.getUTCSeconds(),p,2)}function formatUTCWeekdayNumberMonday(d){var dow=d.getUTCDay();return 0===dow?7:dow}function formatUTCWeekNumberSunday(d,p){return pad(utcSunday.count(utcYear(d)-1,d),p,2)}function UTCdISO(d){var day=d.getUTCDay();return day>=4||0===day?utcThursday(d):utcThursday.ceil(d)}function formatUTCWeekNumberISO(d,p){return d=UTCdISO(d),pad(utcThursday.count(utcYear(d),d)+(4===utcYear(d).getUTCDay()),p,2)}function formatUTCWeekdayNumberSunday(d){return d.getUTCDay()}function formatUTCWeekNumberMonday(d,p){return pad(utcMonday.count(utcYear(d)-1,d),p,2)}function formatUTCYear(d,p){return pad(d.getUTCFullYear()%100,p,2)}function formatUTCYearISO(d,p){return pad((d=UTCdISO(d)).getUTCFullYear()%100,p,2)}function formatUTCFullYear(d,p){return pad(d.getUTCFullYear()%1e4,p,4)}function formatUTCFullYearISO(d,p){var day=d.getUTCDay();return pad((d=day>=4||0===day?utcThursday(d):utcThursday.ceil(d)).getUTCFullYear()%1e4,p,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(d){return+d}function formatUnixTimestampSeconds(d){return Math.floor(+d/1e3)}function date(t){return new Date(t)}function number(t){return t instanceof Date?+t:+new Date(+t)}function calendar(ticks,tickInterval2,year,month,week,day,hour,minute,second2,format){var scale=continuous(),invert=scale.invert,domain=scale.domain,formatMillisecond=format(".%L"),formatSecond=format(":%S"),formatMinute=format("%I:%M"),formatHour=format("%I %p"),formatDay=format("%a %d"),formatWeek=format("%b %d"),formatMonth=format("%B"),formatYear2=format("%Y");function tickFormat(date2){return(second2(date2)<date2?formatMillisecond:minute(date2)<date2?formatSecond:hour(date2)<date2?formatMinute:day(date2)<date2?formatHour:month(date2)<date2?week(date2)<date2?formatDay:formatWeek:year(date2)<date2?formatMonth:formatYear2)(date2)}return scale.invert=function(y){return new Date(invert(y))},scale.domain=function(_){return arguments.length?domain(Array.from(_,number)):domain().map(date)},scale.ticks=function(interval){var d=domain();return ticks(d[0],d[d.length-1],null==interval?10:interval)},scale.tickFormat=function(count,specifier){return null==specifier?tickFormat:format(specifier)},scale.nice=function(interval){var d=domain();return interval&&"function"==typeof interval.range||(interval=tickInterval2(d[0],d[d.length-1],null==interval?10:interval)),interval?domain(function(domain,interval){var t,i0=0,i1=(domain=domain.slice()).length-1,x0=domain[i0],x1=domain[i1];return x1<x0&&(t=i0,i0=i1,i1=t,t=x0,x0=x1,x1=t),domain[i0]=interval.floor(x0),domain[i1]=interval.ceil(x1),domain}(d,interval)):scale},scale.copy=function(){return copy(scale,calendar(ticks,tickInterval2,year,month,week,day,hour,minute,second2,format))},scale}function time(){return initRange.apply(calendar(timeTicks,timeTickInterval,timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute,second,timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}locale=function(locale2){var locale_dateTime=locale2.dateTime,locale_date=locale2.date,locale_time=locale2.time,locale_periods=locale2.periods,locale_weekdays=locale2.days,locale_shortWeekdays=locale2.shortDays,locale_months=locale2.months,locale_shortMonths=locale2.shortMonths,periodRe=formatRe(locale_periods),periodLookup=formatLookup(locale_periods),weekdayRe=formatRe(locale_weekdays),weekdayLookup=formatLookup(locale_weekdays),shortWeekdayRe=formatRe(locale_shortWeekdays),shortWeekdayLookup=formatLookup(locale_shortWeekdays),monthRe=formatRe(locale_months),monthLookup=formatLookup(locale_months),shortMonthRe=formatRe(locale_shortMonths),shortMonthLookup=formatLookup(locale_shortMonths),formats={a:function(d){return locale_shortWeekdays[d.getDay()]},A:function(d){return locale_weekdays[d.getDay()]},b:function(d){return locale_shortMonths[d.getMonth()]},B:function(d){return locale_months[d.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(d){return locale_periods[+(d.getHours()>=12)]},q:function(d){return 1+~~(d.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},utcFormats={a:function(d){return locale_shortWeekdays[d.getUTCDay()]},A:function(d){return locale_weekdays[d.getUTCDay()]},b:function(d){return locale_shortMonths[d.getUTCMonth()]},B:function(d){return locale_months[d.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(d){return locale_periods[+(d.getUTCHours()>=12)]},q:function(d){return 1+~~(d.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},parses={a:function(d,string,i){var n=shortWeekdayRe.exec(string.slice(i));return n?(d.w=shortWeekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},A:function(d,string,i){var n=weekdayRe.exec(string.slice(i));return n?(d.w=weekdayLookup.get(n[0].toLowerCase()),i+n[0].length):-1},b:function(d,string,i){var n=shortMonthRe.exec(string.slice(i));return n?(d.m=shortMonthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},B:function(d,string,i){var n=monthRe.exec(string.slice(i));return n?(d.m=monthLookup.get(n[0].toLowerCase()),i+n[0].length):-1},c:function(d,string,i){return parseSpecifier(d,locale_dateTime,string,i)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(d,string,i){var n=periodRe.exec(string.slice(i));return n?(d.p=periodLookup.get(n[0].toLowerCase()),i+n[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(d,string,i){return parseSpecifier(d,locale_date,string,i)},X:function(d,string,i){return parseSpecifier(d,locale_time,string,i)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(specifier,formats2){return function(date2){var c,pad2,format,string=[],i=-1,j=0,n=specifier.length;for(date2 instanceof Date||(date2=new Date(+date2));++i<n;)37===specifier.charCodeAt(i)&&(string.push(specifier.slice(j,i)),null!=(pad2=pads[c=specifier.charAt(++i)])?c=specifier.charAt(++i):pad2="e"===c?" ":"0",(format=formats2[c])&&(c=format(date2,pad2)),string.push(c),j=i+1);return string.push(specifier.slice(j,i)),string.join("")}}function newParse(specifier,Z){return function(string){var week,day,d=newDate(1900,void 0,1);if(parseSpecifier(d,specifier,string+="",0)!=string.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(Z&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(day=(week=utcDate(newDate(d.y,0,1))).getUTCDay(),week=day>4||0===day?utcMonday.ceil(week):utcMonday(week),week=utcDay.offset(week,7*(d.V-1)),d.y=week.getUTCFullYear(),d.m=week.getUTCMonth(),d.d=week.getUTCDate()+(d.w+6)%7):(day=(week=localDate(newDate(d.y,0,1))).getDay(),week=day>4||0===day?timeMonday.ceil(week):timeMonday(week),week=timeDay.offset(week,7*(d.V-1)),d.y=week.getFullYear(),d.m=week.getMonth(),d.d=week.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),day="Z"in d?utcDate(newDate(d.y,0,1)).getUTCDay():localDate(newDate(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(day+5)%7:d.w+7*d.U-(day+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,utcDate(d)):localDate(d)}}function parseSpecifier(d,specifier,string,j){for(var c,parse,i=0,n=specifier.length,m=string.length;i<n;){if(j>=m)return-1;if(37===(c=specifier.charCodeAt(i++))){if(c=specifier.charAt(i++),!(parse=parses[c in pads?specifier.charAt(i++):c])||(j=parse(d,string,j))<0)return-1}else if(c!=string.charCodeAt(j++))return-1}return j}return formats.x=newFormat(locale_date,formats),formats.X=newFormat(locale_time,formats),formats.c=newFormat(locale_dateTime,formats),utcFormats.x=newFormat(locale_date,utcFormats),utcFormats.X=newFormat(locale_time,utcFormats),utcFormats.c=newFormat(locale_dateTime,utcFormats),{format:function(specifier){var f=newFormat(specifier+="",formats);return f.toString=function(){return specifier},f},parse:function(specifier){var p=newParse(specifier+="",!1);return p.toString=function(){return specifier},p},utcFormat:function(specifier){var f=newFormat(specifier+="",utcFormats);return f.toString=function(){return specifier},f},utcParse:function(specifier){var p=newParse(specifier+="",!0);return p.toString=function(){return specifier},p}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse;var hasRequiredIsoWeek,e,isoWeek$1={exports:{}};const dayjsIsoWeek=getDefaultExportFromCjs(hasRequiredIsoWeek?isoWeek$1.exports:(hasRequiredIsoWeek=1,isoWeek$1.exports=(e="day",function(t,i,s){var a=function(t4){return t4.add(4-t4.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t4){if(!this.$utils().u(t4))return this.add(7*(t4-this.isoWeek()),e);var i2,n2,o,r=a(this),u=(i2=this.isoWeekYear(),o=4-(n2=(this.$u?s.utc:s)().year(i2).startOf("year")).isoWeekday(),n2.isoWeekday()>4&&(o+=7),n2.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e2){return this.$utils().u(e2)?this.day()||7:this.day(this.day()%7?e2:e2-7)};var n=d.startOf;d.startOf=function(e2,t4){var i2=this.$utils(),s2=!!i2.u(t4)||t4;return"isoweek"===i2.p(e2)?s2?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(e2,t4)}})));var hasRequiredDuration,duration$1={exports:{}};var durationExports=(hasRequiredDuration||(hasRequiredDuration=1,duration$1.exports=function(){var t,s,n=1e3,i=6e4,e=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,d=2628e6,a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:u,months:d,days:r,hours:e,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},c=function(t4){return t4 instanceof g},f=function(t4,s2,n2){return new g(t4,n2,s2.$l)},m=function(t4){return s.p(t4)+"s"},l=function(t4){return t4<0},$=function(t4){return l(t4)?Math.ceil(t4):Math.floor(t4)},y=function(t4){return Math.abs(t4)},v=function(t4,s2){return t4?l(t4)?{negative:!0,format:""+y(t4)+s2}:{negative:!1,format:""+t4+s2}:{negative:!1,format:""}},g=function(){function l2(t4,s2,n2){var i2=this;if(this.$d={},this.$l=n2,void 0===t4&&(this.$ms=0,this.parseFromMilliseconds()),s2)return f(t4*h[m(s2)],this);if("number"==typeof t4)return this.$ms=t4,this.parseFromMilliseconds(),this;if("object"==typeof t4)return Object.keys(t4).forEach(function(s3){i2.$d[m(s3)]=t4[s3]}),this.calMilliseconds(),this;if("string"==typeof t4){var e2=t4.match(a);if(e2){var r2=e2.slice(2).map(function(t5){return null!=t5?Number(t5):0});return this.$d.years=r2[0],this.$d.months=r2[1],this.$d.weeks=r2[2],this.$d.days=r2[3],this.$d.hours=r2[4],this.$d.minutes=r2[5],this.$d.seconds=r2[6],this.calMilliseconds(),this}}return this}var y2=l2.prototype;return y2.calMilliseconds=function(){var t4=this;this.$ms=Object.keys(this.$d).reduce(function(s2,n2){return s2+(t4.$d[n2]||0)*h[n2]},0)},y2.parseFromMilliseconds=function(){var t4=this.$ms;this.$d.years=$(t4/u),t4%=u,this.$d.months=$(t4/d),t4%=d,this.$d.days=$(t4/r),t4%=r,this.$d.hours=$(t4/e),t4%=e,this.$d.minutes=$(t4/i),t4%=i,this.$d.seconds=$(t4/n),t4%=n,this.$d.milliseconds=t4},y2.toISOString=function(){var t4=v(this.$d.years,"Y"),s2=v(this.$d.months,"M"),n2=+this.$d.days||0;this.$d.weeks&&(n2+=7*this.$d.weeks);var i2=v(n2,"D"),e2=v(this.$d.hours,"H"),r2=v(this.$d.minutes,"M"),o2=this.$d.seconds||0;this.$d.milliseconds&&(o2+=this.$d.milliseconds/1e3,o2=Math.round(1e3*o2)/1e3);var u2=v(o2,"S"),d2=t4.negative||s2.negative||i2.negative||e2.negative||r2.negative||u2.negative,a2=e2.format||r2.format||u2.format?"T":"",h2=(d2?"-":"")+"P"+t4.format+s2.format+i2.format+a2+e2.format+r2.format+u2.format;return"P"===h2||"-P"===h2?"P0D":h2},y2.toJSON=function(){return this.toISOString()},y2.format=function(t4){var n2=t4||"YYYY-MM-DDTHH:mm:ss",i2={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return n2.replace(o,function(t5,s2){return s2||String(i2[t5])})},y2.as=function(t4){return this.$ms/h[m(t4)]},y2.get=function(t4){var s2=this.$ms,n2=m(t4);return"milliseconds"===n2?s2%=1e3:s2="weeks"===n2?$(s2/h[n2]):this.$d[n2],s2||0},y2.add=function(t4,s2,n2){var i2;return i2=s2?t4*h[m(s2)]:c(t4)?t4.$ms:f(t4,this).$ms,f(this.$ms+i2*(n2?-1:1),this)},y2.subtract=function(t4,s2){return this.add(t4,s2,!0)},y2.locale=function(t4){var s2=this.clone();return s2.$l=t4,s2},y2.clone=function(){return f(this.$ms,this)},y2.humanize=function(s2){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!s2)},y2.valueOf=function(){return this.asMilliseconds()},y2.milliseconds=function(){return this.get("milliseconds")},y2.asMilliseconds=function(){return this.as("milliseconds")},y2.seconds=function(){return this.get("seconds")},y2.asSeconds=function(){return this.as("seconds")},y2.minutes=function(){return this.get("minutes")},y2.asMinutes=function(){return this.as("minutes")},y2.hours=function(){return this.get("hours")},y2.asHours=function(){return this.as("hours")},y2.days=function(){return this.get("days")},y2.asDays=function(){return this.as("days")},y2.weeks=function(){return this.get("weeks")},y2.asWeeks=function(){return this.as("weeks")},y2.months=function(){return this.get("months")},y2.asMonths=function(){return this.as("months")},y2.years=function(){return this.get("years")},y2.asYears=function(){return this.as("years")},l2}(),p=function(t4,s2,n2){return t4.add(s2.years()*n2,"y").add(s2.months()*n2,"M").add(s2.days()*n2,"d").add(s2.hours()*n2,"h").add(s2.minutes()*n2,"m").add(s2.seconds()*n2,"s").add(s2.milliseconds()*n2,"ms")};return function(n2,i2,e2){t=e2,s=e2().$utils(),e2.duration=function(t4,s2){var n3=e2.locale();return f(t4,{$l:n3},s2)},e2.isDuration=c;var r2=i2.prototype.add,o2=i2.prototype.subtract;i2.prototype.add=function(t4,s2){return c(t4)?p(this,t4,1):r2.bind(this)(t4,s2)},i2.prototype.subtract=function(t4,s2){return c(t4)?p(this,t4,-1):o2.bind(this)(t4,s2)}}}()),duration$1.exports);const dayjsDuration=getDefaultExportFromCjs(durationExports);var parser=function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[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],$V1=[1,26],$V2=[1,27],$V3=[1,28],$V4=[1,29],$V5=[1,30],$V6=[1,31],$V7=[1,32],$V8=[1,33],$V9=[1,34],$Va=[1,9],$Vb=[1,10],$Vc=[1,11],$Vd=[1,12],$Ve=[1,13],$Vf=[1,14],$Vg=[1,15],$Vh=[1,16],$Vi=[1,19],$Vj=[1,20],$Vk=[1,21],$Vl=[1,22],$Vm=[1,23],$Vn=[1,25],$Vo=[1,35],parser2={trace:__name(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:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 1:return $$[$0-1];case 2:case 6:case 7:this.$=[];break;case 3:$$[$0-1].push($$[$0]),this.$=$$[$0-1];break;case 4:case 5:this.$=$$[$0];break;case 8:yy.setWeekday("monday");break;case 9:yy.setWeekday("tuesday");break;case 10:yy.setWeekday("wednesday");break;case 11:yy.setWeekday("thursday");break;case 12:yy.setWeekday("friday");break;case 13:yy.setWeekday("saturday");break;case 14:yy.setWeekday("sunday");break;case 15:yy.setWeekend("friday");break;case 16:yy.setWeekend("saturday");break;case 17:yy.setDateFormat($$[$0].substr(11)),this.$=$$[$0].substr(11);break;case 18:yy.enableInclusiveEndDates(),this.$=$$[$0].substr(18);break;case 19:yy.TopAxis(),this.$=$$[$0].substr(8);break;case 20:yy.setAxisFormat($$[$0].substr(11)),this.$=$$[$0].substr(11);break;case 21:yy.setTickInterval($$[$0].substr(13)),this.$=$$[$0].substr(13);break;case 22:yy.setExcludes($$[$0].substr(9)),this.$=$$[$0].substr(9);break;case 23:yy.setIncludes($$[$0].substr(9)),this.$=$$[$0].substr(9);break;case 24:yy.setTodayMarker($$[$0].substr(12)),this.$=$$[$0].substr(12);break;case 27:yy.setDiagramTitle($$[$0].substr(6)),this.$=$$[$0].substr(6);break;case 28:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 29:case 30:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 31:yy.addSection($$[$0].substr(8)),this.$=$$[$0].substr(8);break;case 33:yy.addTask($$[$0-1],$$[$0]),this.$="task";break;case 34:this.$=$$[$0-1],yy.setClickEvent($$[$0-1],$$[$0],null);break;case 35:this.$=$$[$0-2],yy.setClickEvent($$[$0-2],$$[$0-1],$$[$0]);break;case 36:this.$=$$[$0-2],yy.setClickEvent($$[$0-2],$$[$0-1],null),yy.setLink($$[$0-2],$$[$0]);break;case 37:this.$=$$[$0-3],yy.setClickEvent($$[$0-3],$$[$0-2],$$[$0-1]),yy.setLink($$[$0-3],$$[$0]);break;case 38:this.$=$$[$0-2],yy.setClickEvent($$[$0-2],$$[$0],null),yy.setLink($$[$0-2],$$[$0-1]);break;case 39:this.$=$$[$0-3],yy.setClickEvent($$[$0-3],$$[$0-1],$$[$0]),yy.setLink($$[$0-3],$$[$0-2]);break;case 40:this.$=$$[$0-1],yy.setLink($$[$0-1],$$[$0]);break;case 41:case 47:this.$=$$[$0-1]+" "+$$[$0];break;case 42:case 43:case 45:this.$=$$[$0-2]+" "+$$[$0-1]+" "+$$[$0];break;case 44:case 46:this.$=$$[$0-3]+" "+$$[$0-2]+" "+$$[$0-1]+" "+$$[$0]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:$V1,13:$V2,14:$V3,15:$V4,16:$V5,17:$V6,18:$V7,19:18,20:$V8,21:$V9,22:$Va,23:$Vb,24:$Vc,25:$Vd,26:$Ve,27:$Vf,28:$Vg,29:$Vh,30:$Vi,31:$Vj,33:$Vk,35:$Vl,36:$Vm,37:24,38:$Vn,40:$Vo},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:36,11:17,12:$V1,13:$V2,14:$V3,15:$V4,16:$V5,17:$V6,18:$V7,19:18,20:$V8,21:$V9,22:$Va,23:$Vb,24:$Vc,25:$Vd,26:$Ve,27:$Vf,28:$Vg,29:$Vh,30:$Vi,31:$Vj,33:$Vk,35:$Vl,36:$Vm,37:24,38:$Vn,40:$Vo},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,17]),o($V0,[2,18]),o($V0,[2,19]),o($V0,[2,20]),o($V0,[2,21]),o($V0,[2,22]),o($V0,[2,23]),o($V0,[2,24]),o($V0,[2,25]),o($V0,[2,26]),o($V0,[2,27]),{32:[1,37]},{34:[1,38]},o($V0,[2,30]),o($V0,[2,31]),o($V0,[2,32]),{39:[1,39]},o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),o($V0,[2,16]),{41:[1,40],43:[1,41]},o($V0,[2,4]),o($V0,[2,28]),o($V0,[2,29]),o($V0,[2,33]),o($V0,[2,34],{42:[1,42],43:[1,43]}),o($V0,[2,40],{41:[1,44]}),o($V0,[2,35],{43:[1,45]}),o($V0,[2,36]),o($V0,[2,38],{42:[1,46]}),o($V0,[2,37]),o($V0,[2,39])],defaultActions:{},parseError:__name(function(str,hash){if(!hash.recoverable){var error=new Error(str);throw error.hash=hash,error}this.trace(str)},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,void 0===lexer2.yylloc&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;function lex(){var token;return"number"!=typeof(token=tstack.pop()||lexer2.lex()||1)&&(token instanceof Array&&(token=(tstack=token).pop()),token=self.symbols_[token]||token),token}"function"==typeof sharedState.yy.parseError?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,__name(function(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n},"popStack"),__name(lex,"lex");for(var symbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:(null==symbol&&(symbol=lex()),action=table[state]&&table[state][symbol]),void 0===action||!action.length||!action[0]){var errStr="";for(p in expected=[],table[state])this.terminals_[p]&&p>2&&expected.push("'"+this.terminals_[p]+"'");errStr=lexer2.showPosition?"Parse error on line "+(yylineno+1)+":\n"+lexer2.showPosition()+"\nExpecting "+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":"Parse error on line "+(yylineno+1)+": Unexpected "+(1==symbol?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),void 0!==(r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args))))return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=function(){return{EOF:1,parseError:__name(function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,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:__name(function(){var ch=this._input[0];return this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch,ch.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),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=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:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+"\n"+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),(lines=match[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;var token,match,tempMatch,index;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if((tempMatch=this._input.match(this.rules[rules[i]]))&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(!1!==(token=this.test_match(tempMatch,rules[i])))return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?!1!==(token=this.test_match(match,rules[index]))&&token:""===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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(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:__name(function(n){return(n=this.conditionStack.length-1-Math.abs(n||0))>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){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 Parser(){this.yy={}}return parser2.lexer=lexer,__name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser}();parser.parser=parser;var gantt_default=parser;dayjs2.extend(dayjsIsoWeek),dayjs2.extend(dayjsCustomParseFormat),dayjs2.extend(dayjsAdvancedFormat);var lastTask,lastTaskID,WEEKEND_START_DAY={friday:5,saturday:6},dateFormat="",axisFormat="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],links=new Map,sections=[],tasks=[],currentSection="",displayMode="",tags=["active","done","crit","milestone","vert"],funs=[],diagramId="",inclusiveEndDates=!1,topAxis=!1,weekday="sunday",weekend="saturday",lastOrder=0,clear2=__name(function(){sections=[],tasks=[],currentSection="",funs=[],taskCnt=0,lastTask=void 0,lastTaskID=void 0,rawTasks=[],dateFormat="",axisFormat="",displayMode="",tickInterval=void 0,todayMarker="",includes=[],excludes=[],inclusiveEndDates=!1,topAxis=!1,lastOrder=0,links=new Map,diagramId="",clear(),weekday="sunday",weekend="saturday"},"clear"),setDiagramId=__name(function(id){diagramId=id},"setDiagramId"),setAxisFormat=__name(function(txt){axisFormat=txt},"setAxisFormat"),getAxisFormat=__name(function(){return axisFormat},"getAxisFormat"),setTickInterval=__name(function(txt){tickInterval=txt},"setTickInterval"),getTickInterval=__name(function(){return tickInterval},"getTickInterval"),setTodayMarker=__name(function(txt){todayMarker=txt},"setTodayMarker"),getTodayMarker=__name(function(){return todayMarker},"getTodayMarker"),setDateFormat=__name(function(txt){dateFormat=txt},"setDateFormat"),enableInclusiveEndDates=__name(function(){inclusiveEndDates=!0},"enableInclusiveEndDates"),endDatesAreInclusive=__name(function(){return inclusiveEndDates},"endDatesAreInclusive"),enableTopAxis=__name(function(){topAxis=!0},"enableTopAxis"),topAxisEnabled=__name(function(){return topAxis},"topAxisEnabled"),setDisplayMode=__name(function(txt){displayMode=txt},"setDisplayMode"),getDisplayMode=__name(function(){return displayMode},"getDisplayMode"),getDateFormat=__name(function(){return dateFormat},"getDateFormat"),setIncludes=__name(function(txt){includes=txt.toLowerCase().split(/[\s,]+/)},"setIncludes"),getIncludes=__name(function(){return includes},"getIncludes"),setExcludes=__name(function(txt){excludes=txt.toLowerCase().split(/[\s,]+/)},"setExcludes"),getExcludes=__name(function(){return excludes},"getExcludes"),getLinks=__name(function(){return links},"getLinks"),addSection=__name(function(txt){currentSection=txt,sections.push(txt)},"addSection"),getSections=__name(function(){return sections},"getSections"),getTasks=__name(function(){let allItemsProcessed=compileTasks();let iterationCount=0;for(;!allItemsProcessed&&iterationCount<10;)allItemsProcessed=compileTasks(),iterationCount++;return tasks=rawTasks},"getTasks"),isInvalidDate=__name(function(date2,dateFormat2,excludes2,includes2){const formattedDate=date2.format(dateFormat2.trim()),dateOnly=date2.format("YYYY-MM-DD");return!includes2.includes(formattedDate)&&!includes2.includes(dateOnly)&&(!(!excludes2.includes("weekends")||date2.isoWeekday()!==WEEKEND_START_DAY[weekend]&&date2.isoWeekday()!==WEEKEND_START_DAY[weekend]+1)||(!!excludes2.includes(date2.format("dddd").toLowerCase())||(excludes2.includes(formattedDate)||excludes2.includes(dateOnly))))},"isInvalidDate"),setWeekday=__name(function(txt){weekday=txt},"setWeekday"),getWeekday=__name(function(){return weekday},"getWeekday"),setWeekend=__name(function(startDay){weekend=startDay},"setWeekend"),checkTaskDates=__name(function(task,dateFormat2,excludes2,includes2){if(!excludes2.length||task.manualEndTime)return;let startTime,originalEndTime;startTime=task.startTime instanceof Date?dayjs2(task.startTime):dayjs2(task.startTime,dateFormat2,!0),startTime=startTime.add(1,"d"),originalEndTime=task.endTime instanceof Date?dayjs2(task.endTime):dayjs2(task.endTime,dateFormat2,!0);const[fixedEndTime,renderEndTime]=fixTaskDates(startTime,originalEndTime,dateFormat2,excludes2,includes2);task.endTime=fixedEndTime.toDate(),task.renderEndTime=renderEndTime},"checkTaskDates"),fixTaskDates=__name(function(startTime,endTime,dateFormat2,excludes2,includes2){let invalid=!1,renderEndTime=null;for(;startTime<=endTime;)invalid||(renderEndTime=endTime.toDate()),invalid=isInvalidDate(startTime,dateFormat2,excludes2,includes2),invalid&&(endTime=endTime.add(1,"d")),startTime=startTime.add(1,"d");return[endTime,renderEndTime]},"fixTaskDates"),getStartDate=__name(function(prevTime,dateFormat2,str){str=str.trim();if(__name(format=>{const trimmedFormat=format.trim();return"x"===trimmedFormat||"X"===trimmedFormat},"isTimestampFormat")(dateFormat2)&&/^\d+$/.test(str))return new Date(Number(str));const afterStatement=/^after\s+(?<ids>[\d\w- ]+)/.exec(str);if(null!==afterStatement){let latestTask=null;for(const id of afterStatement.groups.ids.split(" ")){let task=findTaskById(id);void 0!==task&&(!latestTask||task.endTime>latestTask.endTime)&&(latestTask=task)}if(latestTask)return latestTask.endTime;const today=new Date;return today.setHours(0,0,0,0),today}let mDate=dayjs2(str,dateFormat2.trim(),!0);if(mDate.isValid())return mDate.toDate();{log.debug("Invalid date:"+str),log.debug("With date format:"+dateFormat2.trim());const d=new Date(str);if(void 0===d||isNaN(d.getTime())||d.getFullYear()<-1e4||d.getFullYear()>1e4)throw new Error("Invalid date:"+str);return d}},"getStartDate"),parseDuration=__name(function(str){const statement=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(str.trim());return null!==statement?[Number.parseFloat(statement[1]),statement[2]]:[NaN,"ms"]},"parseDuration"),getEndDate=__name(function(prevTime,dateFormat2,str,inclusive=!1){str=str.trim();const untilStatement=/^until\s+(?<ids>[\d\w- ]+)/.exec(str);if(null!==untilStatement){let earliestTask=null;for(const id of untilStatement.groups.ids.split(" ")){let task=findTaskById(id);void 0!==task&&(!earliestTask||task.startTime<earliestTask.startTime)&&(earliestTask=task)}if(earliestTask)return earliestTask.startTime;const today=new Date;return today.setHours(0,0,0,0),today}let parsedDate=dayjs2(str,dateFormat2.trim(),!0);if(parsedDate.isValid())return inclusive&&(parsedDate=parsedDate.add(1,"d")),parsedDate.toDate();let endTime=dayjs2(prevTime);const[durationValue,durationUnit]=parseDuration(str);if(!Number.isNaN(durationValue)){const newEndTime=endTime.add(durationValue,durationUnit);newEndTime.isValid()&&(endTime=newEndTime)}return endTime.toDate()},"getEndDate"),taskCnt=0,parseId=__name(function(idStr){return void 0===idStr?"task"+(taskCnt+=1):idStr},"parseId"),compileData=__name(function(prevTask,dataStr){let ds;ds=":"===dataStr.substr(0,1)?dataStr.substr(1,dataStr.length):dataStr;const data=ds.split(","),task={};getTaskTags(data,task,tags);for(let i=0;i<data.length;i++)data[i]=data[i].trim();let endTimeData="";switch(data.length){case 1:task.id=parseId(),task.startTime=prevTask.endTime,endTimeData=data[0];break;case 2:task.id=parseId(),task.startTime=getStartDate(void 0,dateFormat,data[0]),endTimeData=data[1];break;case 3:task.id=parseId(data[0]),task.startTime=getStartDate(void 0,dateFormat,data[1]),endTimeData=data[2]}return endTimeData&&(task.endTime=getEndDate(task.startTime,dateFormat,endTimeData,inclusiveEndDates),task.manualEndTime=dayjs2(endTimeData,"YYYY-MM-DD",!0).isValid(),checkTaskDates(task,dateFormat,excludes,includes)),task},"compileData"),parseData=__name(function(prevTaskId,dataStr){let ds;ds=":"===dataStr.substr(0,1)?dataStr.substr(1,dataStr.length):dataStr;const data=ds.split(","),task={};getTaskTags(data,task,tags);for(let i=0;i<data.length;i++)data[i]=data[i].trim();switch(data.length){case 1:task.id=parseId(),task.startTime={type:"prevTaskEnd",id:prevTaskId},task.endTime={data:data[0]};break;case 2:task.id=parseId(),task.startTime={type:"getStartDate",startData:data[0]},task.endTime={data:data[1]};break;case 3:task.id=parseId(data[0]),task.startTime={type:"getStartDate",startData:data[1]},task.endTime={data:data[2]}}return task},"parseData"),rawTasks=[],taskDb={},addTask=__name(function(descr,data){const rawTask={section:currentSection,type:currentSection,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:data},task:descr,classes:[]},taskInfo=parseData(lastTaskID,data);rawTask.raw.startTime=taskInfo.startTime,rawTask.raw.endTime=taskInfo.endTime,rawTask.id=taskInfo.id,rawTask.prevTaskId=lastTaskID,rawTask.active=taskInfo.active,rawTask.done=taskInfo.done,rawTask.crit=taskInfo.crit,rawTask.milestone=taskInfo.milestone,rawTask.vert=taskInfo.vert,rawTask.order=lastOrder,lastOrder++;const pos=rawTasks.push(rawTask);lastTaskID=rawTask.id,taskDb[rawTask.id]=pos-1},"addTask"),findTaskById=__name(function(id){const pos=taskDb[id];return rawTasks[pos]},"findTaskById"),addTaskOrg=__name(function(descr,data){const newTask={section:currentSection,type:currentSection,description:descr,task:descr,classes:[]},taskInfo=compileData(lastTask,data);newTask.startTime=taskInfo.startTime,newTask.endTime=taskInfo.endTime,newTask.id=taskInfo.id,newTask.active=taskInfo.active,newTask.done=taskInfo.done,newTask.crit=taskInfo.crit,newTask.milestone=taskInfo.milestone,newTask.vert=taskInfo.vert,lastTask=newTask,tasks.push(newTask)},"addTaskOrg"),compileTasks=__name(function(){const compileTask=__name(function(pos){const task=rawTasks[pos];let startTime="";switch(rawTasks[pos].raw.startTime.type){case"prevTaskEnd":{const prevTask=findTaskById(task.prevTaskId);task.startTime=prevTask.endTime;break}case"getStartDate":startTime=getStartDate(void 0,dateFormat,rawTasks[pos].raw.startTime.startData),startTime&&(rawTasks[pos].startTime=startTime)}return rawTasks[pos].startTime&&(rawTasks[pos].endTime=getEndDate(rawTasks[pos].startTime,dateFormat,rawTasks[pos].raw.endTime.data,inclusiveEndDates),rawTasks[pos].endTime&&(rawTasks[pos].processed=!0,rawTasks[pos].manualEndTime=dayjs2(rawTasks[pos].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),checkTaskDates(rawTasks[pos],dateFormat,excludes,includes))),rawTasks[pos].processed},"compileTask");let allProcessed=!0;for(const[i,rawTask]of rawTasks.entries())compileTask(i),allProcessed=allProcessed&&rawTask.processed;return allProcessed},"compileTasks"),setLink=__name(function(ids,_linkStr){let linkStr=_linkStr;"loose"!==getConfig2().securityLevel&&(linkStr=distExports.sanitizeUrl(_linkStr)),ids.split(",").forEach(function(id){void 0!==findTaskById(id)&&(pushFun(id,()=>{window.open(linkStr,"_self")}),links.set(id,linkStr))}),setClass(ids,"clickable")},"setLink"),setClass=__name(function(ids,className){ids.split(",").forEach(function(id){let rawTask=findTaskById(id);void 0!==rawTask&&rawTask.classes.push(className)})},"setClass"),setClickFun=__name(function(id,functionName,functionArgs){if("loose"!==getConfig2().securityLevel)return;if(void 0===functionName)return;let argList=[];if("string"==typeof functionArgs){argList=functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<argList.length;i++){let item=argList[i].trim();item.startsWith('"')&&item.endsWith('"')&&(item=item.substr(1,item.length-2)),argList[i]=item}}0===argList.length&&argList.push(id),void 0!==findTaskById(id)&&pushFun(id,()=>{utils_default.runFunc(functionName,...argList)})},"setClickFun"),pushFun=__name(function(id,callbackFunction){funs.push(function(){const prefixedId=diagramId?`${diagramId}-${id}`:id,elem=document.querySelector(`[id="${prefixedId}"]`);null!==elem&&elem.addEventListener("click",function(){callbackFunction()})},function(){const prefixedId=diagramId?`${diagramId}-${id}`:id,elem=document.querySelector(`[id="${prefixedId}-text"]`);null!==elem&&elem.addEventListener("click",function(){callbackFunction()})})},"pushFun"),setClickEvent=__name(function(ids,functionName,functionArgs){ids.split(",").forEach(function(id){setClickFun(id,functionName,functionArgs)}),setClass(ids,"clickable")},"setClickEvent"),bindFunctions=__name(function(element){funs.forEach(function(fun){fun(element)})},"bindFunctions"),ganttDb_default={getConfig:__name(()=>getConfig2().gantt,"getConfig"),clear:clear2,setDateFormat:setDateFormat,getDateFormat:getDateFormat,enableInclusiveEndDates:enableInclusiveEndDates,endDatesAreInclusive:endDatesAreInclusive,enableTopAxis:enableTopAxis,topAxisEnabled:topAxisEnabled,setAxisFormat:setAxisFormat,getAxisFormat:getAxisFormat,setTickInterval:setTickInterval,getTickInterval:getTickInterval,setTodayMarker:setTodayMarker,getTodayMarker:getTodayMarker,setAccTitle:setAccTitle,getAccTitle:getAccTitle,setDiagramTitle:setDiagramTitle,getDiagramTitle:getDiagramTitle,setDiagramId:setDiagramId,setDisplayMode:setDisplayMode,getDisplayMode:getDisplayMode,setAccDescription:setAccDescription,getAccDescription:getAccDescription,addSection:addSection,getSections:getSections,getTasks:getTasks,addTask:addTask,findTaskById:findTaskById,addTaskOrg:addTaskOrg,setIncludes:setIncludes,getIncludes:getIncludes,setExcludes:setExcludes,getExcludes:getExcludes,setClickEvent:setClickEvent,setLink:setLink,getLinks:getLinks,bindFunctions:bindFunctions,parseDuration:parseDuration,isInvalidDate:isInvalidDate,setWeekday:setWeekday,getWeekday:getWeekday,setWeekend:setWeekend};function getTaskTags(data,task,tags2){let matchFound=!0;for(;matchFound;)matchFound=!1,tags2.forEach(function(t){const regex=new RegExp("^\\s*"+t+"\\s*$");data[0].match(regex)&&(task[t]=!0,data.shift(1),matchFound=!0)})}__name(getTaskTags,"getTaskTags"),dayjs2.extend(dayjsDuration);var w,setConf=__name(function(){log.debug("Something is calling, setConf, remove the call")},"setConf"),mapWeekdayToTimeFunction={monday:timeMonday,tuesday:timeTuesday,wednesday:timeWednesday,thursday:timeThursday,friday:timeFriday,saturday:timeSaturday,sunday:timeSunday},getMaxIntersections=__name((tasks2,orderOffset)=>{let timeline=[...tasks2].map(()=>-1/0),sorted=[...tasks2].sort((a,b)=>a.startTime-b.startTime||a.order-b.order),maxIntersections=0;for(const element of sorted)for(let j=0;j<timeline.length;j++)if(element.startTime>=timeline[j]){timeline[j]=element.endTime,element.order=j+orderOffset,j>maxIntersections&&(maxIntersections=j);break}return maxIntersections},"getMaxIntersections"),diagram={parser:gantt_default,db:ganttDb_default,renderer:{setConf:setConf,draw:__name(function(text,id,version,diagObj){const conf=getConfig2().gantt;diagObj.db.setDiagramId(id);const securityLevel=getConfig2().securityLevel;let sandboxElement;"sandbox"===securityLevel&&(sandboxElement=select("#i"+id));const root=select("sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument.body:"body"),doc="sandbox"===securityLevel?sandboxElement.nodes()[0].contentDocument:document,elem=doc.getElementById(id);void 0===(w=elem.parentElement.offsetWidth)&&(w=1200),void 0!==conf.useWidth&&(w=conf.useWidth);const taskArray=diagObj.db.getTasks();let categories=[];for(const element of taskArray)categories.push(element.type);categories=checkUnique(categories);const categoryHeights={};let h=2*conf.topPadding;if("compact"===diagObj.db.getDisplayMode()||"compact"===conf.displayMode){const categoryElements={};for(const element of taskArray)void 0===categoryElements[element.section]?categoryElements[element.section]=[element]:categoryElements[element.section].push(element);let intersections=0;for(const category of Object.keys(categoryElements)){const categoryHeight=getMaxIntersections(categoryElements[category],intersections)+1;intersections+=categoryHeight,h+=categoryHeight*(conf.barHeight+conf.barGap),categoryHeights[category]=categoryHeight}}else{h+=taskArray.length*(conf.barHeight+conf.barGap);for(const category of categories)categoryHeights[category]=taskArray.filter(task=>task.type===category).length}elem.setAttribute("viewBox","0 0 "+w+" "+h);const svg=root.select(`[id="${id}"]`),timeScale=time().domain([min(taskArray,function(d){return d.startTime}),max(taskArray,function(d){return d.endTime})]).rangeRound([0,w-conf.leftPadding-conf.rightPadding]);function taskCompare(a,b){const taskA=a.startTime,taskB=b.startTime;let result=0;return taskA>taskB?result=1:taskA<taskB&&(result=-1),result}function makeGantt(tasks2,pageWidth,pageHeight){const barHeight=conf.barHeight,gap=barHeight+conf.barGap,topPadding=conf.topPadding,leftPadding=conf.leftPadding,colorScale=linear().domain([0,categories.length]).range(["#00B9FA","#F95002"]).interpolate(interpolateHcl);drawExcludeDays(gap,topPadding,leftPadding,pageWidth,pageHeight,tasks2,diagObj.db.getExcludes(),diagObj.db.getIncludes()),makeGrid(leftPadding,topPadding,pageWidth,pageHeight),drawRects(tasks2,gap,topPadding,leftPadding,barHeight,colorScale,pageWidth),vertLabels(gap,topPadding),drawToday(leftPadding,topPadding,pageWidth,pageHeight)}function drawRects(theArray,theGap,theTopPad,theSidePad,theBarHeight,theColorScale,w2){theArray.sort((a,b)=>a.vert===b.vert?0:a.vert?1:-1);const uniqueTasks=[...new Set(theArray.map(item=>item.order))].map(id2=>theArray.find(item=>item.order===id2));svg.append("g").selectAll("rect").data(uniqueTasks).enter().append("rect").attr("x",0).attr("y",function(d,i){return d.order*theGap+theTopPad-2}).attr("width",function(){return w2-conf.rightPadding/2}).attr("height",theGap).attr("class",function(d){for(const[i,category]of categories.entries())if(d.type===category)return"section section"+i%conf.numberSectionStyles;return"section section0"}).enter();const rectangles=svg.append("g").selectAll("rect").data(theArray).enter(),links2=diagObj.db.getLinks();rectangles.append("rect").attr("id",function(d){return id+"-"+d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){return d.milestone?timeScale(d.startTime)+theSidePad+.5*(timeScale(d.endTime)-timeScale(d.startTime))-.5*theBarHeight:timeScale(d.startTime)+theSidePad}).attr("y",function(d,i){return i=d.order,d.vert?conf.gridLineStartPadding:i*theGap+theTopPad}).attr("width",function(d){return d.milestone?theBarHeight:d.vert?.08*theBarHeight:timeScale(d.renderEndTime||d.endTime)-timeScale(d.startTime)}).attr("height",function(d){return d.vert?taskArray.length*(conf.barHeight+conf.barGap)+2*conf.barHeight:theBarHeight}).attr("transform-origin",function(d,i){return i=d.order,(timeScale(d.startTime)+theSidePad+.5*(timeScale(d.endTime)-timeScale(d.startTime))).toString()+"px "+(i*theGap+theTopPad+.5*theBarHeight).toString()+"px"}).attr("class",function(d){let classStr="";d.classes.length>0&&(classStr=d.classes.join(" "));let secNum=0;for(const[i,category]of categories.entries())d.type===category&&(secNum=i%conf.numberSectionStyles);let taskClass="";return d.active?d.crit?taskClass+=" activeCrit":taskClass=" active":d.done?taskClass=d.crit?" doneCrit":" done":d.crit&&(taskClass+=" crit"),0===taskClass.length&&(taskClass=" task"),d.milestone&&(taskClass=" milestone "+taskClass),d.vert&&(taskClass=" vert "+taskClass),taskClass+=secNum,taskClass+=" "+classStr,"task"+taskClass}),rectangles.append("text").attr("id",function(d){return id+"-"+d.id+"-text"}).text(function(d){return d.task}).attr("font-size",conf.fontSize).attr("x",function(d){let startX=timeScale(d.startTime),endX=timeScale(d.renderEndTime||d.endTime);if(d.milestone&&(startX+=.5*(timeScale(d.endTime)-timeScale(d.startTime))-.5*theBarHeight,endX=startX+theBarHeight),d.vert)return timeScale(d.startTime)+theSidePad;const textWidth=this.getBBox().width;return textWidth>endX-startX?endX+textWidth+1.5*conf.leftPadding>w2?startX+theSidePad-5:endX+theSidePad+5:(endX-startX)/2+startX+theSidePad}).attr("y",function(d,i){return d.vert?conf.gridLineStartPadding+taskArray.length*(conf.barHeight+conf.barGap)+60:d.order*theGap+conf.barHeight/2+(conf.fontSize/2-2)+theTopPad}).attr("text-height",theBarHeight).attr("class",function(d){const startX=timeScale(d.startTime);let endX=timeScale(d.endTime);d.milestone&&(endX=startX+theBarHeight);const textWidth=this.getBBox().width;let classStr="";d.classes.length>0&&(classStr=d.classes.join(" "));let secNum=0;for(const[i,category]of categories.entries())d.type===category&&(secNum=i%conf.numberSectionStyles);let taskType="";return d.active&&(taskType=d.crit?"activeCritText"+secNum:"activeText"+secNum),d.done?taskType=d.crit?taskType+" doneCritText"+secNum:taskType+" doneText"+secNum:d.crit&&(taskType=taskType+" critText"+secNum),d.milestone&&(taskType+=" milestoneText"),d.vert&&(taskType+=" vertText"),textWidth>endX-startX?endX+textWidth+1.5*conf.leftPadding>w2?classStr+" taskTextOutsideLeft taskTextOutside"+secNum+" "+taskType:classStr+" taskTextOutsideRight taskTextOutside"+secNum+" "+taskType+" width-"+textWidth:classStr+" taskText taskText"+secNum+" "+taskType+" width-"+textWidth});if("sandbox"===getConfig2().securityLevel){let sandboxElement2;sandboxElement2=select("#i"+id);const doc2=sandboxElement2.nodes()[0].contentDocument;rectangles.filter(function(d){return links2.has(d.id)}).each(function(o){var taskRect=doc2.querySelector("#"+CSS.escape(id+"-"+o.id)),taskText=doc2.querySelector("#"+CSS.escape(id+"-"+o.id+"-text"));const oldParent=taskRect.parentNode;var Link=doc2.createElement("a");Link.setAttribute("xlink:href",links2.get(o.id)),Link.setAttribute("target","_top"),oldParent.appendChild(Link),Link.appendChild(taskRect),Link.appendChild(taskText)})}}function drawExcludeDays(theGap,theTopPad,theSidePad,w2,h2,tasks2,excludes2,includes2){if(0===excludes2.length&&0===includes2.length)return;let minTime,maxTime;for(const{startTime:startTime,endTime:endTime}of tasks2)(void 0===minTime||startTime<minTime)&&(minTime=startTime),(void 0===maxTime||endTime>maxTime)&&(maxTime=endTime);if(!minTime||!maxTime)return;if(dayjs2(maxTime).diff(dayjs2(minTime),"year")>5)return void log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const dateFormat2=diagObj.db.getDateFormat(),excludeRanges=[];let range=null,d=dayjs2(minTime);for(;d.valueOf()<=maxTime;)diagObj.db.isInvalidDate(d,dateFormat2,excludes2,includes2)?range?range.end=d:range={start:d,end:d}:range&&(excludeRanges.push(range),range=null),d=d.add(1,"d");svg.append("g").selectAll("rect").data(excludeRanges).enter().append("rect").attr("id",d2=>id+"-exclude-"+d2.start.format("YYYY-MM-DD")).attr("x",d2=>timeScale(d2.start.startOf("day"))+theSidePad).attr("y",conf.gridLineStartPadding).attr("width",d2=>timeScale(d2.end.endOf("day"))-timeScale(d2.start.startOf("day"))).attr("height",h2-theTopPad-conf.gridLineStartPadding).attr("transform-origin",function(d2,i){return(timeScale(d2.start)+theSidePad+.5*(timeScale(d2.end)-timeScale(d2.start))).toString()+"px "+(i*theGap+.5*h2).toString()+"px"}).attr("class","exclude-range")}function getEstimatedTickCount(minTime,maxTime,every,interval){if(every<=0||minTime>maxTime)return 1/0;const timeDiffMs=maxTime-minTime,intervalMs=dayjs2.duration({[interval??"day"]:every}).asMilliseconds();return intervalMs<=0?1/0:Math.ceil(timeDiffMs/intervalMs)}function makeGrid(theSidePad,theTopPad,w2,h2){const dateFormat2=diagObj.db.getDateFormat(),userAxisFormat=diagObj.db.getAxisFormat();let axisFormat2;axisFormat2=userAxisFormat||("D"===dateFormat2?"%d":conf.axisFormat??"%Y-%m-%d");let bottomXAxis=(scale=timeScale,axis(3,scale)).tickSize(-h2+theTopPad+conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));var scale;const resultTickInterval=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(diagObj.db.getTickInterval()||conf.tickInterval);if(null!==resultTickInterval){const every=parseInt(resultTickInterval[1],10);if(isNaN(every)||every<=0)log.warn(`Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`);else{const interval=resultTickInterval[2],weekday2=diagObj.db.getWeekday()||conf.weekday,domain=timeScale.domain(),estimatedTicks=getEstimatedTickCount(domain[0],domain[1],every,interval);if(estimatedTicks>1e4)log.warn(`The tick interval "${every}${interval}" would generate ${estimatedTicks} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(interval){case"millisecond":bottomXAxis.ticks(millisecond.every(every));break;case"second":bottomXAxis.ticks(second.every(every));break;case"minute":bottomXAxis.ticks(timeMinute.every(every));break;case"hour":bottomXAxis.ticks(timeHour.every(every));break;case"day":bottomXAxis.ticks(timeDay.every(every));break;case"week":bottomXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));break;case"month":bottomXAxis.ticks(timeMonth.every(every))}}}if(svg.append("g").attr("class","grid").attr("transform","translate("+theSidePad+", "+(h2-50)+")").call(bottomXAxis).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),diagObj.db.topAxisEnabled()||conf.topAxis){let topXAxis=function(scale){return axis(1,scale)}(timeScale).tickSize(-h2+theTopPad+conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));if(null!==resultTickInterval){const every=parseInt(resultTickInterval[1],10);if(isNaN(every)||every<=0)log.warn(`Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`);else{const interval=resultTickInterval[2],weekday2=diagObj.db.getWeekday()||conf.weekday,domain=timeScale.domain();if(getEstimatedTickCount(domain[0],domain[1],every,interval)<=1e4)switch(interval){case"millisecond":topXAxis.ticks(millisecond.every(every));break;case"second":topXAxis.ticks(second.every(every));break;case"minute":topXAxis.ticks(timeMinute.every(every));break;case"hour":topXAxis.ticks(timeHour.every(every));break;case"day":topXAxis.ticks(timeDay.every(every));break;case"week":topXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));break;case"month":topXAxis.ticks(timeMonth.every(every))}}}svg.append("g").attr("class","grid").attr("transform","translate("+theSidePad+", "+theTopPad+")").call(topXAxis).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function vertLabels(theGap,theTopPad){let prevGap=0;const numOccurrences=Object.keys(categoryHeights).map(d=>[d,categoryHeights[d]]);svg.append("g").selectAll("text").data(numOccurrences).enter().append(function(d){const rows=d[0].split(common_default.lineBreakRegex),dy=-(rows.length-1)/2,svgLabel=doc.createElementNS("http://www.w3.org/2000/svg","text");svgLabel.setAttribute("dy",dy+"em");for(const[j,row]of rows.entries()){const tspan=doc.createElementNS("http://www.w3.org/2000/svg","tspan");tspan.setAttribute("alignment-baseline","central"),tspan.setAttribute("x","10"),j>0&&tspan.setAttribute("dy","1em"),tspan.textContent=row,svgLabel.appendChild(tspan)}return svgLabel}).attr("x",10).attr("y",function(d,i){if(!(i>0))return d[1]*theGap/2+theTopPad;for(let j=0;j<i;j++)return prevGap+=numOccurrences[i-1][1],d[1]*theGap/2+prevGap*theGap+theTopPad}).attr("font-size",conf.sectionFontSize).attr("class",function(d){for(const[i,category]of categories.entries())if(d[0]===category)return"sectionTitle sectionTitle"+i%conf.numberSectionStyles;return"sectionTitle"})}function drawToday(theSidePad,theTopPad,w2,h2){const todayMarker2=diagObj.db.getTodayMarker();if("off"===todayMarker2)return;const todayG=svg.append("g").attr("class","today"),today=new Date,todayLine=todayG.append("line");todayLine.attr("x1",timeScale(today)+theSidePad).attr("x2",timeScale(today)+theSidePad).attr("y1",conf.titleTopMargin).attr("y2",h2-conf.titleTopMargin).attr("class","today"),""!==todayMarker2&&todayLine.attr("style",todayMarker2.replace(/,/g,";"))}function checkUnique(arr){const hash={},result=[];for(let i=0,l=arr.length;i<l;++i)Object.prototype.hasOwnProperty.call(hash,arr[i])||(hash[arr[i]]=!0,result.push(arr[i]));return result}__name(taskCompare,"taskCompare"),taskArray.sort(taskCompare),makeGantt(taskArray,w,h),configureSvgSize(svg,h,w,conf.useMaxWidth),svg.append("text").text(diagObj.db.getDiagramTitle()).attr("x",w/2).attr("y",conf.titleTopMargin).attr("class","titleText"),__name(makeGantt,"makeGantt"),__name(drawRects,"drawRects"),__name(drawExcludeDays,"drawExcludeDays"),__name(getEstimatedTickCount,"getEstimatedTickCount"),__name(makeGrid,"makeGrid"),__name(vertLabels,"vertLabels"),__name(drawToday,"drawToday"),__name(checkUnique,"checkUnique")},"draw")},styles:__name(options=>`\n .mermaid-main-font {\n font-family: ${options.fontFamily};\n }\n\n .exclude-range {\n fill: ${options.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${options.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.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: ${options.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-family: ${options.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${options.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: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.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: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${options.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.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: ${options.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${options.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${options.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${options.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.titleColor||options.textColor};\n font-family: ${options.fontFamily};\n }\n`,"getStyles")};export{diagram};