@shaohui_jin/git-cockpit-mcp-server 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-XZMJUCNP.js → chunk-DK7VEJFY.js} +2 -2
- package/dist/{chunk-XZMJUCNP.js.map → chunk-DK7VEJFY.js.map} +1 -1
- package/dist/{chunk-Z2I56YTY.js → chunk-HXRA3DSL.js} +3 -3
- package/dist/{chunk-EGRRNLIR.js → chunk-OSTBV522.js} +144 -19
- package/dist/chunk-OSTBV522.js.map +1 -0
- package/dist/cli-entry.js +3 -3
- package/dist/cli.js +3 -3
- package/dist/index.js +3 -3
- package/dist/mcpServer.js +1 -1
- package/dist/web/assets/abnfDiagram-O67JEVCF-BxKTIPvt.js +1 -0
- package/dist/web/assets/arc-BFKkJjPp.js +1 -0
- package/dist/web/assets/architectureDiagram-NJMV4G6O-DwuGbjcP.js +36 -0
- package/dist/web/assets/blockDiagram-BEXU5L5S-DQtfpBon.js +140 -0
- package/dist/web/assets/c4Diagram-YGBWAQC7-DQEx6b-X.js +38 -0
- package/dist/web/assets/channel-SnOBxP58.js +1 -0
- package/dist/web/assets/chunk-2Q5K7J3B-BZZAc8A2.js +1 -0
- package/dist/web/assets/chunk-3FUC2YCW-BKsUOX0P.js +2 -0
- package/dist/web/assets/chunk-5VM5RSS4-DS8_TMNo.js +15 -0
- package/dist/web/assets/chunk-GTNCS2PH-upTfZMjS.js +88 -0
- package/dist/web/assets/chunk-GWA4HPMP-BKqnDCMe.js +1 -0
- package/dist/web/assets/chunk-JWPE2WC7-DRg2DW5G.js +1 -0
- package/dist/web/assets/chunk-NETBCI7D-D-NIf3Jh.js +1 -0
- package/dist/web/assets/chunk-WEXAMYUT-C-ODRuff.js +1 -0
- package/dist/web/assets/chunk-XXDRQBXY-CyL5e2d_.js +1 -0
- package/dist/web/assets/classDiagram-v2-NBCMYWYE-CK5THZs3.js +217 -0
- package/dist/web/assets/cose-bilkent-JH36ORCC-02-3CpJi.js +1 -0
- package/dist/web/assets/cynefin-OW5HDTMX-CAexhoXe.js +178 -0
- package/dist/web/assets/cynefinDiagram-VND7K2PF-BJF_eeoU.js +62 -0
- package/dist/web/assets/cytoscape.esm-Ix0LnXOy.js +331 -0
- package/dist/web/assets/dagre-6A5THRUB-C6GL7ERH.js +4 -0
- package/dist/web/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/web/assets/diagram-22UHCM2B-Ds8n2rH1.js +200 -0
- package/dist/web/assets/diagram-3UASUU5V-Dqf7ZoXN.js +24 -0
- package/dist/web/assets/diagram-ATOU4E4O-m7aUBWki.js +3 -0
- package/dist/web/assets/diagram-CDSNMT55-DRH4aoMQ.js +30 -0
- package/dist/web/assets/diagram-MLGK6HIB-BcpYvpQA.js +24 -0
- package/dist/web/assets/diagram-MPIPVDR6-Bi0PAW2v.js +41 -0
- package/dist/web/assets/ebnfDiagram-ZINNZB2B-qlPQrozl.js +1 -0
- package/dist/web/assets/{element-plus-DqfuixMM.js → element-plus-IBMLLhb-.js} +16 -16
- package/dist/web/assets/elk-276RUBZZ-DMAkKBgQ.js +27 -0
- package/dist/web/assets/erDiagram-OPXOYQCR-Twfp1387.js +99 -0
- package/dist/web/assets/flowDiagram-KWPJA3E3-C2dUfvWx.js +213 -0
- package/dist/web/assets/ganttDiagram-FUAMR5RP-BaPxeXq3.js +292 -0
- package/dist/web/assets/gitGraphDiagram-X574FWY7-_hPb8CT4.js +106 -0
- package/dist/web/assets/graph-DcfhsBxO.js +1 -0
- package/dist/web/assets/index-BFkHoNBz.js +734 -0
- package/dist/web/assets/{index-Q-8t6Mrp.css → index-DYyaZxyF.css} +1 -1
- package/dist/web/assets/infoDiagram-VRGFBTTK-Du4dCYJ4.js +2 -0
- package/dist/web/assets/init-Gi6I4Gst.js +1 -0
- package/dist/web/assets/ishikawaDiagram-OU5B5YK6-DDKBcmep.js +70 -0
- package/dist/web/assets/journeyDiagram-ZHPQQLJL-CL0kUw14.js +139 -0
- package/dist/web/assets/kanban-definition-PNTS6WVX-BEE1vcNj.js +89 -0
- package/dist/web/assets/katex-C5jXJg4s.js +257 -0
- package/dist/web/assets/linear-Dub9pXXw.js +1 -0
- package/dist/web/assets/mindmap-definition-NLK3R4M7-DoKDp1pJ.js +96 -0
- package/dist/web/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/web/assets/pegDiagram-GJSIUBJH-ODJ_Yd0b.js +1 -0
- package/dist/web/assets/pieDiagram-5QR66LMP-Cmyperfp.js +39 -0
- package/dist/web/assets/quadrantDiagram-O4NWA36T-aypd2R_C.js +7 -0
- package/dist/web/assets/railroadDiagram-XR7U4H2S-BI36mUxb.js +1 -0
- package/dist/web/assets/requirementDiagram-PLB6GJNP-DMp_AH1O.js +84 -0
- package/dist/web/assets/sankeyDiagram-IPEJSGJF-CYcGOg3G.js +40 -0
- package/dist/web/assets/sequenceDiagram-PO4LG4MO-ChZB8RbV.js +169 -0
- package/dist/web/assets/sizeCapture-INFHLROL-BqqVL3Rt.js +1 -0
- package/dist/web/assets/stateDiagram-v2-GCMORJYK-DZvh8NA2.js +291 -0
- package/dist/web/assets/swimlanes-2SLR337P-B2UuTxFK.js +1 -0
- package/dist/web/assets/swimlanesDiagram-TC7HE7FX-BoTo_Fcu.js +8 -0
- package/dist/web/assets/timeline-definition-EJHVYXUP-C_eH7hMc.js +120 -0
- package/dist/web/assets/usecaseDiagram-POWQR4AR-yPvynT6u.js +370 -0
- package/dist/web/assets/vennDiagram-UO4OBE2U-8NH9xysg.js +34 -0
- package/dist/web/assets/wardleyDiagram-VNRHLVJA-8YoREFYM.js +78 -0
- package/dist/web/assets/xychartDiagram-PMCCYNJV-Bjj7znot.js +7 -0
- package/dist/web/index.html +3 -3
- package/dist/webServer.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-EGRRNLIR.js.map +0 -1
- package/dist/web/assets/index-Dr08TY5R.js +0 -413
- /package/dist/{chunk-Z2I56YTY.js.map → chunk-HXRA3DSL.js.map} +0 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import{bp as en,bq as An,br as nn,bs as rn,bt as sn,bu as ae,bv as Ln,g as Wn,s as On,t as $n,q as Nn,a as Hn,b as Vn,_ as d,c as _t,k as Xt,d as Rn,l as vt,m as Pn,S as zn,A as qn,u as Bn}from"./index-BFkHoNBz.js";import{g as an,h as rt,j as Xn,l as Zn}from"./element-plus-IBMLLhb-.js";import{b as jn,t as Oe,c as Gn,a as Qn,l as Jn}from"./linear-Dub9pXXw.js";import{i as Kn}from"./init-Gi6I4Gst.js";import"./vue-BhwNxZ68.js";import"./defaultLocale-DX6XiGOO.js";function tr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function er(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function nr(t){return t}var jt=1,oe=2,pe=3,Zt=4,$e=1e-6;function rr(t){return"translate("+t+",0)"}function ir(t){return"translate(0,"+t+")"}function sr(t){return e=>+t(e)}function ar(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function or(){return!this.__axis}function on(t,e){var n=[],r=null,i=null,s=6,o=6,x=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===jt||t===Zt?-1:1,_=t===Zt||t===oe?"x":"y",H=t===jt||t===pe?rr:ir;function C(D){var P=r??(e.ticks?e.ticks.apply(e,n):e.domain()),R=i??(e.tickFormat?e.tickFormat.apply(e,n):nr),U=Math.max(s,0)+x,j=e.range(),it=+j[0]+F,z=+j[j.length-1]+F,X=(e.bandwidth?ar:sr)(e.copy(),F),Q=D.selection?D.selection():D,y=Q.selectAll(".domain").data([null]),k=Q.selectAll(".tick").data(P,e).order(),p=k.exit(),$=k.enter().append("g").attr("class","tick"),v=k.select("line"),M=k.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge($),v=v.merge($.append("line").attr("stroke","currentColor").attr(_+"2",S*s)),M=M.merge($.append("text").attr("fill","currentColor").attr(_,S*U).attr("dy",t===jt?"0em":t===pe?"0.71em":"0.32em")),D!==Q&&(y=y.transition(D),k=k.transition(D),v=v.transition(D),M=M.transition(D),p=p.transition(D).attr("opacity",$e).attr("transform",function(b){return isFinite(b=X(b))?H(b+F):this.getAttribute("transform")}),$.attr("opacity",$e).attr("transform",function(b){var w=this.parentNode.__axis;return H((w&&isFinite(w=w(b))?w:X(b))+F)})),p.remove(),y.attr("d",t===Zt||t===oe?o?"M"+S*o+","+it+"H"+F+"V"+z+"H"+S*o:"M"+F+","+it+"V"+z:o?"M"+it+","+S*o+"V"+F+"H"+z+"V"+S*o:"M"+it+","+F+"H"+z),k.attr("opacity",1).attr("transform",function(b){return H(X(b)+F)}),v.attr(_+"2",S*s),M.attr(_,S*U).text(R),Q.filter(or).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oe?"start":t===Zt?"end":"middle"),Q.each(function(){this.__axis=X})}return C.scale=function(D){return arguments.length?(e=D,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(D){return arguments.length?(n=D==null?[]:Array.from(D),C):n.slice()},C.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),C):r&&r.slice()},C.tickFormat=function(D){return arguments.length?(i=D,C):i},C.tickSize=function(D){return arguments.length?(s=o=+D,C):s},C.tickSizeInner=function(D){return arguments.length?(s=+D,C):s},C.tickSizeOuter=function(D){return arguments.length?(o=+D,C):o},C.tickPadding=function(D){return arguments.length?(x=+D,C):x},C.offset=function(D){return arguments.length?(F=+D,C):F},C}function cr(t){return on(jt,t)}function ur(t){return on(pe,t)}const lr=Math.PI/180,fr=180/Math.PI,te=18,cn=.96422,un=1,ln=.82521,fn=4/29,Ft=6/29,dn=3*Ft*Ft,dr=Ft*Ft*Ft;function hn(t){if(t instanceof ut)return new ut(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return mn(t);t instanceof en||(t=An(t));var e=fe(t.r),n=fe(t.g),r=fe(t.b),i=ce((.2225045*e+.7168786*n+.0606169*r)/un),s,o;return e===n&&n===r?s=o=i:(s=ce((.4360747*e+.3850649*n+.1430804*r)/cn),o=ce((.0139322*e+.0971045*n+.7141733*r)/ln)),new ut(116*i-16,500*(s-i),200*(i-o),t.opacity)}function hr(t,e,n,r){return arguments.length===1?hn(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}nn(ut,hr,rn(sn,{brighter(t){return new ut(this.l+te*(t??1),this.a,this.b,this.opacity)},darker(t){return new ut(this.l-te*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=cn*ue(e),t=un*ue(t),n=ln*ue(n),new en(le(3.1338561*e-1.6168667*t-.4906146*n),le(-.9787684*e+1.9161415*t+.033454*n),le(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ce(t){return t>dr?Math.pow(t,1/3):t/dn+fn}function ue(t){return t>Ft?t*t*t:dn*(t-fn)}function le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function fe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function mr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ut||(t=hn(t)),t.a===0&&t.b===0)return new ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*fr;return new ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ve(t,e,n,r){return arguments.length===1?mr(t):new ht(t,e,n,r??1)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function mn(t){if(isNaN(t.h))return new ut(t.l,0,0,t.opacity);var e=t.h*lr;return new ut(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}nn(ht,ve,rn(sn,{brighter(t){return new ht(this.h,this.c,this.l+te*(t??1),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-te*(t??1),this.opacity)},rgb(){return mn(this).rgb()}}));function gr(t){return function(e,n){var r=t((e=ve(e)).h,(n=ve(n)).h),i=ae(e.c,n.c),s=ae(e.l,n.l),o=ae(e.opacity,n.opacity);return function(x){return e.h=r(x),e.c=i(x),e.l=s(x),e.opacity=o(x),e+""}}}const yr=gr(Ln);function kr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],o;return s<i&&(o=n,n=r,r=o,o=i,i=s,s=o),t[n]=e.floor(i),t[r]=e.ceil(s),t}const de=new Date,he=new Date;function tt(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),x=i.ceil(s);return s-o<x-s?o:x},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,x)=>{const F=[];if(s=i.ceil(s),x=x==null?1:Math.floor(x),!(s<o)||!(x>0))return F;let S;do F.push(S=new Date(+s)),e(s,x),t(s);while(S<s&&s<o);return F},i.filter=s=>tt(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,x)=>{if(o>=o)if(x<0)for(;++x<=0;)for(;e(o,-1),!s(o););else for(;--x>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(de.setTime(+s),he.setTime(+o),t(de),t(he),Math.floor(n(de,he))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const It=tt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);It.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?tt(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):It);It.range;const mt=1e3,at=mt*60,gt=at*60,yt=gt*24,Ce=yt*7,Ne=yt*30,me=yt*365,pt=tt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Nt=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getMinutes());Nt.range;const pr=tt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*at)},(t,e)=>(e-t)/at,t=>t.getUTCMinutes());pr.range;const Ht=tt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*at)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ht.range;const vr=tt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());vr.range;const Tt=tt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*at)/yt,t=>t.getDate()-1);Tt.range;const De=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);De.range;const Tr=tt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));Tr.range;function wt(t){return tt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*at)/Ce)}const Pt=wt(0),Vt=wt(1),gn=wt(2),yn=wt(3),xt=wt(4),kn=wt(5),pn=wt(6);Pt.range;Vt.range;gn.range;yn.range;xt.range;kn.range;pn.range;function Ct(t){return tt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Ce)}const vn=Ct(0),ee=Ct(1),xr=Ct(2),br=Ct(3),Et=Ct(4),wr=Ct(5),Cr=Ct(6);vn.range;ee.range;xr.range;br.range;Et.range;wr.range;Cr.range;const Rt=tt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Rt.range;const Dr=tt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Dr.range;const kt=tt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const bt=tt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());bt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:tt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});bt.range;function Mr(t,e,n,r,i,s){const o=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[s,1,at],[s,5,5*at],[s,15,15*at],[s,30,30*at],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,Ce],[e,1,Ne],[e,3,3*Ne],[t,1,me]];function x(S,_,H){const C=_<S;C&&([S,_]=[_,S]);const D=H&&typeof H.range=="function"?H:F(S,_,H),P=D?D.range(S,+_+1):[];return C?P.reverse():P}function F(S,_,H){const C=Math.abs(_-S)/H,D=jn(([,,U])=>U).right(o,C);if(D===o.length)return t.every(Oe(S/me,_/me,H));if(D===0)return It.every(Math.max(Oe(S,_,H),1));const[P,R]=o[C/o[D-1][2]<o[D][2]/C?D-1:D];return P.every(R)}return[x,F]}const[Sr,_r]=Mr(kt,Rt,Pt,Tt,Ht,Nt);function ge(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ye(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Wt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Fr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,o=t.shortDays,x=t.months,F=t.shortMonths,S=Ot(i),_=$t(i),H=Ot(s),C=$t(s),D=Ot(o),P=$t(o),R=Ot(x),U=$t(x),j=Ot(F),it=$t(F),z={a:m,A,b:a,B:O,c:null,d:qe,e:qe,f:Jr,g:ci,G:li,H:jr,I:Gr,j:Qr,L:Tn,m:Kr,M:ti,p:l,q:J,Q:Ze,s:je,S:ei,u:ni,U:ri,V:ii,w:si,W:ai,x:null,X:null,y:oi,Y:ui,Z:fi,"%":Xe},X={a:u,A:I,b:E,B:q,c:null,d:Be,e:Be,f:gi,g:Di,G:Si,H:di,I:hi,j:mi,L:bn,m:yi,M:ki,p:Y,q:Z,Q:Ze,s:je,S:pi,u:vi,U:Ti,V:xi,w:bi,W:wi,x:null,X:null,y:Ci,Y:Mi,Z:_i,"%":Xe},Q={a:v,A:M,b,B:w,c,d:Pe,e:Pe,f:qr,g:Re,G:Ve,H:ze,I:ze,j:Vr,L:zr,m:Hr,M:Rr,p:$,q:Nr,Q:Xr,s:Zr,S:Pr,u:Ar,U:Lr,V:Wr,w:Yr,W:Or,x:g,X:T,y:Re,Y:Ve,Z:$r,"%":Br};z.x=y(n,z),z.X=y(r,z),z.c=y(e,z),X.x=y(n,X),X.X=y(r,X),X.c=y(e,X);function y(h,L){return function(N){var f=[],nt=-1,W=0,G=h.length,B,ot,lt;for(N instanceof Date||(N=new Date(+N));++nt<G;)h.charCodeAt(nt)===37&&(f.push(h.slice(W,nt)),(ot=He[B=h.charAt(++nt)])!=null?B=h.charAt(++nt):ot=B==="e"?" ":"0",(lt=L[B])&&(B=lt(N,ot)),f.push(B),W=nt+1);return f.push(h.slice(W,nt)),f.join("")}}function k(h,L){return function(N){var f=Wt(1900,void 0,1),nt=p(f,h,N+="",0),W,G;if(nt!=N.length)return null;if("Q"in f)return new Date(f.Q);if("s"in f)return new Date(f.s*1e3+("L"in f?f.L:0));if(L&&!("Z"in f)&&(f.Z=0),"p"in f&&(f.H=f.H%12+f.p*12),f.m===void 0&&(f.m="q"in f?f.q:0),"V"in f){if(f.V<1||f.V>53)return null;"w"in f||(f.w=1),"Z"in f?(W=ye(Wt(f.y,0,1)),G=W.getUTCDay(),W=G>4||G===0?ee.ceil(W):ee(W),W=De.offset(W,(f.V-1)*7),f.y=W.getUTCFullYear(),f.m=W.getUTCMonth(),f.d=W.getUTCDate()+(f.w+6)%7):(W=ge(Wt(f.y,0,1)),G=W.getDay(),W=G>4||G===0?Vt.ceil(W):Vt(W),W=Tt.offset(W,(f.V-1)*7),f.y=W.getFullYear(),f.m=W.getMonth(),f.d=W.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),G="Z"in f?ye(Wt(f.y,0,1)).getUTCDay():ge(Wt(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(G+5)%7:f.w+f.U*7-(G+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ye(f)):ge(f)}}function p(h,L,N,f){for(var nt=0,W=L.length,G=N.length,B,ot;nt<W;){if(f>=G)return-1;if(B=L.charCodeAt(nt++),B===37){if(B=L.charAt(nt++),ot=Q[B in He?L.charAt(nt++):B],!ot||(f=ot(h,N,f))<0)return-1}else if(B!=N.charCodeAt(f++))return-1}return f}function $(h,L,N){var f=S.exec(L.slice(N));return f?(h.p=_.get(f[0].toLowerCase()),N+f[0].length):-1}function v(h,L,N){var f=D.exec(L.slice(N));return f?(h.w=P.get(f[0].toLowerCase()),N+f[0].length):-1}function M(h,L,N){var f=H.exec(L.slice(N));return f?(h.w=C.get(f[0].toLowerCase()),N+f[0].length):-1}function b(h,L,N){var f=j.exec(L.slice(N));return f?(h.m=it.get(f[0].toLowerCase()),N+f[0].length):-1}function w(h,L,N){var f=R.exec(L.slice(N));return f?(h.m=U.get(f[0].toLowerCase()),N+f[0].length):-1}function c(h,L,N){return p(h,e,L,N)}function g(h,L,N){return p(h,n,L,N)}function T(h,L,N){return p(h,r,L,N)}function m(h){return o[h.getDay()]}function A(h){return s[h.getDay()]}function a(h){return F[h.getMonth()]}function O(h){return x[h.getMonth()]}function l(h){return i[+(h.getHours()>=12)]}function J(h){return 1+~~(h.getMonth()/3)}function u(h){return o[h.getUTCDay()]}function I(h){return s[h.getUTCDay()]}function E(h){return F[h.getUTCMonth()]}function q(h){return x[h.getUTCMonth()]}function Y(h){return i[+(h.getUTCHours()>=12)]}function Z(h){return 1+~~(h.getUTCMonth()/3)}return{format:function(h){var L=y(h+="",z);return L.toString=function(){return h},L},parse:function(h){var L=k(h+="",!1);return L.toString=function(){return h},L},utcFormat:function(h){var L=y(h+="",X);return L.toString=function(){return h},L},utcParse:function(h){var L=k(h+="",!0);return L.toString=function(){return h},L}}}var He={"-":"",_:" ",0:"0"},et=/^\s*\d+/,Ur=/^%/,Ir=/[\\^$*+?|[\]().{}]/g;function V(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Er(t){return t.replace(Ir,"\\$&")}function Ot(t){return new RegExp("^(?:"+t.map(Er).join("|")+")","i")}function $t(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Yr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $r(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Nr(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Hr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Pe(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=et.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Br(t,e,n){var r=Ur.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Xr(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function qe(t,e){return V(t.getDate(),e,2)}function jr(t,e){return V(t.getHours(),e,2)}function Gr(t,e){return V(t.getHours()%12||12,e,2)}function Qr(t,e){return V(1+Tt.count(kt(t),t),e,3)}function Tn(t,e){return V(t.getMilliseconds(),e,3)}function Jr(t,e){return Tn(t,e)+"000"}function Kr(t,e){return V(t.getMonth()+1,e,2)}function ti(t,e){return V(t.getMinutes(),e,2)}function ei(t,e){return V(t.getSeconds(),e,2)}function ni(t){var e=t.getDay();return e===0?7:e}function ri(t,e){return V(Pt.count(kt(t)-1,t),e,2)}function xn(t){var e=t.getDay();return e>=4||e===0?xt(t):xt.ceil(t)}function ii(t,e){return t=xn(t),V(xt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function si(t){return t.getDay()}function ai(t,e){return V(Vt.count(kt(t)-1,t),e,2)}function oi(t,e){return V(t.getFullYear()%100,e,2)}function ci(t,e){return t=xn(t),V(t.getFullYear()%100,e,2)}function ui(t,e){return V(t.getFullYear()%1e4,e,4)}function li(t,e){var n=t.getDay();return t=n>=4||n===0?xt(t):xt.ceil(t),V(t.getFullYear()%1e4,e,4)}function fi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+V(e/60|0,"0",2)+V(e%60,"0",2)}function Be(t,e){return V(t.getUTCDate(),e,2)}function di(t,e){return V(t.getUTCHours(),e,2)}function hi(t,e){return V(t.getUTCHours()%12||12,e,2)}function mi(t,e){return V(1+De.count(bt(t),t),e,3)}function bn(t,e){return V(t.getUTCMilliseconds(),e,3)}function gi(t,e){return bn(t,e)+"000"}function yi(t,e){return V(t.getUTCMonth()+1,e,2)}function ki(t,e){return V(t.getUTCMinutes(),e,2)}function pi(t,e){return V(t.getUTCSeconds(),e,2)}function vi(t){var e=t.getUTCDay();return e===0?7:e}function Ti(t,e){return V(vn.count(bt(t)-1,t),e,2)}function wn(t){var e=t.getUTCDay();return e>=4||e===0?Et(t):Et.ceil(t)}function xi(t,e){return t=wn(t),V(Et.count(bt(t),t)+(bt(t).getUTCDay()===4),e,2)}function bi(t){return t.getUTCDay()}function wi(t,e){return V(ee.count(bt(t)-1,t),e,2)}function Ci(t,e){return V(t.getUTCFullYear()%100,e,2)}function Di(t,e){return t=wn(t),V(t.getUTCFullYear()%100,e,2)}function Mi(t,e){return V(t.getUTCFullYear()%1e4,e,4)}function Si(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Et(t):Et.ceil(t),V(t.getUTCFullYear()%1e4,e,4)}function _i(){return"+0000"}function Xe(){return"%"}function Ze(t){return+t}function je(t){return Math.floor(+t/1e3)}var Mt,ne;Fi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Fi(t){return Mt=Fr(t),ne=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function Ui(t){return new Date(t)}function Ii(t){return t instanceof Date?+t:+new Date(+t)}function Cn(t,e,n,r,i,s,o,x,F,S){var _=Gn(),H=_.invert,C=_.domain,D=S(".%L"),P=S(":%S"),R=S("%I:%M"),U=S("%I %p"),j=S("%a %d"),it=S("%b %d"),z=S("%B"),X=S("%Y");function Q(y){return(F(y)<y?D:x(y)<y?P:o(y)<y?R:s(y)<y?U:r(y)<y?i(y)<y?j:it:n(y)<y?z:X)(y)}return _.invert=function(y){return new Date(H(y))},_.domain=function(y){return arguments.length?C(Array.from(y,Ii)):C().map(Ui)},_.ticks=function(y){var k=C();return t(k[0],k[k.length-1],y??10)},_.tickFormat=function(y,k){return k==null?Q:S(k)},_.nice=function(y){var k=C();return(!y||typeof y.range!="function")&&(y=e(k[0],k[k.length-1],y??10)),y?C(kr(k,y)):_},_.copy=function(){return Qn(_,Cn(t,e,n,r,i,s,o,x,F,S))},_}function Ei(){return Kn.apply(Cn(Sr,_r,kt,Rt,Pt,Tt,Ht,Nt,pt,ne).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Gt={exports:{}},Yi=Gt.exports,Ge;function Ai(){return Ge||(Ge=1,(function(t,e){(function(n,r){t.exports=r()})(Yi,(function(){var n="day";return function(r,i,s){var o=function(S){return S.add(4-S.isoWeekday(),n)},x=i.prototype;x.isoWeekYear=function(){return o(this).year()},x.isoWeek=function(S){if(!this.$utils().u(S))return this.add(7*(S-this.isoWeek()),n);var _,H,C,D,P=o(this),R=(_=this.isoWeekYear(),H=this.$u,C=(H?s.utc:s)().year(_).startOf("year"),D=4-C.isoWeekday(),C.isoWeekday()>4&&(D+=7),C.add(D,n));return P.diff(R,"week")+1},x.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var F=x.startOf;x.startOf=function(S,_){var H=this.$utils(),C=!!H.u(_)||_;return H.p(S)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(S,_)}}}))})(Gt)),Gt.exports}var Li=Ai();const Wi=an(Li);var Qt={exports:{}},Oi=Qt.exports,Qe;function $i(){return Qe||(Qe=1,(function(t,e){(function(n,r){t.exports=r()})(Oi,(function(){var n,r,i=1e3,s=6e4,o=36e5,x=864e5,F=31536e6,S=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,H=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,C={years:F,months:S,days:x,hours:o,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},D=function(y){return y instanceof X},P=function(y,k,p){return new X(y,p,k.$l)},R=function(y){return r.p(y)+"s"},U=function(y){return y<0},j=function(y){return U(y)?Math.ceil(y):Math.floor(y)},it=function(y){return Math.abs(y)},z=function(y,k){return y?U(y)?{negative:!0,format:""+it(y)+k}:{negative:!1,format:""+y+k}:{negative:!1,format:""}},X=(function(){function y(p,$,v){var M=this;if(this.$d={},this.$l=v,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),$)return P(p*C[R($)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach((function(c){M.$d[R(c)]=p[c]})),this.calMilliseconds(),this;if(typeof p=="string"){var b=p.match(_);if(b){var w=b.slice(2).map((function(c){return c!=null?Number(c):0}));return this.$d.years=w[0],this.$d.months=w[1],this.$d.weeks=w[2],this.$d.days=w[3],this.$d.hours=w[4],this.$d.minutes=w[5],this.$d.seconds=w[6],this.calMilliseconds(),this}}return this}var k=y.prototype;return k.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce((function($,v){return $+(p.$d[v]||0)*C[v]}),0)},k.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=j(p/F),p%=F,this.$d.months=j(p/S),p%=S,this.$d.days=j(p/x),p%=x,this.$d.hours=j(p/o),p%=o,this.$d.minutes=j(p/s),p%=s,this.$d.seconds=j(p/i),p%=i,this.$d.milliseconds=p},k.toISOString=function(){var p=z(this.$d.years,"Y"),$=z(this.$d.months,"M"),v=+this.$d.days||0;this.$d.weeks&&(v+=7*this.$d.weeks);var M=z(v,"D"),b=z(this.$d.hours,"H"),w=z(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var g=z(c,"S"),T=p.negative||$.negative||M.negative||b.negative||w.negative||g.negative,m=b.format||w.format||g.format?"T":"",A=(T?"-":"")+"P"+p.format+$.format+M.format+m+b.format+w.format+g.format;return A==="P"||A==="-P"?"P0D":A},k.toJSON=function(){return this.toISOString()},k.format=function(p){var $=p||"YYYY-MM-DDTHH:mm:ss",v={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return $.replace(H,(function(M,b){return b||String(v[M])}))},k.as=function(p){return this.$ms/C[R(p)]},k.get=function(p){var $=this.$ms,v=R(p);return v==="milliseconds"?$%=1e3:$=v==="weeks"?j($/C[v]):this.$d[v],$||0},k.add=function(p,$,v){var M;return M=$?p*C[R($)]:D(p)?p.$ms:P(p,this).$ms,P(this.$ms+M*(v?-1:1),this)},k.subtract=function(p,$){return this.add(p,$,!0)},k.locale=function(p){var $=this.clone();return $.$l=p,$},k.clone=function(){return P(this.$ms,this)},k.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},y})(),Q=function(y,k,p){return y.add(k.years()*p,"y").add(k.months()*p,"M").add(k.days()*p,"d").add(k.hours()*p,"h").add(k.minutes()*p,"m").add(k.seconds()*p,"s").add(k.milliseconds()*p,"ms")};return function(y,k,p){n=p,r=p().$utils(),p.duration=function(M,b){var w=p.locale();return P(M,{$l:w},b)},p.isDuration=D;var $=k.prototype.add,v=k.prototype.subtract;k.prototype.add=function(M,b){return D(M)?Q(this,M,1):$.bind(this)(M,b)},k.prototype.subtract=function(M,b){return D(M)?Q(this,M,-1):v.bind(this)(M,b)}}}))})(Qt)),Qt.exports}var Ni=$i();const Hi=an(Ni);var Te=(function(){var t=d(function(w,c,g,T){for(g=g||{},T=w.length;T--;g[w[T]]=c);return g},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],o=[1,30],x=[1,31],F=[1,32],S=[1,33],_=[1,34],H=[1,9],C=[1,10],D=[1,11],P=[1,12],R=[1,13],U=[1,14],j=[1,15],it=[1,16],z=[1,19],X=[1,20],Q=[1,21],y=[1,22],k=[1,23],p=[1,25],$=[1,35],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(c,g,T,m,A,a,O){var l=a.length-1;switch(A){case 1:return a[l-1];case 2:this.$=[];break;case 3:a[l-1].push(a[l]),this.$=a[l-1];break;case 4:case 5:this.$=a[l];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(a[l].substr(11)),this.$=a[l].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=a[l].substr(18);break;case 19:m.TopAxis(),this.$=a[l].substr(8);break;case 20:m.setAxisFormat(a[l].substr(11)),this.$=a[l].substr(11);break;case 21:m.setTickInterval(a[l].substr(13)),this.$=a[l].substr(13);break;case 22:m.setExcludes(a[l].substr(9)),this.$=a[l].substr(9);break;case 23:m.setIncludes(a[l].substr(9)),this.$=a[l].substr(9);break;case 24:m.setTodayMarker(a[l].substr(12)),this.$=a[l].substr(12);break;case 27:m.setDiagramTitle(a[l].substr(6)),this.$=a[l].substr(6);break;case 28:this.$=a[l].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=a[l].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(a[l].substr(8)),this.$=a[l].substr(8);break;case 33:m.addTask(a[l-1],a[l]),this.$="task";break;case 34:this.$=a[l-1],m.setClickEvent(a[l-1],a[l],null);break;case 35:this.$=a[l-2],m.setClickEvent(a[l-2],a[l-1],a[l]);break;case 36:this.$=a[l-2],m.setClickEvent(a[l-2],a[l-1],null),m.setLink(a[l-2],a[l]);break;case 37:this.$=a[l-3],m.setClickEvent(a[l-3],a[l-2],a[l-1]),m.setLink(a[l-3],a[l]);break;case 38:this.$=a[l-2],m.setClickEvent(a[l-2],a[l],null),m.setLink(a[l-2],a[l-1]);break;case 39:this.$=a[l-3],m.setClickEvent(a[l-3],a[l-1],a[l]),m.setLink(a[l-3],a[l-2]);break;case 40:this.$=a[l-1],m.setLink(a[l-1],a[l]);break;case 41:case 47:this.$=a[l-1]+" "+a[l];break;case 42:case 43:case 45:this.$=a[l-2]+" "+a[l-1]+" "+a[l];break;case 44:case 46:this.$=a[l-3]+" "+a[l-2]+" "+a[l-1]+" "+a[l];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:o,17:x,18:F,19:18,20:S,21:_,22:H,23:C,24:D,25:P,26:R,27:U,28:j,29:it,30:z,31:X,33:Q,35:y,36:k,37:24,38:p,40:$},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:o,17:x,18:F,19:18,20:S,21:_,22:H,23:C,24:D,25:P,26:R,27:U,28:j,29:it,30:z,31:X,33:Q,35:y,36:k,37:24,38:p,40:$},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(c,g){if(g.recoverable)this.trace(c);else{var T=new Error(c);throw T.hash=g,T}},"parseError"),parse:d(function(c){var g=this,T=[0],m=[],A=[null],a=[],O=this.table,l="",J=0,u=0,I=2,E=1,q=a.slice.call(arguments,1),Y=Object.create(this.lexer),Z={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(Z.yy[h]=this.yy[h]);Y.setInput(c,Z.yy),Z.yy.lexer=Y,Z.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var L=Y.yylloc;a.push(L);var N=Y.options&&Y.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(st){T.length=T.length-2*st,A.length=A.length-st,a.length=a.length-st}d(f,"popStack");function nt(){var st;return st=m.pop()||Y.lex()||E,typeof st!="number"&&(st instanceof Array&&(m=st,st=m.pop()),st=g.symbols_[st]||st),st}d(nt,"lex");for(var W,G,B,ot,lt={},qt,ft,We,Bt;;){if(G=T[T.length-1],this.defaultActions[G]?B=this.defaultActions[G]:((W===null||typeof W>"u")&&(W=nt()),B=O[G]&&O[G][W]),typeof B>"u"||!B.length||!B[0]){var se="";Bt=[];for(qt in O[G])this.terminals_[qt]&&qt>I&&Bt.push("'"+this.terminals_[qt]+"'");Y.showPosition?se="Parse error on line "+(J+1)+`:
|
|
2
|
+
`+Y.showPosition()+`
|
|
3
|
+
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":se="Parse error on line "+(J+1)+": Unexpected "+(W==E?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(se,{text:Y.match,token:this.terminals_[W]||W,line:Y.yylineno,loc:L,expected:Bt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+W);switch(B[0]){case 1:T.push(W),A.push(Y.yytext),a.push(Y.yylloc),T.push(B[1]),W=null,u=Y.yyleng,l=Y.yytext,J=Y.yylineno,L=Y.yylloc;break;case 2:if(ft=this.productions_[B[1]][1],lt.$=A[A.length-ft],lt._$={first_line:a[a.length-(ft||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(ft||1)].first_column,last_column:a[a.length-1].last_column},N&&(lt._$.range=[a[a.length-(ft||1)].range[0],a[a.length-1].range[1]]),ot=this.performAction.apply(lt,[l,u,J,Z.yy,B[1],A,a].concat(q)),typeof ot<"u")return ot;ft&&(T=T.slice(0,-1*ft*2),A=A.slice(0,-1*ft),a=a.slice(0,-1*ft)),T.push(this.productions_[B[1]][0]),A.push(lt.$),a.push(lt._$),We=O[T[T.length-2]][T[T.length-1]],T.push(We);break;case 3:return!0}}return!0},"parse")},M=(function(){var w={EOF:1,parseError:d(function(g,T){if(this.yy.parser)this.yy.parser.parseError(g,T);else throw new Error(g)},"parseError"),setInput:d(function(c,g){return this.yy=g||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var g=c.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var g=c.length,T=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1&&(this.yylineno-=T.length-1);var A=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:T?(T.length===m.length?this.yylloc.first_column:0)+m[m.length-T.length].length-T[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),g=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
5
|
+
`+g+"^"},"showPosition"),test_match:d(function(c,g){var T,m,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),m=c[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],T=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var a in A)this[a]=A[a];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,g,T,m;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),a=0;a<A.length;a++)if(T=this._input.match(this.rules[A[a]]),T&&(!g||T[0].length>g[0].length)){if(g=T,m=a,this.options.backtrack_lexer){if(c=this.test_match(T,A[a]),c!==!1)return c;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(c=this.test_match(g,A[m]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var g=this.next();return g||this.lex()},"lex"),begin:d(function(g){this.conditionStack.push(g)},"begin"),popState:d(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:d(function(g){this.begin(g)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(g,T,m,A){switch(m){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return w})();v.lexer=M;function b(){this.yy={}}return d(b,"Parser"),b.prototype=v,v.Parser=b,new b})();Te.parser=Te;var Vi=Te;rt.extend(Wi);rt.extend(Xn);rt.extend(Zn);var Je={friday:5,saturday:6},ct="",Me="",Se=void 0,_e="",Yt=[],At=[],Fe=new Map,Ue=[],re=[],Lt="",Ie="",Dn=["active","done","crit","milestone","vert"],Ee=[],St="",zt=!1,Ye=!1,Ae="sunday",ie="saturday",xe=0,Ri=d(function(){Ue=[],re=[],Lt="",Ee=[],Jt=0,we=void 0,Kt=void 0,K=[],ct="",Me="",Ie="",Se=void 0,_e="",Yt=[],At=[],zt=!1,Ye=!1,xe=0,Fe=new Map,St="",qn(),Ae="sunday",ie="saturday"},"clear"),Pi=d(function(t){St=t},"setDiagramId"),zi=d(function(t){Me=t},"setAxisFormat"),qi=d(function(){return Me},"getAxisFormat"),Bi=d(function(t){Se=t},"setTickInterval"),Xi=d(function(){return Se},"getTickInterval"),Zi=d(function(t){_e=t},"setTodayMarker"),ji=d(function(){return _e},"getTodayMarker"),Gi=d(function(t){ct=t},"setDateFormat"),Qi=d(function(){zt=!0},"enableInclusiveEndDates"),Ji=d(function(){return zt},"endDatesAreInclusive"),Ki=d(function(){Ye=!0},"enableTopAxis"),ts=d(function(){return Ye},"topAxisEnabled"),es=d(function(t){Ie=t},"setDisplayMode"),ns=d(function(){return Ie},"getDisplayMode"),rs=d(function(){return ct},"getDateFormat"),Mn=d((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(r=>r!=="");return[...new Set([...t,...n])]},"mergeTokens"),is=d(function(t){Yt=Mn(Yt,t)},"setIncludes"),ss=d(function(){return Yt},"getIncludes"),as=d(function(t){At=Mn(At,t)},"setExcludes"),os=d(function(){return At},"getExcludes"),cs=d(function(){return Fe},"getLinks"),us=d(function(t){Lt=t,Ue.push(t)},"addSection"),ls=d(function(){return Ue},"getSections"),fs=d(function(){let t=Ke();const e=10;let n=0;for(;!t&&n<e;)t=Ke(),n++;return re=K,re},"getTasks"),Sn=d(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return r.includes(i)||r.includes(s)?!1:n.includes("weekends")&&(t.isoWeekday()===Je[ie]||t.isoWeekday()===Je[ie]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(i)||n.includes(s)},"isInvalidDate"),ds=d(function(t){Ae=t},"setWeekday"),hs=d(function(){return Ae},"getWeekday"),ms=d(function(t){ie=t},"setWeekend"),_n=d(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=rt(t.startTime):i=rt(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=rt(t.endTime):s=rt(t.endTime,e,!0);const[o,x]=gs(i,s,e,n,r);t.endTime=o.toDate(),t.renderEndTime=x},"checkTaskDates"),gs=d(function(t,e,n,r,i){let s=!1,o=null;const x=e.add(1e4,"d");for(;t<=e;){if(s||(o=e.toDate()),s=Sn(t,n,r,i),s&&(e=e.add(1,"d"),e>x))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,o]},"fixTaskDates"),be=d(function(t,e,n){if(n=n.trim(),d(x=>{const F=x.trim();return F==="x"||F==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let x=null;for(const S of s.groups.ids.split(" ")){let _=Dt(S);_!==void 0&&(!x||_.endTime>x.endTime)&&(x=_)}if(x)return x.endTime;const F=new Date;return F.setHours(0,0,0,0),F}let o=rt(n,e.trim(),!0);if(o.isValid())return o.toDate();{vt.debug("Invalid date:"+n),vt.debug("With date format:"+e.trim());const x=new Date(n);if(x===void 0||isNaN(x.getTime())||x.getFullYear()<-1e4||x.getFullYear()>1e4)throw new Error("Invalid date:"+n);return x}},"getStartDate"),Fn=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Un=d(function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let _=null;for(const C of s.groups.ids.split(" ")){let D=Dt(C);D!==void 0&&(!_||D.startTime<_.startTime)&&(_=D)}if(_)return _.startTime;const H=new Date;return H.setHours(0,0,0,0),H}let o=rt(n,e.trim(),!0);if(o.isValid())return r&&(o=o.add(1,"d")),o.toDate();let x=rt(t);const[F,S]=Fn(n);if(!Number.isNaN(F)){const _=x.add(F,S);_.isValid()&&(x=_)}return x.toDate()},"getEndDate"),Jt=0,Ut=d(function(t){return t===void 0?(Jt=Jt+1,"task"+Jt):t},"parseId"),ys=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Le(r,i,Dn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();let s="";switch(r.length){case 1:i.id=Ut(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Ut(),i.startTime=be(void 0,ct,r[0]),s=r[1];break;case 3:i.id=Ut(r[0]),i.startTime=be(void 0,ct,r[1]),s=r[2];break}return s&&(i.endTime=Un(i.startTime,ct,s,zt),i.manualEndTime=rt(s,"YYYY-MM-DD",!0).isValid(),_n(i,ct,At,Yt)),i},"compileData"),ks=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Le(r,i,Dn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Ut(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Ut(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Ut(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i},"parseData"),we,Kt,K=[],In={},ps=d(function(t,e){const n={section:Lt,type:Lt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ks(Kt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Kt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=xe,xe++);const i=K.push(n);Kt=n.id,In[n.id]=i-1},"addTask"),Dt=d(function(t){const e=In[t];return K[e]},"findTaskById"),vs=d(function(t,e){const n={section:Lt,type:Lt,description:t,task:t,classes:[]},r=ys(we,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,we=n,re.push(n)},"addTaskOrg"),Ke=d(function(){const t=d(function(n){const r=K[n];let i="";switch(K[n].raw.startTime.type){case"prevTaskEnd":{const s=Dt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=be(void 0,ct,K[n].raw.startTime.startData),i&&(K[n].startTime=i);break}return K[n].startTime&&(K[n].endTime=Un(K[n].startTime,ct,K[n].raw.endTime.data,zt),K[n].endTime&&(K[n].processed=!0,K[n].manualEndTime=rt(K[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),_n(K[n],ct,At,Yt))),K[n].processed},"compileTask");let e=!0;for(const[n,r]of K.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Ts=d(function(t,e){let n=e;_t().securityLevel!=="loose"&&(n=zn.sanitizeUrl(e)),t.split(",").forEach(function(r){Dt(r)!==void 0&&(Yn(r,()=>{window.open(n,"_self")}),Fe.set(r,n))}),En(t,"clickable")},"setLink"),En=d(function(t,e){t.split(",").forEach(function(n){let r=Dt(n);r!==void 0&&r.classes.push(e)})},"setClass"),xs=d(function(t,e,n){if(_t().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let o=r[s].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),r[s]=o}}r.length===0&&r.push(t),Dt(t)!==void 0&&Yn(t,()=>{Bn.runFunc(e,...r)})},"setClickFun"),Yn=d(function(t,e){Ee.push(function(){const n=St?`${St}-${t}`:t,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){const n=St?`${St}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),bs=d(function(t,e,n){t.split(",").forEach(function(r){xs(r,e,n)}),En(t,"clickable")},"setClickEvent"),ws=d(function(t){Ee.forEach(function(e){e(t)})},"bindFunctions"),Cs={getConfig:d(()=>_t().gantt,"getConfig"),clear:Ri,setDateFormat:Gi,getDateFormat:rs,enableInclusiveEndDates:Qi,endDatesAreInclusive:Ji,enableTopAxis:Ki,topAxisEnabled:ts,setAxisFormat:zi,getAxisFormat:qi,setTickInterval:Bi,getTickInterval:Xi,setTodayMarker:Zi,getTodayMarker:ji,setAccTitle:Vn,getAccTitle:Hn,setDiagramTitle:Nn,getDiagramTitle:$n,setDiagramId:Pi,setDisplayMode:es,getDisplayMode:ns,setAccDescription:On,getAccDescription:Wn,addSection:us,getSections:ls,getTasks:fs,addTask:ps,findTaskById:Dt,addTaskOrg:vs,setIncludes:is,getIncludes:ss,setExcludes:as,getExcludes:os,setClickEvent:bs,setLink:Ts,getLinks:cs,bindFunctions:ws,parseDuration:Fn,isInvalidDate:Sn,setWeekday:ds,getWeekday:hs,setWeekend:ms};function Le(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",o=new RegExp(s);t[0].match(o)&&(e[i]=!0,t.shift(1),r=!0)})}d(Le,"getTaskTags");rt.extend(Hi);var Ds=d(function(){vt.debug("Something is calling, setConf, remove the call")},"setConf"),tn={monday:Vt,tuesday:gn,wednesday:yn,thursday:xt,friday:kn,saturday:pn,sunday:Pt},Ms=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,o)=>s.startTime-o.startTime||s.order-o.order),i=0;for(const s of r)for(let o=0;o<n.length;o++)if(s.startTime>=n[o]){n[o]=s.endTime,s.order=o+e,o>i&&(i=o);break}return i},"getMaxIntersections"),dt,ke=1e4,Ss=d(function(t,e,n,r){const i=_t().gantt;r.db.setDiagramId(e);const s=_t().securityLevel;let o;s==="sandbox"&&(o=Xt("#i"+e));const x=s==="sandbox"?Xt(o.nodes()[0].contentDocument.body):Xt("body"),F=s==="sandbox"?o.nodes()[0].contentDocument:document,S=F.getElementById(e);dt=S.parentElement.offsetWidth,dt===void 0&&(dt=1200),i.useWidth!==void 0&&(dt=i.useWidth);const _=r.db.getTasks(),H=_.filter(v=>!v.vert);let C=[];for(const v of H)C.push(v.type);C=$(C);const D={};let P=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const v={};for(const b of H)v[b.section]===void 0?v[b.section]=[b]:v[b.section].push(b);let M=0;for(const b of Object.keys(v)){const w=Ms(v[b],M)+1;M+=w,P+=w*(i.barHeight+i.barGap),D[b]=w}}else{P+=H.length*(i.barHeight+i.barGap);for(const v of C)D[v]=H.filter(M=>M.type===v).length}S.setAttribute("viewBox","0 0 "+dt+" "+P);const R=x.select(`[id="${e}"]`),U=Ei().domain([er(_,function(v){return v.startTime}),tr(_,function(v){return v.endTime})]).rangeRound([0,dt-i.leftPadding-i.rightPadding]);function j(v,M){const b=v.startTime,w=M.startTime;let c=0;return b>w?c=1:b<w&&(c=-1),c}d(j,"taskCompare"),_.sort(j),it(_,dt,P),Rn(R,P,dt,i.useMaxWidth),R.append("text").text(r.db.getDiagramTitle()).attr("x",dt/2).attr("y",i.titleTopMargin).attr("class","titleText");function it(v,M,b){const w=i.barHeight,c=w+i.barGap,g=i.topPadding,T=i.leftPadding,m=Jn().domain([0,C.length]).range(["#00B9FA","#F95002"]).interpolate(yr);X(c,g,T,M,b,v,r.db.getExcludes(),r.db.getIncludes()),y(T,g,M,b),z(v,c,g,T,w,m,M),k(c,g),p(T,g,M,b)}d(it,"makeGantt");function z(v,M,b,w,c,g,T){v.sort((u,I)=>u.vert===I.vert?0:u.vert?1:-1);const m=v.filter(u=>!u.vert),a=[...new Set(m.map(u=>u.order))].map(u=>m.find(I=>I.order===u));R.append("g").selectAll("rect").data(a).enter().append("rect").attr("x",0).attr("y",function(u,I){return I=u.order,I*M+b-2}).attr("width",function(){return T-i.rightPadding/2}).attr("height",M).attr("class",function(u){for(const[I,E]of C.entries())if(u.type===E)return"section section"+I%i.numberSectionStyles;return"section section0"}).enter();const O=R.append("g").selectAll("rect").data(v).enter(),l=r.db.getLinks();if(O.append("rect").attr("id",function(u){return e+"-"+u.id}).attr("rx",3).attr("ry",3).attr("x",function(u){return u.milestone?U(u.startTime)+w+.5*(U(u.endTime)-U(u.startTime))-.5*c:U(u.startTime)+w}).attr("y",function(u,I){return I=u.order,u.vert?i.gridLineStartPadding:I*M+b}).attr("width",function(u){return u.milestone?c:u.vert?.08*c:U(u.renderEndTime||u.endTime)-U(u.startTime)}).attr("height",function(u){return u.vert?m.length*(i.barHeight+i.barGap)+i.barHeight*2:c}).attr("transform-origin",function(u,I){return I=u.order,(U(u.startTime)+w+.5*(U(u.endTime)-U(u.startTime))).toString()+"px "+(I*M+b+.5*c).toString()+"px"}).attr("class",function(u){const I="task";let E="";u.classes.length>0&&(E=u.classes.join(" "));let q=0;for(const[Z,h]of C.entries())u.type===h&&(q=Z%i.numberSectionStyles);let Y="";return u.active?u.crit?Y+=" activeCrit":Y=" active":u.done?u.crit?Y=" doneCrit":Y=" done":u.crit&&(Y+=" crit"),Y.length===0&&(Y=" task"),u.milestone&&(Y=" milestone "+Y),u.vert&&(Y=" vert "+Y),Y+=q,Y+=" "+E,I+Y}),O.append("text").attr("id",function(u){return e+"-"+u.id+"-text"}).text(function(u){return u.task}).attr("font-size",i.fontSize).attr("x",function(u){let I=U(u.startTime),E=U(u.renderEndTime||u.endTime);if(u.milestone&&(I+=.5*(U(u.endTime)-U(u.startTime))-.5*c,E=I+c),u.vert)return U(u.startTime)+w;const q=this.getBBox().width;return q>E-I?E+q+1.5*i.leftPadding>T?I+w-5:E+w+5:(E-I)/2+I+w}).attr("y",function(u,I){return u.vert?i.gridLineStartPadding+m.length*(i.barHeight+i.barGap)+60:(I=u.order,I*M+i.barHeight/2+(i.fontSize/2-2)+b)}).attr("text-height",c).attr("class",function(u){const I=U(u.startTime);let E=U(u.endTime);u.milestone&&(E=I+c);const q=this.getBBox().width;let Y="";u.classes.length>0&&(Y=u.classes.join(" "));let Z=0;for(const[L,N]of C.entries())u.type===N&&(Z=L%i.numberSectionStyles);let h="";return u.active&&(u.crit?h="activeCritText"+Z:h="activeText"+Z),u.done?u.crit?h=h+" doneCritText"+Z:h=h+" doneText"+Z:u.crit&&(h=h+" critText"+Z),u.milestone&&(h+=" milestoneText"),u.vert&&(h+=" vertText"),q>E-I?E+q+1.5*i.leftPadding>T?Y+" taskTextOutsideLeft taskTextOutside"+Z+" "+h:Y+" taskTextOutsideRight taskTextOutside"+Z+" "+h+" width-"+q:Y+" taskText taskText"+Z+" "+h+" width-"+q}),_t().securityLevel==="sandbox"){let u;u=Xt("#i"+e);const I=u.nodes()[0].contentDocument;O.filter(function(E){return l.has(E.id)}).each(function(E){var q=I.querySelector("#"+CSS.escape(e+"-"+E.id)),Y=I.querySelector("#"+CSS.escape(e+"-"+E.id+"-text"));const Z=q.parentNode;var h=I.createElement("a");h.setAttribute("xlink:href",l.get(E.id)),h.setAttribute("target","_top"),Z.appendChild(h),h.appendChild(q),h.appendChild(Y)})}}d(z,"drawRects");function X(v,M,b,w,c,g,T,m){if(T.length===0&&m.length===0)return;let A,a;for(const{startTime:E,endTime:q}of g)(A===void 0||E<A)&&(A=E),(a===void 0||q>a)&&(a=q);if(!A||!a)return;if(rt(a).diff(rt(A),"year")>5){vt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const O=r.db.getDateFormat(),l=[];let J=null,u=rt(A);for(;u.valueOf()<=a;)r.db.isInvalidDate(u,O,T,m)?J?J.end=u:J={start:u,end:u}:J&&(l.push(J),J=null),u=u.add(1,"d");R.append("g").selectAll("rect").data(l).enter().append("rect").attr("id",E=>e+"-exclude-"+E.start.format("YYYY-MM-DD")).attr("x",E=>U(E.start.startOf("day"))+b).attr("y",i.gridLineStartPadding).attr("width",E=>U(E.end.endOf("day"))-U(E.start.startOf("day"))).attr("height",c-M-i.gridLineStartPadding).attr("transform-origin",function(E,q){return(U(E.start)+b+.5*(U(E.end)-U(E.start))).toString()+"px "+(q*v+.5*c).toString()+"px"}).attr("class","exclude-range")}d(X,"drawExcludeDays");function Q(v,M,b,w){if(b<=0||v>M)return 1/0;const c=M-v,g=rt.duration({[w??"day"]:b}).asMilliseconds();return g<=0?1/0:Math.ceil(c/g)}d(Q,"getEstimatedTickCount");function y(v,M,b,w){const c=r.db.getDateFormat(),g=r.db.getAxisFormat();let T;g?T=g:c==="D"?T="%d":T=i.axisFormat??"%Y-%m-%d";let m=ur(U).tickSize(-w+M+i.gridLineStartPadding).tickFormat(ne(T));const a=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(a!==null){const O=parseInt(a[1],10);if(isNaN(O)||O<=0)vt.warn(`Invalid tick interval value: "${a[1]}". Skipping custom tick interval.`);else{const l=a[2],J=r.db.getWeekday()||i.weekday,u=U.domain(),I=u[0],E=u[1],q=Q(I,E,O,l);if(q>ke)vt.warn(`The tick interval "${O}${l}" would generate ${q} ticks, which exceeds the maximum allowed (${ke}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(l){case"millisecond":m.ticks(It.every(O));break;case"second":m.ticks(pt.every(O));break;case"minute":m.ticks(Nt.every(O));break;case"hour":m.ticks(Ht.every(O));break;case"day":m.ticks(Tt.every(O));break;case"week":m.ticks(tn[J].every(O));break;case"month":m.ticks(Rt.every(O));break}}}if(R.append("g").attr("class","grid").attr("transform","translate("+v+", "+(w-50)+")").call(m).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let O=cr(U).tickSize(-w+M+i.gridLineStartPadding).tickFormat(ne(T));if(a!==null){const l=parseInt(a[1],10);if(isNaN(l)||l<=0)vt.warn(`Invalid tick interval value: "${a[1]}". Skipping custom tick interval.`);else{const J=a[2],u=r.db.getWeekday()||i.weekday,I=U.domain(),E=I[0],q=I[1];if(Q(E,q,l,J)<=ke)switch(J){case"millisecond":O.ticks(It.every(l));break;case"second":O.ticks(pt.every(l));break;case"minute":O.ticks(Nt.every(l));break;case"hour":O.ticks(Ht.every(l));break;case"day":O.ticks(Tt.every(l));break;case"week":O.ticks(tn[u].every(l));break;case"month":O.ticks(Rt.every(l));break}}}R.append("g").attr("class","grid").attr("transform","translate("+v+", "+M+")").call(O).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(y,"makeGrid");function k(v,M){let b=0;const w=Object.keys(D).map(c=>[c,D[c]]);R.append("g").selectAll("text").data(w).enter().append(function(c){const g=c[0].split(Pn.lineBreakRegex),T=-(g.length-1)/2,m=F.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("dy",T+"em");for(const[A,a]of g.entries()){const O=F.createElementNS("http://www.w3.org/2000/svg","tspan");O.setAttribute("alignment-baseline","central"),O.setAttribute("x","10"),A>0&&O.setAttribute("dy","1em"),O.textContent=a,m.appendChild(O)}return m}).attr("x",10).attr("y",function(c,g){if(g>0)for(let T=0;T<g;T++)return b+=w[g-1][1],c[1]*v/2+b*v+M;else return c[1]*v/2+M}).attr("font-size",i.sectionFontSize).attr("class",function(c){for(const[g,T]of C.entries())if(c[0]===T)return"sectionTitle sectionTitle"+g%i.numberSectionStyles;return"sectionTitle"})}d(k,"vertLabels");function p(v,M,b,w){const c=r.db.getTodayMarker();if(c==="off")return;const g=R.append("g").attr("class","today"),T=new Date,m=g.append("line");m.attr("x1",U(T)+v).attr("x2",U(T)+v).attr("y1",i.titleTopMargin).attr("y2",w-i.titleTopMargin).attr("class","today"),c!==""&&m.attr("style",c.replace(/,/g,";"))}d(p,"drawToday");function $(v){const M={},b=[];for(let w=0,c=v.length;w<c;++w)Object.prototype.hasOwnProperty.call(M,v[w])||(M[v[w]]=!0,b.push(v[w]));return b}d($,"checkUnique")},"draw"),_s={setConf:Ds,draw:Ss},Fs=d(t=>`
|
|
7
|
+
.mermaid-main-font {
|
|
8
|
+
font-family: ${t.fontFamily};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.exclude-range {
|
|
12
|
+
fill: ${t.excludeBkgColor};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.section {
|
|
16
|
+
stroke: none;
|
|
17
|
+
opacity: 0.2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.section0 {
|
|
21
|
+
fill: ${t.sectionBkgColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.section2 {
|
|
25
|
+
fill: ${t.sectionBkgColor2};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.section1,
|
|
29
|
+
.section3 {
|
|
30
|
+
fill: ${t.altSectionBkgColor};
|
|
31
|
+
opacity: 0.2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sectionTitle0 {
|
|
35
|
+
fill: ${t.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sectionTitle1 {
|
|
39
|
+
fill: ${t.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sectionTitle2 {
|
|
43
|
+
fill: ${t.titleColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sectionTitle3 {
|
|
47
|
+
fill: ${t.titleColor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sectionTitle {
|
|
51
|
+
text-anchor: start;
|
|
52
|
+
font-family: ${t.fontFamily};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* Grid and axis */
|
|
57
|
+
|
|
58
|
+
.grid .tick {
|
|
59
|
+
stroke: ${t.gridColor};
|
|
60
|
+
opacity: 0.8;
|
|
61
|
+
shape-rendering: crispEdges;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.grid .tick text {
|
|
65
|
+
font-family: ${t.fontFamily};
|
|
66
|
+
fill: ${t.textColor};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.grid path {
|
|
70
|
+
stroke-width: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/* Today line */
|
|
75
|
+
|
|
76
|
+
.today {
|
|
77
|
+
fill: none;
|
|
78
|
+
stroke: ${t.todayLineColor};
|
|
79
|
+
stroke-width: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* Task styling */
|
|
84
|
+
|
|
85
|
+
/* Default task */
|
|
86
|
+
|
|
87
|
+
.task {
|
|
88
|
+
stroke-width: 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.taskText {
|
|
92
|
+
text-anchor: middle;
|
|
93
|
+
font-family: ${t.fontFamily};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.taskTextOutsideRight {
|
|
97
|
+
fill: ${t.taskTextDarkColor};
|
|
98
|
+
text-anchor: start;
|
|
99
|
+
font-family: ${t.fontFamily};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.taskTextOutsideLeft {
|
|
103
|
+
fill: ${t.taskTextDarkColor};
|
|
104
|
+
text-anchor: end;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/* Special case clickable */
|
|
109
|
+
|
|
110
|
+
.task.clickable {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.taskText.clickable {
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
fill: ${t.taskTextClickableColor} !important;
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.taskTextOutsideLeft.clickable {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
fill: ${t.taskTextClickableColor} !important;
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.taskTextOutsideRight.clickable {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
fill: ${t.taskTextClickableColor} !important;
|
|
129
|
+
font-weight: bold;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/* Specific task settings for the sections*/
|
|
134
|
+
|
|
135
|
+
.taskText0,
|
|
136
|
+
.taskText1,
|
|
137
|
+
.taskText2,
|
|
138
|
+
.taskText3 {
|
|
139
|
+
fill: ${t.taskTextColor};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.task0,
|
|
143
|
+
.task1,
|
|
144
|
+
.task2,
|
|
145
|
+
.task3 {
|
|
146
|
+
fill: ${t.taskBkgColor};
|
|
147
|
+
stroke: ${t.taskBorderColor};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.taskTextOutside0,
|
|
151
|
+
.taskTextOutside2
|
|
152
|
+
{
|
|
153
|
+
fill: ${t.taskTextOutsideColor};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.taskTextOutside1,
|
|
157
|
+
.taskTextOutside3 {
|
|
158
|
+
fill: ${t.taskTextOutsideColor};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/* Active task */
|
|
163
|
+
|
|
164
|
+
.active0,
|
|
165
|
+
.active1,
|
|
166
|
+
.active2,
|
|
167
|
+
.active3 {
|
|
168
|
+
fill: ${t.activeTaskBkgColor};
|
|
169
|
+
stroke: ${t.activeTaskBorderColor};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.activeText0,
|
|
173
|
+
.activeText1,
|
|
174
|
+
.activeText2,
|
|
175
|
+
.activeText3 {
|
|
176
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
/* Completed task */
|
|
181
|
+
|
|
182
|
+
.done0,
|
|
183
|
+
.done1,
|
|
184
|
+
.done2,
|
|
185
|
+
.done3 {
|
|
186
|
+
stroke: ${t.doneTaskBorderColor};
|
|
187
|
+
fill: ${t.doneTaskBkgColor};
|
|
188
|
+
stroke-width: 2;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.doneText0,
|
|
192
|
+
.doneText1,
|
|
193
|
+
.doneText2,
|
|
194
|
+
.doneText3 {
|
|
195
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
+
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
+
.doneText0.taskTextOutsideLeft,
|
|
201
|
+
.doneText0.taskTextOutsideRight,
|
|
202
|
+
.doneText1.taskTextOutsideLeft,
|
|
203
|
+
.doneText1.taskTextOutsideRight,
|
|
204
|
+
.doneText2.taskTextOutsideLeft,
|
|
205
|
+
.doneText2.taskTextOutsideRight,
|
|
206
|
+
.doneText3.taskTextOutsideLeft,
|
|
207
|
+
.doneText3.taskTextOutsideRight {
|
|
208
|
+
fill: ${t.taskTextOutsideColor} !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/* Tasks on the critical line */
|
|
213
|
+
|
|
214
|
+
.crit0,
|
|
215
|
+
.crit1,
|
|
216
|
+
.crit2,
|
|
217
|
+
.crit3 {
|
|
218
|
+
stroke: ${t.critBorderColor};
|
|
219
|
+
fill: ${t.critBkgColor};
|
|
220
|
+
stroke-width: 2;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.activeCrit0,
|
|
224
|
+
.activeCrit1,
|
|
225
|
+
.activeCrit2,
|
|
226
|
+
.activeCrit3 {
|
|
227
|
+
stroke: ${t.critBorderColor};
|
|
228
|
+
fill: ${t.activeTaskBkgColor};
|
|
229
|
+
stroke-width: 2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.doneCrit0,
|
|
233
|
+
.doneCrit1,
|
|
234
|
+
.doneCrit2,
|
|
235
|
+
.doneCrit3 {
|
|
236
|
+
stroke: ${t.critBorderColor};
|
|
237
|
+
fill: ${t.doneTaskBkgColor};
|
|
238
|
+
stroke-width: 2;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
shape-rendering: crispEdges;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.milestone {
|
|
244
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.milestoneText {
|
|
248
|
+
font-style: italic;
|
|
249
|
+
}
|
|
250
|
+
.doneCritText0,
|
|
251
|
+
.doneCritText1,
|
|
252
|
+
.doneCritText2,
|
|
253
|
+
.doneCritText3 {
|
|
254
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Done-crit task text outside the bar — same reasoning as doneText above. */
|
|
258
|
+
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
+
.doneCritText0.taskTextOutsideRight,
|
|
260
|
+
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
+
.doneCritText1.taskTextOutsideRight,
|
|
262
|
+
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
+
.doneCritText2.taskTextOutsideRight,
|
|
264
|
+
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
+
.doneCritText3.taskTextOutsideRight {
|
|
266
|
+
fill: ${t.taskTextOutsideColor} !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.vert {
|
|
270
|
+
stroke: ${t.vertLineColor};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.vertText {
|
|
274
|
+
font-size: 15px;
|
|
275
|
+
text-anchor: middle;
|
|
276
|
+
fill: ${t.vertLineColor} !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.activeCritText0,
|
|
280
|
+
.activeCritText1,
|
|
281
|
+
.activeCritText2,
|
|
282
|
+
.activeCritText3 {
|
|
283
|
+
fill: ${t.taskTextDarkColor} !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.titleText {
|
|
287
|
+
text-anchor: middle;
|
|
288
|
+
font-size: 18px;
|
|
289
|
+
fill: ${t.titleColor||t.textColor};
|
|
290
|
+
font-family: ${t.fontFamily};
|
|
291
|
+
}
|
|
292
|
+
`,"getStyles"),Us=Fs,Os={parser:Vi,db:Cs,renderer:_s,styles:Us};export{Os as diagram};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{I as he}from"./chunk-2Q5K7J3B-BZZAc8A2.js";import{p as $e}from"./chunk-JWPE2WC7-DRg2DW5G.js";import{t as fe,q as ge,s as ue,g as ye,a as xe,b as me,_ as $,L as Q,l as k,k as pe,c as z,u as be,M as we,A as ke,m as L,N as ve,O as Ee,P as Ce}from"./index-BFkHoNBz.js";import{p as Be}from"./cynefin-OW5HDTMX-CAexhoXe.js";import"./vue-BhwNxZ68.js";import"./element-plus-IBMLLhb-.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ee.gitGraph,D=$(()=>ve({...Te,...Q().gitGraph}),"getConfig"),i=new he(()=>{const e=D(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function K(){return Ce({length:7})}$(K,"getID");function ae(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}$(ae,"uniqBy");var Le=$(function(e){i.records.direction=e},"setDirection"),Me=$(function(e){k.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),Re=$(function(){return i.records.options},"getOptions"),Ie=$(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;k.info("commit",r,t,o,s),k.debug("Entering commit:",r,t,o,s);const d=D();t=L.sanitizeText(t,d),r=L.sanitizeText(r,d),s=s==null?void 0:s.map(a=>L.sanitizeText(a,d));const n={id:t||i.records.seq+"-"+K(),message:r,seq:i.records.seq++,type:o??p.NORMAL,tags:s??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,k.info("main branch",d.mainBranchName),i.records.commits.has(n.id)&&k.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),k.debug("in pushCommit "+n.id)},"commit"),Oe=$(function(e){let r=e.name;const t=e.order;if(r=L.sanitizeText(r,D()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),ne(r),k.debug("in createBranch")},"branch"),_e=$(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=D();r=L.sanitizeText(r,d),t&&(t=L.sanitizeText(t,d));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(r),l=n?i.records.commits.get(n):void 0,h=a?i.records.commits.get(a):void 0;if(l&&h&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!i.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(h===void 0||!h){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===h){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&i.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},c}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),k.debug(i.records.branches),k.debug("in mergeBranch")},"merge"),Ge=$(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;k.debug("Entering cherryPick:",r,t,o);const d=D();if(r=L.sanitizeText(r,d),t=L.sanitizeText(t,d),o=o==null?void 0:o.map(l=>L.sanitizeText(l,d)),s=L.sanitizeText(s,d),!r||!i.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=i.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===p.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const h=i.records.commits.get(l);if(h===void 0||!h){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+K(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),k.debug(i.records.branches),k.debug("in cherryPick")}},"cherryPick"),ne=$(function(e){if(e=L.sanitizeText(e,D()),i.records.branches.has(e)){i.records.currBranch=e;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function X(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}$(X,"upsert");function Z(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in i.records.branches)i.records.branches.get(s)===r.id&&o.push(s);if(k.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=i.records.commits.get(r.parents[0]);X(e,r,s),r.parents[1]&&e.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=i.records.commits.get(r.parents[0]);X(e,r,s)}}e=ae(e,s=>s.id),Z(e)}$(Z,"prettyPrintCommitHistory");var He=$(function(){k.debug(i.records.commits);const e=se()[0];Z([e])},"prettyPrint"),Ae=$(function(){i.reset(),ke()},"clear"),Se=$(function(){return[...i.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=$(function(){return i.records.branches},"getBranches"),Pe=$(function(){return i.records.commits},"getCommits"),se=$(function(){const e=[...i.records.commits.values()];return e.forEach(function(r){k.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=$(function(){return i.records.currBranch},"getCurrentBranch"),We=$(function(){return i.records.direction},"getDirection"),Ne=$(function(){return i.records.head},"getHead"),oe={commitType:p,getConfig:D,setDirection:Le,setOptions:Me,getOptions:Re,commit:Ie,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Ae,getBranchesAsObjArray:Se,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:me,getAccTitle:xe,getAccDescription:ye,setAccDescription:ue,setDiagramTitle:ge,getDiagramTitle:fe},Fe=$((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=$((e,r)=>{const o={Commit:$(s=>r.commit(Ye(s)),"Commit"),Branch:$(s=>r.branch(je(s)),"Branch"),Merge:$(s=>r.merge(Ue(s)),"Merge"),Checkout:$(s=>r.checkout(Ke(s)),"Checkout"),CherryPicking:$(s=>r.cherryPick(Ve(s)),"CherryPicking")}[e.$type];o?o(e):k.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=$(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=$(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ue=$(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=$(e=>e.branch,"parseCheckout"),Ve=$(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Xe={parse:$(async e=>{const r=await Be("gitGraph",e);k.debug(r),Fe(r,oe)},"parse")},G=10,H=40,M=4,I=2,A=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,ee=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),S=$((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),B=new Map,T=new Map,j=30,N=new Map,U=[],O=0,y="LR",Qe=$(()=>{B.clear(),T.clear(),N.clear(),O=0,U=[],y="LR"},"clear"),ce=$(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),r.appendChild(s)}),r},"drawText"),ie=$(e=>{let r,t,o;return y==="BT"?(t=$((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=$((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{var n,a;const d=y==="TB"||y=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),Ze=$(e=>{let r="",t=1/0;return e.forEach(o=>{const s=T.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),er=$((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=tr(a),s=Math.max(o,s)):d.push(a),ar(a,o)}),o=s,d.forEach(n=>{nr(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a!=null&&a.parents.length){const l=Ze(a.parents);o=T.get(l).y-H,o<=s&&(s=o);const h=B.get(a.branch).pos,g=o-G;T.set(a.id,{x:h,y:g})}})},"setParallelBTPos"),rr=$(e=>{var o;const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=(o=T.get(r))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=$(e=>rr(e)+H,"calculateCommitPosition"),ar=$((e,r)=>{const t=B.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+G;return T.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),nr=$((e,r,t)=>{const o=B.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;T.set(e.id,{x:d,y:s})},"setRootPosition"),sr=$((e,r,t,o,s,d)=>{const{theme:n}=z(),a=V.has(n??""),l=ee.has(n??""),h=Je.has(n??"");if(d===p.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${S(s,A,l)} ${o}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${S(s,A,l)} ${o}-inner`);else if(d===p.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${S(s,A,l)}`),d===p.MERGE){const f=e.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}if(d===p.REVERSE){const f=e.append("path"),c=a?4:5;f.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}}},"drawCommitBullet"),or=$((e,r,t,o,s)=>{var d;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&s.showCommitLabel){const n=e.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),l=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=(d=l.node())==null?void 0:d.getBBox();if(h&&(a.attr("x",t.posWithOffset-h.width/2-I).attr("y",t.y+13.5).attr("width",h.width+2*I).attr("height",h.height+2*I),y==="TB"||y==="BT"?(a.attr("x",t.x-(h.width+4*M+5)).attr("y",t.y-12),l.attr("x",t.x-(h.width+4*M)).attr("y",t.y+h.height-12)):l.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),cr=$((e,r,t,o)=>{var s;if(r.tags.length>0){let d=0,n=0,a=0;const l=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),c=e.append("text").attr("y",t.y-16-d).attr("class","tag-label").text(h),x=(s=c.node())==null?void 0:s.getBBox();if(!x)throw new Error("Tag bbox not found");n=Math.max(n,x.width),a=Math.max(a,x.height),c.attr("x",t.posWithOffset-x.width/2),l.push({tag:c,hole:f,rect:g,yOffset:d}),d+=20}for(const{tag:h,hole:g,rect:f,yOffset:c}of l){const x=a/2,u=t.y-19.2-c;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${o-n/2-M/2},${u+I}
|
|
3
|
+
${o-n/2-M/2},${u-I}
|
|
4
|
+
${t.posWithOffset-n/2-M},${u-x-I}
|
|
5
|
+
${t.posWithOffset+n/2+M},${u-x-I}
|
|
6
|
+
${t.posWithOffset+n/2+M},${u+x+I}
|
|
7
|
+
${t.posWithOffset-n/2-M},${u+x+I}`),g.attr("cy",u).attr("cx",o-n/2+M/2).attr("r",1.5).attr("class","tag-hole"),y==="TB"||y==="BT"){const m=o+c;f.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${t.x},${m+2}
|
|
9
|
+
${t.x},${m-2}
|
|
10
|
+
${t.x+G},${m-x-2}
|
|
11
|
+
${t.x+G+n+4},${m-x-2}
|
|
12
|
+
${t.x+G+n+4},${m+x+2}
|
|
13
|
+
${t.x+G},${m+x+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),g.attr("cx",t.x+M/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),h.attr("x",t.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+o+")")}}}},"drawCommitTags"),ir=$(e=>{switch(e.customType??e.type){case p.NORMAL:return"commit-normal";case p.REVERSE:return"commit-reverse";case p.HIGHLIGHT:return"commit-highlight";case p.MERGE:return"commit-merge";case p.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),dr=$((e,r,t,o)=>{const s={x:0,y:0};if(e.parents.length>0){const d=ie(e.parents);if(d){const n=o.get(d)??s;return r==="TB"?n.y+H:r==="BT"?(o.get(e.id)??s).y-H:n.x+H}}else return r==="TB"?j:r==="BT"?(o.get(e.id)??s).y-H:0;return 0},"calculatePosition"),lr=$((e,r,t)=>{var l,h;const o=y==="BT"&&t?r:r+G,s=(l=B.get(e.branch))==null?void 0:l.pos,d=y==="TB"||y==="BT"?(h=B.get(e.branch))==null?void 0:h.pos:o;if(d===void 0||s===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=V.has(z().theme??""),a=y==="TB"||y==="BT"?o:s+(n?J/2+1:-2);return{x:d,y:a,posWithOffset:o}},"getCommitPosition"),te=$((e,r,t,o)=>{const s=e.append("g").attr("class","commit-bullets"),d=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?j:0;const a=[...r.keys()],l=o.parallelCommits??!1,h=$((f,c)=>{var m,E;const x=(m=r.get(f))==null?void 0:m.seq,u=(E=r.get(c))==null?void 0:E.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(h);y==="BT"&&(l&&er(g,r,n),g=g.reverse()),g.forEach(f=>{var u;const c=r.get(f);if(!c)throw new Error(`Commit not found for key ${f}`);l&&(n=dr(c,y,n,T));const x=lr(c,n,l);if(t){const m=ir(c),E=c.customType??c.type,b=((u=B.get(c.branch))==null?void 0:u.index)??0;sr(s,c,x,m,b,E),or(d,c,x,n,o),cr(d,c,x,n)}y==="TB"||y==="BT"?T.set(c.id,{x:x.x,y:x.posWithOffset}):T.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+H:n+H+G,n>O&&(O=n)})},"drawCommits"),hr=$((e,r,t,o,s)=>{const n=(y==="TB"||y==="BT"?t.x<o.x:t.y<o.y)?r.branch:e.branch,a=$(h=>h.branch===n,"isOnBranchToGetCurve"),l=$(h=>h.seq>e.seq&&h.seq<r.seq,"isBetweenCommits");return[...s.values()].some(h=>l(h)&&a(h))},"shouldRerouteArrow"),F=$((e,r,t=0)=>{const o=e+Math.abs(e-r)/2;if(t>5)return o;if(U.every(n=>Math.abs(n-o)>=10))return U.push(o),o;const d=Math.abs(e-r);return F(e,r-d/5,t+1)},"findLane"),$r=$((e,r,t,o)=>{var m,E,b,P,_;const{theme:s}=z(),d=ee.has(s??""),n=T.get(r.id),a=T.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=hr(r,t,n,a,o);let h="",g="",f=0,c=0,x=(m=B.get(t.branch))==null?void 0:m.index;t.type===p.MERGE&&r.id!==t.parents[0]&&(x=(E=B.get(r.branch))==null?void 0:E.index);let u;if(l){h="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",f=10,c=10;const v=n.y<a.y?F(n.y,a.y):F(a.y,n.y),w=n.x<a.x?F(n.x,a.x):F(a.x,n.x);y==="TB"?n.x<a.x?u=`M ${n.x} ${n.y} L ${w-f} ${n.y} ${g} ${w} ${n.y+c} L ${w} ${a.y-f} ${h} ${w+c} ${a.y} L ${a.x} ${a.y}`:(x=(b=B.get(r.branch))==null?void 0:b.index,u=`M ${n.x} ${n.y} L ${w+f} ${n.y} ${h} ${w} ${n.y+c} L ${w} ${a.y-f} ${g} ${w-c} ${a.y} L ${a.x} ${a.y}`):y==="BT"?n.x<a.x?u=`M ${n.x} ${n.y} L ${w-f} ${n.y} ${h} ${w} ${n.y-c} L ${w} ${a.y+f} ${g} ${w+c} ${a.y} L ${a.x} ${a.y}`:(x=(P=B.get(r.branch))==null?void 0:P.index,u=`M ${n.x} ${n.y} L ${w+f} ${n.y} ${g} ${w} ${n.y-c} L ${w} ${a.y+f} ${h} ${w-c} ${a.y} L ${a.x} ${a.y}`):n.y<a.y?u=`M ${n.x} ${n.y} L ${n.x} ${v-f} ${h} ${n.x+c} ${v} L ${a.x-f} ${v} ${g} ${a.x} ${v+c} L ${a.x} ${a.y}`:(x=(_=B.get(r.branch))==null?void 0:_.index,u=`M ${n.x} ${n.y} L ${n.x} ${v+f} ${g} ${n.x+c} ${v} L ${a.x-f} ${v} ${h} ${a.x} ${v-c} L ${a.x} ${a.y}`)}else h="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,c=20,y==="TB"?(n.x<a.x&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${h} ${n.x+c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${g} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x>a.x&&(h="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,c=20,t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+f} ${n.y} ${h} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.x<a.x&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${h} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x>a.x&&(h="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,c=20,t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${h} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+f} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.y<a.y&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${g} ${a.x} ${n.y+c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${h} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y>a.y&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${h} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+S(x,A,d))},"drawArrow"),fr=$((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(o=>{const s=r.get(o);s.parents&&s.parents.length>0&&s.parents.forEach(d=>{$r(t,r.get(d),s,r)})})},"drawArrows"),gr=$((e,r,t,o)=>{const{look:s,theme:d,themeVariables:n}=z(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,h=V.has(d??""),g=ee.has(d??""),f=e.append("g");r.forEach((c,x)=>{var re;const u=S(x,h?l:A,g),m=(re=B.get(c.name))==null?void 0:re.pos;if(m===void 0)throw new Error(`Position not found for branch ${c.name}`);const E=y==="TB"||y==="BT"?m:h?m+J/2+1:m-2,b=f.append("line");b.attr("x1",0),b.attr("y1",E),b.attr("x2",O),b.attr("y2",E),b.attr("class","branch branch"+u),y==="TB"?(b.attr("y1",j),b.attr("x1",m),b.attr("y2",O),b.attr("x2",m)):y==="BT"&&(b.attr("y1",O),b.attr("x1",m),b.attr("y2",j),b.attr("x2",m)),U.push(E);const P=c.name,_=ce(P),v=f.insert("rect"),R=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);R.node().appendChild(_);const C=_.getBBox(),W=h?0:4,Y=h?16:0,q=h?J:0;s==="neo"&&v.attr("data-look","neo"),v.attr("class","branchLabelBkg label"+u).attr("style",s==="neo"?`filter:${h?`url(#${o}-drop-shadow)`:a}`:"").attr("rx",W).attr("ry",W).attr("x",-C.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+10).attr("width",C.width+18+Y).attr("height",C.height+4+q),R.attr("transform","translate("+(-C.width-14-(t.rotateCommitLabel===!0?30:0)+Y/2)+", "+(E-C.height/2-2)+")"),y==="TB"?(v.attr("x",m-C.width/2-10).attr("y",0),R.attr("transform","translate("+(m-C.width/2-5)+", 0)"),h&&(v.attr("transform",`translate(${-Y/2-3}, ${-q-10})`),R.attr("transform","translate("+(m-C.width/2-5)+", "+(-q*2+7)+")"))):y==="BT"?(v.attr("x",m-C.width/2-10).attr("y",O),R.attr("transform","translate("+(m-C.width/2-5)+", "+O+")"),h&&(v.attr("transform",`translate(${-Y/2-3}, ${q+10})`),R.attr("transform","translate("+(m-C.width/2-5)+", "+(O+q*2+4)+")"))):v.attr("transform","translate(-19, "+(E-12-q/2)+")")})},"drawBranches"),ur=$(function(e,r,t,o,s){return B.set(e,{pos:r,index:t}),r+=50+(s?40:0)+(y==="TB"||y==="BT"?o.width/2:0),r},"setBranchPosition"),yr=$(function(e,r,t,o){Qe(),k.debug("in gitgraph renderer",e+`
|
|
14
|
+
`,"id:",r,t);const s=o.db;if(!s.getConfig){k.error("getConfig method is not available on db");return}const d=s.getConfig(),n=d.rotateCommitLabel??!1;N=s.getCommits();const a=s.getBranchesAsObjArray();y=s.getDirection();const l=pe(`[id="${r}"]`),{look:h,theme:g,themeVariables:f}=z(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:m}=f;if(c){const b=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");b.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),b.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}h==="neo"&&V.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",m);let E=0;a.forEach((b,P)=>{var W;const _=ce(b.name),v=l.append("g"),w=v.insert("g").attr("class","branchLabel"),R=w.insert("g").attr("class","label branch-label");(W=R.node())==null||W.appendChild(_);const C=_.getBBox();E=ur(b.name,E,P,C,n),R.remove(),w.remove(),v.remove()}),te(l,N,!1,d),d.showBranches&&gr(l,a,d,r),fr(l,N),te(l,N,!0,d),be.insertTitle(l,"gitTitleText",d.titleTopMargin??0,s.getDiagramTitle()),we(void 0,l,d.diagramPadding,d.useMaxWidth)},"draw"),xr={draw:yr},de=8,le=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),mr=new Set(["redux-color","redux-dark-color"]),pr=new Set(["neo","neo-dark"]),br=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),wr=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),kr=$(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let o=0;o<e.THEME_COLOR_LIMIT;o++)t+=`
|
|
15
|
+
.label${o} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return t},"genGitGraphGradient"),vr=$(e=>{const r=Q(),{theme:t,themeVariables:o}=r,{borderColorArray:s}=o,d=le.has(t);if(pr.has(t)){let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
17
|
+
.branch-label${a} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${kr(e)}`;else{const l=a%de;n+=`
|
|
24
|
+
.branch-label${a} { fill: ${e["gitBranchLabel"+l]}; }
|
|
25
|
+
.commit${a} { stroke: ${e["git"+l]}; fill: ${e["git"+l]}; }
|
|
26
|
+
.commit-highlight${a} { stroke: ${e["gitInv"+l]}; fill: ${e["gitInv"+l]}; }
|
|
27
|
+
.arrow${a} { stroke: ${e["git"+l]}; }
|
|
28
|
+
`}return n}else if(mr.has(t)){let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
29
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
30
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
33
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
`;else{const l=a%s.length;n+=`
|
|
36
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
37
|
+
.commit${a} { stroke: ${s[l]}; fill: ${s[l]}; }
|
|
38
|
+
.commit-highlight${a} { stroke: ${s[l]}; fill: ${s[l]}; }
|
|
39
|
+
.label${a} { fill: ${br.has(t)?e.mainBkg:s[l]}; stroke: ${s[l]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
+
.arrow${a} { stroke: ${s[l]}; }
|
|
41
|
+
`}return n}else{let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)n+=`
|
|
42
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
43
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
44
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${d?`font-weight:${e.noteFontWeight}`:""}}
|
|
46
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
|
|
49
|
+
`;return n}},"genColor"),Er=$(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,t)=>t).map(r=>{const t=r%de;return`
|
|
50
|
+
.branch-label${r} { fill: ${e["gitBranchLabel"+t]}; }
|
|
51
|
+
.commit${r} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }
|
|
52
|
+
.commit-highlight${r} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }
|
|
53
|
+
.label${r} { fill: ${e["git"+t]}; }
|
|
54
|
+
.arrow${r} { stroke: ${e["git"+t]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,"normalTheme"),Cr=$(e=>{const r=Q(),{theme:t}=r,o=wr.has(t);return`
|
|
57
|
+
.commit-id,
|
|
58
|
+
.commit-msg,
|
|
59
|
+
.branch-label {
|
|
60
|
+
fill: lightgrey;
|
|
61
|
+
color: lightgrey;
|
|
62
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
+
font-family: var(--mermaid-font-family);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${o?vr(e):Er(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
+
stroke-dasharray: ${o?"4 2":"2"};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${o?e.nodeBorder:e.commitLabelColor}; ${o?`font-weight:${e.noteFontWeight};`:""}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${o?"transparent":e.commitLabelBackground}; opacity: ${o?"":.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${o?e.mainBkg:e.tagLabelBackground}; stroke: ${o?e.nodeBorder:e.tagLabelBorder}; ${o?`filter:${e.dropShadow}`:""} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${o?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${o?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${o?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${o?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${o?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${o?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${o?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${le.has(t)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},"getStyles"),Br=Cr,_r={parser:Xe,db:oe,renderer:xr,styles:Br};export{_r as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as f,i as b,k as _,f as g,a as o,b as l,u as L,v as p,r as j,d as E}from"./element-plus-IBMLLhb-.js";var v="\0",a="\0",O="";class N{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return o(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],o(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),o(_(this._in[e]),t),delete this._in[e],delete this._preds[e],o(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return L(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;o(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),o(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&o(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return j(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=P(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}N.prototype._nodeCount=0;N.prototype._edgeCount=0;function C(d,e){d[e]?d[e]++:d[e]=1}function y(d,e){--d[e]||delete d[e]}function c(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?v:s)}function P(d,e,t,s){var i=""+e,r=""+t;if(!d&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(d,e){return c(d,e.v,e.w,e.name)}export{N as G};
|