1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="faf8659a-d90d-469d-9b78-1d6440f4468e",t._sentryDebugIdIdentifier="sentry-dbid-faf8659a-d90d-469d-9b78-1d6440f4468e")}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7754],{87754:(t,e,n)=>{n.d(e,{diagram:()=>B});var i=n(74042),r=n(3636),s=n(11229),a=n(60430),l=n(15029),o=n(20173),c=function(){var t=(0,r.K2)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,8,10,11,12,14,16,17,20,21],n=[1,9],i=[1,10],s=[1,11],a=[1,12],l=[1,13],o=[1,16],c=[1,17],h={trace:(0,r.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:(0,r.K2)(function(t,e,n,i,r,s,a){var l=s.length-1;switch(r){case 1:return s[l-1];case 2:case 6:case 7:this.$=[];break;case 3:s[l-1].push(s[l]),this.$=s[l-1];break;case 4:case 5:this.$=s[l];break;case 8:i.getCommonDb().setDiagramTitle(s[l].substr(6)),this.$=s[l].substr(6);break;case 9:this.$=s[l].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=s[l].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(s[l].substr(8)),this.$=s[l].substr(8);break;case 15:i.addTask(s[l],0,""),this.$=s[l];break;case 16:i.addEvent(s[l].substr(2)),this.$=s[l]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,14:s,16:a,17:l,18:14,19:15,20:o,21:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:i,14:s,16:a,17:l,18:14,19:15,20:o,21:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:(0,r.K2)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,r.K2)(function(t){var e=this,n=[0],i=[],s=[null],a=[],l=this.table,o="",c=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),g={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g[y]=this.yy[y]);p.setInput(t,g),g.lexer=p,g.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K2)(function(t){n.length=n.length-2*t,s.length=s.length-t,a.length=a.length-t},"popStack"),(0,r.K2)(b,"lex");for(var x,_,k,v,w,K,S,$,E,I={};;){if(k=n[n.length-1],this.defaultActions[k]?v=this.defaultActions[k]:(null==x&&(x=b()),v=l[k]&&l[k][x]),void 0===v||!v.length||!v[0]){var T="";for(K in E=[],l[k])this.terminals_[K]&&K>2&&E.push("'"+this.terminals_[K]+"'");T=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:f,expected:E})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(v[0]){case 1:n.push(x),s.push(p.yytext),a.push(p.yylloc),n.push(v[1]),x=null,_?(x=_,_=null):(h=p.yyleng,o=p.yytext,c=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[v[1]][1],I.$=s[s.length-S],I._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(I._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(I,[o,h,c,g,v[1],s,a].concat(u))))return w;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[v[1]][0]),s.push(I.$),a.push(I._$),$=l[n[n.length-2]][n[n.length-1]],n.push($);break;case 3:return!0}}return!0},"parse")};function d(){this.yy={}}return h.lexer={EOF:1,parseError:(0,r.K2)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K2)(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:(0,r.K2)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K2)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K2)(function(){return this._more=!0,this},"more"),reject:(0,r.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K2)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K2)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K2)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K2)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in r)this[s]=r[s];return!1},"test_match"),next:(0,r.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),s=0;s<r.length;s++)if((n=this._input.match(this.rules[r[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K2)(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:(0,r.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K2)(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}},(0,r.K2)(d,"Parser"),d.prototype=h,h.Parser=d,new d}();c.parser=c;var h={};(0,r.VA)(h,{addEvent:()=>v,addSection:()=>b,addTask:()=>k,addTaskOrg:()=>w,clear:()=>m,default:()=>S,getCommonDb:()=>f,getSections:()=>x,getTasks:()=>_});var d="",u=0,p=[],g=[],y=[],f=(0,r.K2)(()=>i.Wt,"getCommonDb"),m=(0,r.K2)(function(){p.length=0,g.length=0,d="",y.length=0,(0,i.IU)()},"clear"),b=(0,r.K2)(function(t){d=t,p.push(t)},"addSection"),x=(0,r.K2)(function(){return p},"getSections"),_=(0,r.K2)(function(){let t=K(),e=0;for(;!t&&e<100;)t=K(),e++;return g.push(...y),g},"getTasks"),k=(0,r.K2)(function(t,e,n){let i={id:u++,section:d,type:d,task:t,score:e||0,events:n?[n]:[]};y.push(i)},"addTask"),v=(0,r.K2)(function(t){y.find(t=>
1t.id===u-1).events.push(t)},"addEvent"),w=(0,r.K2)(function(t){let e={section:d,type:d,description:t,task:t,classes:[]};g.push(e)},"addTaskOrg"),K=(0,r.K2)(function(){let t=(0,r.K2)(function(t){return y[t].processed},"compileTask"),e=!0;for(let[n,i]of y.entries())t(n),e=e&&i.processed;return e},"compileTasks"),S={clear:m,getCommonDb:f,addSection:b,getSections:x,getTasks:_,addTask:k,addTaskOrg:w,addEvent:v},$=(0,r.K2)(function(t,e){let n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),E=(0,r.K2)(function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");function a(t){let n=(0,s.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function l(t){let n=(0,s.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,r.K2)(a,"smile"),(0,r.K2)(l,"sad"),(0,r.K2)(o,"ambivalent"),e.score>3?a(i):e.score<3?l(i):o(i),n},"drawFace"),I=(0,r.K2)(function(t,e){let n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);let r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),T=-1,A=(0,r.K2)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),L=function(){function t(t,e,n,r,s,a,l,o){i(e.append("text").attr("x",n+s/2).attr("y",r+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,n,r,s,a,l,o,c){let{taskFontSize:h,taskFontFamily:d}=o,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){let o=t*h-h*(u.length-1)/2,p=e.append("text").attr("x",n+s/2).attr("y",r).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",n+s/2).attr("dy",o).text(u[t]),p.attr("y",r+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(p,l)}}function n(t,n,r,s,a,l,o,c){let h=n.append("switch"),d=h.append("foreignObject").attr("x",r).attr("y",s).attr("width",a).attr("height",l).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,s,a,l,o,c),i(d,o)}function i(t,e){for(let n in e)n in e&&t.attr(n,e[n])}return(0,r.K2)(t,"byText"),(0,r.K2)(e,"byTspan"),(0,r.K2)(n,"byFo"),(0,r.K2)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),R=(0,r.K2)(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function N(t,e){t.each(function(){var t,n=(0,s.Ltv)(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),l=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",l+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,r.K2)(N,"wrap");var M=(0,r.K2)(function(t,e,n,i){let r=n%12-1,s=t.append("g");e.section=r,s.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);let a=s.append("g"),l=s.append("g"),o=l.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(N,e.width).node().getBBox(),c=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=o.height+1.1*c*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,l.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),P(a,e,r,i),e},"drawNode"),C=(0,r.K2)(function(t,e,n){let i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(N,e.width).node().getBBox(),s=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*s*.5+e.padding},"getVirtualNodeHeight"),P=(0,r.K2)(function(t,e,n){t.append("path").attr("id","no
1de-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${-e.height+10} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),H={initGraphics:R,drawNode:M,getVirtualNodeHeight:C},D=(0,r.K2)(function(t,e,n,a){let l,o=(0,i.D7)(),c=o.timeline?.leftMargin??50;r.Rm.debug("timeline",a.db);let h=o.securityLevel;"sandbox"===h&&(l=(0,s.Ltv)("#i"+e));let d=("sandbox"===h?(0,s.Ltv)(l.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select("#"+e);d.append("g");let u=a.db.getTasks(),p=a.db.getCommonDb().getDiagramTitle();r.Rm.debug("task",u),H.initGraphics(d);let g=a.db.getSections();r.Rm.debug("sections",g);let y=0,f=0,m=0,b=0,x=50+c,_=50;b=50;let k=0,v=!0;g.forEach(function(t){let e={number:k,descr:t,section:k,width:150,padding:20,maxHeight:y},n=H.getVirtualNodeHeight(d,e,o);r.Rm.debug("sectionHeight before draw",n),y=Math.max(y,n+20)});let w=0,K=0;for(let[t,e]of(r.Rm.debug("tasks.length",u.length),u.entries())){let n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:f},i=H.getVirtualNodeHeight(d,n,o);r.Rm.debug("taskHeight before draw",i),f=Math.max(f,i+20),w=Math.max(w,e.events.length);let s=0;for(let t of e.events){let n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};s+=H.getVirtualNodeHeight(d,n,o)}e.events.length>0&&(s+=(e.events.length-1)*10),K=Math.max(K,s)}r.Rm.debug("maxSectionHeight before draw",y),r.Rm.debug("maxTaskHeight before draw",f),g&&g.length>0?g.forEach(t=>{let e=u.filter(e=>e.section===t),n={number:k,descr:t,section:k,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:y};r.Rm.debug("sectionNode",n);let i=d.append("g"),s=H.drawNode(i,n,k,o);r.Rm.debug("sectionNode output",s),i.attr("transform",`translate(${x}, ${b})`),_+=y+50,e.length>0&&O(d,e,k,x,_,f,o,w,K,y,!1),x+=200*Math.max(e.length,1),_=b,k++}):(v=!1,O(d,u,k,x,_,f,o,w,K,y,!0));let S=d.node().getBBox();r.Rm.debug("bounds",S),p&&d.append("text").text(p).attr("x",S.width/2-c).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),m=v?y+f+150:f+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",c).attr("y1",m).attr("x2",S.width+3*c).attr("y2",m).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,i.ot)(void 0,d,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),O=(0,r.K2)(function(t,e,n,i,s,a,l,o,c,h,d){for(let o of e){let e={descr:o.task,section:n,number:n,width:150,padding:20,maxHeight:a};r.Rm.debug("taskNode",e);let h=t.append("g").attr("class","taskWrapper"),u=H.drawNode(h,e,n,l).height;if(r.Rm.debug("taskHeight after draw",u),h.attr("transform",`translate(${i}, ${s})`),a=Math.max(a,u),o.events){let e=t.append("g").attr("class","lineWrapper");s+=100,W(t,o.events,n,i,s,l),s-=100,e.append("line").attr("x1",i+95).attr("y1",s+a).attr("x2",i+95).attr("y2",s+a+100+c+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,d&&!l.timeline?.disableMulticolor&&n++}},"drawTasks"),W=(0,r.K2)(function(t,e,n,i,s,a){let l=0,o=s;for(let o of(s+=100,e)){let e={descr:o,section:n,number:n,width:150,padding:20,maxHeight:50};r.Rm.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=H.drawNode(c,e,n,a).height;l+=h,c.attr("transform",`translate(${i}, ${s})`),s=s+10+h}return s=o,l},"drawEvents"),j={setConf:(0,r.K2)(()=>{},"setConf"),draw:D},z=(0,r.K2)(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],(0,a.A)(t["lineColor"+e])?t["lineColor"+e]=(0,l.A)(t["lineColor"+e],20):t["lineColor"+e]=(0,o.A)(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let i=""+(17-3*n);e+=` 2 .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path { 3 fill: ${t["cScale"+n]}; 4 } 5 .section-${n-1} text { 6 fill: ${t["cScaleLabel"+n]}; 7 } 8 .node-icon-${n-1} { 9 font-size: 40px; 10 color: ${t["cScaleLabel"+n]}; 11 } 12 .section-edge-${n-1}{ 13 stroke: ${t["cScale"+n]}; 14 } 15 .edge-depth-${n-1}{ 16 stroke-width: ${i}; 17 } 18 .section-${n-1} line { 19 stroke: ${t["cScaleInv"+n]} ; 20 stroke-width: 3; 21 } 22 23 .lineWrapper line{ 24 stroke: ${t["cScaleLabel"+n]} ; 25 } 26 27 .disabled, .disabled circle, .disabled text { 28 fill: lightgray; 29 } 30 .disabled text { 31 fill: #efefef; 32 } 33 `}return e},"genSections"),B={db:h,renderer:j,parser:c,styles:(0,r.K2)(t=>` 34 .edge { 35 stroke-width: 3; 36 } 37 ${z(t)} 38 .section-root rect, .section-root path, .section-root circle { 39 fill: ${t.git0}; 40 } 41 .section-root text { 42 fill: ${t.gitBranchLabel0}; 43 } 44 .icon-container { 45 height:100%; 46 display: flex; 47 justify-content: center;
48 align-items: center; 49 } 50 .edge { 51 fill: none; 52 } 53 .eventWrapper { 54 filter: brightness(120%); 55 } 56`,"getStyles")}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.