auto-coder-web 0.1.100__py3-none-any.whl → 0.1.101__py3-none-any.whl
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.
- auto_coder_web/version.py +1 -1
- auto_coder_web/web/assets/HistoryPanel-gJupyfFp.js +2 -0
- auto_coder_web/web/assets/_basePickBy-CCSZj2pA.js +1 -0
- auto_coder_web/web/assets/_baseUniq-BTllNErT.js +1 -0
- auto_coder_web/web/assets/arc-BXjHXofo.js +1 -0
- auto_coder_web/web/assets/architectureDiagram-IEHRJDOE-DmIqWpdi.js +36 -0
- auto_coder_web/web/assets/blockDiagram-JOT3LUYC-DtACHz1R.js +121 -0
- auto_coder_web/web/assets/c4Diagram-VJAJSXHY-D3eQI0f_.js +10 -0
- auto_coder_web/web/assets/channel-C4EINljX.js +1 -0
- auto_coder_web/web/assets/chunk-4BMEZGHF-Ckc43zxH.js +1 -0
- auto_coder_web/web/assets/chunk-A2AXSNBT-CJ57iCVC.js +164 -0
- auto_coder_web/web/assets/chunk-AEK57VVT-o_ViTLZT.js +220 -0
- auto_coder_web/web/assets/chunk-D6G4REZN-2ayrGi-2.js +1 -0
- auto_coder_web/web/assets/chunk-RZ5BOZE2-csKhWZPs.js +1 -0
- auto_coder_web/web/assets/chunk-XZIHB7SX-G4BVkcV4.js +1 -0
- auto_coder_web/web/assets/classDiagram-GIVACNV2-DP0khH1f.js +1 -0
- auto_coder_web/web/assets/classDiagram-v2-COTLJTTW-DP0khH1f.js +1 -0
- auto_coder_web/web/assets/clone-Bg4iLekk.js +1 -0
- auto_coder_web/web/assets/{cssMode-dfzmIRw_.js → cssMode-BPyr8lmu.js} +1 -1
- auto_coder_web/web/assets/cytoscape.esm-BY7v1xhs.js +331 -0
- auto_coder_web/web/assets/dagre-OKDRZEBW-CCuMXe_S.js +4 -0
- auto_coder_web/web/assets/diagram-SSKATNLV-Bp-uorEf.js +43 -0
- auto_coder_web/web/assets/diagram-VNBRO52H-CKQFD3a_.js +24 -0
- auto_coder_web/web/assets/erDiagram-Q7BY3M3F-9eI0zHpI.js +60 -0
- auto_coder_web/web/assets/flowDiagram-4HSFHLVR-3RcC2Ccp.js +161 -0
- auto_coder_web/web/assets/{freemarker2-CD79_SV-.js → freemarker2-BU5Z-fJI.js} +1 -1
- auto_coder_web/web/assets/ganttDiagram-APWFNJXF-D2cSA1Cd.js +257 -0
- auto_coder_web/web/assets/gitGraphDiagram-7IBYFJ6S-D_9htwjS.js +65 -0
- auto_coder_web/web/assets/graph-cCt1e4eU.js +1 -0
- auto_coder_web/web/assets/{handlebars-B_inQ7Ga.js → handlebars-mkin9J8g.js} +2 -2
- auto_coder_web/web/assets/{html-s8IXsV2v.js → html-DtBbZIcO.js} +1 -1
- auto_coder_web/web/assets/{htmlMode-BNdCO4Um.js → htmlMode-RbI6rOrZ.js} +1 -1
- auto_coder_web/web/assets/infoDiagram-PH2N3AL5-BYP4b-4i.js +2 -0
- auto_coder_web/web/assets/init-Gi6I4Gst.js +1 -0
- auto_coder_web/web/assets/{javascript-D_ZBRKl9.js → javascript-f2lALfl-.js} +1 -1
- auto_coder_web/web/assets/journeyDiagram-U35MCT3I-B89eezTp.js +138 -0
- auto_coder_web/web/assets/{jsonMode-lWocgRYn.js → jsonMode-D_iny90a.js} +1 -1
- auto_coder_web/web/assets/kanban-definition-NDS4AKOZ-DXZ3QE3M.js +88 -0
- auto_coder_web/web/assets/katex-ChWnQ-fc.js +261 -0
- auto_coder_web/web/assets/layout-DEspB-Nn.js +1 -0
- auto_coder_web/web/assets/linear-DvyAnBDb.js +1 -0
- auto_coder_web/web/assets/{liquid-CPaH0eVF.js → liquid-BLUt9KkL.js} +1 -1
- auto_coder_web/web/assets/main.js +637 -426
- auto_coder_web/web/assets/{mdx-DRx1b0qs.js → mdx-CiikeQLk.js} +1 -1
- auto_coder_web/web/assets/mindmap-definition-ALO5MXBD-BK4Kd7cQ.js +95 -0
- auto_coder_web/web/assets/ordinal-Cboi1Yqb.js +1 -0
- auto_coder_web/web/assets/pieDiagram-IB7DONF6-UuIn9g8t.js +30 -0
- auto_coder_web/web/assets/{python-5rTPwuda.js → python-BQGAmGD2.js} +1 -1
- auto_coder_web/web/assets/quadrantDiagram-7GDLP6J5-DdkeEcG5.js +7 -0
- auto_coder_web/web/assets/radar-MK3ICKWK-Bzl6RmHe.js +128 -0
- auto_coder_web/web/assets/{razor-zn6WfQ9V.js → razor-CMmYJAVf.js} +1 -1
- auto_coder_web/web/assets/requirementDiagram-KVF5MWMF-DYvXHPCT.js +64 -0
- auto_coder_web/web/assets/sankeyDiagram-QLVOVGJD-C3fiDKw0.js +10 -0
- auto_coder_web/web/assets/sequenceDiagram-X6HHIX6F-CifpUH-p.js +122 -0
- auto_coder_web/web/assets/stateDiagram-DGXRK772-x-pqGGcU.js +1 -0
- auto_coder_web/web/assets/stateDiagram-v2-YXO3MK2T-BhO6ozG8.js +1 -0
- auto_coder_web/web/assets/timeline-definition-BDJGKUSR-BmbgmEKE.js +61 -0
- auto_coder_web/web/assets/{tsMode-CkhihvQ0.js → tsMode-LqKHR7gR.js} +4 -4
- auto_coder_web/web/assets/{typescript-DH2E4fY1.js → typescript-KnQ9Sglt.js} +2 -2
- auto_coder_web/web/assets/{xml-kipCCfsB.js → xml-G2dyiWZM.js} +2 -2
- auto_coder_web/web/assets/xychartDiagram-VJFVF3MP-DnV9OlaB.js +7 -0
- auto_coder_web/web/assets/{yaml-BI9EB_1X.js → yaml-D_70BM1U.js} +1 -1
- {auto_coder_web-0.1.100.dist-info → auto_coder_web-0.1.101.dist-info}/METADATA +2 -2
- {auto_coder_web-0.1.100.dist-info → auto_coder_web-0.1.101.dist-info}/RECORD +67 -23
- auto_coder_web/web/assets/HistoryPanel-DAeswjWO.js +0 -2
- {auto_coder_web-0.1.100.dist-info → auto_coder_web-0.1.101.dist-info}/WHEEL +0 -0
- {auto_coder_web-0.1.100.dist-info → auto_coder_web-0.1.101.dist-info}/entry_points.txt +0 -0
- {auto_coder_web-0.1.100.dist-info → auto_coder_web-0.1.101.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,257 @@
|
|
1
|
+
import{bk as Jt,bl as Sn,bm as Kt,bn as $t,bo as en,bp as it,bq as Fn,b7 as Un,_ as f,g as En,s as In,q as An,p as Wn,a as Yn,b as Ln,c as _e,d as qe,e as On,br as ee,l as Je,k as Nn,j as Vn,y as Hn,u as Pn,bs as Rn,bt as zn}from"./main.js";import{b as Bn,t as Wt,c as qn,a as Zn,l as Xn}from"./linear-DvyAnBDb.js";import{i as jn}from"./init-Gi6I4Gst.js";function Qn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Gn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Jn(e){return e}var Xe=1,at=2,gt=3,Ze=4,Yt=1e-6;function Kn(e){return"translate("+e+",0)"}function $n(e){return"translate(0,"+e+")"}function er(e){return t=>+e(t)}function tr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nr(){return!this.__axis}function tn(e,t){var n=[],r=null,i=null,a=6,s=6,C=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,T=e===Xe||e===Ze?-1:1,v=e===Ze||e===at?"x":"y",I=e===Xe||e===gt?Kn:$n;function b(k){var R=r??(t.ticks?t.ticks.apply(t,n):t.domain()),A=i??(t.tickFormat?t.tickFormat.apply(t,n):Jn),te=Math.max(a,0)+C,re=t.range(),ne=+re[0]+M,Z=+re[re.length-1]+M,X=(t.bandwidth?tr:er)(t.copy(),M),$=k.selection?k.selection():k,x=$.selectAll(".domain").data([null]),N=$.selectAll(".tick").data(R,t).order(),w=N.exit(),F=N.enter().append("g").attr("class","tick"),D=N.select("line"),_=N.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(v+"2",T*a)),_=_.merge(F.append("text").attr("fill","currentColor").attr(v,T*te).attr("dy",e===Xe?"0em":e===gt?"0.71em":"0.32em")),k!==$&&(x=x.transition(k),N=N.transition(k),D=D.transition(k),_=_.transition(k),w=w.transition(k).attr("opacity",Yt).attr("transform",function(p){return isFinite(p=X(p))?I(p+M):this.getAttribute("transform")}),F.attr("opacity",Yt).attr("transform",function(p){var W=this.parentNode.__axis;return I((W&&isFinite(W=W(p))?W:X(p))+M)})),w.remove(),x.attr("d",e===Ze||e===at?s?"M"+T*s+","+ne+"H"+M+"V"+Z+"H"+T*s:"M"+M+","+ne+"V"+Z:s?"M"+ne+","+T*s+"V"+M+"H"+Z+"V"+T*s:"M"+ne+","+M+"H"+Z),N.attr("opacity",1).attr("transform",function(p){return I(X(p)+M)}),D.attr(v+"2",T*a),_.attr(v,T*te).text(A),$.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===at?"start":e===Ze?"end":"middle"),$.each(function(){this.__axis=X})}return b.scale=function(k){return arguments.length?(t=k,b):t},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(k){return arguments.length?(n=k==null?[]:Array.from(k),b):n.slice()},b.tickValues=function(k){return arguments.length?(r=k==null?null:Array.from(k),b):r&&r.slice()},b.tickFormat=function(k){return arguments.length?(i=k,b):i},b.tickSize=function(k){return arguments.length?(a=s=+k,b):a},b.tickSizeInner=function(k){return arguments.length?(a=+k,b):a},b.tickSizeOuter=function(k){return arguments.length?(s=+k,b):s},b.tickPadding=function(k){return arguments.length?(C=+k,b):C},b.offset=function(k){return arguments.length?(M=+k,b):M},b}function rr(e){return tn(Xe,e)}function ir(e){return tn(gt,e)}const ar=Math.PI/180,sr=180/Math.PI,Ke=18,nn=.96422,rn=1,an=.82521,sn=4/29,Me=6/29,on=3*Me*Me,or=Me*Me*Me;function cn(e){if(e instanceof le)return new le(e.l,e.a,e.b,e.opacity);if(e instanceof de)return ln(e);e instanceof Jt||(e=Sn(e));var t=lt(e.r),n=lt(e.g),r=lt(e.b),i=st((.2225045*t+.7168786*n+.0606169*r)/rn),a,s;return t===n&&n===r?a=s=i:(a=st((.4360747*t+.3850649*n+.1430804*r)/nn),s=st((.0139322*t+.0971045*n+.7141733*r)/an)),new le(116*i-16,500*(a-i),200*(i-s),e.opacity)}function cr(e,t,n,r){return arguments.length===1?cn(e):new le(e,t,n,r??1)}function le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Kt(le,cr,$t(en,{brighter(e){return new le(this.l+Ke*(e??1),this.a,this.b,this.opacity)},darker(e){return new le(this.l-Ke*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nn*ot(t),e=rn*ot(e),n=an*ot(n),new Jt(ct(3.1338561*t-1.6168667*e-.4906146*n),ct(-.9787684*t+1.9161415*e+.033454*n),ct(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function st(e){return e>or?Math.pow(e,1/3):e/on+sn}function ot(e){return e>Me?e*e*e:on*(e-sn)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function lr(e){if(e instanceof de)return new de(e.h,e.c,e.l,e.opacity);if(e instanceof le||(e=cn(e)),e.a===0&&e.b===0)return new de(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sr;return new de(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function yt(e,t,n,r){return arguments.length===1?lr(e):new de(e,t,n,r??1)}function de(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ln(e){if(isNaN(e.h))return new le(e.l,0,0,e.opacity);var t=e.h*ar;return new le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kt(de,yt,$t(en,{brighter(e){return new de(this.h,this.c,this.l+Ke*(e??1),this.opacity)},darker(e){return new de(this.h,this.c,this.l-Ke*(e??1),this.opacity)},rgb(){return ln(this).rgb()}}));function ur(e){return function(t,n){var r=e((t=yt(t)).h,(n=yt(n)).h),i=it(t.c,n.c),a=it(t.l,n.l),s=it(t.opacity,n.opacity);return function(C){return t.h=r(C),t.c=i(C),t.l=a(C),t.opacity=s(C),t+""}}}const fr=ur(Fn);function hr(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}const ut=new Date,ft=new Date;function Q(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),C=i.ceil(a);return a-s<C-a?s:C},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,C)=>{const M=[];if(a=i.ceil(a),C=C==null?1:Math.floor(C),!(a<s)||!(C>0))return M;let T;do M.push(T=new Date(+a)),t(a,C),e(a);while(T<a&&a<s);return M},i.filter=a=>Q(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,C)=>{if(s>=s)if(C<0)for(;++C<=0;)for(;t(s,-1),!a(s););else for(;--C>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(ut.setTime(+a),ft.setTime(+s),e(ut),e(ft),Math.floor(n(ut,ft))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Fe=Q(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Q(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fe);Fe.range;const me=1e3,ae=me*60,ge=ae*60,ye=ge*24,bt=ye*7,Lt=ye*30,ht=ye*365,pe=Q(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCSeconds());pe.range;const Ye=Q(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me)},(e,t)=>{e.setTime(+e+t*ae)},(e,t)=>(t-e)/ae,e=>e.getMinutes());Ye.range;const dr=Q(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ae)},(e,t)=>(t-e)/ae,e=>e.getUTCMinutes());dr.range;const Le=Q(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me-e.getMinutes()*ae)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getHours());Le.range;const mr=Q(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCHours());mr.range;const Te=Q(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ae)/ye,e=>e.getDate()-1);Te.range;const xt=Q(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>e.getUTCDate()-1);xt.range;const gr=Q(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>Math.floor(e/ye));gr.range;function xe(e){return Q(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ae)/bt)}const Ve=xe(0),Oe=xe(1),un=xe(2),fn=xe(3),ve=xe(4),hn=xe(5),dn=xe(6);Ve.range;Oe.range;un.range;fn.range;ve.range;hn.range;dn.range;function we(e){return Q(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/bt)}const mn=we(0),$e=we(1),yr=we(2),kr=we(3),Ue=we(4),pr=we(5),Tr=we(6);mn.range;$e.range;yr.range;kr.range;Ue.range;pr.range;Tr.range;const Ne=Q(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ne.range;const vr=Q(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());vr.range;const ke=Q(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ke.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Q(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ke.range;const be=Q(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());be.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Q(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});be.range;function br(e,t,n,r,i,a){const s=[[pe,1,me],[pe,5,5*me],[pe,15,15*me],[pe,30,30*me],[a,1,ae],[a,5,5*ae],[a,15,15*ae],[a,30,30*ae],[i,1,ge],[i,3,3*ge],[i,6,6*ge],[i,12,12*ge],[r,1,ye],[r,2,2*ye],[n,1,bt],[t,1,Lt],[t,3,3*Lt],[e,1,ht]];function C(T,v,I){const b=v<T;b&&([T,v]=[v,T]);const k=I&&typeof I.range=="function"?I:M(T,v,I),R=k?k.range(T,+v+1):[];return b?R.reverse():R}function M(T,v,I){const b=Math.abs(v-T)/I,k=Bn(([,,te])=>te).right(s,b);if(k===s.length)return e.every(Wt(T/ht,v/ht,I));if(k===0)return Fe.every(Math.max(Wt(T,v,I),1));const[R,A]=s[b/s[k-1][2]<s[k][2]/b?k-1:k];return R.every(A)}return[C,M]}const[xr,wr]=br(ke,Ne,Ve,Te,Le,Ye);function dt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function mt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ie(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Cr(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,C=e.months,M=e.shortMonths,T=Ae(i),v=We(i),I=Ae(a),b=We(a),k=Ae(s),R=We(s),A=Ae(C),te=We(C),re=Ae(M),ne=We(M),Z={a:m,A:U,b:c,B:h,c:null,d:Rt,e:Rt,f:Xr,g:ri,G:ai,H:Br,I:qr,j:Zr,L:gn,m:jr,M:Qr,p:o,q:H,Q:qt,s:Zt,S:Gr,u:Jr,U:Kr,V:$r,w:ei,W:ti,x:null,X:null,y:ni,Y:ii,Z:si,"%":Bt},X={a:L,A:V,b:G,B:z,c:null,d:zt,e:zt,f:ui,g:vi,G:xi,H:oi,I:ci,j:li,L:kn,m:fi,M:hi,p:B,q:se,Q:qt,s:Zt,S:di,u:mi,U:gi,V:yi,w:ki,W:pi,x:null,X:null,y:Ti,Y:bi,Z:wi,"%":Bt},$={a:D,A:_,b:p,B:W,c:u,d:Ht,e:Ht,f:Hr,g:Vt,G:Nt,H:Pt,I:Pt,j:Lr,L:Vr,m:Yr,M:Or,p:F,q:Wr,Q:Rr,s:zr,S:Nr,u:Fr,U:Ur,V:Er,w:Sr,W:Ir,x:d,X:y,y:Vt,Y:Nt,Z:Ar,"%":Pr};Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(t,Z),X.x=x(n,X),X.X=x(r,X),X.c=x(t,X);function x(g,E){return function(Y){var l=[],K=-1,S=0,q=g.length,P,oe,ue;for(Y instanceof Date||(Y=new Date(+Y));++K<q;)g.charCodeAt(K)===37&&(l.push(g.slice(S,K)),(oe=Ot[P=g.charAt(++K)])!=null?P=g.charAt(++K):oe=P==="e"?" ":"0",(ue=E[P])&&(P=ue(Y,oe)),l.push(P),S=K+1);return l.push(g.slice(S,K)),l.join("")}}function N(g,E){return function(Y){var l=Ie(1900,void 0,1),K=w(l,g,Y+="",0),S,q;if(K!=Y.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(E&&!("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?(S=mt(Ie(l.y,0,1)),q=S.getUTCDay(),S=q>4||q===0?$e.ceil(S):$e(S),S=xt.offset(S,(l.V-1)*7),l.y=S.getUTCFullYear(),l.m=S.getUTCMonth(),l.d=S.getUTCDate()+(l.w+6)%7):(S=dt(Ie(l.y,0,1)),q=S.getDay(),S=q>4||q===0?Oe.ceil(S):Oe(S),S=Te.offset(S,(l.V-1)*7),l.y=S.getFullYear(),l.m=S.getMonth(),l.d=S.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?mt(Ie(l.y,0,1)).getUTCDay():dt(Ie(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,mt(l)):dt(l)}}function w(g,E,Y,l){for(var K=0,S=E.length,q=Y.length,P,oe;K<S;){if(l>=q)return-1;if(P=E.charCodeAt(K++),P===37){if(P=E.charAt(K++),oe=$[P in Ot?E.charAt(K++):P],!oe||(l=oe(g,Y,l))<0)return-1}else if(P!=Y.charCodeAt(l++))return-1}return l}function F(g,E,Y){var l=T.exec(E.slice(Y));return l?(g.p=v.get(l[0].toLowerCase()),Y+l[0].length):-1}function D(g,E,Y){var l=k.exec(E.slice(Y));return l?(g.w=R.get(l[0].toLowerCase()),Y+l[0].length):-1}function _(g,E,Y){var l=I.exec(E.slice(Y));return l?(g.w=b.get(l[0].toLowerCase()),Y+l[0].length):-1}function p(g,E,Y){var l=re.exec(E.slice(Y));return l?(g.m=ne.get(l[0].toLowerCase()),Y+l[0].length):-1}function W(g,E,Y){var l=A.exec(E.slice(Y));return l?(g.m=te.get(l[0].toLowerCase()),Y+l[0].length):-1}function u(g,E,Y){return w(g,t,E,Y)}function d(g,E,Y){return w(g,n,E,Y)}function y(g,E,Y){return w(g,r,E,Y)}function m(g){return s[g.getDay()]}function U(g){return a[g.getDay()]}function c(g){return M[g.getMonth()]}function h(g){return C[g.getMonth()]}function o(g){return i[+(g.getHours()>=12)]}function H(g){return 1+~~(g.getMonth()/3)}function L(g){return s[g.getUTCDay()]}function V(g){return a[g.getUTCDay()]}function G(g){return M[g.getUTCMonth()]}function z(g){return C[g.getUTCMonth()]}function B(g){return i[+(g.getUTCHours()>=12)]}function se(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var E=x(g+="",Z);return E.toString=function(){return g},E},parse:function(g){var E=N(g+="",!1);return E.toString=function(){return g},E},utcFormat:function(g){var E=x(g+="",X);return E.toString=function(){return g},E},utcParse:function(g){var E=N(g+="",!0);return E.toString=function(){return g},E}}}var Ot={"-":"",_:" ",0:"0"},J=/^\s*\d+/,Dr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function O(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Mr(e){return e.replace(_r,"\\$&")}function Ae(e){return new RegExp("^(?:"+e.map(Mr).join("|")+")","i")}function We(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Sr(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nt(e,t,n){var r=J.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Vt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ar(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Yr(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ht(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=J.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pr(e,t,n){var r=Dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Rr(e,t,n){var r=J.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=J.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rt(e,t){return O(e.getDate(),t,2)}function Br(e,t){return O(e.getHours(),t,2)}function qr(e,t){return O(e.getHours()%12||12,t,2)}function Zr(e,t){return O(1+Te.count(ke(e),e),t,3)}function gn(e,t){return O(e.getMilliseconds(),t,3)}function Xr(e,t){return gn(e,t)+"000"}function jr(e,t){return O(e.getMonth()+1,t,2)}function Qr(e,t){return O(e.getMinutes(),t,2)}function Gr(e,t){return O(e.getSeconds(),t,2)}function Jr(e){var t=e.getDay();return t===0?7:t}function Kr(e,t){return O(Ve.count(ke(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||t===0?ve(e):ve.ceil(e)}function $r(e,t){return e=yn(e),O(ve.count(ke(e),e)+(ke(e).getDay()===4),t,2)}function ei(e){return e.getDay()}function ti(e,t){return O(Oe.count(ke(e)-1,e),t,2)}function ni(e,t){return O(e.getFullYear()%100,t,2)}function ri(e,t){return e=yn(e),O(e.getFullYear()%100,t,2)}function ii(e,t){return O(e.getFullYear()%1e4,t,4)}function ai(e,t){var n=e.getDay();return e=n>=4||n===0?ve(e):ve.ceil(e),O(e.getFullYear()%1e4,t,4)}function si(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+O(t/60|0,"0",2)+O(t%60,"0",2)}function zt(e,t){return O(e.getUTCDate(),t,2)}function oi(e,t){return O(e.getUTCHours(),t,2)}function ci(e,t){return O(e.getUTCHours()%12||12,t,2)}function li(e,t){return O(1+xt.count(be(e),e),t,3)}function kn(e,t){return O(e.getUTCMilliseconds(),t,3)}function ui(e,t){return kn(e,t)+"000"}function fi(e,t){return O(e.getUTCMonth()+1,t,2)}function hi(e,t){return O(e.getUTCMinutes(),t,2)}function di(e,t){return O(e.getUTCSeconds(),t,2)}function mi(e){var t=e.getUTCDay();return t===0?7:t}function gi(e,t){return O(mn.count(be(e)-1,e),t,2)}function pn(e){var t=e.getUTCDay();return t>=4||t===0?Ue(e):Ue.ceil(e)}function yi(e,t){return e=pn(e),O(Ue.count(be(e),e)+(be(e).getUTCDay()===4),t,2)}function ki(e){return e.getUTCDay()}function pi(e,t){return O($e.count(be(e)-1,e),t,2)}function Ti(e,t){return O(e.getUTCFullYear()%100,t,2)}function vi(e,t){return e=pn(e),O(e.getUTCFullYear()%100,t,2)}function bi(e,t){return O(e.getUTCFullYear()%1e4,t,4)}function xi(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ue(e):Ue.ceil(e),O(e.getUTCFullYear()%1e4,t,4)}function wi(){return"+0000"}function Bt(){return"%"}function qt(e){return+e}function Zt(e){return Math.floor(+e/1e3)}var De,et;Ci({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 Ci(e){return De=Cr(e),et=De.format,De.parse,De.utcFormat,De.utcParse,De}function Di(e){return new Date(e)}function _i(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,t,n,r,i,a,s,C,M,T){var v=qn(),I=v.invert,b=v.domain,k=T(".%L"),R=T(":%S"),A=T("%I:%M"),te=T("%I %p"),re=T("%a %d"),ne=T("%b %d"),Z=T("%B"),X=T("%Y");function $(x){return(M(x)<x?k:C(x)<x?R:s(x)<x?A:a(x)<x?te:r(x)<x?i(x)<x?re:ne:n(x)<x?Z:X)(x)}return v.invert=function(x){return new Date(I(x))},v.domain=function(x){return arguments.length?b(Array.from(x,_i)):b().map(Di)},v.ticks=function(x){var N=b();return e(N[0],N[N.length-1],x??10)},v.tickFormat=function(x,N){return N==null?$:T(N)},v.nice=function(x){var N=b();return(!x||typeof x.range!="function")&&(x=t(N[0],N[N.length-1],x??10)),x?b(hr(N,x)):v},v.copy=function(){return Zn(v,Tn(e,t,n,r,i,a,s,C,M,T))},v}function Mi(){return jn.apply(Tn(xr,wr,ke,Ne,Ve,Te,Le,Ye,pe,et).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var je={exports:{}},Si=je.exports,Xt;function Fi(){return Xt||(Xt=1,function(e,t){(function(n,r){e.exports=r()})(Si,function(){var n="day";return function(r,i,a){var s=function(T){return T.add(4-T.isoWeekday(),n)},C=i.prototype;C.isoWeekYear=function(){return s(this).year()},C.isoWeek=function(T){if(!this.$utils().u(T))return this.add(7*(T-this.isoWeek()),n);var v,I,b,k,R=s(this),A=(v=this.isoWeekYear(),I=this.$u,b=(I?a.utc:a)().year(v).startOf("year"),k=4-b.isoWeekday(),b.isoWeekday()>4&&(k+=7),b.add(k,n));return R.diff(A,"week")+1},C.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=C.startOf;C.startOf=function(T,v){var I=this.$utils(),b=!!I.u(v)||v;return I.p(T)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,v)}}})}(je)),je.exports}var Ui=Fi();const Ei=Un(Ui);var kt=function(){var e=f(function(W,u,d,y){for(d=d||{},y=W.length;y--;d[W[y]]=u);return d},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],s=[1,30],C=[1,31],M=[1,32],T=[1,33],v=[1,34],I=[1,9],b=[1,10],k=[1,11],R=[1,12],A=[1,13],te=[1,14],re=[1,15],ne=[1,16],Z=[1,19],X=[1,20],$=[1,21],x=[1,22],N=[1,23],w=[1,25],F=[1,35],D={trace:f(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:f(function(u,d,y,m,U,c,h){var o=c.length-1;switch(U){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:s,17:C,18:M,19:18,20:T,21:v,22:I,23:b,24:k,25:R,26:A,27:te,28:re,29:ne,30:Z,31:X,33:$,35:x,36:N,37:24,38:w,40:F},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:s,17:C,18:M,19:18,20:T,21:v,22:I,23:b,24:k,25:R,26:A,27:te,28:re,29:ne,30:Z,31:X,33:$,35:x,36:N,37:24,38:w,40:F},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:f(function(u,d){if(d.recoverable)this.trace(u);else{var y=new Error(u);throw y.hash=d,y}},"parseError"),parse:f(function(u){var d=this,y=[0],m=[],U=[null],c=[],h=this.table,o="",H=0,L=0,V=2,G=1,z=c.slice.call(arguments,1),B=Object.create(this.lexer),se={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(se.yy[g]=this.yy[g]);B.setInput(u,se.yy),se.yy.lexer=B,se.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var E=B.yylloc;c.push(E);var Y=B.options&&B.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ie){y.length=y.length-2*ie,U.length=U.length-ie,c.length=c.length-ie}f(l,"popStack");function K(){var ie;return ie=m.pop()||B.lex()||G,typeof ie!="number"&&(ie instanceof Array&&(m=ie,ie=m.pop()),ie=d.symbols_[ie]||ie),ie}f(K,"lex");for(var S,q,P,oe,ue={},ze,fe,At,Be;;){if(q=y[y.length-1],this.defaultActions[q]?P=this.defaultActions[q]:((S===null||typeof S>"u")&&(S=K()),P=h[q]&&h[q][S]),typeof P>"u"||!P.length||!P[0]){var rt="";Be=[];for(ze in h[q])this.terminals_[ze]&&ze>V&&Be.push("'"+this.terminals_[ze]+"'");B.showPosition?rt="Parse error on line "+(H+1)+`:
|
2
|
+
`+B.showPosition()+`
|
3
|
+
Expecting `+Be.join(", ")+", got '"+(this.terminals_[S]||S)+"'":rt="Parse error on line "+(H+1)+": Unexpected "+(S==G?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(rt,{text:B.match,token:this.terminals_[S]||S,line:B.yylineno,loc:E,expected:Be})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(P[0]){case 1:y.push(S),U.push(B.yytext),c.push(B.yylloc),y.push(P[1]),S=null,L=B.yyleng,o=B.yytext,H=B.yylineno,E=B.yylloc;break;case 2:if(fe=this.productions_[P[1]][1],ue.$=U[U.length-fe],ue._$={first_line:c[c.length-(fe||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(fe||1)].first_column,last_column:c[c.length-1].last_column},Y&&(ue._$.range=[c[c.length-(fe||1)].range[0],c[c.length-1].range[1]]),oe=this.performAction.apply(ue,[o,L,H,se.yy,P[1],U,c].concat(z)),typeof oe<"u")return oe;fe&&(y=y.slice(0,-1*fe*2),U=U.slice(0,-1*fe),c=c.slice(0,-1*fe)),y.push(this.productions_[P[1]][0]),U.push(ue.$),c.push(ue._$),At=h[y[y.length-2]][y[y.length-1]],y.push(At);break;case 3:return!0}}return!0},"parse")},_=function(){var W={EOF:1,parseError:f(function(d,y){if(this.yy.parser)this.yy.parser.parseError(d,y);else throw new Error(d)},"parseError"),setInput:f(function(u,d){return this.yy=d||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:f(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var d=u.match(/(?:\r\n?|\n).*/g);return d?(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:f(function(u){var d=u.length,y=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var U=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:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(u){this.unput(this.match.slice(u))},"less"),pastInput:f(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:f(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:f(function(){var u=this.pastInput(),d=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
5
|
+
`+d+"^"},"showPosition"),test_match:f(function(u,d){var y,m,U;if(this.options.backtrack_lexer&&(U={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&&(U.yylloc.range=this.yylloc.range.slice(0))),m=u[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],y=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var c in U)this[c]=U[c];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,d,y,m;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),c=0;c<U.length;c++)if(y=this._input.match(this.rules[U[c]]),y&&(!d||y[0].length>d[0].length)){if(d=y,m=c,this.options.backtrack_lexer){if(u=this.test_match(y,U[c]),u!==!1)return u;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(u=this.test_match(d,U[m]),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:f(function(){var d=this.next();return d||this.lex()},"lex"),begin:f(function(d){this.conditionStack.push(d)},"begin"),popState:f(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(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:f(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:f(function(d){this.begin(d)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(d,y,m,U){switch(m){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return W}();D.lexer=_;function p(){this.yy={}}return f(p,"Parser"),p.prototype=D,D.Parser=p,new p}();kt.parser=kt;var Ii=kt;ee.extend(Ei);ee.extend(Rn);ee.extend(zn);var jt={friday:5,saturday:6},ce="",wt="",Ct=void 0,Dt="",He=[],Pe=[],_t=new Map,Mt=[],tt=[],Ee="",St="",vn=["active","done","crit","milestone"],Ft=[],Re=!1,Ut=!1,Et="sunday",nt="saturday",pt=0,Ai=f(function(){Mt=[],tt=[],Ee="",Ft=[],Qe=0,vt=void 0,Ge=void 0,j=[],ce="",wt="",St="",Ct=void 0,Dt="",He=[],Pe=[],Re=!1,Ut=!1,pt=0,_t=new Map,Hn(),Et="sunday",nt="saturday"},"clear"),Wi=f(function(e){wt=e},"setAxisFormat"),Yi=f(function(){return wt},"getAxisFormat"),Li=f(function(e){Ct=e},"setTickInterval"),Oi=f(function(){return Ct},"getTickInterval"),Ni=f(function(e){Dt=e},"setTodayMarker"),Vi=f(function(){return Dt},"getTodayMarker"),Hi=f(function(e){ce=e},"setDateFormat"),Pi=f(function(){Re=!0},"enableInclusiveEndDates"),Ri=f(function(){return Re},"endDatesAreInclusive"),zi=f(function(){Ut=!0},"enableTopAxis"),Bi=f(function(){return Ut},"topAxisEnabled"),qi=f(function(e){St=e},"setDisplayMode"),Zi=f(function(){return St},"getDisplayMode"),Xi=f(function(){return ce},"getDateFormat"),ji=f(function(e){He=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),Qi=f(function(){return He},"getIncludes"),Gi=f(function(e){Pe=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),Ji=f(function(){return Pe},"getExcludes"),Ki=f(function(){return _t},"getLinks"),$i=f(function(e){Ee=e,Mt.push(e)},"addSection"),ea=f(function(){return Mt},"getSections"),ta=f(function(){let e=Qt();const t=10;let n=0;for(;!e&&n<t;)e=Qt(),n++;return tt=j,tt},"getTasks"),bn=f(function(e,t,n,r){return r.includes(e.format(t.trim()))?!1:n.includes("weekends")&&(e.isoWeekday()===jt[nt]||e.isoWeekday()===jt[nt]+1)||n.includes(e.format("dddd").toLowerCase())?!0:n.includes(e.format(t.trim()))},"isInvalidDate"),na=f(function(e){Et=e},"setWeekday"),ra=f(function(){return Et},"getWeekday"),ia=f(function(e){nt=e},"setWeekend"),xn=f(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;e.startTime instanceof Date?i=ee(e.startTime):i=ee(e.startTime,t,!0),i=i.add(1,"d");let a;e.endTime instanceof Date?a=ee(e.endTime):a=ee(e.endTime,t,!0);const[s,C]=aa(i,a,t,n,r);e.endTime=s.toDate(),e.renderEndTime=C},"checkTaskDates"),aa=f(function(e,t,n,r,i){let a=!1,s=null;for(;e<=t;)a||(s=t.toDate()),a=bn(e,n,r,i),a&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,s]},"fixTaskDates"),Tt=f(function(e,t,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let s=null;for(const M of i.groups.ids.split(" ")){let T=Ce(M);T!==void 0&&(!s||T.endTime>s.endTime)&&(s=T)}if(s)return s.endTime;const C=new Date;return C.setHours(0,0,0,0),C}let a=ee(n,t.trim(),!0);if(a.isValid())return a.toDate();{Je.debug("Invalid date:"+n),Je.debug("With date format:"+t.trim());const s=new Date(n);if(s===void 0||isNaN(s.getTime())||s.getFullYear()<-1e4||s.getFullYear()>1e4)throw new Error("Invalid date:"+n);return s}},"getStartDate"),wn=f(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),Cn=f(function(e,t,n,r=!1){n=n.trim();const a=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let v=null;for(const b of a.groups.ids.split(" ")){let k=Ce(b);k!==void 0&&(!v||k.startTime<v.startTime)&&(v=k)}if(v)return v.startTime;const I=new Date;return I.setHours(0,0,0,0),I}let s=ee(n,t.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let C=ee(e);const[M,T]=wn(n);if(!Number.isNaN(M)){const v=C.add(M,T);v.isValid()&&(C=v)}return C.toDate()},"getEndDate"),Qe=0,Se=f(function(e){return e===void 0?(Qe=Qe+1,"task"+Qe):e},"parseId"),sa=f(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),i={};It(r,i,vn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();let a="";switch(r.length){case 1:i.id=Se(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=Se(),i.startTime=Tt(void 0,ce,r[0]),a=r[1];break;case 3:i.id=Se(r[0]),i.startTime=Tt(void 0,ce,r[1]),a=r[2];break}return a&&(i.endTime=Cn(i.startTime,ce,a,Re),i.manualEndTime=ee(a,"YYYY-MM-DD",!0).isValid(),xn(i,ce,Pe,He)),i},"compileData"),oa=f(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),i={};It(r,i,vn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();switch(r.length){case 1:i.id=Se(),i.startTime={type:"prevTaskEnd",id:e},i.endTime={data:r[0]};break;case 2:i.id=Se(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Se(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i},"parseData"),vt,Ge,j=[],Dn={},ca=f(function(e,t){const n={section:Ee,type:Ee,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=oa(Ge,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Ge,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=pt,pt++;const i=j.push(n);Ge=n.id,Dn[n.id]=i-1},"addTask"),Ce=f(function(e){const t=Dn[e];return j[t]},"findTaskById"),la=f(function(e,t){const n={section:Ee,type:Ee,description:e,task:e,classes:[]},r=sa(vt,t);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,vt=n,tt.push(n)},"addTaskOrg"),Qt=f(function(){const e=f(function(n){const r=j[n];let i="";switch(j[n].raw.startTime.type){case"prevTaskEnd":{const a=Ce(r.prevTaskId);r.startTime=a.endTime;break}case"getStartDate":i=Tt(void 0,ce,j[n].raw.startTime.startData),i&&(j[n].startTime=i);break}return j[n].startTime&&(j[n].endTime=Cn(j[n].startTime,ce,j[n].raw.endTime.data,Re),j[n].endTime&&(j[n].processed=!0,j[n].manualEndTime=ee(j[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),xn(j[n],ce,Pe,He))),j[n].processed},"compileTask");let t=!0;for(const[n,r]of j.entries())e(n),t=t&&r.processed;return t},"compileTasks"),ua=f(function(e,t){let n=t;_e().securityLevel!=="loose"&&(n=Vn.sanitizeUrl(t)),e.split(",").forEach(function(r){Ce(r)!==void 0&&(Mn(r,()=>{window.open(n,"_self")}),_t.set(r,n))}),_n(e,"clickable")},"setLink"),_n=f(function(e,t){e.split(",").forEach(function(n){let r=Ce(n);r!==void 0&&r.classes.push(t)})},"setClass"),fa=f(function(e,t,n){if(_e().securityLevel!=="loose"||t===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<r.length;a++){let s=r[a].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),r[a]=s}}r.length===0&&r.push(e),Ce(e)!==void 0&&Mn(e,()=>{Pn.runFunc(t,...r)})},"setClickFun"),Mn=f(function(e,t){Ft.push(function(){const n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener("click",function(){t()})},function(){const n=document.querySelector(`[id="${e}-text"]`);n!==null&&n.addEventListener("click",function(){t()})})},"pushFun"),ha=f(function(e,t,n){e.split(",").forEach(function(r){fa(r,t,n)}),_n(e,"clickable")},"setClickEvent"),da=f(function(e){Ft.forEach(function(t){t(e)})},"bindFunctions"),ma={getConfig:f(()=>_e().gantt,"getConfig"),clear:Ai,setDateFormat:Hi,getDateFormat:Xi,enableInclusiveEndDates:Pi,endDatesAreInclusive:Ri,enableTopAxis:zi,topAxisEnabled:Bi,setAxisFormat:Wi,getAxisFormat:Yi,setTickInterval:Li,getTickInterval:Oi,setTodayMarker:Ni,getTodayMarker:Vi,setAccTitle:Ln,getAccTitle:Yn,setDiagramTitle:Wn,getDiagramTitle:An,setDisplayMode:qi,getDisplayMode:Zi,setAccDescription:In,getAccDescription:En,addSection:$i,getSections:ea,getTasks:ta,addTask:ca,findTaskById:Ce,addTaskOrg:la,setIncludes:ji,getIncludes:Qi,setExcludes:Gi,getExcludes:Ji,setClickEvent:ha,setLink:ua,getLinks:Ki,bindFunctions:da,parseDuration:wn,isInvalidDate:bn,setWeekday:na,getWeekday:ra,setWeekend:ia};function It(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const a="^\\s*"+i+"\\s*$",s=new RegExp(a);e[0].match(s)&&(t[i]=!0,e.shift(1),r=!0)})}f(It,"getTaskTags");var ga=f(function(){Je.debug("Something is calling, setConf, remove the call")},"setConf"),Gt={monday:Oe,tuesday:un,wednesday:fn,thursday:ve,friday:hn,saturday:dn,sunday:Ve},ya=f((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(const a of r)for(let s=0;s<n.length;s++)if(a.startTime>=n[s]){n[s]=a.endTime,a.order=s+t,s>i&&(i=s);break}return i},"getMaxIntersections"),he,ka=f(function(e,t,n,r){const i=_e().gantt,a=_e().securityLevel;let s;a==="sandbox"&&(s=qe("#i"+t));const C=a==="sandbox"?qe(s.nodes()[0].contentDocument.body):qe("body"),M=a==="sandbox"?s.nodes()[0].contentDocument:document,T=M.getElementById(t);he=T.parentElement.offsetWidth,he===void 0&&(he=1200),i.useWidth!==void 0&&(he=i.useWidth);const v=r.db.getTasks();let I=[];for(const w of v)I.push(w.type);I=N(I);const b={};let k=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const w={};for(const D of v)w[D.section]===void 0?w[D.section]=[D]:w[D.section].push(D);let F=0;for(const D of Object.keys(w)){const _=ya(w[D],F)+1;F+=_,k+=_*(i.barHeight+i.barGap),b[D]=_}}else{k+=v.length*(i.barHeight+i.barGap);for(const w of I)b[w]=v.filter(F=>F.type===w).length}T.setAttribute("viewBox","0 0 "+he+" "+k);const R=C.select(`[id="${t}"]`),A=Mi().domain([Gn(v,function(w){return w.startTime}),Qn(v,function(w){return w.endTime})]).rangeRound([0,he-i.leftPadding-i.rightPadding]);function te(w,F){const D=w.startTime,_=F.startTime;let p=0;return D>_?p=1:D<_&&(p=-1),p}f(te,"taskCompare"),v.sort(te),re(v,he,k),On(R,k,he,i.useMaxWidth),R.append("text").text(r.db.getDiagramTitle()).attr("x",he/2).attr("y",i.titleTopMargin).attr("class","titleText");function re(w,F,D){const _=i.barHeight,p=_+i.barGap,W=i.topPadding,u=i.leftPadding,d=Xn().domain([0,I.length]).range(["#00B9FA","#F95002"]).interpolate(fr);Z(p,W,u,F,D,w,r.db.getExcludes(),r.db.getIncludes()),X(u,W,F,D),ne(w,p,W,u,_,d,F),$(p,W),x(u,W,F,D)}f(re,"makeGantt");function ne(w,F,D,_,p,W,u){const y=[...new Set(w.map(h=>h.order))].map(h=>w.find(o=>o.order===h));R.append("g").selectAll("rect").data(y).enter().append("rect").attr("x",0).attr("y",function(h,o){return o=h.order,o*F+D-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",F).attr("class",function(h){for(const[o,H]of I.entries())if(h.type===H)return"section section"+o%i.numberSectionStyles;return"section section0"});const m=R.append("g").selectAll("rect").data(w).enter(),U=r.db.getLinks();if(m.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?A(h.startTime)+_+.5*(A(h.endTime)-A(h.startTime))-.5*p:A(h.startTime)+_}).attr("y",function(h,o){return o=h.order,o*F+D}).attr("width",function(h){return h.milestone?p:A(h.renderEndTime||h.endTime)-A(h.startTime)}).attr("height",p).attr("transform-origin",function(h,o){return o=h.order,(A(h.startTime)+_+.5*(A(h.endTime)-A(h.startTime))).toString()+"px "+(o*F+D+.5*p).toString()+"px"}).attr("class",function(h){const o="task";let H="";h.classes.length>0&&(H=h.classes.join(" "));let L=0;for(const[G,z]of I.entries())h.type===z&&(L=G%i.numberSectionStyles);let V="";return h.active?h.crit?V+=" activeCrit":V=" active":h.done?h.crit?V=" doneCrit":V=" done":h.crit&&(V+=" crit"),V.length===0&&(V=" task"),h.milestone&&(V=" milestone "+V),V+=L,V+=" "+H,o+V}),m.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let o=A(h.startTime),H=A(h.renderEndTime||h.endTime);h.milestone&&(o+=.5*(A(h.endTime)-A(h.startTime))-.5*p),h.milestone&&(H=o+p);const L=this.getBBox().width;return L>H-o?H+L+1.5*i.leftPadding>u?o+_-5:H+_+5:(H-o)/2+o+_}).attr("y",function(h,o){return o=h.order,o*F+i.barHeight/2+(i.fontSize/2-2)+D}).attr("text-height",p).attr("class",function(h){const o=A(h.startTime);let H=A(h.endTime);h.milestone&&(H=o+p);const L=this.getBBox().width;let V="";h.classes.length>0&&(V=h.classes.join(" "));let G=0;for(const[B,se]of I.entries())h.type===se&&(G=B%i.numberSectionStyles);let z="";return h.active&&(h.crit?z="activeCritText"+G:z="activeText"+G),h.done?h.crit?z=z+" doneCritText"+G:z=z+" doneText"+G:h.crit&&(z=z+" critText"+G),h.milestone&&(z+=" milestoneText"),L>H-o?H+L+1.5*i.leftPadding>u?V+" taskTextOutsideLeft taskTextOutside"+G+" "+z:V+" taskTextOutsideRight taskTextOutside"+G+" "+z+" width-"+L:V+" taskText taskText"+G+" "+z+" width-"+L}),_e().securityLevel==="sandbox"){let h;h=qe("#i"+t);const o=h.nodes()[0].contentDocument;m.filter(function(H){return U.has(H.id)}).each(function(H){var L=o.querySelector("#"+H.id),V=o.querySelector("#"+H.id+"-text");const G=L.parentNode;var z=o.createElement("a");z.setAttribute("xlink:href",U.get(H.id)),z.setAttribute("target","_top"),G.appendChild(z),z.appendChild(L),z.appendChild(V)})}}f(ne,"drawRects");function Z(w,F,D,_,p,W,u,d){if(u.length===0&&d.length===0)return;let y,m;for(const{startTime:L,endTime:V}of W)(y===void 0||L<y)&&(y=L),(m===void 0||V>m)&&(m=V);if(!y||!m)return;if(ee(m).diff(ee(y),"year")>5){Je.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 U=r.db.getDateFormat(),c=[];let h=null,o=ee(y);for(;o.valueOf()<=m;)r.db.isInvalidDate(o,U,u,d)?h?h.end=o:h={start:o,end:o}:h&&(c.push(h),h=null),o=o.add(1,"d");R.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",function(L){return"exclude-"+L.start.format("YYYY-MM-DD")}).attr("x",function(L){return A(L.start)+D}).attr("y",i.gridLineStartPadding).attr("width",function(L){const V=L.end.add(1,"day");return A(V)-A(L.start)}).attr("height",p-F-i.gridLineStartPadding).attr("transform-origin",function(L,V){return(A(L.start)+D+.5*(A(L.end)-A(L.start))).toString()+"px "+(V*w+.5*p).toString()+"px"}).attr("class","exclude-range")}f(Z,"drawExcludeDays");function X(w,F,D,_){let p=ir(A).tickSize(-_+F+i.gridLineStartPadding).tickFormat(et(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(u!==null){const d=u[1],y=u[2],m=r.db.getWeekday()||i.weekday;switch(y){case"millisecond":p.ticks(Fe.every(d));break;case"second":p.ticks(pe.every(d));break;case"minute":p.ticks(Ye.every(d));break;case"hour":p.ticks(Le.every(d));break;case"day":p.ticks(Te.every(d));break;case"week":p.ticks(Gt[m].every(d));break;case"month":p.ticks(Ne.every(d));break}}if(R.append("g").attr("class","grid").attr("transform","translate("+w+", "+(_-50)+")").call(p).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let d=rr(A).tickSize(-_+F+i.gridLineStartPadding).tickFormat(et(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(u!==null){const y=u[1],m=u[2],U=r.db.getWeekday()||i.weekday;switch(m){case"millisecond":d.ticks(Fe.every(y));break;case"second":d.ticks(pe.every(y));break;case"minute":d.ticks(Ye.every(y));break;case"hour":d.ticks(Le.every(y));break;case"day":d.ticks(Te.every(y));break;case"week":d.ticks(Gt[U].every(y));break;case"month":d.ticks(Ne.every(y));break}}R.append("g").attr("class","grid").attr("transform","translate("+w+", "+F+")").call(d).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}f(X,"makeGrid");function $(w,F){let D=0;const _=Object.keys(b).map(p=>[p,b[p]]);R.append("g").selectAll("text").data(_).enter().append(function(p){const W=p[0].split(Nn.lineBreakRegex),u=-(W.length-1)/2,d=M.createElementNS("http://www.w3.org/2000/svg","text");d.setAttribute("dy",u+"em");for(const[y,m]of W.entries()){const U=M.createElementNS("http://www.w3.org/2000/svg","tspan");U.setAttribute("alignment-baseline","central"),U.setAttribute("x","10"),y>0&&U.setAttribute("dy","1em"),U.textContent=m,d.appendChild(U)}return d}).attr("x",10).attr("y",function(p,W){if(W>0)for(let u=0;u<W;u++)return D+=_[W-1][1],p[1]*w/2+D*w+F;else return p[1]*w/2+F}).attr("font-size",i.sectionFontSize).attr("class",function(p){for(const[W,u]of I.entries())if(p[0]===u)return"sectionTitle sectionTitle"+W%i.numberSectionStyles;return"sectionTitle"})}f($,"vertLabels");function x(w,F,D,_){const p=r.db.getTodayMarker();if(p==="off")return;const W=R.append("g").attr("class","today"),u=new Date,d=W.append("line");d.attr("x1",A(u)+w).attr("x2",A(u)+w).attr("y1",i.titleTopMargin).attr("y2",_-i.titleTopMargin).attr("class","today"),p!==""&&d.attr("style",p.replace(/,/g,";"))}f(x,"drawToday");function N(w){const F={},D=[];for(let _=0,p=w.length;_<p;++_)Object.prototype.hasOwnProperty.call(F,w[_])||(F[w[_]]=!0,D.push(w[_]));return D}f(N,"checkUnique")},"draw"),pa={setConf:ga,draw:ka},Ta=f(e=>`
|
7
|
+
.mermaid-main-font {
|
8
|
+
font-family: ${e.fontFamily};
|
9
|
+
}
|
10
|
+
|
11
|
+
.exclude-range {
|
12
|
+
fill: ${e.excludeBkgColor};
|
13
|
+
}
|
14
|
+
|
15
|
+
.section {
|
16
|
+
stroke: none;
|
17
|
+
opacity: 0.2;
|
18
|
+
}
|
19
|
+
|
20
|
+
.section0 {
|
21
|
+
fill: ${e.sectionBkgColor};
|
22
|
+
}
|
23
|
+
|
24
|
+
.section2 {
|
25
|
+
fill: ${e.sectionBkgColor2};
|
26
|
+
}
|
27
|
+
|
28
|
+
.section1,
|
29
|
+
.section3 {
|
30
|
+
fill: ${e.altSectionBkgColor};
|
31
|
+
opacity: 0.2;
|
32
|
+
}
|
33
|
+
|
34
|
+
.sectionTitle0 {
|
35
|
+
fill: ${e.titleColor};
|
36
|
+
}
|
37
|
+
|
38
|
+
.sectionTitle1 {
|
39
|
+
fill: ${e.titleColor};
|
40
|
+
}
|
41
|
+
|
42
|
+
.sectionTitle2 {
|
43
|
+
fill: ${e.titleColor};
|
44
|
+
}
|
45
|
+
|
46
|
+
.sectionTitle3 {
|
47
|
+
fill: ${e.titleColor};
|
48
|
+
}
|
49
|
+
|
50
|
+
.sectionTitle {
|
51
|
+
text-anchor: start;
|
52
|
+
font-family: ${e.fontFamily};
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
/* Grid and axis */
|
57
|
+
|
58
|
+
.grid .tick {
|
59
|
+
stroke: ${e.gridColor};
|
60
|
+
opacity: 0.8;
|
61
|
+
shape-rendering: crispEdges;
|
62
|
+
}
|
63
|
+
|
64
|
+
.grid .tick text {
|
65
|
+
font-family: ${e.fontFamily};
|
66
|
+
fill: ${e.textColor};
|
67
|
+
}
|
68
|
+
|
69
|
+
.grid path {
|
70
|
+
stroke-width: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
/* Today line */
|
75
|
+
|
76
|
+
.today {
|
77
|
+
fill: none;
|
78
|
+
stroke: ${e.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: ${e.fontFamily};
|
94
|
+
}
|
95
|
+
|
96
|
+
.taskTextOutsideRight {
|
97
|
+
fill: ${e.taskTextDarkColor};
|
98
|
+
text-anchor: start;
|
99
|
+
font-family: ${e.fontFamily};
|
100
|
+
}
|
101
|
+
|
102
|
+
.taskTextOutsideLeft {
|
103
|
+
fill: ${e.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: ${e.taskTextClickableColor} !important;
|
117
|
+
font-weight: bold;
|
118
|
+
}
|
119
|
+
|
120
|
+
.taskTextOutsideLeft.clickable {
|
121
|
+
cursor: pointer;
|
122
|
+
fill: ${e.taskTextClickableColor} !important;
|
123
|
+
font-weight: bold;
|
124
|
+
}
|
125
|
+
|
126
|
+
.taskTextOutsideRight.clickable {
|
127
|
+
cursor: pointer;
|
128
|
+
fill: ${e.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: ${e.taskTextColor};
|
140
|
+
}
|
141
|
+
|
142
|
+
.task0,
|
143
|
+
.task1,
|
144
|
+
.task2,
|
145
|
+
.task3 {
|
146
|
+
fill: ${e.taskBkgColor};
|
147
|
+
stroke: ${e.taskBorderColor};
|
148
|
+
}
|
149
|
+
|
150
|
+
.taskTextOutside0,
|
151
|
+
.taskTextOutside2
|
152
|
+
{
|
153
|
+
fill: ${e.taskTextOutsideColor};
|
154
|
+
}
|
155
|
+
|
156
|
+
.taskTextOutside1,
|
157
|
+
.taskTextOutside3 {
|
158
|
+
fill: ${e.taskTextOutsideColor};
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
/* Active task */
|
163
|
+
|
164
|
+
.active0,
|
165
|
+
.active1,
|
166
|
+
.active2,
|
167
|
+
.active3 {
|
168
|
+
fill: ${e.activeTaskBkgColor};
|
169
|
+
stroke: ${e.activeTaskBorderColor};
|
170
|
+
}
|
171
|
+
|
172
|
+
.activeText0,
|
173
|
+
.activeText1,
|
174
|
+
.activeText2,
|
175
|
+
.activeText3 {
|
176
|
+
fill: ${e.taskTextDarkColor} !important;
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
/* Completed task */
|
181
|
+
|
182
|
+
.done0,
|
183
|
+
.done1,
|
184
|
+
.done2,
|
185
|
+
.done3 {
|
186
|
+
stroke: ${e.doneTaskBorderColor};
|
187
|
+
fill: ${e.doneTaskBkgColor};
|
188
|
+
stroke-width: 2;
|
189
|
+
}
|
190
|
+
|
191
|
+
.doneText0,
|
192
|
+
.doneText1,
|
193
|
+
.doneText2,
|
194
|
+
.doneText3 {
|
195
|
+
fill: ${e.taskTextDarkColor} !important;
|
196
|
+
}
|
197
|
+
|
198
|
+
|
199
|
+
/* Tasks on the critical line */
|
200
|
+
|
201
|
+
.crit0,
|
202
|
+
.crit1,
|
203
|
+
.crit2,
|
204
|
+
.crit3 {
|
205
|
+
stroke: ${e.critBorderColor};
|
206
|
+
fill: ${e.critBkgColor};
|
207
|
+
stroke-width: 2;
|
208
|
+
}
|
209
|
+
|
210
|
+
.activeCrit0,
|
211
|
+
.activeCrit1,
|
212
|
+
.activeCrit2,
|
213
|
+
.activeCrit3 {
|
214
|
+
stroke: ${e.critBorderColor};
|
215
|
+
fill: ${e.activeTaskBkgColor};
|
216
|
+
stroke-width: 2;
|
217
|
+
}
|
218
|
+
|
219
|
+
.doneCrit0,
|
220
|
+
.doneCrit1,
|
221
|
+
.doneCrit2,
|
222
|
+
.doneCrit3 {
|
223
|
+
stroke: ${e.critBorderColor};
|
224
|
+
fill: ${e.doneTaskBkgColor};
|
225
|
+
stroke-width: 2;
|
226
|
+
cursor: pointer;
|
227
|
+
shape-rendering: crispEdges;
|
228
|
+
}
|
229
|
+
|
230
|
+
.milestone {
|
231
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
232
|
+
}
|
233
|
+
|
234
|
+
.milestoneText {
|
235
|
+
font-style: italic;
|
236
|
+
}
|
237
|
+
.doneCritText0,
|
238
|
+
.doneCritText1,
|
239
|
+
.doneCritText2,
|
240
|
+
.doneCritText3 {
|
241
|
+
fill: ${e.taskTextDarkColor} !important;
|
242
|
+
}
|
243
|
+
|
244
|
+
.activeCritText0,
|
245
|
+
.activeCritText1,
|
246
|
+
.activeCritText2,
|
247
|
+
.activeCritText3 {
|
248
|
+
fill: ${e.taskTextDarkColor} !important;
|
249
|
+
}
|
250
|
+
|
251
|
+
.titleText {
|
252
|
+
text-anchor: middle;
|
253
|
+
font-size: 18px;
|
254
|
+
fill: ${e.titleColor||e.textColor};
|
255
|
+
font-family: ${e.fontFamily};
|
256
|
+
}
|
257
|
+
`,"getStyles"),va=Ta,Ca={parser:Ii,db:ma,renderer:pa,styles:va};export{Ca as diagram};
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import{p as Z}from"./chunk-4BMEZGHF-Ckc43zxH.js";import{I as F}from"./chunk-XZIHB7SX-G4BVkcV4.js";import{_ as h,q as U,p as rr,s as er,g as tr,a as ar,b as nr,l as w,c as sr,d as or,u as cr,C as ir,y as dr,k as B,D as hr,E as lr,F as $r,G as fr}from"./main.js";import{p as gr}from"./radar-MK3ICKWK-Bzl6RmHe.js";import"./_baseUniq-BTllNErT.js";import"./_basePickBy-CCSZj2pA.js";import"./clone-Bg4iLekk.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=$r.gitGraph,z=h(()=>hr({...yr,...lr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function S(){return fr({length:7})}h(S,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var ur=h(function(t){i.records.direction=t},"setDirection"),xr=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;w.info("commit",r,a,s,e),w.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+S(),message:r,seq:i.records.seq++,type:s??x.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),w.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${S()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;w.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+S(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function A(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);A(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);A(t,r,e)}}t=N(t,e=>e.id),D(t)}h(D,"prettyPrintCommitHistory");var Cr=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Er=h(function(){i.reset(),dr()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){w.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ur,setOptions:xr,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:ar,getAccDescription:tr,setAccDescription:er,setDiagramTitle:rr,getDiagramTitle:U},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);w.debug(r),Ir(r,X)},"parse")},j=sr(),b=j==null?void 0:j.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",Sr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return u==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=u==="TB"||u=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),jr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Ar=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=jr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Dr=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Dr(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",`
|
2
|
+
${s-c/2-k/2},${p+L}
|
3
|
+
${s-c/2-k/2},${p-L}
|
4
|
+
${a.posWithOffset-c/2-k},${p-y-L}
|
5
|
+
${a.posWithOffset+c/2+k},${p-y-L}
|
6
|
+
${a.posWithOffset+c/2+k},${p+y+L}
|
7
|
+
${a.posWithOffset-c/2-k},${p+y+L}`),f.attr("cy",p).attr("cx",s-c/2+k/2).attr("r",1.5).attr("class","tag-hole"),u==="TB"||u==="BT"){const m=s+d;g.attr("class","tag-label-bkg").attr("points",`
|
8
|
+
${a.x},${m+2}
|
9
|
+
${a.x},${m-2}
|
10
|
+
${a.x+R},${m-y-2}
|
11
|
+
${a.x+R+c+4},${m-y-2}
|
12
|
+
${a.x+R+c+4},${m+y+2}
|
13
|
+
${a.x+R},${m+y+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+s+")"),f.attr("cx",a.x+k/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+a.x+","+s+")"),l.attr("x",a.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+s+")")}}}},"drawCommitTags"),Jr=h(t=>{switch(t.customType??t.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Qr=h((t,r,a,s)=>{const e={x:0,y:0};if(t.parents.length>0){const n=Q(t.parents);if(n){const c=s.get(n)??e;return r==="TB"?c.y+I:r==="BT"?(s.get(t.id)??e).y-I:c.x+I}}else return r==="TB"?P:r==="BT"?(s.get(t.id)??e).y-I:0;return 0},"calculatePosition"),Zr=h((t,r,a)=>{var c,o;const s=u==="BT"&&a?r:r+R,e=u==="TB"||u==="BT"?s:(c=C.get(t.branch))==null?void 0:c.pos,n=u==="TB"||u==="BT"?(o=C.get(t.branch))==null?void 0:o.pos:s;if(n===void 0||e===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:n,y:e,posWithOffset:s}},"getCommitPosition"),K=h((t,r,a)=>{if(!b)throw new Error("GitGraph config not found");const s=t.append("g").attr("class","commit-bullets"),e=t.append("g").attr("class","commit-labels");let n=u==="TB"||u==="BT"?P:0;const c=[...r.keys()],o=(b==null?void 0:b.parallelCommits)??!1,$=h((f,g)=>{var p,m;const d=(p=r.get(f))==null?void 0:p.seq,y=(m=r.get(g))==null?void 0:m.seq;return d!==void 0&&y!==void 0?d-y:0},"sortKeys");let l=c.sort($);u==="BT"&&(o&&Ar(l,r,n),l=l.reverse()),l.forEach(f=>{var y;const g=r.get(f);if(!g)throw new Error(`Commit not found for key ${f}`);o&&(n=Qr(g,u,n,E));const d=Zr(g,n,o);if(a){const p=Jr(g),m=g.customType??g.type,q=((y=C.get(g.branch))==null?void 0:y.index)??0;_r(s,g,d,p,q,m),Vr(e,g,d,n),Xr(e,g,d,n)}u==="TB"||u==="BT"?E.set(g.id,{x:d.x,y:d.posWithOffset}):E.set(g.id,{x:d.posWithOffset,y:d.y}),n=u==="BT"&&o?n+I:n+I+R,n>M&&(M=n)})},"drawCommits"),Fr=h((t,r,a,s,e)=>{const c=(u==="TB"||u==="BT"?a.x<s.x:a.y<s.y)?r.branch:t.branch,o=h(l=>l.branch===c,"isOnBranchToGetCurve"),$=h(l=>l.seq>t.seq&&l.seq<r.seq,"isBetweenCommits");return[...e.values()].some(l=>$(l)&&o(l))},"shouldRerouteArrow"),H=h((t,r,a=0)=>{const s=t+Math.abs(t-r)/2;if(a>5)return s;if(W.every(c=>Math.abs(c-s)>=10))return W.push(s),s;const n=Math.abs(t-r);return H(t,r-n/5,a+1)},"findLane"),Ur=h((t,r,a,s)=>{var y,p,m,q,Y;const e=E.get(r.id),n=E.get(a.id);if(e===void 0||n===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${a.id}`);const c=Fr(r,a,e,n,s);let o="",$="",l=0,f=0,g=(y=C.get(a.branch))==null?void 0:y.index;a.type===x.MERGE&&r.id!==a.parents[0]&&(g=(p=C.get(r.branch))==null?void 0:p.index);let d;if(c){o="A 10 10, 0, 0, 0,",$="A 10 10, 0, 0, 1,",l=10,f=10;const T=e.y<n.y?H(e.y,n.y):H(n.y,e.y),v=e.x<n.x?H(e.x,n.x):H(n.x,e.x);u==="TB"?e.x<n.x?d=`M ${e.x} ${e.y} L ${v-l} ${e.y} ${$} ${v} ${e.y+f} L ${v} ${n.y-l} ${o} ${v+f} ${n.y} L ${n.x} ${n.y}`:(g=(m=C.get(r.branch))==null?void 0:m.index,d=`M ${e.x} ${e.y} L ${v+l} ${e.y} ${o} ${v} ${e.y+f} L ${v} ${n.y-l} ${$} ${v-f} ${n.y} L ${n.x} ${n.y}`):u==="BT"?e.x<n.x?d=`M ${e.x} ${e.y} L ${v-l} ${e.y} ${o} ${v} ${e.y-f} L ${v} ${n.y+l} ${$} ${v+f} ${n.y} L ${n.x} ${n.y}`:(g=(q=C.get(r.branch))==null?void 0:q.index,d=`M ${e.x} ${e.y} L ${v+l} ${e.y} ${$} ${v} ${e.y-f} L ${v} ${n.y+l} ${o} ${v-f} ${n.y} L ${n.x} ${n.y}`):e.y<n.y?d=`M ${e.x} ${e.y} L ${e.x} ${T-l} ${o} ${e.x+f} ${T} L ${n.x-l} ${T} ${$} ${n.x} ${T+f} L ${n.x} ${n.y}`:(g=(Y=C.get(r.branch))==null?void 0:Y.index,d=`M ${e.x} ${e.y} L ${e.x} ${T+l} ${$} ${e.x+f} ${T} L ${n.x-l} ${T} ${o} ${n.x} ${T-f} L ${n.x} ${n.y}`)}else o="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,f=20,u==="TB"?(e.x<n.x&&(a.type===x.MERGE&&r.id!==a.parents[0]?d=`M ${e.x} ${e.y} L ${e.x} ${n.y-l} ${o} ${e.x+f} ${n.y} L ${n.x} ${n.y}`:d=`M ${e.x} ${e.y} L ${n.x-l} ${e.y} ${$} ${n.x} ${e.y+f} L ${n.x} ${n.y}`),e.x>n.x&&(o="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,f=20,a.type===x.MERGE&&r.id!==a.parents[0]?d=`M ${e.x} ${e.y} L ${e.x} ${n.y-l} ${$} ${e.x-f} ${n.y} L ${n.x} ${n.y}`:d=`M ${e.x} ${e.y} L ${n.x+l} ${e.y} ${o} ${n.x} ${e.y+f} L ${n.x} ${n.y}`),e.x===n.x&&(d=`M ${e.x} ${e.y} L ${n.x} ${n.y}`)):u==="BT"?(e.x<n.x&&(a.type===x.MERGE&&r.id!==a.parents[0]?d=`M ${e.x} ${e.y} L ${e.x} ${n.y+l} ${$} ${e.x+f} ${n.y} L ${n.x} ${n.y}`:d=`M ${e.x} ${e.y} L ${n.x-l} ${e.y} ${o} ${n.x} ${e.y-f} L ${n.x} ${n.y}`),e.x>n.x&&(o="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,f=20,a.type===x.MERGE&&r.id!==a.parents[0]?d=`M ${e.x} ${e.y} L ${e.x} ${n.y+l} ${o} ${e.x-f} ${n.y} L ${n.x} ${n.y}`:d=`M ${e.x} ${e.y} L ${n.x-l} ${e.y} ${o} ${n.x} ${e.y-f} L ${n.x} ${n.y}`),e.x===n.x&&(d=`M ${e.x} ${e.y} L ${n.x} ${n.y}`)):(e.y<n.y&&(a.type===x.MERGE&&r.id!==a.parents[0]?d=`M ${e.x} ${e.y} L ${n.x-l} ${e.y} ${$} ${n.x} ${e.y+f} L ${n.x} ${n.y}`:d=`M ${e.x} ${e.y} L ${e.x} ${n.y-l} ${o} ${e.x+f} ${n.y} L ${n.x} ${n.y}`),e.y>n.y&&(a.type===x.MERGE&&r.id!==a.parents[0]?d=`M ${e.x} ${e.y} L ${n.x-l} ${e.y} ${o} ${n.x} ${e.y-f} L ${n.x} ${n.y}`:d=`M ${e.x} ${e.y} L ${e.x} ${n.y+l} ${$} ${e.x+f} ${n.y} L ${n.x} ${n.y}`),e.y===n.y&&(d=`M ${e.x} ${e.y} L ${n.x} ${n.y}`));if(d===void 0)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+g%O)},"drawArrow"),re=h((t,r)=>{const a=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(s=>{const e=r.get(s);e.parents&&e.parents.length>0&&e.parents.forEach(n=>{Ur(a,r.get(n),e,r)})})},"drawArrows"),ee=h((t,r)=>{const a=t.append("g");r.forEach((s,e)=>{var p;const n=e%O,c=(p=C.get(s.name))==null?void 0:p.pos;if(c===void 0)throw new Error(`Position not found for branch ${s.name}`);const o=a.append("line");o.attr("x1",0),o.attr("y1",c),o.attr("x2",M),o.attr("y2",c),o.attr("class","branch branch"+n),u==="TB"?(o.attr("y1",P),o.attr("x1",c),o.attr("y2",M),o.attr("x2",c)):u==="BT"&&(o.attr("y1",M),o.attr("x1",c),o.attr("y2",P),o.attr("x2",c)),W.push(c);const $=s.name,l=J($),f=a.insert("rect"),d=a.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+n);d.node().appendChild(l);const y=l.getBBox();f.attr("class","branchLabelBkg label"+n).attr("rx",4).attr("ry",4).attr("x",-y.width-4-((b==null?void 0:b.rotateCommitLabel)===!0?30:0)).attr("y",-y.height/2+8).attr("width",y.width+18).attr("height",y.height+4),d.attr("transform","translate("+(-y.width-14-((b==null?void 0:b.rotateCommitLabel)===!0?30:0))+", "+(c-y.height/2-1)+")"),u==="TB"?(f.attr("x",c-y.width/2-10).attr("y",0),d.attr("transform","translate("+(c-y.width/2-5)+", 0)")):u==="BT"?(f.attr("x",c-y.width/2-10).attr("y",M),d.attr("transform","translate("+(c-y.width/2-5)+", "+M+")")):f.attr("transform","translate(-19, "+(c-y.height/2)+")")})},"drawBranches"),te=h(function(t,r,a,s,e){return C.set(t,{pos:r,index:a}),r+=50+(e?40:0)+(u==="TB"||u==="BT"?s.width/2:0),r},"setBranchPosition"),ae=h(function(t,r,a,s){if(Sr(),w.debug("in gitgraph renderer",t+`
|
14
|
+
`,"id:",r,a),!b)throw new Error("GitGraph config not found");const e=b.rotateCommitLabel??!1,n=s.db;G=n.getCommits();const c=n.getBranchesAsObjArray();u=n.getDirection();const o=or(`[id="${r}"]`);let $=0;c.forEach((l,f)=>{var q;const g=J(l.name),d=o.append("g"),y=d.insert("g").attr("class","branchLabel"),p=y.insert("g").attr("class","label branch-label");(q=p.node())==null||q.appendChild(g);const m=g.getBBox();$=te(l.name,$,f,m,e),p.remove(),y.remove(),d.remove()}),K(o,G,!1),b.showBranches&&ee(o,c),re(o,G),K(o,G,!0),cr.insertTitle(o,"gitTitleText",b.titleTopMargin??0,n.getDiagramTitle()),ir(void 0,o,b.diagramPadding,b.useMaxWidth)},"draw"),ne={draw:ae},se=h(t=>`
|
15
|
+
.commit-id,
|
16
|
+
.commit-msg,
|
17
|
+
.branch-label {
|
18
|
+
fill: lightgrey;
|
19
|
+
color: lightgrey;
|
20
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
21
|
+
font-family: var(--mermaid-font-family);
|
22
|
+
}
|
23
|
+
${[0,1,2,3,4,5,6,7].map(r=>`
|
24
|
+
.branch-label${r} { fill: ${t["gitBranchLabel"+r]}; }
|
25
|
+
.commit${r} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }
|
26
|
+
.commit-highlight${r} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }
|
27
|
+
.label${r} { fill: ${t["git"+r]}; }
|
28
|
+
.arrow${r} { stroke: ${t["git"+r]}; }
|
29
|
+
`).join(`
|
30
|
+
`)}
|
31
|
+
|
32
|
+
.branch {
|
33
|
+
stroke-width: 1;
|
34
|
+
stroke: ${t.lineColor};
|
35
|
+
stroke-dasharray: 2;
|
36
|
+
}
|
37
|
+
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
|
38
|
+
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
|
39
|
+
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
40
|
+
.tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
|
41
|
+
.tag-hole { fill: ${t.textColor}; }
|
42
|
+
|
43
|
+
.commit-merge {
|
44
|
+
stroke: ${t.primaryColor};
|
45
|
+
fill: ${t.primaryColor};
|
46
|
+
}
|
47
|
+
.commit-reverse {
|
48
|
+
stroke: ${t.primaryColor};
|
49
|
+
fill: ${t.primaryColor};
|
50
|
+
stroke-width: 3;
|
51
|
+
}
|
52
|
+
.commit-highlight-outer {
|
53
|
+
}
|
54
|
+
.commit-highlight-inner {
|
55
|
+
stroke: ${t.primaryColor};
|
56
|
+
fill: ${t.primaryColor};
|
57
|
+
}
|
58
|
+
|
59
|
+
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
60
|
+
.gitTitleText {
|
61
|
+
text-anchor: middle;
|
62
|
+
font-size: 18px;
|
63
|
+
fill: ${t.textColor};
|
64
|
+
}
|
65
|
+
`,"getStyles"),oe=se,ge={parser:Wr,db:X,renderer:ne,styles:oe};export{ge as diagram};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{aB as N,aC as j,aD as f,aE as b,aF as E}from"./main.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./_baseUniq-BTllNErT.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import{
|
1
|
+
import{aq as l}from"./main.js";/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
4
|
* Released under the MIT license
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/var i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,
|
6
|
+
*-----------------------------------------------------------------------------*/var i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,a,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!c.call(t,n)&&n!==a&&i(t,n,{get:()=>e[n],enumerable:!(m=s(e,n))||m.enumerable});return t},h=(t,e,a)=>(p(t,e,"default"),a),r={};h(r,l);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},y={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{u as conf,y as language};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{
|
1
|
+
import{aq as s}from"./main.js";/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
4
|
* Released under the MIT license
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{
|
1
|
+
import{aq as lt}from"./main.js";/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
4
|
* Released under the MIT license
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{_ as e,l as s,H as n,e as i,I as p}from"./main.js";import{p as g}from"./radar-MK3ICKWK-Bzl6RmHe.js";import"./_baseUniq-BTllNErT.js";import"./_basePickBy-CCSZj2pA.js";import"./clone-Bg4iLekk.js";var v={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},d={version:p.version},m=e(()=>d.version,"getVersion"),c={getVersion:m},l=e((r,a,o)=>{s.debug(`rendering info diagram
|
2
|
+
`+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),f={draw:l},S={parser:v,db:c,renderer:f};export{S as diagram};
|
@@ -0,0 +1 @@
|
|
1
|
+
function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{conf as t,language as e}from"./typescript-
|
1
|
+
import{conf as t,language as e}from"./typescript-KnQ9Sglt.js";import"./main.js";/*!-----------------------------------------------------------------------------
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
4
4
|
* Released under the MIT license
|