@logan-jun/cd1-rag-chat 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/arc-scm8MMJs.js +1 -0
- package/dist/assets/architectureDiagram-3BPJPVTR-B4HnSePg.js +36 -0
- package/dist/assets/blockDiagram-GPEHLZMM-Br570MCp.js +132 -0
- package/dist/assets/c4Diagram-AAUBKEIU-DkTSnj0d.js +10 -0
- package/dist/assets/channel-DiZdOJ9B.js +1 -0
- package/dist/assets/chunk-2J33WTMH-CrTr9xzl.js +1 -0
- package/dist/assets/chunk-4BX2VUAB-D0wgG8xH.js +1 -0
- package/dist/assets/chunk-55IACEB6-Duov_Htw.js +1 -0
- package/dist/assets/chunk-727SXJPM-DDvX-nhe.js +206 -0
- package/dist/assets/chunk-AQP2D5EJ-09XyW5jk.js +231 -0
- package/dist/assets/chunk-FMBD7UC4-C8_DpYrt.js +15 -0
- package/dist/assets/chunk-ND2GUHAM-BeN_xln2.js +1 -0
- package/dist/assets/chunk-QZHKN3VN-vOMf7cyc.js +1 -0
- package/dist/assets/classDiagram-4FO5ZUOK-DDDJcc4H.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-DDDJcc4H.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-pK2cAyHP.js +1 -0
- package/dist/assets/cytoscape.esm-C6a136cz.js +331 -0
- package/dist/assets/dagre-BM42HDAG-kL6GF6jg.js +4 -0
- package/dist/assets/defaultLocale-CrowFXzY.js +1 -0
- package/dist/assets/diagram-2AECGRRQ-dykDFI_K.js +43 -0
- package/dist/assets/diagram-5GNKFQAL-WJvXRiuM.js +10 -0
- package/dist/assets/diagram-KO2AKTUF-D2favLYT.js +3 -0
- package/dist/assets/diagram-LMA3HP47-CXVuETL_.js +24 -0
- package/dist/assets/diagram-OG6HWLK6-BcJzKfoj.js +24 -0
- package/dist/assets/erDiagram-TEJ5UH35-thR4lGNd.js +85 -0
- package/dist/assets/flowDiagram-I6XJVG4X-BxfwGe_r.js +162 -0
- package/dist/assets/ganttDiagram-6RSMTGT7-fwLip5Nh.js +292 -0
- package/dist/assets/gitGraphDiagram-PVQCEYII-D-oFePm0.js +106 -0
- package/dist/assets/graph-BB0J4w4c.js +1 -0
- package/dist/assets/index-CbSmh0fl.js +86 -0
- package/dist/assets/index-DDQloFPo.css +1 -0
- package/dist/assets/infoDiagram-5YYISTIA-D4MiRb75.js +2 -0
- package/dist/assets/init-Gi6I4Gst.js +1 -0
- package/dist/assets/ishikawaDiagram-YF4QCWOH-BXo0XBC7.js +70 -0
- package/dist/assets/journeyDiagram-JHISSGLW-CqScJnKj.js +139 -0
- package/dist/assets/kanban-definition-UN3LZRKU-MV47OAPx.js +89 -0
- package/dist/assets/katex-DOa3rsiF.js +257 -0
- package/dist/assets/layout-X4aHIIHH.js +1 -0
- package/dist/assets/linear-DLYnUT7M.js +1 -0
- package/dist/assets/mermaid.core-DuagT3S2.js +307 -0
- package/dist/assets/mindmap-definition-RKZ34NQL-HJXV2iNz.js +96 -0
- package/dist/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/assets/pieDiagram-4H26LBE5-BVHq2F8U.js +30 -0
- package/dist/assets/quadrantDiagram-W4KKPZXB-BUPck4BP.js +7 -0
- package/dist/assets/requirementDiagram-4Y6WPE33-DQl89ON9.js +84 -0
- package/dist/assets/sankeyDiagram-5OEKKPKP-DD5N52ZQ.js +40 -0
- package/dist/assets/sequenceDiagram-3UESZ5HK-zctcDLCC.js +162 -0
- package/dist/assets/stateDiagram-AJRCARHV-Vyn0aDZv.js +1 -0
- package/dist/assets/stateDiagram-v2-BHNVJYJU-BY6pmmBt.js +1 -0
- package/dist/assets/timeline-definition-PNZ67QCA-1XNXDgjy.js +120 -0
- package/dist/assets/vennDiagram-CIIHVFJN-DZ1fF_Rg.js +34 -0
- package/dist/assets/wardley-L42UT6IY-DsEWk1n9.js +173 -0
- package/dist/assets/wardleyDiagram-YWT4CUSO-CpQIM9KB.js +78 -0
- package/dist/assets/xychartDiagram-2RQKCTM6-CIryoW2U.js +7 -0
- package/dist/index.html +2 -2
- package/package.json +18 -4
- package/dist/assets/index-BpgvSxpC.js +0 -89
- package/dist/assets/index-C4j9DEAI.css +0 -1
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import{R as Ke,aX as Ln,V as tn,X as en,a as nn,aK as ae,ak as An,A as re,a5 as ie,a1 as Wn,b1 as On,a6 as $n,b4 as Hn,a2 as Nn,b2 as Pn,b as d,a4 as Yt,a$ as Xt,F as Vn,P as rt,aE as Tt,z as zn,a_ as Rn,t as Zn,bl as Bn}from"./mermaid.core-DuagT3S2.js";import{b as Xn,t as Oe,c as qn,a as Gn,l as jn}from"./linear-DLYnUT7M.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./index-CbSmh0fl.js";import"./defaultLocale-CrowFXzY.js";function Jn(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 s of t)(s=e(s,++r,t))!=null&&(n<s||n===void 0&&s>=s)&&(n=s)}return n}function Kn(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 s of t)(s=e(s,++r,t))!=null&&(n>s||n===void 0&&s>=s)&&(n=s)}return n}function tr(t){return t}var Gt=1,oe=2,pe=3,qt=4,$e=1e-6;function er(t){return"translate("+t+",0)"}function nr(t){return"translate(0,"+t+")"}function rr(t){return e=>+t(e)}function ir(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function sr(){return!this.__axis}function rn(t,e){var n=[],r=null,s=null,a=6,o=6,m=3,F=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,C=t===Gt||t===qt?-1:1,k=t===qt||t===oe?"x":"y",L=t===Gt||t===pe?er:nr;function _(S){var X=r==null?e.ticks?e.ticks.apply(e,n):e.domain():r,A=s==null?e.tickFormat?e.tickFormat.apply(e,n):tr:s,U=Math.max(a,0)+m,I=e.range(),N=+I[0]+F,W=+I[I.length-1]+F,B=(e.bandwidth?ir:rr)(e.copy(),F),j=S.selection?S.selection():S,p=j.selectAll(".domain").data([null]),g=j.selectAll(".tick").data(X,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),w=g.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(k+"2",C*a)),w=w.merge(h.append("text").attr("fill","currentColor").attr(k,C*U).attr("dy",t===Gt?"0em":t===pe?"0.71em":"0.32em")),S!==j&&(p=p.transition(S),g=g.transition(S),D=D.transition(S),w=w.transition(S),y=y.transition(S).attr("opacity",$e).attr("transform",function(T){return isFinite(T=B(T))?L(T+F):this.getAttribute("transform")}),h.attr("opacity",$e).attr("transform",function(T){var v=this.parentNode.__axis;return L((v&&isFinite(v=v(T))?v:B(T))+F)})),y.remove(),p.attr("d",t===qt||t===oe?o?"M"+C*o+","+N+"H"+F+"V"+W+"H"+C*o:"M"+F+","+N+"V"+W:o?"M"+N+","+C*o+"V"+F+"H"+W+"V"+C*o:"M"+N+","+F+"H"+W),g.attr("opacity",1).attr("transform",function(T){return L(B(T)+F)}),D.attr(k+"2",C*a),w.attr(k,C*U).text(A),j.filter(sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oe?"start":t===qt?"end":"middle"),j.each(function(){this.__axis=B})}return _.scale=function(S){return arguments.length?(e=S,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),_):n.slice()},_.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),_):r&&r.slice()},_.tickFormat=function(S){return arguments.length?(s=S,_):s},_.tickSize=function(S){return arguments.length?(a=o=+S,_):a},_.tickSizeInner=function(S){return arguments.length?(a=+S,_):a},_.tickSizeOuter=function(S){return arguments.length?(o=+S,_):o},_.tickPadding=function(S){return arguments.length?(m=+S,_):m},_.offset=function(S){return arguments.length?(F=+S,_):F},_}function ar(t){return rn(Gt,t)}function or(t){return rn(pe,t)}const cr=Math.PI/180,ur=180/Math.PI,Jt=18,sn=.96422,an=1,on=.82521,cn=4/29,Ft=6/29,un=3*Ft*Ft,lr=Ft*Ft*Ft;function ln(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return fn(t);t instanceof Ke||(t=Ln(t));var e=fe(t.r),n=fe(t.g),r=fe(t.b),s=ce((.2225045*e+.7168786*n+.0606169*r)/an),a,o;return e===n&&n===r?a=o=s:(a=ce((.4360747*e+.3850649*n+.1430804*r)/sn),o=ce((.0139322*e+.0971045*n+.7141733*r)/on)),new ft(116*s-16,500*(a-s),200*(s-o),t.opacity)}function fr(t,e,n,r){return arguments.length===1?ln(t):new ft(t,e,n,r==null?1:r)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}tn(ft,fr,en(nn,{brighter(t){return new ft(this.l+Jt*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t==null?1:t),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=sn*ue(e),t=an*ue(t),n=on*ue(n),new Ke(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>lr?Math.pow(t,1/3):t/un+cn}function ue(t){return t>Ft?t*t*t:un*(t-cn)}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 dr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=ln(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)*ur;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?dr(t):new ht(t,e,n,r==null?1:r)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function fn(t){if(isNaN(t.h))return new ft(t.l,0,0,t.opacity);var e=t.h*cr;return new ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}tn(ht,ve,en(nn,{brighter(t){return new ht(this.h,this.c,this.l+Jt*(t==null?1:t),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-Jt*(t==null?1:t),this.opacity)},rgb(){return fn(this).rgb()}}));function hr(t){return function(e,n){var r=t((e=ve(e)).h,(n=ve(n)).h),s=ae(e.c,n.c),a=ae(e.l,n.l),o=ae(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=s(m),e.l=a(m),e.opacity=o(m),e+""}}}const mr=hr(An);function gr(t,e){t=t.slice();var n=0,r=t.length-1,s=t[n],a=t[r],o;return a<s&&(o=n,n=r,r=o,o=s,s=a,a=o),t[n]=e.floor(s),t[r]=e.ceil(a),t}const de=new Date,he=new Date;function et(t,e,n,r){function s(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return s.floor=a=>(t(a=new Date(+a)),a),s.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),s.round=a=>{const o=s(a),m=s.ceil(a);return a-o<m-a?o:m},s.offset=(a,o)=>(e(a=new Date(+a),o==null?1:Math.floor(o)),a),s.range=(a,o,m)=>{const F=[];if(a=s.ceil(a),m=m==null?1:Math.floor(m),!(a<o)||!(m>0))return F;let C;do F.push(C=new Date(+a)),e(a,m),t(a);while(C<a&&a<o);return F},s.filter=a=>et(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,m)=>{if(o>=o)if(m<0)for(;++m<=0;)for(;e(o,-1),!a(o););else for(;--m>=0;)for(;e(o,1),!a(o););}),n&&(s.count=(a,o)=>(de.setTime(+a),he.setTime(+o),t(de),t(he),Math.floor(n(de,he))),s.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?s.filter(r?o=>r(o)%a===0:o=>s.count(0,o)%a===0):s)),s}const Et=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,De=yt*7,He=yt*30,me=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const $t=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());$t.range;const yr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());yr.range;const Ht=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ht.range;const kr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());kr.range;const xt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const Me=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Me.range;const pr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));pr.range;function Dt(t){return et(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())*ct)/De)}const Vt=Dt(0),Nt=Dt(1),dn=Dt(2),hn=Dt(3),bt=Dt(4),mn=Dt(5),gn=Dt(6);Vt.range;Nt.range;dn.range;hn.range;bt.range;mn.range;gn.range;function Mt(t){return et(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)/De)}const yn=Mt(0),Kt=Mt(1),vr=Mt(2),Tr=Mt(3),It=Mt(4),xr=Mt(5),br=Mt(6);yn.range;Kt.range;vr.range;Tr.range;It.range;xr.range;br.range;const Pt=et(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());Pt.range;const wr=et(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());wr.range;const kt=et(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:et(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 wt=et(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());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(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)});wt.range;function Dr(t,e,n,r,s,a){const o=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[s,1,gt],[s,3,3*gt],[s,6,6*gt],[s,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,De],[e,1,He],[e,3,3*He],[t,1,me]];function m(C,k,L){const _=k<C;_&&([C,k]=[k,C]);const S=L&&typeof L.range=="function"?L:F(C,k,L),X=S?S.range(C,+k+1):[];return _?X.reverse():X}function F(C,k,L){const _=Math.abs(k-C)/L,S=Xn(([,,U])=>U).right(o,_);if(S===o.length)return t.every(Oe(C/me,k/me,L));if(S===0)return Et.every(Math.max(Oe(C,k,L),1));const[X,A]=o[_/o[S-1][2]<o[S][2]/_?S-1:S];return X.every(A)}return[m,F]}const[Mr,Cr]=Dr(kt,Pt,Vt,xt,Ht,$t);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 At(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Sr(t){var e=t.dateTime,n=t.date,r=t.time,s=t.periods,a=t.days,o=t.shortDays,m=t.months,F=t.shortMonths,C=Wt(s),k=Ot(s),L=Wt(a),_=Ot(a),S=Wt(o),X=Ot(o),A=Wt(m),U=Ot(m),I=Wt(F),N=Ot(F),W={a:b,A:Y,b:c,B:z,c:null,d:Ze,e:Ze,f:jr,g:ai,G:ci,H:Xr,I:qr,j:Gr,L:kn,m:Qr,M:Jr,p:i,q:E,Q:qe,s:Ge,S:Kr,u:ti,U:ei,V:ni,w:ri,W:ii,x:null,X:null,y:si,Y:oi,Z:ui,"%":Xe},B={a:Z,A:P,b:R,B:J,c:null,d:Be,e:Be,f:hi,g:wi,G:Mi,H:li,I:fi,j:di,L:vn,m:mi,M:gi,p:$,q:st,Q:qe,s:Ge,S:yi,u:ki,U:pi,V:vi,w:Ti,W:xi,x:null,X:null,y:bi,Y:Di,Z:Ci,"%":Xe},j={a:D,A:w,b:T,B:v,c:u,d:ze,e:ze,f:zr,g:Ve,G:Pe,H:Re,I:Re,j:Hr,L:Vr,m:$r,M:Nr,p:h,q:Or,Q:Zr,s:Br,S:Pr,u:Er,U:Ir,V:Lr,w:Ur,W:Ar,x:f,X:x,y:Ve,Y:Pe,Z:Wr,"%":Rr};W.x=p(n,W),W.X=p(r,W),W.c=p(e,W),B.x=p(n,B),B.X=p(r,B),B.c=p(e,B);function p(M,H){return function(V){var l=[],K=-1,O=0,Q=M.length,G,it,at;for(V instanceof Date||(V=new Date(+V));++K<Q;)M.charCodeAt(K)===37&&(l.push(M.slice(O,K)),(it=Ne[G=M.charAt(++K)])!=null?G=M.charAt(++K):it=G==="e"?" ":"0",(at=H[G])&&(G=at(V,it)),l.push(G),O=K+1);return l.push(M.slice(O,K)),l.join("")}}function g(M,H){return function(V){var l=At(1900,void 0,1),K=y(l,M,V+="",0),O,Q;if(K!=V.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(H&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(O=ye(At(l.y,0,1)),Q=O.getUTCDay(),O=Q>4||Q===0?Kt.ceil(O):Kt(O),O=Me.offset(O,(l.V-1)*7),l.y=O.getUTCFullYear(),l.m=O.getUTCMonth(),l.d=O.getUTCDate()+(l.w+6)%7):(O=ge(At(l.y,0,1)),Q=O.getDay(),O=Q>4||Q===0?Nt.ceil(O):Nt(O),O=xt.offset(O,(l.V-1)*7),l.y=O.getFullYear(),l.m=O.getMonth(),l.d=O.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ye(At(l.y,0,1)).getUTCDay():ge(At(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ye(l)):ge(l)}}function y(M,H,V,l){for(var K=0,O=H.length,Q=V.length,G,it;K<O;){if(l>=Q)return-1;if(G=H.charCodeAt(K++),G===37){if(G=H.charAt(K++),it=j[G in Ne?H.charAt(K++):G],!it||(l=it(M,V,l))<0)return-1}else if(G!=V.charCodeAt(l++))return-1}return l}function h(M,H,V){var l=C.exec(H.slice(V));return l?(M.p=k.get(l[0].toLowerCase()),V+l[0].length):-1}function D(M,H,V){var l=S.exec(H.slice(V));return l?(M.w=X.get(l[0].toLowerCase()),V+l[0].length):-1}function w(M,H,V){var l=L.exec(H.slice(V));return l?(M.w=_.get(l[0].toLowerCase()),V+l[0].length):-1}function T(M,H,V){var l=I.exec(H.slice(V));return l?(M.m=N.get(l[0].toLowerCase()),V+l[0].length):-1}function v(M,H,V){var l=A.exec(H.slice(V));return l?(M.m=U.get(l[0].toLowerCase()),V+l[0].length):-1}function u(M,H,V){return y(M,e,H,V)}function f(M,H,V){return y(M,n,H,V)}function x(M,H,V){return y(M,r,H,V)}function b(M){return o[M.getDay()]}function Y(M){return a[M.getDay()]}function c(M){return F[M.getMonth()]}function z(M){return m[M.getMonth()]}function i(M){return s[+(M.getHours()>=12)]}function E(M){return 1+~~(M.getMonth()/3)}function Z(M){return o[M.getUTCDay()]}function P(M){return a[M.getUTCDay()]}function R(M){return F[M.getUTCMonth()]}function J(M){return m[M.getUTCMonth()]}function $(M){return s[+(M.getUTCHours()>=12)]}function st(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var H=p(M+="",W);return H.toString=function(){return M},H},parse:function(M){var H=g(M+="",!1);return H.toString=function(){return M},H},utcFormat:function(M){var H=p(M+="",B);return H.toString=function(){return M},H},utcParse:function(M){var H=g(M+="",!0);return H.toString=function(){return M},H}}}var Ne={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,_r=/^%/,Yr=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",s=(r?-t:t)+"",a=s.length;return r+(a<n?new Array(n-a+1).join(e)+s:s)}function Fr(t){return t.replace(Yr,"\\$&")}function Wt(t){return new RegExp("^(?:"+t.map(Fr).join("|")+")","i")}function Ot(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Wr(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 Or(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Zr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ze(t,e){return q(t.getDate(),e,2)}function Xr(t,e){return q(t.getHours(),e,2)}function qr(t,e){return q(t.getHours()%12||12,e,2)}function Gr(t,e){return q(1+xt.count(kt(t),t),e,3)}function kn(t,e){return q(t.getMilliseconds(),e,3)}function jr(t,e){return kn(t,e)+"000"}function Qr(t,e){return q(t.getMonth()+1,e,2)}function Jr(t,e){return q(t.getMinutes(),e,2)}function Kr(t,e){return q(t.getSeconds(),e,2)}function ti(t){var e=t.getDay();return e===0?7:e}function ei(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function pn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ni(t,e){return t=pn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ri(t){return t.getDay()}function ii(t,e){return q(Nt.count(kt(t)-1,t),e,2)}function si(t,e){return q(t.getFullYear()%100,e,2)}function ai(t,e){return t=pn(t),q(t.getFullYear()%100,e,2)}function oi(t,e){return q(t.getFullYear()%1e4,e,4)}function ci(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Be(t,e){return q(t.getUTCDate(),e,2)}function li(t,e){return q(t.getUTCHours(),e,2)}function fi(t,e){return q(t.getUTCHours()%12||12,e,2)}function di(t,e){return q(1+Me.count(wt(t),t),e,3)}function vn(t,e){return q(t.getUTCMilliseconds(),e,3)}function hi(t,e){return vn(t,e)+"000"}function mi(t,e){return q(t.getUTCMonth()+1,e,2)}function gi(t,e){return q(t.getUTCMinutes(),e,2)}function yi(t,e){return q(t.getUTCSeconds(),e,2)}function ki(t){var e=t.getUTCDay();return e===0?7:e}function pi(t,e){return q(yn.count(wt(t)-1,t),e,2)}function Tn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function vi(t,e){return t=Tn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Ti(t){return t.getUTCDay()}function xi(t,e){return q(Kt.count(wt(t)-1,t),e,2)}function bi(t,e){return q(t.getUTCFullYear()%100,e,2)}function wi(t,e){return t=Tn(t),q(t.getUTCFullYear()%100,e,2)}function Di(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Ci(){return"+0000"}function Xe(){return"%"}function qe(t){return+t}function Ge(t){return Math.floor(+t/1e3)}var St,te;Si({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 Si(t){return St=Sr(t),te=St.format,St.parse,St.utcFormat,St.utcParse,St}function _i(t){return new Date(t)}function Yi(t){return t instanceof Date?+t:+new Date(+t)}function xn(t,e,n,r,s,a,o,m,F,C){var k=qn(),L=k.invert,_=k.domain,S=C(".%L"),X=C(":%S"),A=C("%I:%M"),U=C("%I %p"),I=C("%a %d"),N=C("%b %d"),W=C("%B"),B=C("%Y");function j(p){return(F(p)<p?S:m(p)<p?X:o(p)<p?A:a(p)<p?U:r(p)<p?s(p)<p?I:N:n(p)<p?W:B)(p)}return k.invert=function(p){return new Date(L(p))},k.domain=function(p){return arguments.length?_(Array.from(p,Yi)):_().map(_i)},k.ticks=function(p){var g=_();return t(g[0],g[g.length-1],p==null?10:p)},k.tickFormat=function(p,g){return g==null?j:C(g)},k.nice=function(p){var g=_();return(!p||typeof p.range!="function")&&(p=e(g[0],g[g.length-1],p==null?10:p)),p?_(gr(g,p)):k},k.copy=function(){return Gn(k,xn(t,e,n,r,s,a,o,m,F,C))},k}function Fi(){return Qn.apply(xn(Mr,Cr,kt,Pt,Vt,xt,Ht,$t,vt,te).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n="day";return function(r,s,a){var o=function(C){return C.add(4-C.isoWeekday(),n)},m=s.prototype;m.isoWeekYear=function(){return o(this).year()},m.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),n);var k,L,_,S,X=o(this),A=(k=this.isoWeekYear(),L=this.$u,_=(L?a.utc:a)().year(k).startOf("year"),S=4-_.isoWeekday(),_.isoWeekday()>4&&(S+=7),_.add(S,n));return X.diff(A,"week")+1},m.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var F=m.startOf;m.startOf=function(C,k){var L=this.$utils(),_=!!L.u(k)||k;return L.p(C)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(C,k)}}})})(bn);var Ui=bn.exports;const Ei=ie(Ui);var wn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,a=/\d\d/,o=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,F={},C=function(U){return(U=+U)+(U>68?1900:2e3)},k=function(U){return function(I){this[U]=+I}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W}(U)}],_=function(U){var I=F[U];return I&&(I.indexOf?I:I.s.concat(I.f))},S=function(U,I){var N,W=F.meridiem;if(W){for(var B=1;B<=24;B+=1)if(U.indexOf(W(B,0,I))>-1){N=B>12;break}}else N=U===(I?"pm":"PM");return N},X={A:[m,function(U){this.afternoon=S(U,!1)}],a:[m,function(U){this.afternoon=S(U,!0)}],Q:[s,function(U){this.month=3*(U-1)+1}],S:[s,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[o,k("seconds")],ss:[o,k("seconds")],m:[o,k("minutes")],mm:[o,k("minutes")],H:[o,k("hours")],h:[o,k("hours")],HH:[o,k("hours")],hh:[o,k("hours")],D:[o,k("day")],DD:[a,k("day")],Do:[m,function(U){var I=F.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[o,k("week")],ww:[a,k("week")],M:[o,k("month")],MM:[a,k("month")],MMM:[m,function(U){var I=_("months"),N=(_("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=_("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,k("year")],YY:[a,function(U){this.year=C(U)}],YYYY:[/\d{4}/,k("year")],Z:L,ZZ:L};function A(U){var I,N;I=U,N=F&&F.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,w,T){var v=T&&T.toUpperCase();return w||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,x){return f||x.slice(1)})})).match(r),B=W.length,j=0;j<B;j+=1){var p=W[j],g=X[p],y=g&&g[0],h=g&&g[1];W[j]=h?{regex:y,parser:h}:p.replace(/^\[|\]$/g,"")}return function(D){for(var w={},T=0,v=0;T<B;T+=1){var u=W[T];if(typeof u=="string")v+=u.length;else{var f=u.regex,x=u.parser,b=D.slice(v),Y=f.exec(b)[0];x.call(w,Y),D=D.replace(Y,"")}}return function(c){var z=c.afternoon;if(z!==void 0){var i=c.hours;z?i<12&&(c.hours+=12):i===12&&(c.hours=0),delete c.afternoon}}(w),w}}return function(U,I,N){N.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(C=U.parseTwoDigitYear);var W=I.prototype,B=W.parse;W.parse=function(j){var p=j.date,g=j.utc,y=j.args;this.$u=g;var h=y[1];if(typeof h=="string"){var D=y[2]===!0,w=y[3]===!0,T=D||w,v=y[2];w&&(v=y[2]),F=this.$locale(),!D&&v&&(F=N.Ls[v]),this.$d=function(b,Y,c,z){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*b);var i=A(Y)(b),E=i.year,Z=i.month,P=i.day,R=i.hours,J=i.minutes,$=i.seconds,st=i.milliseconds,M=i.zone,H=i.week,V=new Date,l=P||(E||Z?1:V.getDate()),K=E||V.getFullYear(),O=0;E&&!Z||(O=Z>0?Z-1:V.getMonth());var Q,G=R||0,it=J||0,at=$||0,pt=st||0;return M?new Date(Date.UTC(K,O,l,G,it,at,pt+60*M.offset*1e3)):c?new Date(Date.UTC(K,O,l,G,it,at,pt)):(Q=new Date(K,O,l,G,it,at,pt),H&&(Q=z(Q).week(H).toDate()),Q)}catch{return new Date("")}}(p,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&p!=this.format(h)&&(this.$d=new Date("")),F={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){y[1]=h[f-1];var x=N.apply(this,y);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}f===u&&(this.$d=new Date(""))}else B.call(this,j)}}})})(wn);var Ii=wn.exports;const Li=ie(Ii);var Dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){return function(n,r){var s=r.prototype,a=s.format;s.format=function(o){var m=this,F=this.$locale();if(!this.isValid())return a.bind(this)(o);var C=this.$utils(),k=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(L){switch(L){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return F.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return F.ordinal(m.week(),"W");case"w":case"ww":return C.s(m.week(),L==="w"?1:2,"0");case"W":case"WW":return C.s(m.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return C.s(String(m.$H===0?24:m.$H),L==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return L}});return a.bind(this)(k)}}})})(Dn);var Ai=Dn.exports;const Wi=ie(Ai);var Mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n,r,s=1e3,a=6e4,o=36e5,m=864e5,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C=31536e6,k=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:C,months:k,days:m,hours:o,minutes:a,seconds:s,milliseconds:1,weeks:6048e5},S=function(p){return p instanceof B},X=function(p,g,y){return new B(p,y,g.$l)},A=function(p){return r.p(p)+"s"},U=function(p){return p<0},I=function(p){return U(p)?Math.ceil(p):Math.floor(p)},N=function(p){return Math.abs(p)},W=function(p,g){return p?U(p)?{negative:!0,format:""+N(p)+g}:{negative:!1,format:""+p+g}:{negative:!1,format:""}},B=function(){function p(y,h,D){var w=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return X(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(u){w.$d[A(u)]=y[u]}),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(L);if(T){var v=T.slice(2).map(function(u){return u!=null?Number(u):0});return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,D){return h+(y.$d[D]||0)*_[D]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/C),y%=C,this.$d.months=I(y/k),y%=k,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/o),y%=o,this.$d.minutes=I(y/a),y%=a,this.$d.seconds=I(y/s),y%=s,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var w=W(D,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=W(u,"S"),x=y.negative||h.negative||w.negative||T.negative||v.negative||f.negative,b=T.format||v.format||f.format?"T":"",Y=(x?"-":"")+"P"+y.format+h.format+w.format+b+T.format+v.format+f.format;return Y==="P"||Y==="-P"?"P0D":Y},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={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 h.replace(F,function(w,T){return T||String(D[w])})},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,D=A(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?I(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var w;return w=h?y*_[A(h)]:S(y)?y.$ms:X(y,this).$ms,X(this.$ms+w*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return X(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p}(),j=function(p,g,y){return p.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(p,g,y){n=y,r=y().$utils(),y.duration=function(w,T){var v=y.locale();return X(w,{$l:v},T)},y.isDuration=S;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(w,T){return S(w)?j(this,w,1):h.bind(this)(w,T)},g.prototype.subtract=function(w,T){return S(w)?j(this,w,-1):D.bind(this)(w,T)}}})})(Mn);var Oi=Mn.exports;const $i=ie(Oi);var Te=function(){var t=d(function(v,u,f,x){for(f=f||{},x=v.length;x--;f[v[x]]=u);return f},"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],s=[1,28],a=[1,29],o=[1,30],m=[1,31],F=[1,32],C=[1,33],k=[1,34],L=[1,9],_=[1,10],S=[1,11],X=[1,12],A=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],B=[1,20],j=[1,21],p=[1,22],g=[1,23],y=[1,25],h=[1,35],D={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(u,f,x,b,Y,c,z){var i=c.length-1;switch(Y){case 1:return c[i-1];case 2:this.$=[];break;case 3:c[i-1].push(c[i]),this.$=c[i-1];break;case 4:case 5:this.$=c[i];break;case 6:case 7:this.$=[];break;case 8:b.setWeekday("monday");break;case 9:b.setWeekday("tuesday");break;case 10:b.setWeekday("wednesday");break;case 11:b.setWeekday("thursday");break;case 12:b.setWeekday("friday");break;case 13:b.setWeekday("saturday");break;case 14:b.setWeekday("sunday");break;case 15:b.setWeekend("friday");break;case 16:b.setWeekend("saturday");break;case 17:b.setDateFormat(c[i].substr(11)),this.$=c[i].substr(11);break;case 18:b.enableInclusiveEndDates(),this.$=c[i].substr(18);break;case 19:b.TopAxis(),this.$=c[i].substr(8);break;case 20:b.setAxisFormat(c[i].substr(11)),this.$=c[i].substr(11);break;case 21:b.setTickInterval(c[i].substr(13)),this.$=c[i].substr(13);break;case 22:b.setExcludes(c[i].substr(9)),this.$=c[i].substr(9);break;case 23:b.setIncludes(c[i].substr(9)),this.$=c[i].substr(9);break;case 24:b.setTodayMarker(c[i].substr(12)),this.$=c[i].substr(12);break;case 27:b.setDiagramTitle(c[i].substr(6)),this.$=c[i].substr(6);break;case 28:this.$=c[i].trim(),b.setAccTitle(this.$);break;case 29:case 30:this.$=c[i].trim(),b.setAccDescription(this.$);break;case 31:b.addSection(c[i].substr(8)),this.$=c[i].substr(8);break;case 33:b.addTask(c[i-1],c[i]),this.$="task";break;case 34:this.$=c[i-1],b.setClickEvent(c[i-1],c[i],null);break;case 35:this.$=c[i-2],b.setClickEvent(c[i-2],c[i-1],c[i]);break;case 36:this.$=c[i-2],b.setClickEvent(c[i-2],c[i-1],null),b.setLink(c[i-2],c[i]);break;case 37:this.$=c[i-3],b.setClickEvent(c[i-3],c[i-2],c[i-1]),b.setLink(c[i-3],c[i]);break;case 38:this.$=c[i-2],b.setClickEvent(c[i-2],c[i],null),b.setLink(c[i-2],c[i-1]);break;case 39:this.$=c[i-3],b.setClickEvent(c[i-3],c[i-1],c[i]),b.setLink(c[i-3],c[i-2]);break;case 40:this.$=c[i-1],b.setLink(c[i-1],c[i]);break;case 41:case 47:this.$=c[i-1]+" "+c[i];break;case 42:case 43:case 45:this.$=c[i-2]+" "+c[i-1]+" "+c[i];break;case 44:case 46:this.$=c[i-3]+" "+c[i-2]+" "+c[i-1]+" "+c[i];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:s,15:a,16:o,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:X,26:A,27:U,28:I,29:N,30:W,31:B,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:a,16:o,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:X,26:A,27:U,28:I,29:N,30:W,31:B,33:j,35:p,36:g,37:24,38:y,40:h},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(u,f){if(f.recoverable)this.trace(u);else{var x=new Error(u);throw x.hash=f,x}},"parseError"),parse:d(function(u){var f=this,x=[0],b=[],Y=[null],c=[],z=this.table,i="",E=0,Z=0,P=2,R=1,J=c.slice.call(arguments,1),$=Object.create(this.lexer),st={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(st.yy[M]=this.yy[M]);$.setInput(u,st.yy),st.yy.lexer=$,st.yy.parser=this,typeof $.yylloc=="undefined"&&($.yylloc={});var H=$.yylloc;c.push(H);var V=$.options&&$.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){x.length=x.length-2*ot,Y.length=Y.length-ot,c.length=c.length-ot}d(l,"popStack");function K(){var ot;return ot=b.pop()||$.lex()||R,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=f.symbols_[ot]||ot),ot}d(K,"lex");for(var O,Q,G,it,at={},pt,ut,We,Bt;;){if(Q=x[x.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:((O===null||typeof O=="undefined")&&(O=K()),G=z[Q]&&z[Q][O]),typeof G=="undefined"||!G.length||!G[0]){var se="";Bt=[];for(pt in z[Q])this.terminals_[pt]&&pt>P&&Bt.push("'"+this.terminals_[pt]+"'");$.showPosition?se="Parse error on line "+(E+1)+`:
|
|
2
|
+
`+$.showPosition()+`
|
|
3
|
+
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[O]||O)+"'":se="Parse error on line "+(E+1)+": Unexpected "+(O==R?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(se,{text:$.match,token:this.terminals_[O]||O,line:$.yylineno,loc:H,expected:Bt})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+O);switch(G[0]){case 1:x.push(O),Y.push($.yytext),c.push($.yylloc),x.push(G[1]),O=null,Z=$.yyleng,i=$.yytext,E=$.yylineno,H=$.yylloc;break;case 2:if(ut=this.productions_[G[1]][1],at.$=Y[Y.length-ut],at._$={first_line:c[c.length-(ut||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ut||1)].first_column,last_column:c[c.length-1].last_column},V&&(at._$.range=[c[c.length-(ut||1)].range[0],c[c.length-1].range[1]]),it=this.performAction.apply(at,[i,Z,E,st.yy,G[1],Y,c].concat(J)),typeof it!="undefined")return it;ut&&(x=x.slice(0,-1*ut*2),Y=Y.slice(0,-1*ut),c=c.slice(0,-1*ut)),x.push(this.productions_[G[1]][0]),Y.push(at.$),c.push(at._$),We=z[x[x.length-2]][x[x.length-1]],x.push(We);break;case 3:return!0}}return!0},"parse")},w=function(){var v={EOF:1,parseError:d(function(f,x){if(this.yy.parser)this.yy.parser.parseError(f,x);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,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 u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,x=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var b=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),x.length-1&&(this.yylineno-=x.length-1);var Y=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:x?(x.length===b.length?this.yylloc.first_column:0)+b[b.length-x.length].length-x[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-f]),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(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
5
|
+
`+f+"^"},"showPosition"),test_match:d(function(u,f){var x,b,Y;if(this.options.backtrack_lexer&&(Y={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&&(Y.yylloc.range=this.yylloc.range.slice(0))),b=u[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],x=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var c in Y)this[c]=Y[c];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,f,x,b;this._more||(this.yytext="",this.match="");for(var Y=this._currentRules(),c=0;c<Y.length;c++)if(x=this._input.match(this.rules[Y[c]]),x&&(!f||x[0].length>f[0].length)){if(f=x,b=c,this.options.backtrack_lexer){if(u=this.test_match(x,Y[c]),u!==!1)return u;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(u=this.test_match(f,Y[b]),u!==!1?u:!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 f=this.next();return f||this.lex()},"lex"),begin:d(function(f){this.conditionStack.push(f)},"begin"),popState:d(function(){var f=this.conditionStack.length-1;return f>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(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),pushState:d(function(f){this.begin(f)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(f,x,b,Y){switch(b){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 v}();D.lexer=w;function T(){this.yy={}}return d(T,"Parser"),T.prototype=D,D.Parser=T,new T}();Te.parser=Te;var Hi=Te;rt.extend(Ei);rt.extend(Li);rt.extend(Wi);var je={friday:5,saturday:6},lt="",Ce="",Se=void 0,_e="",zt=[],Rt=[],Ye=new Map,Fe=[],ee=[],Lt="",Ue="",Cn=["active","done","crit","milestone","vert"],Ee=[],_t="",Zt=!1,Ie=!1,Le="sunday",ne="saturday",xe=0,Ni=d(function(){Fe=[],ee=[],Lt="",Ee=[],jt=0,we=void 0,Qt=void 0,tt=[],lt="",Ce="",Ue="",Se=void 0,_e="",zt=[],Rt=[],Zt=!1,Ie=!1,xe=0,Ye=new Map,_t="",Zn(),Le="sunday",ne="saturday"},"clear"),Pi=d(function(t){_t=t},"setDiagramId"),Vi=d(function(t){Ce=t},"setAxisFormat"),zi=d(function(){return Ce},"getAxisFormat"),Ri=d(function(t){Se=t},"setTickInterval"),Zi=d(function(){return Se},"getTickInterval"),Bi=d(function(t){_e=t},"setTodayMarker"),Xi=d(function(){return _e},"getTodayMarker"),qi=d(function(t){lt=t},"setDateFormat"),Gi=d(function(){Zt=!0},"enableInclusiveEndDates"),ji=d(function(){return Zt},"endDatesAreInclusive"),Qi=d(function(){Ie=!0},"enableTopAxis"),Ji=d(function(){return Ie},"topAxisEnabled"),Ki=d(function(t){Ue=t},"setDisplayMode"),ts=d(function(){return Ue},"getDisplayMode"),es=d(function(){return lt},"getDateFormat"),ns=d(function(t){zt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),rs=d(function(){return zt},"getIncludes"),is=d(function(t){Rt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ss=d(function(){return Rt},"getExcludes"),as=d(function(){return Ye},"getLinks"),os=d(function(t){Lt=t,Fe.push(t)},"addSection"),cs=d(function(){return Fe},"getSections"),us=d(function(){let t=Qe();const e=10;let n=0;for(;!t&&n<e;)t=Qe(),n++;return ee=tt,ee},"getTasks"),Sn=d(function(t,e,n,r){const s=t.format(e.trim()),a=t.format("YYYY-MM-DD");return r.includes(s)||r.includes(a)?!1:n.includes("weekends")&&(t.isoWeekday()===je[ne]||t.isoWeekday()===je[ne]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(s)||n.includes(a)},"isInvalidDate"),ls=d(function(t){Le=t},"setWeekday"),fs=d(function(){return Le},"getWeekday"),ds=d(function(t){ne=t},"setWeekend"),_n=d(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=rt(t.startTime):s=rt(t.startTime,e,!0),s=s.add(1,"d");let a;t.endTime instanceof Date?a=rt(t.endTime):a=rt(t.endTime,e,!0);const[o,m]=hs(s,a,e,n,r);t.endTime=o.toDate(),t.renderEndTime=m},"checkTaskDates"),hs=d(function(t,e,n,r,s){let a=!1,o=null;const m=e.add(1e4,"d");for(;t<=e;){if(a||(o=e.toDate()),a=Sn(t,n,r,s),a&&(e=e.add(1,"d"),e>m))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(m=>{const F=m.trim();return F==="x"||F==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let m=null;for(const C of a.groups.ids.split(" ")){let k=Ct(C);k!==void 0&&(!m||k.endTime>m.endTime)&&(m=k)}if(m)return m.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();{Tt.debug("Invalid date:"+n),Tt.debug("With date format:"+e.trim());const m=new Date(n);if(m===void 0||isNaN(m.getTime())||m.getFullYear()<-1e4||m.getFullYear()>1e4)throw new Error("Invalid date:"+n);return m}},"getStartDate"),Yn=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Fn=d(function(t,e,n,r=!1){n=n.trim();const a=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let k=null;for(const _ of a.groups.ids.split(" ")){let S=Ct(_);S!==void 0&&(!k||S.startTime<k.startTime)&&(k=S)}if(k)return k.startTime;const L=new Date;return L.setHours(0,0,0,0),L}let o=rt(n,e.trim(),!0);if(o.isValid())return r&&(o=o.add(1,"d")),o.toDate();let m=rt(t);const[F,C]=Yn(n);if(!Number.isNaN(F)){const k=m.add(F,C);k.isValid()&&(m=k)}return m.toDate()},"getEndDate"),jt=0,Ut=d(function(t){return t===void 0?(jt=jt+1,"task"+jt):t},"parseId"),ms=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};Ae(r,s,Cn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();let a="";switch(r.length){case 1:s.id=Ut(),s.startTime=t.endTime,a=r[0];break;case 2:s.id=Ut(),s.startTime=be(void 0,lt,r[0]),a=r[1];break;case 3:s.id=Ut(r[0]),s.startTime=be(void 0,lt,r[1]),a=r[2];break}return a&&(s.endTime=Fn(s.startTime,lt,a,Zt),s.manualEndTime=rt(a,"YYYY-MM-DD",!0).isValid(),_n(s,lt,Rt,zt)),s},"compileData"),gs=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};Ae(r,s,Cn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();switch(r.length){case 1:s.id=Ut(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:r[0]};break;case 2:s.id=Ut(),s.startTime={type:"getStartDate",startData:r[0]},s.endTime={data:r[1]};break;case 3:s.id=Ut(r[0]),s.startTime={type:"getStartDate",startData:r[1]},s.endTime={data:r[2]};break}return s},"parseData"),we,Qt,tt=[],Un={},ys=d(function(t,e){const n={section:Lt,type:Lt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=gs(Qt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Qt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=xe,xe++;const s=tt.push(n);Qt=n.id,Un[n.id]=s-1},"addTask"),Ct=d(function(t){const e=Un[t];return tt[e]},"findTaskById"),ks=d(function(t,e){const n={section:Lt,type:Lt,description:t,task:t,classes:[]},r=ms(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,ee.push(n)},"addTaskOrg"),Qe=d(function(){const t=d(function(n){const r=tt[n];let s="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const a=Ct(r.prevTaskId);r.startTime=a.endTime;break}case"getStartDate":s=be(void 0,lt,tt[n].raw.startTime.startData),s&&(tt[n].startTime=s);break}return tt[n].startTime&&(tt[n].endTime=Fn(tt[n].startTime,lt,tt[n].raw.endTime.data,Zt),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=rt(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),_n(tt[n],lt,Rt,zt))),tt[n].processed},"compileTask");let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},"compileTasks"),ps=d(function(t,e){let n=e;Yt().securityLevel!=="loose"&&(n=Rn(e)),t.split(",").forEach(function(r){Ct(r)!==void 0&&(In(r,()=>{window.open(n,"_self")}),Ye.set(r,n))}),En(t,"clickable")},"setLink"),En=d(function(t,e){t.split(",").forEach(function(n){let r=Ct(n);r!==void 0&&r.classes.push(e)})},"setClass"),vs=d(function(t,e,n){if(Yt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<r.length;a++){let o=r[a].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),r[a]=o}}r.length===0&&r.push(t),Ct(t)!==void 0&&In(t,()=>{Bn.runFunc(e,...r)})},"setClickFun"),In=d(function(t,e){Ee.push(function(){const n=_t?`${_t}-${t}`:t,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){const n=_t?`${_t}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),Ts=d(function(t,e,n){t.split(",").forEach(function(r){vs(r,e,n)}),En(t,"clickable")},"setClickEvent"),xs=d(function(t){Ee.forEach(function(e){e(t)})},"bindFunctions"),bs={getConfig:d(()=>Yt().gantt,"getConfig"),clear:Ni,setDateFormat:qi,getDateFormat:es,enableInclusiveEndDates:Gi,endDatesAreInclusive:ji,enableTopAxis:Qi,topAxisEnabled:Ji,setAxisFormat:Vi,getAxisFormat:zi,setTickInterval:Ri,getTickInterval:Zi,setTodayMarker:Bi,getTodayMarker:Xi,setAccTitle:Pn,getAccTitle:Nn,setDiagramTitle:Hn,getDiagramTitle:$n,setDiagramId:Pi,setDisplayMode:Ki,getDisplayMode:ts,setAccDescription:On,getAccDescription:Wn,addSection:os,getSections:cs,getTasks:us,addTask:ys,findTaskById:Ct,addTaskOrg:ks,setIncludes:ns,getIncludes:rs,setExcludes:is,getExcludes:ss,setClickEvent:Ts,setLink:ps,getLinks:as,bindFunctions:xs,parseDuration:Yn,isInvalidDate:Sn,setWeekday:ls,getWeekday:fs,setWeekend:ds};function Ae(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(s){const a="^\\s*"+s+"\\s*$",o=new RegExp(a);t[0].match(o)&&(e[s]=!0,t.shift(1),r=!0)})}d(Ae,"getTaskTags");rt.extend($i);var ws=d(function(){Tt.debug("Something is calling, setConf, remove the call")},"setConf"),Je={monday:Nt,tuesday:dn,wednesday:hn,thursday:bt,friday:mn,saturday:gn,sunday:Vt},Ds=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((a,o)=>a.startTime-o.startTime||a.order-o.order),s=0;for(const a of r)for(let o=0;o<n.length;o++)if(a.startTime>=n[o]){n[o]=a.endTime,a.order=o+e,o>s&&(s=o);break}return s},"getMaxIntersections"),dt,ke=1e4,Ms=d(function(t,e,n,r){const s=Yt().gantt;r.db.setDiagramId(e);const a=Yt().securityLevel;let o;a==="sandbox"&&(o=Xt("#i"+e));const m=a==="sandbox"?Xt(o.nodes()[0].contentDocument.body):Xt("body"),F=a==="sandbox"?o.nodes()[0].contentDocument:document,C=F.getElementById(e);dt=C.parentElement.offsetWidth,dt===void 0&&(dt=1200),s.useWidth!==void 0&&(dt=s.useWidth);const k=r.db.getTasks();let L=[];for(const h of k)L.push(h.type);L=y(L);const _={};let S=2*s.topPadding;if(r.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const h={};for(const w of k)h[w.section]===void 0?h[w.section]=[w]:h[w.section].push(w);let D=0;for(const w of Object.keys(h)){const T=Ds(h[w],D)+1;D+=T,S+=T*(s.barHeight+s.barGap),_[w]=T}}else{S+=k.length*(s.barHeight+s.barGap);for(const h of L)_[h]=k.filter(D=>D.type===h).length}C.setAttribute("viewBox","0 0 "+dt+" "+S);const X=m.select(`[id="${e}"]`),A=Fi().domain([Kn(k,function(h){return h.startTime}),Jn(k,function(h){return h.endTime})]).rangeRound([0,dt-s.leftPadding-s.rightPadding]);function U(h,D){const w=h.startTime,T=D.startTime;let v=0;return w>T?v=1:w<T&&(v=-1),v}d(U,"taskCompare"),k.sort(U),I(k,dt,S),Vn(X,S,dt,s.useMaxWidth),X.append("text").text(r.db.getDiagramTitle()).attr("x",dt/2).attr("y",s.titleTopMargin).attr("class","titleText");function I(h,D,w){const T=s.barHeight,v=T+s.barGap,u=s.topPadding,f=s.leftPadding,x=jn().domain([0,L.length]).range(["#00B9FA","#F95002"]).interpolate(mr);W(v,u,f,D,w,h,r.db.getExcludes(),r.db.getIncludes()),j(f,u,D,w),N(h,v,u,f,T,x,D),p(v,u),g(f,u,D,w)}d(I,"makeGantt");function N(h,D,w,T,v,u,f){h.sort((i,E)=>i.vert===E.vert?0:i.vert?1:-1);const b=[...new Set(h.map(i=>i.order))].map(i=>h.find(E=>E.order===i));X.append("g").selectAll("rect").data(b).enter().append("rect").attr("x",0).attr("y",function(i,E){return E=i.order,E*D+w-2}).attr("width",function(){return f-s.rightPadding/2}).attr("height",D).attr("class",function(i){for(const[E,Z]of L.entries())if(i.type===Z)return"section section"+E%s.numberSectionStyles;return"section section0"}).enter();const Y=X.append("g").selectAll("rect").data(h).enter(),c=r.db.getLinks();if(Y.append("rect").attr("id",function(i){return e+"-"+i.id}).attr("rx",3).attr("ry",3).attr("x",function(i){return i.milestone?A(i.startTime)+T+.5*(A(i.endTime)-A(i.startTime))-.5*v:A(i.startTime)+T}).attr("y",function(i,E){return E=i.order,i.vert?s.gridLineStartPadding:E*D+w}).attr("width",function(i){return i.milestone?v:i.vert?.08*v:A(i.renderEndTime||i.endTime)-A(i.startTime)}).attr("height",function(i){return i.vert?k.length*(s.barHeight+s.barGap)+s.barHeight*2:v}).attr("transform-origin",function(i,E){return E=i.order,(A(i.startTime)+T+.5*(A(i.endTime)-A(i.startTime))).toString()+"px "+(E*D+w+.5*v).toString()+"px"}).attr("class",function(i){const E="task";let Z="";i.classes.length>0&&(Z=i.classes.join(" "));let P=0;for(const[J,$]of L.entries())i.type===$&&(P=J%s.numberSectionStyles);let R="";return i.active?i.crit?R+=" activeCrit":R=" active":i.done?i.crit?R=" doneCrit":R=" done":i.crit&&(R+=" crit"),R.length===0&&(R=" task"),i.milestone&&(R=" milestone "+R),i.vert&&(R=" vert "+R),R+=P,R+=" "+Z,E+R}),Y.append("text").attr("id",function(i){return e+"-"+i.id+"-text"}).text(function(i){return i.task}).attr("font-size",s.fontSize).attr("x",function(i){let E=A(i.startTime),Z=A(i.renderEndTime||i.endTime);if(i.milestone&&(E+=.5*(A(i.endTime)-A(i.startTime))-.5*v,Z=E+v),i.vert)return A(i.startTime)+T;const P=this.getBBox().width;return P>Z-E?Z+P+1.5*s.leftPadding>f?E+T-5:Z+T+5:(Z-E)/2+E+T}).attr("y",function(i,E){return i.vert?s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60:(E=i.order,E*D+s.barHeight/2+(s.fontSize/2-2)+w)}).attr("text-height",v).attr("class",function(i){const E=A(i.startTime);let Z=A(i.endTime);i.milestone&&(Z=E+v);const P=this.getBBox().width;let R="";i.classes.length>0&&(R=i.classes.join(" "));let J=0;for(const[st,M]of L.entries())i.type===M&&(J=st%s.numberSectionStyles);let $="";return i.active&&(i.crit?$="activeCritText"+J:$="activeText"+J),i.done?i.crit?$=$+" doneCritText"+J:$=$+" doneText"+J:i.crit&&($=$+" critText"+J),i.milestone&&($+=" milestoneText"),i.vert&&($+=" vertText"),P>Z-E?Z+P+1.5*s.leftPadding>f?R+" taskTextOutsideLeft taskTextOutside"+J+" "+$:R+" taskTextOutsideRight taskTextOutside"+J+" "+$+" width-"+P:R+" taskText taskText"+J+" "+$+" width-"+P}),Yt().securityLevel==="sandbox"){let i;i=Xt("#i"+e);const E=i.nodes()[0].contentDocument;Y.filter(function(Z){return c.has(Z.id)}).each(function(Z){var P=E.querySelector("#"+CSS.escape(e+"-"+Z.id)),R=E.querySelector("#"+CSS.escape(e+"-"+Z.id+"-text"));const J=P.parentNode;var $=E.createElement("a");$.setAttribute("xlink:href",c.get(Z.id)),$.setAttribute("target","_top"),J.appendChild($),$.appendChild(P),$.appendChild(R)})}}d(N,"drawRects");function W(h,D,w,T,v,u,f,x){if(f.length===0&&x.length===0)return;let b,Y;for(const{startTime:P,endTime:R}of u)(b===void 0||P<b)&&(b=P),(Y===void 0||R>Y)&&(Y=R);if(!b||!Y)return;if(rt(Y).diff(rt(b),"year")>5){Tt.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 c=r.db.getDateFormat(),z=[];let i=null,E=rt(b);for(;E.valueOf()<=Y;)r.db.isInvalidDate(E,c,f,x)?i?i.end=E:i={start:E,end:E}:i&&(z.push(i),i=null),E=E.add(1,"d");X.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",P=>e+"-exclude-"+P.start.format("YYYY-MM-DD")).attr("x",P=>A(P.start.startOf("day"))+w).attr("y",s.gridLineStartPadding).attr("width",P=>A(P.end.endOf("day"))-A(P.start.startOf("day"))).attr("height",v-D-s.gridLineStartPadding).attr("transform-origin",function(P,R){return(A(P.start)+w+.5*(A(P.end)-A(P.start))).toString()+"px "+(R*h+.5*v).toString()+"px"}).attr("class","exclude-range")}d(W,"drawExcludeDays");function B(h,D,w,T){if(w<=0||h>D)return 1/0;const v=D-h,u=rt.duration({[T!=null?T:"day"]:w}).asMilliseconds();return u<=0?1/0:Math.ceil(v/u)}d(B,"getEstimatedTickCount");function j(h,D,w,T){var c;const v=r.db.getDateFormat(),u=r.db.getAxisFormat();let f;u?f=u:v==="D"?f="%d":f=(c=s.axisFormat)!=null?c:"%Y-%m-%d";let x=or(A).tickSize(-T+D+s.gridLineStartPadding).tickFormat(te(f));const Y=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||s.tickInterval);if(Y!==null){const z=parseInt(Y[1],10);if(isNaN(z)||z<=0)Tt.warn(`Invalid tick interval value: "${Y[1]}". Skipping custom tick interval.`);else{const i=Y[2],E=r.db.getWeekday()||s.weekday,Z=A.domain(),P=Z[0],R=Z[1],J=B(P,R,z,i);if(J>ke)Tt.warn(`The tick interval "${z}${i}" would generate ${J} ticks, which exceeds the maximum allowed (${ke}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(i){case"millisecond":x.ticks(Et.every(z));break;case"second":x.ticks(vt.every(z));break;case"minute":x.ticks($t.every(z));break;case"hour":x.ticks(Ht.every(z));break;case"day":x.ticks(xt.every(z));break;case"week":x.ticks(Je[E].every(z));break;case"month":x.ticks(Pt.every(z));break}}}if(X.append("g").attr("class","grid").attr("transform","translate("+h+", "+(T-50)+")").call(x).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||s.topAxis){let z=ar(A).tickSize(-T+D+s.gridLineStartPadding).tickFormat(te(f));if(Y!==null){const i=parseInt(Y[1],10);if(isNaN(i)||i<=0)Tt.warn(`Invalid tick interval value: "${Y[1]}". Skipping custom tick interval.`);else{const E=Y[2],Z=r.db.getWeekday()||s.weekday,P=A.domain(),R=P[0],J=P[1];if(B(R,J,i,E)<=ke)switch(E){case"millisecond":z.ticks(Et.every(i));break;case"second":z.ticks(vt.every(i));break;case"minute":z.ticks($t.every(i));break;case"hour":z.ticks(Ht.every(i));break;case"day":z.ticks(xt.every(i));break;case"week":z.ticks(Je[Z].every(i));break;case"month":z.ticks(Pt.every(i));break}}}X.append("g").attr("class","grid").attr("transform","translate("+h+", "+D+")").call(z).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(j,"makeGrid");function p(h,D){let w=0;const T=Object.keys(_).map(v=>[v,_[v]]);X.append("g").selectAll("text").data(T).enter().append(function(v){const u=v[0].split(zn.lineBreakRegex),f=-(u.length-1)/2,x=F.createElementNS("http://www.w3.org/2000/svg","text");x.setAttribute("dy",f+"em");for(const[b,Y]of u.entries()){const c=F.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttribute("alignment-baseline","central"),c.setAttribute("x","10"),b>0&&c.setAttribute("dy","1em"),c.textContent=Y,x.appendChild(c)}return x}).attr("x",10).attr("y",function(v,u){if(u>0)for(let f=0;f<u;f++)return w+=T[u-1][1],v[1]*h/2+w*h+D;else return v[1]*h/2+D}).attr("font-size",s.sectionFontSize).attr("class",function(v){for(const[u,f]of L.entries())if(v[0]===f)return"sectionTitle sectionTitle"+u%s.numberSectionStyles;return"sectionTitle"})}d(p,"vertLabels");function g(h,D,w,T){const v=r.db.getTodayMarker();if(v==="off")return;const u=X.append("g").attr("class","today"),f=new Date,x=u.append("line");x.attr("x1",A(f)+h).attr("x2",A(f)+h).attr("y1",s.titleTopMargin).attr("y2",T-s.titleTopMargin).attr("class","today"),v!==""&&x.attr("style",v.replace(/,/g,";"))}d(g,"drawToday");function y(h){const D={},w=[];for(let T=0,v=h.length;T<v;++T)Object.prototype.hasOwnProperty.call(D,h[T])||(D[h[T]]=!0,w.push(h[T]));return w}d(y,"checkUnique")},"draw"),Cs={setConf:ws,draw:Ms},Ss=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"),_s=Ss,Ls={parser:Hi,db:bs,renderer:Cs,styles:_s};export{Ls as diagram};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{p as hr}from"./chunk-4BX2VUAB-D0wgG8xH.js";import{I as $r}from"./chunk-QZHKN3VN-vOMf7cyc.js";import{a6 as fr,b4 as gr,b1 as ur,a1 as yr,a2 as xr,b2 as mr,b as $,a3 as Q,aE as v,a$ as pr,a4 as Y,bl as br,b8 as wr,t as kr,z as M,s as vr,T as Er,aS as Cr}from"./mermaid.core-DuagT3S2.js";import{p as Br}from"./wardley-L42UT6IY-DsEWk1n9.js";import"./index-CbSmh0fl.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Tr=Er.gitGraph,W=$(()=>vr({...Tr,...Q().gitGraph}),"getConfig"),i=new $r(()=>{const r=W(),e=r.mainBranchName,t=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:t}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function K(){return Cr({length:7})}$(K,"getID");function ar(r,e){const t=Object.create(null);return r.reduce((o,s)=>{const c=e(s);return t[c]||(t[c]=!0,o.push(s)),o},[])}$(ar,"uniqBy");var Lr=$(function(r){i.records.direction=r},"setDirection"),Mr=$(function(r){v.debug("options str",r),r=r==null?void 0:r.trim(),r=r||"{}";try{i.records.options=JSON.parse(r)}catch(e){v.error("error while parsing gitGraph options",e.message)}},"setOptions"),Rr=$(function(){return i.records.options},"getOptions"),Ir=$(function(r){let e=r.msg,t=r.id;const o=r.type;let s=r.tags;v.info("commit",e,t,o,s),v.debug("Entering commit:",e,t,o,s);const c=W();t=M.sanitizeText(t,c),e=M.sanitizeText(e,c),s=s==null?void 0:s.map(a=>M.sanitizeText(a,c));const n={id:t||i.records.seq+"-"+K(),message:e,seq:i.records.seq++,type:o!=null?o:p.NORMAL,tags:s!=null?s:[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,v.info("main branch",c.mainBranchName),i.records.commits.has(n.id)&&v.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),v.debug("in pushCommit "+n.id)},"commit"),Or=$(function(r){let e=r.name;const t=r.order;if(e=M.sanitizeText(e,W()),i.records.branches.has(e))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 ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:t}),nr(e),v.debug("in createBranch")},"branch"),_r=$(r=>{let e=r.branch,t=r.id;const o=r.type,s=r.tags,c=W();e=M.sanitizeText(e,c),t&&(t=M.sanitizeText(t,c));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(e),d=n?i.records.commits.get(n):void 0,l=a?i.records.commits.get(a):void 0;if(d&&l&&d.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},h}if(d===void 0||!d){const h=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},h}if(!i.records.branches.has(e)){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},h}if(l===void 0||!l){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},h}if(d===l){const h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},h}if(t&&i.records.commits.has(t)){const h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw h.hash={text:`merge ${e} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${e} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${e} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},h}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${e} 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!=null?s:[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),v.debug(i.records.branches),v.debug("in mergeBranch")},"merge"),Gr=$(function(r){let e=r.id,t=r.targetId,o=r.tags,s=r.parent;v.debug("Entering cherryPick:",e,t,o);const c=W();if(e=M.sanitizeText(e,c),t=M.sanitizeText(t,c),o=o==null?void 0:o.map(d=>M.sanitizeText(d,c)),s=M.sanitizeText(s,c),!e||!i.records.commits.has(e)){const d=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw d.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},d}const n=i.records.commits.get(e);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 ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const d=i.records.branches.get(i.records.currBranch);if(d===void 0||!d){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(d);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 ${e} ${t}`,token:`cherryPick ${e} ${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),v.debug(i.records.branches),v.debug("in cherryPick")}},"cherryPick"),nr=$(function(r){var e;if(r=M.sanitizeText(r,W()),i.records.branches.has(r)){i.records.currBranch=r;const t=i.records.branches.get(i.records.currBranch);t===void 0||!t?i.records.head=null:i.records.head=(e=i.records.commits.get(t))!=null?e:null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw t.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},t}},"checkout");function X(r,e,t){const o=r.indexOf(e);o===-1?r.push(t):r.splice(o,1,t)}$(X,"upsert");function Z(r){const e=r.reduce((s,c)=>s.seq>c.seq?s:c,r[0]);let t="";r.forEach(function(s){s===e?t+=" *":t+=" |"});const o=[t,e.id,e.seq];for(const s in i.records.branches)i.records.branches.get(s)===e.id&&o.push(s);if(v.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const s=i.records.commits.get(e.parents[0]);X(r,e,s),e.parents[1]&&r.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const s=i.records.commits.get(e.parents[0]);X(r,e,s)}}r=ar(r,s=>s.id),Z(r)}$(Z,"prettyPrintCommitHistory");var Hr=$(function(){v.debug(i.records.commits);const r=sr()[0];Z([r])},"prettyPrint"),Sr=$(function(){i.reset(),kr()},"clear"),Ar=$(function(){return[...i.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>{var o,s;return((o=e.order)!=null?o:0)-((s=t.order)!=null?s:0)}).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Dr=$(function(){return i.records.branches},"getBranches"),Pr=$(function(){return i.records.commits},"getCommits"),sr=$(function(){const r=[...i.records.commits.values()];return r.forEach(function(e){v.debug(e.id)}),r.sort((e,t)=>e.seq-t.seq),r},"getCommitsArray"),Wr=$(function(){return i.records.currBranch},"getCurrentBranch"),qr=$(function(){return i.records.direction},"getDirection"),Nr=$(function(){return i.records.head},"getHead"),or={commitType:p,getConfig:W,setDirection:Lr,setOptions:Mr,getOptions:Rr,commit:Ir,branch:Or,merge:_r,cherryPick:Gr,checkout:nr,prettyPrint:Hr,clear:Sr,getBranchesAsObjArray:Ar,getBranches:Dr,getCommits:Pr,getCommitsArray:sr,getCurrentBranch:Wr,getDirection:qr,getHead:Nr,setAccTitle:mr,getAccTitle:xr,getAccDescription:yr,setAccDescription:ur,setDiagramTitle:gr,getDiagramTitle:fr},Fr=$((r,e)=>{hr(r,e),r.dir&&e.setDirection(r.dir);for(const t of r.statements)zr(t,e)},"populate"),zr=$((r,e)=>{const o={Commit:$(s=>e.commit(Yr(s)),"Commit"),Branch:$(s=>e.branch(jr(s)),"Branch"),Merge:$(s=>e.merge(Ur(s)),"Merge"),Checkout:$(s=>e.checkout(Kr(s)),"Checkout"),CherryPicking:$(s=>e.cherryPick(Vr(s)),"CherryPicking")}[r.$type];o?o(r):v.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Yr=$(r=>{var t,o;return{id:r.id,msg:(t=r.message)!=null?t:"",type:r.type!==void 0?p[r.type]:p.NORMAL,tags:(o=r.tags)!=null?o:void 0}},"parseCommit"),jr=$(r=>{var t;return{name:r.name,order:(t=r.order)!=null?t:0}},"parseBranch"),Ur=$(r=>{var t,o;return{branch:r.branch,id:(t=r.id)!=null?t:"",type:r.type!==void 0?p[r.type]:void 0,tags:(o=r.tags)!=null?o:void 0}},"parseMerge"),Kr=$(r=>r.branch,"parseCheckout"),Vr=$(r=>{var t;return{id:r.id,targetId:"",tags:((t=r.tags)==null?void 0:t.length)===0?void 0:r.tags,parent:r.parent}},"parseCherryPicking"),Xr={parse:$(async r=>{const e=await Br("gitGraph",r);v.debug(e),Fr(e,or)},"parse")},S=10,A=40,R=4,G=2,D=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,rr=new Set(["redux-color","redux-dark-color"]),Jr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),P=$((r,e,t=!1)=>t&&r>0?(r-1)%(e-1)+1:r%e,"calcColorIndex"),B=new Map,T=new Map,j=30,F=new Map,U=[],H=0,x="LR",Qr=$(()=>{B.clear(),T.clear(),F.clear(),H=0,U=[],x="LR"},"clear"),cr=$(r=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|<br\s*\/?>/gi):r).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(),e.appendChild(s)}),e},"drawText"),ir=$(r=>{let e,t,o;return x==="BT"?(t=$((s,c)=>s<=c,"comparisonFunc"),o=1/0):(t=$((s,c)=>s>=c,"comparisonFunc"),o=0),r.forEach(s=>{var n,a;const c=x==="TB"||x=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;c!==void 0&&t(c,o)&&(e=s,o=c)}),e},"findClosestParent"),Zr=$(r=>{let e="",t=1/0;return r.forEach(o=>{const s=T.get(o).y;s<=t&&(e=o,t=s)}),e||void 0},"findClosestParentBT"),re=$((r,e,t)=>{let o=t,s=t;const c=[];r.forEach(n=>{const a=e.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=te(a),s=Math.max(o,s)):c.push(a),ae(a,o)}),o=s,c.forEach(n=>{ne(n,o,t)}),r.forEach(n=>{const a=e.get(n);if(a!=null&&a.parents.length){const d=Zr(a.parents);o=T.get(d).y-A,o<=s&&(s=o);const l=B.get(a.branch).pos,g=o-S;T.set(a.id,{x:l,y:g})}})},"setParallelBTPos"),ee=$(r=>{var o;const e=ir(r.parents.filter(s=>s!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);const t=(o=T.get(e))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return t},"findClosestParentPos"),te=$(r=>ee(r)+A,"calculateCommitPosition"),ae=$((r,e)=>{const t=B.get(r.branch);if(!t)throw new Error(`Branch not found for commit ${r.id}`);const o=t.pos,s=e+S;return T.set(r.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),ne=$((r,e,t)=>{const o=B.get(r.branch);if(!o)throw new Error(`Branch not found for commit ${r.id}`);const s=e+t,c=o.pos;T.set(r.id,{x:c,y:s})},"setRootPosition"),se=$((r,e,t,o,s,c)=>{const{theme:n}=Y(),a=V.has(n!=null?n:""),d=rr.has(n!=null?n:""),l=Jr.has(n!=null?n:"");if(c===p.HIGHLIGHT)r.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 ${e.id} commit-highlight${P(s,D,d)} ${o}-outer`),r.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 ${e.id} commit${P(s,D,d)} ${o}-inner`);else if(c===p.CHERRY_PICK)r.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{const g=r.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${e.id} commit${P(s,D,d)}`),c===p.MERGE){const f=r.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${e.id} commit${P(s,D,d)}`)}if(c===p.REVERSE){const f=r.append("path"),h=a?4:5;f.attr("d",`M ${t.x-h},${t.y-h}L${t.x+h},${t.y+h}M${t.x-h},${t.y+h}L${t.x+h},${t.y-h}`).attr("class",`commit ${o} ${e.id} commit${P(s,D,d)}`)}}},"drawCommitBullet"),oe=$((r,e,t,o,s)=>{var c;if(e.type!==p.CHERRY_PICK&&(e.customId&&e.type===p.MERGE||e.type!==p.MERGE)&&s.showCommitLabel){const n=r.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),d=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(e.id),l=(c=d.node())==null?void 0:c.getBBox();if(l&&(a.attr("x",t.posWithOffset-l.width/2-G).attr("y",t.y+13.5).attr("width",l.width+2*G).attr("height",l.height+2*G),x==="TB"||x==="BT"?(a.attr("x",t.x-(l.width+4*R+5)).attr("y",t.y-12),d.attr("x",t.x-(l.width+4*R)).attr("y",t.y+l.height-12)):d.attr("x",t.posWithOffset-l.width/2),s.rotateCommitLabel))if(x==="TB"||x==="BT")d.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(l.width+10)/25*9.5,f=10+l.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),ce=$((r,e,t,o)=>{var s;if(e.tags.length>0){let c=0,n=0,a=0;const d=[];for(const l of e.tags.reverse()){const g=r.insert("polygon"),f=r.append("circle"),h=r.append("text").attr("y",t.y-16-c).attr("class","tag-label").text(l),y=(s=h.node())==null?void 0:s.getBBox();if(!y)throw new Error("Tag bbox not found");n=Math.max(n,y.width),a=Math.max(a,y.height),h.attr("x",t.posWithOffset-y.width/2),d.push({tag:h,hole:f,rect:g,yOffset:c}),c+=20}for(const{tag:l,hole:g,rect:f,yOffset:h}of d){const y=a/2,u=t.y-19.2-h;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${o-n/2-R/2},${u+G}
|
|
3
|
+
${o-n/2-R/2},${u-G}
|
|
4
|
+
${t.posWithOffset-n/2-R},${u-y-G}
|
|
5
|
+
${t.posWithOffset+n/2+R},${u-y-G}
|
|
6
|
+
${t.posWithOffset+n/2+R},${u+y+G}
|
|
7
|
+
${t.posWithOffset-n/2-R},${u+y+G}`),g.attr("cy",u).attr("cx",o-n/2+R/2).attr("r",1.5).attr("class","tag-hole"),x==="TB"||x==="BT"){const m=o+h;f.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${t.x},${m+2}
|
|
9
|
+
${t.x},${m-2}
|
|
10
|
+
${t.x+S},${m-y-2}
|
|
11
|
+
${t.x+S+n+4},${m-y-2}
|
|
12
|
+
${t.x+S+n+4},${m+y+2}
|
|
13
|
+
${t.x+S},${m+y+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),g.attr("cx",t.x+R/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),l.attr("x",t.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+o+")")}}}},"drawCommitTags"),ie=$(r=>{var t;switch((t=r.customType)!=null?t:r.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"),de=$((r,e,t,o)=>{var c,n,a;const s={x:0,y:0};if(r.parents.length>0){const d=ir(r.parents);if(d){const l=(c=o.get(d))!=null?c:s;return e==="TB"?l.y+A:e==="BT"?((n=o.get(r.id))!=null?n:s).y-A:l.x+A}}else return e==="TB"?j:e==="BT"?((a=o.get(r.id))!=null?a:s).y-A:0;return 0},"calculatePosition"),le=$((r,e,t)=>{var d,l,g;const o=x==="BT"&&t?e:e+S,s=(d=B.get(r.branch))==null?void 0:d.pos,c=x==="TB"||x==="BT"?(l=B.get(r.branch))==null?void 0:l.pos:o;if(c===void 0||s===void 0)throw new Error(`Position were undefined for commit ${r.id}`);const n=V.has((g=Y().theme)!=null?g:""),a=x==="TB"||x==="BT"?o:s+(n?J/2+1:-2);return{x:c,y:a,posWithOffset:o}},"getCommitPosition"),tr=$((r,e,t,o)=>{var f;const s=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let n=x==="TB"||x==="BT"?j:0;const a=[...e.keys()],d=(f=o.parallelCommits)!=null?f:!1,l=$((h,y)=>{var E,b;const u=(E=e.get(h))==null?void 0:E.seq,m=(b=e.get(y))==null?void 0:b.seq;return u!==void 0&&m!==void 0?u-m:0},"sortKeys");let g=a.sort(l);x==="BT"&&(d&&re(g,e,n),g=g.reverse()),g.forEach(h=>{var m,E,b;const y=e.get(h);if(!y)throw new Error(`Commit not found for key ${h}`);d&&(n=de(y,x,n,T));const u=le(y,n,d);if(t){const I=ie(y),L=(m=y.customType)!=null?m:y.type,w=(b=(E=B.get(y.branch))==null?void 0:E.index)!=null?b:0;se(s,y,u,I,w,L),oe(c,y,u,n,o),ce(c,y,u,n)}x==="TB"||x==="BT"?T.set(y.id,{x:u.x,y:u.posWithOffset}):T.set(y.id,{x:u.posWithOffset,y:u.y}),n=x==="BT"&&d?n+A:n+A+S,n>H&&(H=n)})},"drawCommits"),he=$((r,e,t,o,s)=>{const n=(x==="TB"||x==="BT"?t.x<o.x:t.y<o.y)?e.branch:r.branch,a=$(l=>l.branch===n,"isOnBranchToGetCurve"),d=$(l=>l.seq>r.seq&&l.seq<e.seq,"isBetweenCommits");return[...s.values()].some(l=>d(l)&&a(l))},"shouldRerouteArrow"),z=$((r,e,t=0)=>{const o=r+Math.abs(r-e)/2;if(t>5)return o;if(U.every(n=>Math.abs(n-o)>=10))return U.push(o),o;const c=Math.abs(r-e);return z(r,e-c/5,t+1)},"findLane"),$e=$((r,e,t,o)=>{var m,E,b,I,L;const{theme:s}=Y(),c=rr.has(s!=null?s:""),n=T.get(e.id),a=T.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${t.id}`);const d=he(e,t,n,a,o);let l="",g="",f=0,h=0,y=(m=B.get(t.branch))==null?void 0:m.index;t.type===p.MERGE&&e.id!==t.parents[0]&&(y=(E=B.get(e.branch))==null?void 0:E.index);let u;if(d){l="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",f=10,h=10;const w=n.y<a.y?z(n.y,a.y):z(a.y,n.y),k=n.x<a.x?z(n.x,a.x):z(a.x,n.x);x==="TB"?n.x<a.x?u=`M ${n.x} ${n.y} L ${k-f} ${n.y} ${g} ${k} ${n.y+h} L ${k} ${a.y-f} ${l} ${k+h} ${a.y} L ${a.x} ${a.y}`:(y=(b=B.get(e.branch))==null?void 0:b.index,u=`M ${n.x} ${n.y} L ${k+f} ${n.y} ${l} ${k} ${n.y+h} L ${k} ${a.y-f} ${g} ${k-h} ${a.y} L ${a.x} ${a.y}`):x==="BT"?n.x<a.x?u=`M ${n.x} ${n.y} L ${k-f} ${n.y} ${l} ${k} ${n.y-h} L ${k} ${a.y+f} ${g} ${k+h} ${a.y} L ${a.x} ${a.y}`:(y=(I=B.get(e.branch))==null?void 0:I.index,u=`M ${n.x} ${n.y} L ${k+f} ${n.y} ${g} ${k} ${n.y-h} L ${k} ${a.y+f} ${l} ${k-h} ${a.y} L ${a.x} ${a.y}`):n.y<a.y?u=`M ${n.x} ${n.y} L ${n.x} ${w-f} ${l} ${n.x+h} ${w} L ${a.x-f} ${w} ${g} ${a.x} ${w+h} L ${a.x} ${a.y}`:(y=(L=B.get(e.branch))==null?void 0:L.index,u=`M ${n.x} ${n.y} L ${n.x} ${w+f} ${g} ${n.x+h} ${w} L ${a.x-f} ${w} ${l} ${a.x} ${w-h} L ${a.x} ${a.y}`)}else l="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,h=20,x==="TB"?(n.x<a.x&&(t.type===p.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${l} ${n.x+h} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${g} ${a.x} ${n.y+h} L ${a.x} ${a.y}`),n.x>a.x&&(l="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,h=20,t.type===p.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${g} ${n.x-h} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+f} ${n.y} ${l} ${a.x} ${n.y+h} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):x==="BT"?(n.x<a.x&&(t.type===p.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${g} ${n.x+h} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${l} ${a.x} ${n.y-h} L ${a.x} ${a.y}`),n.x>a.x&&(l="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,h=20,t.type===p.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${l} ${n.x-h} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+f} ${n.y} ${g} ${a.x} ${n.y-h} 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&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${g} ${a.x} ${n.y+h} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${l} ${n.x+h} ${a.y} L ${a.x} ${a.y}`),n.y>a.y&&(t.type===p.MERGE&&e.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${l} ${a.x} ${n.y-h} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${g} ${n.x+h} ${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");r.append("path").attr("d",u).attr("class","arrow arrow"+P(y,D,c))},"drawArrow"),fe=$((r,e)=>{const t=r.append("g").attr("class","commit-arrows");[...e.keys()].forEach(o=>{const s=e.get(o);s.parents&&s.parents.length>0&&s.parents.forEach(c=>{$e(t,e.get(c),s,e)})})},"drawArrows"),ge=$((r,e,t,o)=>{const{look:s,theme:c,themeVariables:n}=Y(),{dropShadow:a,THEME_COLOR_LIMIT:d}=n,l=V.has(c!=null?c:""),g=rr.has(c!=null?c:""),f=r.append("g");e.forEach((h,y)=>{var er;const u=P(y,l?d:D,g),m=(er=B.get(h.name))==null?void 0:er.pos;if(m===void 0)throw new Error(`Position not found for branch ${h.name}`);const E=x==="TB"||x==="BT"?m:l?m+J/2+1:m-2,b=f.append("line");b.attr("x1",0),b.attr("y1",E),b.attr("x2",H),b.attr("y2",E),b.attr("class","branch branch"+u),x==="TB"?(b.attr("y1",j),b.attr("x1",m),b.attr("y2",H),b.attr("x2",m)):x==="BT"&&(b.attr("y1",H),b.attr("x1",m),b.attr("y2",j),b.attr("x2",m)),U.push(E);const I=h.name,L=cr(I),w=f.insert("rect"),O=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);O.node().appendChild(L);const C=L.getBBox(),N=l?0:4,q=l?16:0,_=l?J:0;s==="neo"&&w.attr("data-look","neo"),w.attr("class","branchLabelBkg label"+u).attr("style",s==="neo"?`filter:${l?`url(#${o}-drop-shadow)`:a}`:"").attr("rx",N).attr("ry",N).attr("x",-C.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+10).attr("width",C.width+18+q).attr("height",C.height+4+_),O.attr("transform","translate("+(-C.width-14-(t.rotateCommitLabel===!0?30:0)+q/2)+", "+(E-C.height/2-2)+")"),x==="TB"?(w.attr("x",m-C.width/2-10).attr("y",0),O.attr("transform","translate("+(m-C.width/2-5)+", 0)"),l&&(w.attr("transform",`translate(${-q/2-3}, ${-_-10})`),O.attr("transform","translate("+(m-C.width/2-5)+", "+(-_*2+7)+")"))):x==="BT"?(w.attr("x",m-C.width/2-10).attr("y",H),O.attr("transform","translate("+(m-C.width/2-5)+", "+H+")"),l&&(w.attr("transform",`translate(${-q/2-3}, ${_+10})`),O.attr("transform","translate("+(m-C.width/2-5)+", "+(H+_*2+4)+")"))):w.attr("transform","translate(-19, "+(E-12-_/2)+")")})},"drawBranches"),ue=$(function(r,e,t,o,s){return B.set(r,{pos:e,index:t}),e+=50+(s?40:0)+(x==="TB"||x==="BT"?o.width/2:0),e},"setBranchPosition"),ye=$(function(r,e,t,o){var b,I;Qr(),v.debug("in gitgraph renderer",r+`
|
|
14
|
+
`,"id:",e,t);const s=o.db;if(!s.getConfig){v.error("getConfig method is not available on db");return}const c=s.getConfig(),n=(b=c.rotateCommitLabel)!=null?b:!1;F=s.getCommits();const a=s.getBranchesAsObjArray();x=s.getDirection();const d=pr(`[id="${e}"]`),{look:l,theme:g,themeVariables:f}=Y(),{useGradient:h,gradientStart:y,gradientStop:u,filterColor:m}=f;if(h){const L=d.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");L.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),L.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}l==="neo"&&V.has(g!=null?g:"")&&d.append("defs").append("filter").attr("id",e+"-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((L,w)=>{var _;const k=cr(L.name),O=d.append("g"),C=O.insert("g").attr("class","branchLabel"),N=C.insert("g").attr("class","label branch-label");(_=N.node())==null||_.appendChild(k);const q=k.getBBox();E=ue(L.name,E,w,q,n),N.remove(),C.remove(),O.remove()}),tr(d,F,!1,c),c.showBranches&&ge(d,a,c,e),fe(d,F),tr(d,F,!0,c),br.insertTitle(d,"gitTitleText",(I=c.titleTopMargin)!=null?I:0,s.getDiagramTitle()),wr(void 0,d,c.diagramPadding,c.useMaxWidth)},"draw"),xe={draw:ye},dr=8,lr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),me=new Set(["redux-color","redux-dark-color"]),pe=new Set(["neo","neo-dark"]),be=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),we=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ke=$(r=>{const{svgId:e}=r;let t="";if(r.useGradient&&e)for(let o=0;o<r.THEME_COLOR_LIMIT;o++)t+=`
|
|
15
|
+
.label${o} { fill: ${r.mainBkg}; stroke: url(${e}-gradient); stroke-width: ${r.strokeWidth};}
|
|
16
|
+
`;return t},"genGitGraphGradient"),ve=$(r=>{const e=Q(),{theme:t,themeVariables:o}=e,{borderColorArray:s}=o,c=lr.has(t);if(pe.has(t)){let n="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
17
|
+
.branch-label${a} { fill: ${r.nodeBorder};}
|
|
18
|
+
.commit${a} { stroke: ${r.nodeBorder}; }
|
|
19
|
+
.commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }
|
|
20
|
+
.arrow${a} { stroke: ${r.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${r.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${a} { stroke: ${r.nodeBorder}; }
|
|
23
|
+
${ke(r)}`;else{const d=a%dr;n+=`
|
|
24
|
+
.branch-label${a} { fill: ${r["gitBranchLabel"+d]}; }
|
|
25
|
+
.commit${a} { stroke: ${r["git"+d]}; fill: ${r["git"+d]}; }
|
|
26
|
+
.commit-highlight${a} { stroke: ${r["gitInv"+d]}; fill: ${r["gitInv"+d]}; }
|
|
27
|
+
.arrow${a} { stroke: ${r["git"+d]}; }
|
|
28
|
+
`}return n}else if(me.has(t)){let n="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
29
|
+
.branch-label${a} { fill: ${r.nodeBorder}; ${c?`font-weight:${r.noteFontWeight}`:""} }
|
|
30
|
+
.commit${a} { stroke: ${r.nodeBorder}; }
|
|
31
|
+
.commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.mainBkg}; }
|
|
32
|
+
.label${a} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${c?`font-weight:${r.noteFontWeight}`:""} }
|
|
33
|
+
.arrow${a} { stroke: ${r.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${r.nodeBorder}; }
|
|
35
|
+
`;else{const d=a%s.length;n+=`
|
|
36
|
+
.branch-label${a} { fill: ${r.nodeBorder}; ${c?`font-weight:${r.noteFontWeight}`:""} }
|
|
37
|
+
.commit${a} { stroke: ${s[d]}; fill: ${s[d]}; }
|
|
38
|
+
.commit-highlight${a} { stroke: ${s[d]}; fill: ${s[d]}; }
|
|
39
|
+
.label${a} { fill: ${be.has(t)?r.mainBkg:s[d]}; stroke: ${s[d]}; stroke-width: ${r.strokeWidth}; }
|
|
40
|
+
.arrow${a} { stroke: ${s[d]}; }
|
|
41
|
+
`}return n}else{let n="";for(let a=0;a<r.THEME_COLOR_LIMIT;a++)n+=`
|
|
42
|
+
.branch-label${a} { fill: ${r.nodeBorder}; ${c?`font-weight:${r.noteFontWeight}`:""} }
|
|
43
|
+
.commit${a} { stroke: ${r.nodeBorder}; }
|
|
44
|
+
.commit-highlight${a} { stroke: ${r.nodeBorder}; fill: ${r.nodeBorder}; }
|
|
45
|
+
.label${a} { fill: ${r.mainBkg}; stroke: ${r.nodeBorder}; stroke-width: ${r.strokeWidth}; ${c?`font-weight:${r.noteFontWeight}`:""}}
|
|
46
|
+
.arrow${a} { stroke: ${r.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${r.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${a} { stroke: ${r.nodeBorder}; }
|
|
49
|
+
`;return n}},"genColor"),Ee=$(r=>`${Array.from({length:r.THEME_COLOR_LIMIT},(e,t)=>t).map(e=>{const t=e%dr;return`
|
|
50
|
+
.branch-label${e} { fill: ${r["gitBranchLabel"+t]}; }
|
|
51
|
+
.commit${e} { stroke: ${r["git"+t]}; fill: ${r["git"+t]}; }
|
|
52
|
+
.commit-highlight${e} { stroke: ${r["gitInv"+t]}; fill: ${r["gitInv"+t]}; }
|
|
53
|
+
.label${e} { fill: ${r["git"+t]}; }
|
|
54
|
+
.arrow${e} { stroke: ${r["git"+t]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,"normalTheme"),Ce=$(r=>{var s;const e=Q(),{theme:t}=e,o=we.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?ve(r):Ee(r)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${r.strokeWidth};
|
|
70
|
+
stroke: ${(s=r.commitLineColor)!=null?s:r.lineColor};
|
|
71
|
+
stroke-dasharray: ${o?"4 2":"2"};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${o?r.nodeBorder:r.commitLabelColor}; ${o?`font-weight:${r.noteFontWeight};`:""}}
|
|
74
|
+
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${o?"transparent":r.commitLabelBackground}; opacity: ${o?"":.5}; }
|
|
75
|
+
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${o?r.mainBkg:r.tagLabelBackground}; stroke: ${o?r.nodeBorder:r.tagLabelBorder}; ${o?`filter:${r.dropShadow}`:""} }
|
|
77
|
+
.tag-hole { fill: ${r.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${o?r.mainBkg:r.primaryColor};
|
|
81
|
+
fill: ${o?r.mainBkg:r.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${o?r.mainBkg:r.primaryColor};
|
|
85
|
+
fill: ${o?r.mainBkg:r.primaryColor};
|
|
86
|
+
stroke-width: ${o?r.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${o?r.mainBkg:r.primaryColor};
|
|
92
|
+
fill: ${o?r.mainBkg:r.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: ${lr.has(t)?r.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${r.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},"getStyles"),Be=Ce,Oe={parser:Xr,db:or,renderer:xe,styles:Be};export{Oe as diagram};
|