package.dist.chunks.mermaid.esm.min.kanban-definition-EGOKAUOG.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
The newest version!
import{a as ye}from"./chunk-BPW5ZDWE.mjs";import{a as de,b as pe}from"./chunk-7LIB5WBN.mjs";import{f as fe,h as me,k as be}from"./chunk-A7EQIZZO.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{F as B,N as ge,X as V,b as W,n as ue,o as te,p as ne,s as F}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var ie=function(){var e=a(function(v,i,n,s){for(n=n||{},s=v.length;s--;n[v[s]]=i);return n},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],L=[6,7,8],C=[1,26],g=[1,24],w=[1,25],k=[6,7,11],K=[1,31],S=[6,7,11,24],M=[1,6,13,16,17,20,23],y=[1,35],A=[1,36],O=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(i,n,s,o,h,t,R){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:C,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:K}),e(k,[2,22]),e(k,[2,23]),e(S,[2,25]),e(S,[2,26]),e(S,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(M,[2,14],{7:y,11:A}),e(O,[2,8]),e(O,[2,9]),e(O,[2,10]),e(k,[2,16],{15:37,24:K}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:U}),e(S,[2,31]),{21:[1,39]},{22:[1,40]},e(M,[2,13],{7:y,11:A}),e(O,[2,11]),e(O,[2,12]),e(k,[2,15],{24:U}),e(S,[2,30]),{22:[1,41]},e(S,[2,27]),e(S,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(i,n){if(n.recoverable)this.trace(i);else{var s=new Error(i);throw s.hash=n,s}},"parseError"),parse:a(function(i){var n=this,s=[0],o=[],h=[null],t=[],R=this.table,c="",z=0,oe=0,ce=0,De=2,le=1,xe=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);m.setInput(i,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;t.push(Q);var Le=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ke(N){s.length=s.length-2*N,h.length=h.length-N,t.length=t.length-N}a(Ke,"popStack");function Oe(){var N;return N=o.pop()||m.lex()||le,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=n.symbols_[N]||N),N}a(Oe,"lex");for(var E,Z,j,D,Ue,$,G={},X,I,he,Y;;){if(j=s[s.length-1],this.defaultActions[j]?D=this.defaultActions[j]:((E===null||typeof E>"u")&&(E=Oe()),D=R[j]&&R[j][E]),typeof D>"u"||!D.length||!D[0]){var ee="";Y=[];for(X in R[j])this.terminals_[X]&&X>De&&Y.push("'"+this.terminals_[X]+"'");m.showPosition?ee="Parse error on line "+(z+1)+`:
`+m.showPosition()+`
Expecting `+Y.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(E==le?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ee,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Q,expected:Y})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+E);switch(D[0]){case 1:s.push(E),h.push(m.yytext),t.push(m.yylloc),s.push(D[1]),E=null,Z?(E=Z,Z=null):(oe=m.yyleng,c=m.yytext,z=m.yylineno,Q=m.yylloc,ce>0&&ce--);break;case 2:if(I=this.productions_[D[1]][1],G.$=h[h.length-I],G._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},Le&&(G._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(G,[c,oe,z,P.yy,D[1],h,t].concat(xe)),typeof $<"u")return $;I&&(s=s.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),s.push(this.productions_[D[1]][0]),h.push(G.$),t.push(G._$),he=R[s[s.length-2]][s[s.length-1]],s.push(he);break;case 3:return!0}}return!0},"parse")},J=function(){var v={EOF:1,parseError:a(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw new Error(n)},"parseError"),setInput:a(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:a(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:a(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),s.length-1&&(this.yylineno-=s.length-1);var h=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:s?(s.length===o.length?this.yylloc.first_column:0)+o[o.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(i){this.unput(this.match.slice(i))},"less"),pastInput:a(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+n+"^"},"showPosition"),test_match:a(function(i,n){var s,o,h;if(this.options.backtrack_lexer&&(h={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&&(h.yylloc.range=this.yylloc.range.slice(0))),o=i[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,s,o;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;tn[0].length)){if(n=s,o=t,this.options.backtrack_lexer){if(i=this.test_match(s,h[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,h[o]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var n=this.next();return n||this.lex()},"lex"),begin:a(function(n){this.conditionStack.push(n)},"begin"),popState:a(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(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:a(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:a(function(n){this.begin(n)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(n,s,o,h){var t=h;switch(o){case 0:return this.pushState("shapeData"),s.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let R=/\n\s*/g;return s.yytext=s.yytext.replace(R,"
"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",s.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",s.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),n.getLogger().trace("node end ...",s.yytext),"NODE_DEND";break;case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return n.getLogger().trace("Long description:",s.yytext),21;break;case 42:return n.getLogger().trace("Long description:",s.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return v}();T.lexer=J;function H(){this.yy={}}return a(H,"Parser"),H.prototype=T,T.Parser=H,new H}();ie.parser=ie;var ke=ie;var x=[],se=[],re=0,ae={},ve=a(()=>{x=[],se=[],re=0,ae={}},"clear"),Ce=a(e=>{if(x.length===0)return null;let u=x[0].level,p=null;for(let r=x.length-1;r>=0;r--)if(x[r].level===u&&!p&&(p=x[r]),x[r].levell.parentId===d.id);for(let l of b){let L={id:l.id,parentId:d.id,label:B(l.label??"",r),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(L)}}return{nodes:u,edges:e,other:{},config:V()}},"getData"),we=a((e,u,p,r,d)=>{let _=V(),b=_.mindmap?.padding??F.mindmap.padding;switch(r){case f.ROUNDED_RECT:case f.RECT:case f.HEXAGON:b*=2}let l={id:B(u,_)||"kbn"+re++,level:e,label:B(p,_),width:_.mindmap?.maxNodeWidth??F.mindmap.maxNodeWidth,padding:b,isGroup:!1};if(d!==void 0){let C;d.includes(`
`)?C=d+`
`:C=`{
`+d+`
}`;let g=pe(C,{schema:de});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon),g?.assigned&&(l.assigned=g?.assigned),g?.ticket&&(l.ticket=g?.ticket),g?.priority&&(l.priority=g?.priority)}let L=Ce(e);L?l.parentId=L.id||"kbn"+re++:se.push(l),x.push(l)},"addNode"),f={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ae=a((e,u)=>{switch(W.debug("In get type",e,u),e){case"[":return f.RECT;case"(":return u===")"?f.ROUNDED_RECT:f.CLOUD;case"((":return f.CIRCLE;case")":return f.CLOUD;case"))":return f.BANG;case"{{":return f.HEXAGON;default:return f.DEFAULT}},"getType"),Te=a((e,u)=>{ae[e]=u},"setElementForId"),Re=a(e=>{if(!e)return;let u=V(),p=x[x.length-1];e.icon&&(p.icon=B(e.icon,u)),e.class&&(p.cssClasses=B(e.class,u))},"decorateNode"),Pe=a(e=>{switch(e){case f.DEFAULT:return"no-border";case f.RECT:return"rect";case f.ROUNDED_RECT:return"rounded-rect";case f.CIRCLE:return"circle";case f.CLOUD:return"cloud";case f.BANG:return"bang";case f.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),je=a(()=>W,"getLogger"),Be=a(e=>ae[e],"getElementById"),Ve={clear:ve,addNode:we,getSections:Ee,getData:Ie,nodeType:f,getType:Ae,setElementForId:Te,decorateNode:Re,type2Str:Pe,getLogger:je,getElementById:Be},_e=Ve;var Me=a(async(e,u,p,r)=>{W.debug(`Rendering kanban diagram
`+e);let _=r.db.getData(),b=V();b.htmlLabels=!1;let l=ye(u),L=l.append("g");L.attr("class","sections");let C=l.append("g");C.attr("class","items");let g=_.nodes.filter(y=>y.isGroup),w=0,k=10,K=[],S=25;for(let y of g){let A=b?.kanban?.sectionWidth||200;w=w+1,y.x=A*w+(w-1)*k/2,y.width=A,y.y=0,y.height=A*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+w;let O=await fe(L,y);S=Math.max(S,O?.labelBBox?.height),K.push(O)}let M=0;for(let y of g){let A=K[M];M=M+1;let O=b?.kanban?.sectionWidth||200,U=-O*3/2+S,T=U,J=_.nodes.filter(i=>i.parentId===y.id);for(let i of J){if(i.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");i.x=y.x,i.width=O-1.5*k;let s=(await me(C,i,{config:b})).node().getBBox();i.y=T+s.height/2,await be(i),T=i.y+s.height/2+k/2}let H=A.cluster.select("rect"),v=Math.max(T-U+3*k,50)+(S-25);H.attr("height",v)}ge(void 0,l,b.mindmap?.padding??F.kanban.padding,b.mindmap?.useMaxWidth??F.kanban.useMaxWidth)},"draw"),Ne={draw:Me};var Ge=a(e=>{let u="";for(let r=0;re.darkMode?ne(r,d):te(r,d),"adjuster");for(let r=0;r`
.edge {
stroke-width: 3;
}
${Ge(e)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${e.git0};
}
.section-root text {
fill: ${e.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.cluster-label, .label {
color: ${e.textColor};
fill: ${e.textColor};
}
.kanban-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`,"getStyles"),Se=Fe;var ft={db:_e,renderer:Ne,parser:ke,styles:Se};export{ft as diagram};