@nocobase/app 2.2.19 → 2.2.20

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.
Files changed (39) hide show
  1. package/dist/client/assets/{2260-2a9a8d11.js → 2260-400faca5.js} +2 -2
  2. package/dist/client/assets/{32-3ea31e57.js → 32-dc4d6c7b.js} +2 -2
  3. package/dist/client/assets/{index-db15fcba.js → index-496996f1.js} +12 -12
  4. package/dist/client/assets/{runtime-9670bed7.js → runtime-a6c61a78.js} +1 -1
  5. package/dist/client/assets/{vendor-antd-ecosystem-b9174353.js → vendor-antd-ecosystem-744b5e47.js} +2 -2
  6. package/dist/client/assets/{vendor-markdown-543b0a6e.js → vendor-markdown-05ab7469.js} +24 -24
  7. package/dist/client/assets/vendor-math-template-920c8243.js +2 -0
  8. package/dist/client/assets/{vendor-misc-9adcad21.js → vendor-misc-118e442f.js} +5 -5
  9. package/dist/client/assets/{vendor-misc-9adcad21.js.LICENSE.txt → vendor-misc-118e442f.js.LICENSE.txt} +2 -0
  10. package/dist/client/assets/{vendor-moment-8e0638ed.js → vendor-moment-52edb334.js} +2 -2
  11. package/dist/client/index.html +1 -1
  12. package/dist/client/index.html.tpl +1 -1
  13. package/dist/client/v/assets/{108-76a3fdea.js → 108-5c07ebe5.js} +2 -2
  14. package/dist/client/v/assets/1739-b7e18697.js +9 -0
  15. package/dist/client/v/assets/{8747-17d99e5b.js.LICENSE.txt → 1739-b7e18697.js.LICENSE.txt} +2 -0
  16. package/dist/client/v/assets/{3005-1449fc4e.js → 3005-666ff9f8.js} +1 -1
  17. package/dist/client/v/assets/{32-40098c3e.js → 32-80ecd324.js} +2 -2
  18. package/dist/client/v/assets/{2512-82c2f81f.js → 4179-aa3bd81c.js} +22 -22
  19. package/dist/client/v/assets/{8242-3f880357.js → 8242-aa15e210.js} +1 -1
  20. package/dist/client/v/assets/{index-c4fa99e2.js → index-f8b14518.js} +11 -11
  21. package/dist/client/v/assets/{runtime-9d9e445e.js → runtime-7b1e59d5.js} +1 -1
  22. package/dist/client/v/assets/{vendor-moment-84b317dc.js → vendor-moment-7bc8b4f0.js} +2 -2
  23. package/dist/client/v/index.html +1 -1
  24. package/package.json +7 -7
  25. package/dist/client/assets/vendor-math-template-280d2a52.js +0 -2
  26. package/dist/client/v/assets/8747-17d99e5b.js +0 -9
  27. /package/dist/client/assets/{2260-2a9a8d11.js.LICENSE.txt → 2260-400faca5.js.LICENSE.txt} +0 -0
  28. /package/dist/client/assets/{32-3ea31e57.js.LICENSE.txt → 32-dc4d6c7b.js.LICENSE.txt} +0 -0
  29. /package/dist/client/assets/{index-db15fcba.js.LICENSE.txt → index-496996f1.js.LICENSE.txt} +0 -0
  30. /package/dist/client/assets/{vendor-antd-ecosystem-b9174353.js.LICENSE.txt → vendor-antd-ecosystem-744b5e47.js.LICENSE.txt} +0 -0
  31. /package/dist/client/assets/{vendor-markdown-543b0a6e.js.LICENSE.txt → vendor-markdown-05ab7469.js.LICENSE.txt} +0 -0
  32. /package/dist/client/assets/{vendor-math-template-280d2a52.js.LICENSE.txt → vendor-math-template-920c8243.js.LICENSE.txt} +0 -0
  33. /package/dist/client/assets/{vendor-moment-8e0638ed.js.LICENSE.txt → vendor-moment-52edb334.js.LICENSE.txt} +0 -0
  34. /package/dist/client/v/assets/{108-76a3fdea.js.LICENSE.txt → 108-5c07ebe5.js.LICENSE.txt} +0 -0
  35. /package/dist/client/v/assets/{8747-336ef7b3.css → 1739-336ef7b3.css} +0 -0
  36. /package/dist/client/v/assets/{32-40098c3e.js.LICENSE.txt → 32-80ecd324.js.LICENSE.txt} +0 -0
  37. /package/dist/client/v/assets/{2512-82c2f81f.js.LICENSE.txt → 4179-aa3bd81c.js.LICENSE.txt} +0 -0
  38. /package/dist/client/v/assets/{index-c4fa99e2.js.LICENSE.txt → index-f8b14518.js.LICENSE.txt} +0 -0
  39. /package/dist/client/v/assets/{vendor-moment-84b317dc.js.LICENSE.txt → vendor-moment-7bc8b4f0.js.LICENSE.txt} +0 -0
@@ -186,6 +186,8 @@
186
186
 
187
187
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
188
188
 
189
+ /*! Axios v1.20.0 Copyright (c) 2026 Matt Zabriskie and contributors */
190
+
189
191
  /*! https://mths.be/punycode v1.4.1 by @mathias */
190
192
 
191
193
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -1,4 +1,4 @@
1
- export const __rspack_esm_id="3005";export const __rspack_esm_ids=["3005"];export const __webpack_modules__={7996(t,e,i){i.d(e,{diagram:()=>O});var n=i(57274),s=i(59804),r=i(54682),a=i(78041),l=i(75263);i(74353),i(16750),i(38777),i(43222),i(697),i(80676),i(76916),i(68313),i(90445),i(97375);var o=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,2],i=[1,5],n=[6,9,11,17,18,20,22,23,26,27,28],s=[1,15],r=[1,16],a=[1,17],l=[1,18],o=[1,19],c=[1,23],h=[1,24],d=[1,27],u=[4,6,9,11,17,18,20,22,23,26,27,28],p={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,i,n,s,r,a){var l=r.length-1;switch(s){case 1:return r[l-1];case 3:case 7:case 8:this.$=[];break;case 4:r[l-1].push(r[l]),this.$=r[l-1];break;case 5:case 6:this.$=r[l];break;case 11:n.getCommonDb().setDiagramTitle(r[l].substr(6)),this.$=r[l].substr(6);break;case 12:this.$=r[l].trim(),n.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=r[l].trim(),n.getCommonDb().setAccDescription(this.$);break;case 15:n.addSection(r[l].substr(8)),this.$=r[l].substr(8);break;case 19:n.addTask(r[l],0,""),this.$=r[l];break;case 20:n.addEvent(r[l].substr(2)),this.$=r[l];break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(r[l],"type_directive");break;case 23:r[l]=r[l].trim().replace(/'/g,'"'),n.parseDirective(r[l],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:e,7:3,12:4,28:i},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,28:i},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:r,20:a,22:l,23:o,24:20,25:21,26:c,27:h,28:i},{1:[2,2]},{14:25,15:[1,26],31:d},t([15,31],[2,22]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:22,10:28,12:4,17:s,18:r,20:a,22:l,23:o,24:20,25:21,26:c,27:h,28:i},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,29]},{21:[1,30]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(u,[2,9]),{14:34,31:d},{31:[2,23]},{11:[1,35]},t(u,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],n=[],s=[null],r=[],a=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),d=Object.create(this.lexer),u={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(u[p]=this.yy[p]);d.setInput(t,u),u.lexer=d,u.parser=this,void 0===d.yylloc&&(d.yylloc={});var g=d.yylloc;r.push(g);var y=d.options&&d.options.ranges;"function"==typeof u.parseError?this.parseError=u.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,m,_,b,x,v,k,S,w={};;){if(m=i[i.length-1],this.defaultActions[m]?_=this.defaultActions[m]:(null==f&&(f=function(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}()),_=a[m]&&a[m][f]),void 0===_||!_.length||!_[0]){var $="";for(x in S=[],a[m])this.terminals_[x]&&x>2&&S.push("'"+this.terminals_[x]+"'");$=d.showPosition?"Parse error on line "+(o+1)+":\n"+d.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError($,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:g,expected:S})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(_[0]){case 1:i.push(f),s.push(d.yytext),r.push(d.yylloc),i.push(_[1]),f=null,c=d.yyleng,l=d.yytext,o=d.yylineno,g=d.yylloc;break;case 2:if(v=this.productions_[_[1]][1],w.$=s[s.length-v],w._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},y&&(w._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(w,[l,c,o,u,_[1],s,r].concat(h))))return b;v&&(i=i.slice(0,-1*v*2),s=s.slice(0,-1*v),r=r.slice(0,-1*v)),i.push(this.productions_[_[1]][0]),s.push(w.$),r.push(w._$),k=a[i[i.length-2]][i[i.length-1]],i.push(k);break;case 3:return!0}}return!0}};function g(){this.yy={}}return p.lexer={EOF:1,parseError:function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},setInput: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},input: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},unput:function(t){var e=t.length,i=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 n=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),i.length-1&&(this.yylineno-=i.length-1);var s=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:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in s)this[r]=s[r];return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,s=this._currentRules(),r=0;r<s.length;r++)if((i=this._input.match(this.rules[s[r]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,s[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&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})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}},g.prototype=p,p.Parser=g,new g}();o.parser=o;let c="",h=0,d=[],u=[],p=[],g=()=>n.j,y=(t,e,i)=>{(0,n.k)(globalThis,t,e,i)},f=function(){d.length=0,u.length=0,c="",p.length=0,(0,n.m)()},m=function(t){c=t,d.push(t)},_=function(){return d},b=function(){let t=S(),e=0;for(;!t&&e<100;)t=S(),e++;return u.push(...p),u},x=function(t,e,i){let n={id:h++,section:c,type:c,task:t,score:e||0,events:i?[i]:[]};p.push(n)},v=function(t){p.find(t=>t.id===h-1).events.push(t)},k=function(t){let e={section:c,type:c,description:t,task:t,classes:[]};u.push(e)},S=function(){let t=!0;for(let[e,i]of p.entries())p[e].processed,t=t&&i.processed;return t},w=Object.freeze(Object.defineProperty({__proto__:null,addEvent:v,addSection:m,addTask:x,addTaskOrg:k,clear:f,default:{clear:f,getCommonDb:g,addSection:m,getSections:_,getTasks:b,addTask:x,addTaskOrg:k,addEvent:v,parseDirective:y},getCommonDb:g,getSections:_,getTasks:b,parseDirective:y},Symbol.toStringTag,{value:"Module"}));function $(t,e){t.each(function(){var t,i=(0,s.Ltv)(this),n=i.text().split(/(\s+|<br>)/).reverse(),r=[],a=i.attr("y"),l=parseFloat(i.attr("dy")),o=i.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",l+"em");for(let s=0;s<n.length;s++)t=n[n.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=i.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(function(){function t(t,e,i,s,r,a,l,o){n(e.append("text").attr("x",i+r/2).attr("y",s+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,i,s,r,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",i+r/2).attr("y",s).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",i+r/2).attr("dy",o).text(u[t]),p.attr("y",s+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(p,l)}}function i(t,i,s,r,a,l,o,c){let h=i.append("switch"),d=h.append("foreignObject").attr("x",s).attr("y",r).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,s,r,a,l,o,c),n(d,o)}function n(t,e){for(let i in e)i in e&&t.attr(i,e[i])};})();let E=function(t,e,i){t.append("path").attr("id","node-"+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-"+i).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},A=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")},I=function(t,e,i,n){let s=i%12-1,r=t.append("g");e.section=s,r.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+s);let a=r.append("g"),l=r.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($,e.width).node().getBBox(),c=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.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+")"),E(a,e,s),e},L=function(t,e,i){let n=t.append("g"),s=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call($,e.width).node().getBBox(),r=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return n.remove(),s.height+1.1*r*.5+e.padding},M=function(t,e,i,s,r,a,l,o,c,h,d){for(let o of e){let e={descr:o.task,section:i,number:i,width:150,padding:20,maxHeight:a};n.l.debug("taskNode",e);let u=t.append("g").attr("class","taskWrapper"),p=I(u,e,i,l).height;if(n.l.debug("taskHeight after draw",p),u.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,p),o.events){let e=t.append("g").attr("class","lineWrapper");r+=100,D(t,o.events,i,s,r,l),r-=100,e.append("line").attr("x1",s+95).attr("y1",r+a).attr("x2",s+95).attr("y2",r+a+(d?a:h)+c+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s+=200,d&&!(0,n.g)().timeline.disableMulticolor&&i++}},D=function(t,e,i,s,r,a){let l=0,o=r;for(let o of(r+=100,e)){let e={descr:o,section:i,number:i,width:150,padding:20,maxHeight:50};n.l.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=I(c,e,i,a).height;l+=h,c.attr("transform",`translate(${s}, ${r})`),r=r+10+h}return r=o,l},O={db:w,renderer:{setConf:function(t){Object.keys(t).forEach(function(e){conf[e]=t[e]})},draw:function(t,e,i,r){let a,l=(0,n.g)(),o=l.leftMargin?l.leftMargin:50;r.db.clear(),r.parser.parse(t+"\n"),n.l.debug("timeline",r.db);let c=l.securityLevel;"sandbox"===c&&(a=(0,s.Ltv)("#i"+e));let h=("sandbox"===c?(0,s.Ltv)(a.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select("#"+e);h.append("g");let d=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();n.l.debug("task",d),A(h);let p=r.db.getSections();n.l.debug("sections",p);let g=0,y=0,f=0,m=0,_=50+o,b=50;m=50;let x=0,v=!0;p.forEach(function(t){let e=L(h,{number:x,descr:t,section:x,width:150,padding:20,maxHeight:g},l);n.l.debug("sectionHeight before draw",e),g=Math.max(g,e+20)});let k=0,S=0;for(let[t,e]of(n.l.debug("tasks.length",d.length),d.entries())){let i=L(h,{number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:y},l);n.l.debug("taskHeight before draw",i),y=Math.max(y,i+20),k=Math.max(k,e.events.length);let s=0;for(let t=0;t<e.events.length;t++)s+=L(h,{descr:e.events[t],section:e.section,number:e.section,width:150,padding:20,maxHeight:50},l);S=Math.max(S,s)}n.l.debug("maxSectionHeight before draw",g),n.l.debug("maxTaskHeight before draw",y),p&&p.length>0?p.forEach(t=>{let e={number:x,descr:t,section:x,width:150,padding:20,maxHeight:g};n.l.debug("sectionNode",e);let i=h.append("g"),s=I(i,e,x,l);n.l.debug("sectionNode output",s),i.attr("transform",`translate(${_}, ${m})`),b+=g+50;let r=d.filter(e=>e.section===t);r.length>0&&M(h,r,x,_,b,y,l,k,S,g,!1),_+=200*Math.max(r.length,1),b=m,x++}):(v=!1,M(h,d,x,_,b,y,l,k,S,g,!0));let w=h.node().getBBox();n.l.debug("bounds",w),u&&h.append("text").text(u).attr("x",w.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=v?g+y+150:y+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",f).attr("x2",w.width+3*o).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,n.s)(void 0,h,l.timeline.padding?l.timeline.padding:50,!!l.timeline.useMaxWidth&&l.timeline.useMaxWidth)}},parser:o,styles:t=>`
1
+ export const __rspack_esm_id="3005";export const __rspack_esm_ids=["3005"];export const __webpack_modules__={7996(t,e,i){i.d(e,{diagram:()=>O});var n=i(58789),s=i(59804),r=i(54682),a=i(78041),l=i(75263);i(74353),i(16750),i(38777),i(43222),i(697),i(80676),i(76916),i(68313),i(90445),i(97375);var o=function(){var t=function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},e=[1,2],i=[1,5],n=[6,9,11,17,18,20,22,23,26,27,28],s=[1,15],r=[1,16],a=[1,17],l=[1,18],o=[1,19],c=[1,23],h=[1,24],d=[1,27],u=[4,6,9,11,17,18,20,22,23,26,27,28],p={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,i,n,s,r,a){var l=r.length-1;switch(s){case 1:return r[l-1];case 3:case 7:case 8:this.$=[];break;case 4:r[l-1].push(r[l]),this.$=r[l-1];break;case 5:case 6:this.$=r[l];break;case 11:n.getCommonDb().setDiagramTitle(r[l].substr(6)),this.$=r[l].substr(6);break;case 12:this.$=r[l].trim(),n.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=r[l].trim(),n.getCommonDb().setAccDescription(this.$);break;case 15:n.addSection(r[l].substr(8)),this.$=r[l].substr(8);break;case 19:n.addTask(r[l],0,""),this.$=r[l];break;case 20:n.addEvent(r[l].substr(2)),this.$=r[l];break;case 21:n.parseDirective("%%{","open_directive");break;case 22:n.parseDirective(r[l],"type_directive");break;case 23:r[l]=r[l].trim().replace(/'/g,'"'),n.parseDirective(r[l],"arg_directive");break;case 24:n.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:e,7:3,12:4,28:i},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,28:i},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:r,20:a,22:l,23:o,24:20,25:21,26:c,27:h,28:i},{1:[2,2]},{14:25,15:[1,26],31:d},t([15,31],[2,22]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:22,10:28,12:4,17:s,18:r,20:a,22:l,23:o,24:20,25:21,26:c,27:h,28:i},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,29]},{21:[1,30]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(u,[2,9]),{14:34,31:d},{31:[2,23]},{11:[1,35]},t(u,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],n=[],s=[null],r=[],a=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),d=Object.create(this.lexer),u={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(u[p]=this.yy[p]);d.setInput(t,u),u.lexer=d,u.parser=this,void 0===d.yylloc&&(d.yylloc={});var g=d.yylloc;r.push(g);var y=d.options&&d.options.ranges;"function"==typeof u.parseError?this.parseError=u.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,m,_,b,x,v,k,S,w={};;){if(m=i[i.length-1],this.defaultActions[m]?_=this.defaultActions[m]:(null==f&&(f=function(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}()),_=a[m]&&a[m][f]),void 0===_||!_.length||!_[0]){var $="";for(x in S=[],a[m])this.terminals_[x]&&x>2&&S.push("'"+this.terminals_[x]+"'");$=d.showPosition?"Parse error on line "+(o+1)+":\n"+d.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError($,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:g,expected:S})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(_[0]){case 1:i.push(f),s.push(d.yytext),r.push(d.yylloc),i.push(_[1]),f=null,c=d.yyleng,l=d.yytext,o=d.yylineno,g=d.yylloc;break;case 2:if(v=this.productions_[_[1]][1],w.$=s[s.length-v],w._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},y&&(w._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(w,[l,c,o,u,_[1],s,r].concat(h))))return b;v&&(i=i.slice(0,-1*v*2),s=s.slice(0,-1*v),r=r.slice(0,-1*v)),i.push(this.productions_[_[1]][0]),s.push(w.$),r.push(w._$),k=a[i[i.length-2]][i[i.length-1]],i.push(k);break;case 3:return!0}}return!0}};function g(){this.yy={}}return p.lexer={EOF:1,parseError:function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},setInput: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},input: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},unput:function(t){var e=t.length,i=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 n=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),i.length-1&&(this.yylineno-=i.length-1);var s=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:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var i,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.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],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in s)this[r]=s[r];return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,s=this._currentRules(),r=0;r<s.length;r++)if((i=this._input.match(this.rules[s[r]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,s[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&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})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,i,n){switch(i){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}},g.prototype=p,p.Parser=g,new g}();o.parser=o;let c="",h=0,d=[],u=[],p=[],g=()=>n.j,y=(t,e,i)=>{(0,n.k)(globalThis,t,e,i)},f=function(){d.length=0,u.length=0,c="",p.length=0,(0,n.m)()},m=function(t){c=t,d.push(t)},_=function(){return d},b=function(){let t=S(),e=0;for(;!t&&e<100;)t=S(),e++;return u.push(...p),u},x=function(t,e,i){let n={id:h++,section:c,type:c,task:t,score:e||0,events:i?[i]:[]};p.push(n)},v=function(t){p.find(t=>t.id===h-1).events.push(t)},k=function(t){let e={section:c,type:c,description:t,task:t,classes:[]};u.push(e)},S=function(){let t=!0;for(let[e,i]of p.entries())p[e].processed,t=t&&i.processed;return t},w=Object.freeze(Object.defineProperty({__proto__:null,addEvent:v,addSection:m,addTask:x,addTaskOrg:k,clear:f,default:{clear:f,getCommonDb:g,addSection:m,getSections:_,getTasks:b,addTask:x,addTaskOrg:k,addEvent:v,parseDirective:y},getCommonDb:g,getSections:_,getTasks:b,parseDirective:y},Symbol.toStringTag,{value:"Module"}));function $(t,e){t.each(function(){var t,i=(0,s.Ltv)(this),n=i.text().split(/(\s+|<br>)/).reverse(),r=[],a=i.attr("y"),l=parseFloat(i.attr("dy")),o=i.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",l+"em");for(let s=0;s<n.length;s++)t=n[n.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=i.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(function(){function t(t,e,i,s,r,a,l,o){n(e.append("text").attr("x",i+r/2).attr("y",s+a/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,i,s,r,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",i+r/2).attr("y",s).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",i+r/2).attr("dy",o).text(u[t]),p.attr("y",s+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(p,l)}}function i(t,i,s,r,a,l,o,c){let h=i.append("switch"),d=h.append("foreignObject").attr("x",s).attr("y",r).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,s,r,a,l,o,c),n(d,o)}function n(t,e){for(let i in e)i in e&&t.attr(i,e[i])};})();let E=function(t,e,i){t.append("path").attr("id","node-"+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-"+i).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},A=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")},I=function(t,e,i,n){let s=i%12-1,r=t.append("g");e.section=s,r.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+s);let a=r.append("g"),l=r.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($,e.width).node().getBBox(),c=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.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+")"),E(a,e,s),e},L=function(t,e,i){let n=t.append("g"),s=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call($,e.width).node().getBBox(),r=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return n.remove(),s.height+1.1*r*.5+e.padding},M=function(t,e,i,s,r,a,l,o,c,h,d){for(let o of e){let e={descr:o.task,section:i,number:i,width:150,padding:20,maxHeight:a};n.l.debug("taskNode",e);let u=t.append("g").attr("class","taskWrapper"),p=I(u,e,i,l).height;if(n.l.debug("taskHeight after draw",p),u.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,p),o.events){let e=t.append("g").attr("class","lineWrapper");r+=100,D(t,o.events,i,s,r,l),r-=100,e.append("line").attr("x1",s+95).attr("y1",r+a).attr("x2",s+95).attr("y2",r+a+(d?a:h)+c+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s+=200,d&&!(0,n.g)().timeline.disableMulticolor&&i++}},D=function(t,e,i,s,r,a){let l=0,o=r;for(let o of(r+=100,e)){let e={descr:o,section:i,number:i,width:150,padding:20,maxHeight:50};n.l.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=I(c,e,i,a).height;l+=h,c.attr("transform",`translate(${s}, ${r})`),r=r+10+h}return r=o,l},O={db:w,renderer:{setConf:function(t){Object.keys(t).forEach(function(e){conf[e]=t[e]})},draw:function(t,e,i,r){let a,l=(0,n.g)(),o=l.leftMargin?l.leftMargin:50;r.db.clear(),r.parser.parse(t+"\n"),n.l.debug("timeline",r.db);let c=l.securityLevel;"sandbox"===c&&(a=(0,s.Ltv)("#i"+e));let h=("sandbox"===c?(0,s.Ltv)(a.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select("#"+e);h.append("g");let d=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();n.l.debug("task",d),A(h);let p=r.db.getSections();n.l.debug("sections",p);let g=0,y=0,f=0,m=0,_=50+o,b=50;m=50;let x=0,v=!0;p.forEach(function(t){let e=L(h,{number:x,descr:t,section:x,width:150,padding:20,maxHeight:g},l);n.l.debug("sectionHeight before draw",e),g=Math.max(g,e+20)});let k=0,S=0;for(let[t,e]of(n.l.debug("tasks.length",d.length),d.entries())){let i=L(h,{number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:y},l);n.l.debug("taskHeight before draw",i),y=Math.max(y,i+20),k=Math.max(k,e.events.length);let s=0;for(let t=0;t<e.events.length;t++)s+=L(h,{descr:e.events[t],section:e.section,number:e.section,width:150,padding:20,maxHeight:50},l);S=Math.max(S,s)}n.l.debug("maxSectionHeight before draw",g),n.l.debug("maxTaskHeight before draw",y),p&&p.length>0?p.forEach(t=>{let e={number:x,descr:t,section:x,width:150,padding:20,maxHeight:g};n.l.debug("sectionNode",e);let i=h.append("g"),s=I(i,e,x,l);n.l.debug("sectionNode output",s),i.attr("transform",`translate(${_}, ${m})`),b+=g+50;let r=d.filter(e=>e.section===t);r.length>0&&M(h,r,x,_,b,y,l,k,S,g,!1),_+=200*Math.max(r.length,1),b=m,x++}):(v=!1,M(h,d,x,_,b,y,l,k,S,g,!0));let w=h.node().getBBox();n.l.debug("bounds",w),u&&h.append("text").text(u).attr("x",w.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=v?g+y+150:y+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",f).attr("x2",w.width+3*o).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,n.s)(void 0,h,l.timeline.padding?l.timeline.padding:50,!!l.timeline.useMaxWidth&&l.timeline.useMaxWidth)}},parser:o,styles:t=>`
2
2
  .edge {
3
3
  stroke-width: 3;
4
4
  }
@@ -1,2 +1,2 @@
1
- /*! For license information please see 32-40098c3e.js.LICENSE.txt */
2
- export const __rspack_esm_id="32";export const __rspack_esm_ids=["32"];export const __webpack_modules__={86419(e,t,r){r.d(t,{default:()=>s});var n=r(27303),i=r(49648),l=r.n(i);r(5409);var a=r(57274);let d=new n.A({html:!0,linkify:!0,typographer:!0,breaks:!0});d.use(l()),d.use(function(e,t){a.o.initialize({securityLevel:"loose",...t});let r=e.renderer.rules.fence;e.renderer.rules.fence=function(e,t,n,i,l){let d=e[t],s=d.info.trim();if(-1===["mermaid","{mermaid}"].indexOf(s?s.split(/\s+/g)[0]:""))return void 0!==r?r(e,t,n,i,l):"";let m="",o=[],c=document.createElement("div");document.body.appendChild(c);try{let e="mermaid-container";a.o.mermaidAPI.render(e,d.content,t=>{let r=document.getElementById(e);null!==r&&o.push(["style",`max-width:${r.style.maxWidth};max-height:${r.style.maxHeight}`]),m=t},c)}catch(e){return`<div class="alert alert-danger">${e}</div>`}finally{c.remove()}return o.push(["src",`data:image/svg+xml,${encodeURIComponent(m)}`]),`<img ${l.renderAttrs({attrs:o})}>`}});let s=d}};
1
+ /*! For license information please see 32-80ecd324.js.LICENSE.txt */
2
+ export const __rspack_esm_id="32";export const __rspack_esm_ids=["32"];export const __webpack_modules__={86419(e,t,r){r.d(t,{default:()=>s});var n=r(27303),i=r(49648),l=r.n(i);r(5409);var a=r(58789);let d=new n.A({html:!0,linkify:!0,typographer:!0,breaks:!0});d.use(l()),d.use(function(e,t){a.o.initialize({securityLevel:"loose",...t});let r=e.renderer.rules.fence;e.renderer.rules.fence=function(e,t,n,i,l){let d=e[t],s=d.info.trim();if(-1===["mermaid","{mermaid}"].indexOf(s?s.split(/\s+/g)[0]:""))return void 0!==r?r(e,t,n,i,l):"";let m="",o=[],c=document.createElement("div");document.body.appendChild(c);try{let e="mermaid-container";a.o.mermaidAPI.render(e,d.content,t=>{let r=document.getElementById(e);null!==r&&o.push(["style",`max-width:${r.style.maxWidth};max-height:${r.style.maxHeight}`]),m=t},c)}catch(e){return`<div class="alert alert-danger">${e}</div>`}finally{c.remove()}return o.push(["src",`data:image/svg+xml,${encodeURIComponent(m)}`]),`<img ${l.renderAttrs({attrs:o})}>`}});let s=d}};