@logan-jun/cd1-rag-chat 0.5.10 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/arc-CFT_xytZ.js +1 -0
- package/dist/assets/architectureDiagram-3BPJPVTR-ByvBsL22.js +36 -0
- package/dist/assets/{blockDiagram-GPEHLZMM-DANRXetr.js → blockDiagram-GPEHLZMM-Btm_Ke5c.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-DrgTxnQJ.js → c4Diagram-AAUBKEIU-D1PwXIUY.js} +1 -1
- package/dist/assets/channel-BHjgqmHX.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-UX4vU7XO.js → chunk-2J33WTMH-Dft8iKEQ.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-DTbbI5mp.js → chunk-4BX2VUAB-UUL3gYg2.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-DhUd-rwI.js → chunk-55IACEB6-DVQh6VJ8.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-DyxLTtCr.js → chunk-727SXJPM-DNEULieP.js} +3 -3
- package/dist/assets/{chunk-AQP2D5EJ-HvGaACE1.js → chunk-AQP2D5EJ-CxZiOBxr.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-CSDMOu1i.js → chunk-FMBD7UC4-Bo2Qw-qn.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-D_Xn9g_E.js → chunk-ND2GUHAM-BWgJWd9U.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-RAexEUDp.js → chunk-QZHKN3VN-BFD90oqZ.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-SHCvgtoo.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-SHCvgtoo.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-UfgbNpyP.js +1 -0
- package/dist/assets/{dagre-BM42HDAG-Dp_H6uzx.js → dagre-BM42HDAG-CDSRY61_.js} +2 -2
- package/dist/assets/{diagram-2AECGRRQ-kfs4-t_c.js → diagram-2AECGRRQ-DLNRLXN9.js} +2 -2
- package/dist/assets/{diagram-5GNKFQAL-CkApSmXg.js → diagram-5GNKFQAL-ZhVzdz5U.js} +3 -3
- package/dist/assets/{diagram-KO2AKTUF-3UAu0HZx.js → diagram-KO2AKTUF-Dus82Gbx.js} +3 -3
- package/dist/assets/{diagram-LMA3HP47-Bcli4Bs5.js → diagram-LMA3HP47-BjK3snB-.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-CqKeYZpr.js → diagram-OG6HWLK6-D1wCJO2t.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-DMZ4f8DN.js → erDiagram-TEJ5UH35-BumhwA52.js} +2 -2
- package/dist/assets/{flowDiagram-I6XJVG4X-Crnn9T-Q.js → flowDiagram-I6XJVG4X-BUH6NdCy.js} +4 -4
- package/dist/assets/ganttDiagram-6RSMTGT7-xDf4u_mL.js +292 -0
- package/dist/assets/{gitGraphDiagram-PVQCEYII-DwPXrSMh.js → gitGraphDiagram-PVQCEYII-D_z5jNo3.js} +8 -8
- package/dist/assets/index-3mHyxWiR.css +1 -0
- package/dist/assets/index-BESldG3d.js +96 -0
- package/dist/assets/{infoDiagram-5YYISTIA-BufKe_rC.js → infoDiagram-5YYISTIA-thBalF-L.js} +2 -2
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-Cv-ricX4.js → ishikawaDiagram-YF4QCWOH-CXHrFAsk.js} +5 -5
- package/dist/assets/{journeyDiagram-JHISSGLW-D5Y-dyVk.js → journeyDiagram-JHISSGLW-Coy771k2.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-DYXPijHD.js → kanban-definition-UN3LZRKU-CvAXBLxG.js} +7 -7
- package/dist/assets/{linear-Bf9iJcKJ.js → linear-15wisJgy.js} +1 -1
- package/dist/assets/{mermaid.core-B2ee-MXg.js → mermaid.core-BkSEtyQI.js} +5 -5
- package/dist/assets/{mindmap-definition-RKZ34NQL-DEK653KN.js → mindmap-definition-RKZ34NQL-zWB47ZHU.js} +4 -4
- package/dist/assets/{pieDiagram-4H26LBE5-CADhwU78.js → pieDiagram-4H26LBE5-CBDh9rAM.js} +3 -3
- package/dist/assets/{quadrantDiagram-W4KKPZXB-Dn-LwICz.js → quadrantDiagram-W4KKPZXB-BcyifALu.js} +3 -3
- package/dist/assets/{requirementDiagram-4Y6WPE33-UV-3sP_1.js → requirementDiagram-4Y6WPE33-DAgylyVN.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-CmuZaLvG.js → sankeyDiagram-5OEKKPKP-DDnS237t.js} +2 -2
- package/dist/assets/{sequenceDiagram-3UESZ5HK-BYvyLjKa.js → sequenceDiagram-3UESZ5HK-CVt5KVL0.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-Bqh29P7Q.js → stateDiagram-AJRCARHV-DkwuG171.js} +1 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-CJpsOvd5.js +1 -0
- package/dist/assets/{timeline-definition-PNZ67QCA-CT1h2EGV.js → timeline-definition-PNZ67QCA-D8ea6fyo.js} +4 -4
- package/dist/assets/{vennDiagram-CIIHVFJN-BfElMX5W.js → vennDiagram-CIIHVFJN-DVJXPk6o.js} +6 -6
- package/dist/assets/{wardley-L42UT6IY-C0nvb4--.js → wardley-L42UT6IY-BgaM4uIe.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-BZ0seKSD.js → wardleyDiagram-YWT4CUSO-CK6M6cI_.js} +2 -2
- package/dist/assets/{xychartDiagram-2RQKCTM6-C3xdJwTr.js → xychartDiagram-2RQKCTM6-BJyY96I0.js} +3 -3
- package/dist/index.html +2 -2
- package/package.json +4 -1
- package/dist/assets/arc-MEBDBAxN.js +0 -1
- package/dist/assets/architectureDiagram-3BPJPVTR-Ba9oqyR8.js +0 -36
- package/dist/assets/channel-D1qeoDL4.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-C0Nef2y_.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-C0Nef2y_.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-CsIZ-97_.js +0 -1
- package/dist/assets/ganttDiagram-6RSMTGT7-CYRNJdT6.js +0 -292
- package/dist/assets/index-DE5oTAz2.js +0 -94
- package/dist/assets/index-IR1JlKJJ.css +0 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-g8kqIKt4.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e,
|
|
2
|
-
`+r);const t=o(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${n}`)},"draw"),f={draw:c},
|
|
1
|
+
import{b as e,aC as s,a_ as o,E as i}from"./mermaid.core-BkSEtyQI.js";import{p as g}from"./wardley-L42UT6IY-BgaM4uIe.js";import"./index-BESldG3d.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"11.15.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
|
+
`+r);const t=o(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${n}`)},"draw"),f={draw:c},b={parser:p,db:m,renderer:f};export{b as diagram};
|
package/dist/assets/{ishikawaDiagram-YF4QCWOH-Cv-ricX4.js → ishikawaDiagram-YF4QCWOH-CXHrFAsk.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{b as l,
|
|
1
|
+
import{b as l,a3 as ot,aL as ut,a_ as dt,l as yt,t as ft,z as pt,b2 as it,a1 as gt,b0 as kt,a0 as mt,a$ as wt,a4 as _t,E as bt}from"./mermaid.core-BkSEtyQI.js";import"./index-BESldG3d.js";var tt=function(){var e=l(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),o=[1,4],a=[1,14],n=[1,12],r=[1,13],y=[6,7,8],f=[1,20],u=[1,18],w=[1,19],h=[6,7,11],x=[1,6,13,14],k=[1,23],g=[1,24],S=[1,6,7,11,13,14],O={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,2],[12,1],[12,1],[12,1]],performAction:l(function(t,s,i,d,p,c,$){var b=c.length-1;switch(p){case 6:case 7:return d;case 15:d.addNode(c[b-1].length,c[b].trim());break;case 16:d.addNode(0,c[b].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:a,7:[1,10],9:9,12:11,13:n,14:r},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:a,12:15,13:n,14:r},{6:a,9:16,12:11,13:n,14:r},{6:f,7:u,10:17,11:w},e(h,[2,18],{14:[1,21]}),e(h,[2,16]),e(h,[2,17]),{6:f,7:u,10:22,11:w},{1:[2,7],6:a,12:15,13:n,14:r},e(x,[2,14],{7:k,11:g}),e(S,[2,8]),e(S,[2,9]),e(S,[2,10]),e(h,[2,15]),e(x,[2,13],{7:k,11:g}),e(S,[2,11]),e(S,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:l(function(t){var s=this,i=[0],d=[],p=[null],c=[],$=this.table,b="",v=0,M=0,E=2,L=1,P=c.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(V.yy[F]=this.yy[F]);m.setInput(t,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc=="undefined"&&(m.yylloc={});var j=m.yylloc;c.push(j);var X=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(N){i.length=i.length-2*N,p.length=p.length-N,c.length=c.length-N}l(Y,"popStack");function Z(){var N;return N=d.pop()||m.lex()||L,typeof N!="number"&&(N instanceof Array&&(d=N,N=d.pop()),N=s.symbols_[N]||N),N}l(Z,"lex");for(var A,W,_,B,D={},z,C,et,K;;){if(W=i[i.length-1],this.defaultActions[W]?_=this.defaultActions[W]:((A===null||typeof A=="undefined")&&(A=Z()),_=$[W]&&$[W][A]),typeof _=="undefined"||!_.length||!_[0]){var Q="";K=[];for(z in $[W])this.terminals_[z]&&z>E&&K.push("'"+this.terminals_[z]+"'");m.showPosition?Q="Parse error on line "+(v+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
|
-
Expecting `+K.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(v+1)+": Unexpected "+(A==L?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:m.match,token:this.terminals_[A]||A,line:m.yylineno,loc:j,expected:K})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+
|
|
3
|
+
Expecting `+K.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(v+1)+": Unexpected "+(A==L?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:m.match,token:this.terminals_[A]||A,line:m.yylineno,loc:j,expected:K})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(_[0]){case 1:i.push(A),p.push(m.yytext),c.push(m.yylloc),i.push(_[1]),A=null,M=m.yyleng,b=m.yytext,v=m.yylineno,j=m.yylloc;break;case 2:if(C=this.productions_[_[1]][1],D.$=p[p.length-C],D._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},X&&(D._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),B=this.performAction.apply(D,[b,M,v,V.yy,_[1],p,c].concat(P)),typeof B!="undefined")return B;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),c=c.slice(0,-1*C)),i.push(this.productions_[_[1]][0]),p.push(D.$),c.push(D._$),et=$[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},R=function(){var T={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(t,s){return this.yy=s||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:l(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(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:l(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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 p=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===d.length?this.yylloc.first_column:0)+d[d.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(t){this.unput(this.match.slice(t))},"less"),pastInput:l(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:l(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:l(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
5
5
|
`+s+"^"},"showPosition"),test_match:l(function(t,s){var i,d,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),d=t[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.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,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var c in p)this[c]=p[c];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,s,i,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),c=0;c<p.length;c++)if(i=this._input.match(this.rules[p[c]]),i&&(!s||i[0].length>s[0].length)){if(s=i,d=c,this.options.backtrack_lexer){if(t=this.test_match(i,p[c]),t!==!1)return t;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(t=this.test_match(s,p[d]),t!==!1?t:!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:l(function(){var s=this.next();return s||this.lex()},"lex"),begin:l(function(s){this.conditionStack.push(s)},"begin"),popState:l(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:l(function(s){this.begin(s)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(s,i,d,p){switch(d){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return T}();O.lexer=R;function I(){this.yy={}}return l(I,"Parser"),I.prototype=O,O.Parser=I,new I}();tt.parser=tt;var xt=tt,U,vt=(U=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,ft()}getRoot(){return this.root}addNode(o,a){var u;const n=pt.sanitizeText(a,ot());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],it(n);return}(u=this.baseLevel)!=null||(this.baseLevel=o);let r=o-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();const y=this.stack[this.stack.length-1].node,f={text:n,children:[]};y.children.push(f),this.stack.push({level:r,node:f})}getAccTitle(){return gt()}setAccTitle(o){kt(o)}getAccDescription(){return mt()}setAccDescription(o){wt(o)}getDiagramTitle(){return _t()}setDiagramTitle(o){it(o)}},l(U,"IshikawaDB"),U),St=14,H=250,$t=30,Et=60,At=5,ht=82*Math.PI/180,st=Math.cos(ht),nt=Math.sin(ht),at=l((e,o,a)=>{const n=e.node().getBBox(),r=n.width+o*2,y=n.height+o*2;bt(e,y,r,a),e.attr("viewBox",`${n.x-o} ${n.y-o} ${r} ${y}`)},"applyPaddedViewBox"),It=l((e,o,a,n)=>{var V,
|
|
7
|
-
`)},"wrapText"),q=l((e,o,a,n,r,y,f)=>{const u=
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var s=this.next();return s||this.lex()},"lex"),begin:l(function(s){this.conditionStack.push(s)},"begin"),popState:l(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:l(function(s){this.begin(s)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(s,i,d,p){switch(d){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return T}();O.lexer=R;function I(){this.yy={}}return l(I,"Parser"),I.prototype=O,O.Parser=I,new I}();tt.parser=tt;var xt=tt,U,vt=(U=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,ft()}getRoot(){return this.root}addNode(o,a){var u;const n=pt.sanitizeText(a,ot());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],it(n);return}(u=this.baseLevel)!=null||(this.baseLevel=o);let r=o-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();const y=this.stack[this.stack.length-1].node,f={text:n,children:[]};y.children.push(f),this.stack.push({level:r,node:f})}getAccTitle(){return gt()}setAccTitle(o){kt(o)}getAccDescription(){return mt()}setAccDescription(o){wt(o)}getDiagramTitle(){return _t()}setDiagramTitle(o){it(o)}},l(U,"IshikawaDB"),U),St=14,H=250,$t=30,Et=60,At=5,ht=82*Math.PI/180,st=Math.cos(ht),nt=Math.sin(ht),at=l((e,o,a)=>{const n=e.node().getBBox(),r=n.width+o*2,y=n.height+o*2;bt(e,y,r,a),e.attr("viewBox",`${n.x-o} ${n.y-o} ${r} ${y}`)},"applyPaddedViewBox"),It=l((e,o,a,n)=>{var V,F,j,X,Y,Z,A,W;const y=n.db.getRoot();if(!y)return;const f=ot(),{look:u,handDrawnSeed:w,themeVariables:h}=f,x=(V=ut(f.fontSize)[0])!=null?V:St,k=u==="handDrawn",g=(F=y.children)!=null?F:[],S=(X=(j=f.ishikawa)==null?void 0:j.diagramPadding)!=null?X:20,O=(Z=(Y=f.ishikawa)==null?void 0:Y.useMaxWidth)!=null?Z:!1,R=dt(o),I=R.append("g").attr("class","ishikawa"),T=k?yt.svg(R.node()):void 0,t=T?{roughSvg:T,seed:w!=null?w:0,lineColor:(A=h==null?void 0:h.lineColor)!=null?A:"#333",fillColor:(W=h==null?void 0:h.mainBkg)!=null?W:"#fff"}:void 0,s=`ishikawa-arrow-${o}`;k||I.append("defs").append("marker").attr("id",s).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let i=0,d=H;const p=k?void 0:G(I,i,d,i,d,"ishikawa-spine");if(Lt(I,i,d,y.text,x,t),!g.length){k&&G(I,i,d,i,d,"ishikawa-spine",t),at(R,S,O);return}i-=20;const c=g.filter((_,B)=>B%2===0),$=g.filter((_,B)=>B%2===1),b=rt(c),v=rt($),M=b.total+v.total;let E=H,L=H;if(M>0){const _=H*2,B=H*.3;E=Math.max(B,_*(b.total/M)),L=Math.max(B,_*(v.total/M))}const P=x*2;E=Math.max(E,b.max*P),L=Math.max(L,v.max*P),d=Math.max(E,H),p&&p.attr("y1",d).attr("y2",d),I.select(".ishikawa-head-group").attr("transform",`translate(0,${d})`);const m=Math.ceil(g.length/2);for(let _=0;_<m;_++){const B=I.append("g").attr("class","ishikawa-pair");for(const[D,z,C]of[[g[_*2],-1,E],[g[_*2+1],1,L]])D&&Pt(B,D,i,d,z,C,x,t);i=B.selectAll("text").nodes().reduce((D,z)=>Math.min(D,z.getBBox().x),1/0)}if(k)G(I,i,d,0,d,"ishikawa-spine",t);else{p.attr("x1",i);const _=`url(#${s})`;I.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",_)}at(R,S,O)},"draw"),rt=l(e=>{const o=l(a=>a.children.reduce((n,r)=>n+1+o(r),0),"countDescendants");return e.reduce((a,n)=>{const r=o(n);return a.total+=r,a.max=Math.max(a.max,r),a},{total:0,max:0})},"sideStats"),Lt=l((e,o,a,n,r,y)=>{const f=Math.max(6,Math.floor(110/(r*.6))),u=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${o},${a})`),w=q(u,ct(n,f),0,0,"ishikawa-head-label","start",r),h=w.node().getBBox(),x=Math.max(60,h.width+6),k=Math.max(40,h.height*2+40),g=`M 0 ${-k/2} L 0 ${k/2} Q ${x*2.4} 0 0 ${-k/2} Z`;if(y){const S=y.roughSvg.path(g,{roughness:1.5,seed:y.seed,fill:y.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:y.lineColor,strokeWidth:2});u.insert(()=>S,":first-child").attr("class","ishikawa-head")}else u.insert("path",":first-child").attr("class","ishikawa-head").attr("d",g);w.attr("transform",`translate(${(x-h.width)/2-h.x+3},${-h.y-h.height/2})`)},"drawHead"),Tt=l((e,o)=>{const a=[],n=[],r=l((y,f,u)=>{var h;const w=o===-1?[...y].reverse():y;for(const x of w){const k=a.length,g=(h=x.children)!=null?h:[];a.push({depth:u,text:ct(x.text,15),parentIndex:f,childCount:g.length}),u%2===0?(n.push(k),g.length&&r(g,k,u+1)):(g.length&&r(g,k,u+1),n.push(k))}},"walk");return r(e,-1,2),{entries:a,yOrder:n}},"flattenTree"),Mt=l((e,o,a,n,r,y,f)=>{const u=e.append("g").attr("class","ishikawa-label-group"),h=q(u,o,a,n+11*r,"ishikawa-label cause","middle",y).node().getBBox();if(f){const x=f.roughSvg.rectangle(h.x-20,h.y-2,h.width+40,h.height+4,{roughness:1.5,seed:f.seed,fill:f.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:f.lineColor,strokeWidth:2});u.insert(()=>x,":first-child").attr("class","ishikawa-label-box")}else u.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",h.x-20).attr("y",h.y-2).attr("width",h.width+40).attr("height",h.height+4)},"drawCauseLabel"),J=l((e,o,a,n,r,y)=>{const f=Math.sqrt(n*n+r*r);if(f===0)return;const u=n/f,w=r/f,h=6,x=-w*h,k=u*h,g=o,S=a,O=`M ${g} ${S} L ${g-u*h*2+x} ${S-w*h*2+k} L ${g-u*h*2-x} ${S-w*h*2-k} Z`,R=y.roughSvg.path(O,{roughness:1,seed:y.seed,fill:y.lineColor,fillStyle:"solid",stroke:y.lineColor,strokeWidth:1});e.append(()=>R)},"drawArrowMarker"),Pt=l((e,o,a,n,r,y,f,u)=>{var p;const w=(p=o.children)!=null?p:[],h=y*(w.length?1:.2),x=-st*h,k=nt*h*r,g=a+x,S=n+k;if(G(e,a,n,g,S,"ishikawa-branch",u),u&&J(e,a,n,a-g,n-S,u),Mt(e,o.text,g,S,r,f,u),!w.length)return;const{entries:O,yOrder:R}=Tt(w,r),I=O.length,T=new Array(I);for(const[c,$]of R.entries())T[$]=n+k*((c+1)/(I+1));const t=new Map;t.set(-1,{x0:a,y0:n,x1:g,y1:S,childCount:w.length,childrenDrawn:0});const s=-st,i=nt*r,d=r<0?"ishikawa-label up":"ishikawa-label down";for(const[c,$]of O.entries()){const b=T[c],v=t.get($.parentIndex),M=e.append("g").attr("class","ishikawa-sub-group");let E=0,L=0,P=0;if($.depth%2===0){const m=v.y1-v.y0;E=lt(v.x0,v.x1,m?(b-v.y0)/m:.5),L=b,P=E-($.childCount>0?Et+$.childCount*At:$t),G(M,E,b,P,b,"ishikawa-sub-branch",u),u&&J(M,E,b,1,0,u),q(M,$.text,P,b,"ishikawa-label align","end",f)}else{const m=v.childrenDrawn++;E=lt(v.x0,v.x1,(v.childCount-m)/(v.childCount+1)),L=v.y0,P=E+s*((b-L)/i),G(M,E,L,P,b,"ishikawa-sub-branch",u),u&&J(M,E,L,E-P,L-b,u),q(M,$.text,P,b,d,"end",f)}$.childCount>0&&t.set(c,{x0:E,y0:L,x1:P,y1:b,childCount:$.childCount,childrenDrawn:0})}},"drawBranch"),Bt=l(e=>e.split(/<br\s*\/?>|\n/),"splitLines"),ct=l((e,o)=>{if(e.length<=o)return e;const a=[];for(const n of e.split(/\s+/)){const r=a.length-1;r>=0&&a[r].length+1+n.length<=o?a[r]+=" "+n:a.push(n)}return a.join(`
|
|
7
|
+
`)},"wrapText"),q=l((e,o,a,n,r,y,f)=>{const u=Bt(o),w=f*1.05,h=e.append("text").attr("class",r).attr("text-anchor",y).attr("x",a).attr("y",n-(u.length-1)*w/2);for(const[x,k]of u.entries())h.append("tspan").attr("x",a).attr("dy",x===0?0:w).text(k);return h},"drawMultilineText"),lt=l((e,o,a)=>e+(o-e)*a,"lerp"),G=l((e,o,a,n,r,y,f)=>{if(f){const u=f.roughSvg.line(o,a,n,r,{roughness:1.5,seed:f.seed,stroke:f.lineColor,strokeWidth:2});e.append(()=>u).attr("class",y);return}return e.append("line").attr("class",y).attr("x1",o).attr("y1",a).attr("x2",n).attr("y2",r)},"drawLine"),Nt={draw:It},Ot=l(e=>`
|
|
8
8
|
.ishikawa .ishikawa-spine,
|
|
9
9
|
.ishikawa .ishikawa-branch,
|
|
10
10
|
.ishikawa .ishikawa-sub-branch {
|
|
@@ -67,4 +67,4 @@ Expecting `+K.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on
|
|
|
67
67
|
.ishikawa .ishikawa-label.down {
|
|
68
68
|
dominant-baseline: hanging;
|
|
69
69
|
}
|
|
70
|
-
`,"getStyles"),Dt=Ot,Vt={parser:xt,get db(){return new vt},renderer:
|
|
70
|
+
`,"getStyles"),Dt=Ot,Vt={parser:xt,get db(){return new vt},renderer:Nt,styles:Dt};export{Vt as diagram};
|
package/dist/assets/{journeyDiagram-JHISSGLW-D5Y-dyVk.js → journeyDiagram-JHISSGLW-Coy771k2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./chunk-FMBD7UC4-
|
|
1
|
+
import{g as gt}from"./chunk-FMBD7UC4-Bo2Qw-qn.js";import{d as mt,g as lt,f as xt,e as kt}from"./chunk-ND2GUHAM-BWgJWd9U.js";import{a0 as _t,a$ as vt,a1 as bt,b0 as wt,a4 as Tt,b2 as St,b as s,a3 as R,aZ as G,E as $t,t as Mt}from"./mermaid.core-BkSEtyQI.js";import{d as it}from"./arc-CFT_xytZ.js";import"./index-BESldG3d.js";var U=function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],y=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey: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,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",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",18:"taskName",19:"taskData"},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,2]],performAction:s(function(r,n,l,u,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:u.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:y,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:y,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],u=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc=="undefined"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=u.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(u=w,w=u.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b=="undefined")&&(b=tt()),T=v[A]&&v[A][b]),typeof T=="undefined"||!T.length||!T[0]){var X="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q!="undefined")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.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),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var u=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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===u.length?this.yylloc.first_column:0)+u[u.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{b as c,
|
|
1
|
+
import{b as c,aC as ne,a3 as z,a_ as fe,aj as ye,am as be,aP as me,b5 as _e,S as J,aX as G,aB as ke,J as Ee,at as Se,ay as le,L as ce}from"./mermaid.core-BkSEtyQI.js";import{g as Ne}from"./chunk-FMBD7UC4-Bo2Qw-qn.js";import"./index-BESldG3d.js";var ee=function(){var e=c(function(d,s,t,a){for(t=t||{},a=d.length;a--;t[d[a]]=s);return t},"o"),p=[1,4],f=[1,13],r=[1,12],m=[1,15],E=[1,16],u=[1,20],y=[1,19],D=[6,7,8],g=[1,26],O=[1,24],L=[1,25],_=[6,7,11],I=[1,31],i=[6,7,11,24],B=[1,6,13,16,17,20,23],j=[1,35],M=[1,36],w=[1,6,7,11,13,16,17,20,23],U=[1,38],V={trace:c(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:c(function(s,t,a,l,h,n,T){var o=n.length-1;switch(h){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[o-1].id),l.addNode(n[o-2].length,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 16:l.getLogger().info("Node: ",n[o].id),l.addNode(n[o-1].length,n[o].id,n[o].descr,n[o].type);break;case 17:l.getLogger().trace("Icon: ",n[o]),l.decorateNode({icon:n[o]});break;case 18:case 23:l.decorateNode({class:n[o]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[o-1].id),l.addNode(0,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 21:l.getLogger().trace("Node: ",n[o].id),l.addNode(0,n[o].id,n[o].descr,n[o].type);break;case 22:l.decorateNode({icon:n[o]});break;case 27:l.getLogger().trace("node found ..",n[o-2]),this.$={id:n[o-1],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 28:this.$={id:n[o],descr:n[o],type:0};break;case 29:l.getLogger().trace("node found ..",n[o-3]),this.$={id:n[o-3],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 30:this.$=n[o-1]+n[o];break;case 31:this.$=n[o];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:p},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:p},{6:f,7:[1,10],9:9,12:11,13:r,14:14,16:m,17:E,18:17,19:18,20:u,23:y},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:f,12:21,13:r,14:14,16:m,17:E,18:17,19:18,20:u,23:y},{6:f,9:22,12:11,13:r,14:14,16:m,17:E,18:17,19:18,20:u,23:y},{6:g,7:O,10:23,11:L},e(_,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:u,23:y}),e(_,[2,19]),e(_,[2,21],{15:30,24:I}),e(_,[2,22]),e(_,[2,23]),e(i,[2,25]),e(i,[2,26]),e(i,[2,28],{20:[1,32]}),{21:[1,33]},{6:g,7:O,10:34,11:L},{1:[2,7],6:f,12:21,13:r,14:14,16:m,17:E,18:17,19:18,20:u,23:y},e(B,[2,14],{7:j,11:M}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(_,[2,16],{15:37,24:I}),e(_,[2,17]),e(_,[2,18]),e(_,[2,20],{24:U}),e(i,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:j,11:M}),e(w,[2,11]),e(w,[2,12]),e(_,[2,15],{24:U}),e(i,[2,30]),{22:[1,41]},e(i,[2,27]),e(i,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,t){if(t.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=t,a}},"parseError"),parse:c(function(s){var t=this,a=[0],l=[],h=[null],n=[],T=this.table,o="",H=0,W=0,ue=2,re=1,ge=n.slice.call(arguments,1),k=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(R.yy[q]=this.yy[q]);k.setInput(s,R.yy),R.yy.lexer=k,R.yy.parser=this,typeof k.yylloc=="undefined"&&(k.yylloc={});var Q=k.yylloc;n.push(Q);var de=k.options&&k.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(N){a.length=a.length-2*N,h.length=h.length-N,n.length=n.length-N}c(pe,"popStack");function ae(){var N;return N=l.pop()||k.lex()||re,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=t.symbols_[N]||N),N}c(ae,"lex");for(var S,P,x,Z,F={},K,C,oe,Y;;){if(P=a[a.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((S===null||typeof S=="undefined")&&(S=ae()),x=T[P]&&T[P][S]),typeof x=="undefined"||!x.length||!x[0]){var $="";Y=[];for(K in T[P])this.terminals_[K]&&K>ue&&Y.push("'"+this.terminals_[K]+"'");k.showPosition?$="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
|
-
Expecting `+Y.join(", ")+", got '"+(this.terminals_[S]||S)+"'":$="Parse error on line "+(H+1)+": Unexpected "+(S==re?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError($,{text:k.match,token:this.terminals_[S]||S,line:k.yylineno,loc:
|
|
3
|
+
Expecting `+Y.join(", ")+", got '"+(this.terminals_[S]||S)+"'":$="Parse error on line "+(H+1)+": Unexpected "+(S==re?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError($,{text:k.match,token:this.terminals_[S]||S,line:k.yylineno,loc:Q,expected:Y})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(x[0]){case 1:a.push(S),h.push(k.yytext),n.push(k.yylloc),a.push(x[1]),S=null,W=k.yyleng,o=k.yytext,H=k.yylineno,Q=k.yylloc;break;case 2:if(C=this.productions_[x[1]][1],F.$=h[h.length-C],F._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},de&&(F._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),Z=this.performAction.apply(F,[o,W,H,R.yy,x[1],h,n].concat(ge)),typeof Z!="undefined")return Z;C&&(a=a.slice(0,-1*C*2),h=h.slice(0,-1*C),n=n.slice(0,-1*C)),a.push(this.productions_[x[1]][0]),h.push(F.$),n.push(F._$),oe=T[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},X=function(){var d={EOF:1,parseError:c(function(t,a){if(this.yy.parser)this.yy.parser.parseError(t,a);else throw new Error(t)},"parseError"),setInput:c(function(s,t){return this.yy=t||this.yy||{},this._input=s,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:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var t=s.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var t=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var l=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),a.length-1&&(this.yylineno-=a.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:a?(a.length===l.length?this.yylloc.first_column:0)+l[l.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),t=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
5
|
`+t+"^"},"showPosition"),test_match:c(function(s,t){var a,l,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))),l=s[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var n in h)this[n]=h[n];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,t,a,l;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),n=0;n<h.length;n++)if(a=this._input.match(this.rules[h[n]]),a&&(!t||a[0].length>t[0].length)){if(t=a,l=n,this.options.backtrack_lexer){if(s=this.test_match(a,h[n]),s!==!1)return s;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(s=this.test_match(t,h[l]),s!==!1?s:!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:c(function(){var t=this.next();return t||this.lex()},"lex"),begin:c(function(t){this.conditionStack.push(t)},"begin"),popState:c(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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:c(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:c(function(t){this.begin(t)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c(function(t,a,l,h){switch(l){case 0:return this.pushState("shapeData"),a.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const n=/\n\s*/g;return a.yytext=a.yytext.replace(n,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",a.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;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:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 41:return t.getLogger().trace("Long description:",a.yytext),21;case 42:return t.getLogger().trace("Long description:",a.yytext),21}},"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 d}();
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c(function(){var t=this.next();return t||this.lex()},"lex"),begin:c(function(t){this.conditionStack.push(t)},"begin"),popState:c(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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:c(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:c(function(t){this.begin(t)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c(function(t,a,l,h){switch(l){case 0:return this.pushState("shapeData"),a.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const n=/\n\s*/g;return a.yytext=a.yytext.replace(n,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",a.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;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:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 41:return t.getLogger().trace("Long description:",a.yytext),21;case 42:return t.getLogger().trace("Long description:",a.yytext),21}},"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 d}();V.lexer=X;function A(){this.yy={}}return c(A,"Parser"),A.prototype=V,V.Parser=A,new A}();ee.parser=ee;var xe=ee,v=[],se=[],te=0,ie={},ve=c(()=>{v=[],se=[],te=0,ie={}},"clear"),De=c(e=>{if(v.length===0)return null;const p=v[0].level;let f=null;for(let r=v.length-1;r>=0;r--)if(v[r].level===p&&!f&&(f=v[r]),v[r].level<p)throw new Error('Items without section detected, found section ("'+v[r].label+'")');return e===(f==null?void 0:f.level)?null:f},"getSection"),he=c(function(){return se},"getSections"),Le=c(function(){var m,E;const e=[],p=[],f=he(),r=z();for(const u of f){const y={id:u.id,label:G((m=u.label)!=null?m:"",r),labelType:"markdown",isGroup:!0,ticket:u.ticket,shape:"kanbanSection",level:u.level,look:r.look};p.push(y);const D=v.filter(g=>g.parentId===u.id);for(const g of D){const O={id:g.id,parentId:u.id,label:G((E=g.label)!=null?E:"",r),labelType:"markdown",isGroup:!1,ticket:g==null?void 0:g.ticket,priority:g==null?void 0:g.priority,assigned:g==null?void 0:g.assigned,icon:g==null?void 0:g.icon,shape:"kanbanItem",level:g.level,rx:5,ry:5,cssStyles:["text-align: left"]};p.push(O)}}return{nodes:p,edges:e,other:{},config:z()}},"getData"),Oe=c((e,p,f,r,m)=>{var g,O,L,_;const E=z();let u=(O=(g=E.mindmap)==null?void 0:g.padding)!=null?O:J.mindmap.padding;switch(r){case b.ROUNDED_RECT:case b.RECT:case b.HEXAGON:u*=2}const y={id:G(p,E)||"kbn"+te++,level:e,label:G(f,E),width:(_=(L=E.mindmap)==null?void 0:L.maxNodeWidth)!=null?_:J.mindmap.maxNodeWidth,padding:u,isGroup:!1};if(m!==void 0){let I;m.includes(`
|
|
7
7
|
`)?I=m+`
|
|
8
8
|
`:I=`{
|
|
9
9
|
`+m+`
|
|
10
|
-
}`;const i=ke(I,{schema:
|
|
11
|
-
`+e);const
|
|
10
|
+
}`;const i=ke(I,{schema:Ee});if(i.shape&&(i.shape!==i.shape.toLowerCase()||i.shape.includes("_")))throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);i!=null&&i.shape&&i.shape==="kanbanItem"&&(y.shape=i==null?void 0:i.shape),i!=null&&i.label&&(y.label=i==null?void 0:i.label),i!=null&&i.icon&&(y.icon=i==null?void 0:i.icon.toString()),i!=null&&i.assigned&&(y.assigned=i==null?void 0:i.assigned.toString()),i!=null&&i.ticket&&(y.ticket=i==null?void 0:i.ticket.toString()),i!=null&&i.priority&&(y.priority=i==null?void 0:i.priority)}const D=De(e);D?y.parentId=D.id||"kbn"+te++:se.push(y),v.push(y)},"addNode"),b={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=c((e,p)=>{switch(ne.debug("In get type",e,p),e){case"[":return b.RECT;case"(":return p===")"?b.ROUNDED_RECT:b.CLOUD;case"((":return b.CIRCLE;case")":return b.CLOUD;case"))":return b.BANG;case"{{":return b.HEXAGON;default:return b.DEFAULT}},"getType"),Ce=c((e,p)=>{ie[e]=p},"setElementForId"),we=c(e=>{if(!e)return;const p=z(),f=v[v.length-1];e.icon&&(f.icon=G(e.icon,p)),e.class&&(f.cssClasses=G(e.class,p))},"decorateNode"),Ae=c(e=>{switch(e){case b.DEFAULT:return"no-border";case b.RECT:return"rect";case b.ROUNDED_RECT:return"rounded-rect";case b.CIRCLE:return"circle";case b.CLOUD:return"cloud";case b.BANG:return"bang";case b.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=c(()=>ne,"getLogger"),Re=c(e=>ie[e],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:b,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Be=Pe,Ve=c(async(e,p,f,r)=>{var j,M,w,U,V,X,A;ne.debug(`Rendering kanban diagram
|
|
11
|
+
`+e);const E=r.db.getData(),u=z();u.htmlLabels=!1;const y=fe(p);for(const d of E.nodes)d.domId=`${p}-${d.id}`;const D=y.append("g");D.attr("class","sections");const g=y.append("g");g.attr("class","items");const O=E.nodes.filter(d=>d.isGroup);let L=0;const _=10,I=[];let i=25;for(const d of O){const s=((j=u==null?void 0:u.kanban)==null?void 0:j.sectionWidth)||200;L=L+1,d.x=s*L+(L-1)*_/2,d.width=s,d.y=0,d.height=s*3,d.rx=5,d.ry=5,d.cssClasses=d.cssClasses+" section-"+L;const t=await ye(D,d);i=Math.max(i,(M=t==null?void 0:t.labelBBox)==null?void 0:M.height),I.push(t)}let B=0;for(const d of O){const s=I[B];B=B+1;const t=((w=u==null?void 0:u.kanban)==null?void 0:w.sectionWidth)||200,a=-t*3/2+i;let l=a;const h=E.nodes.filter(o=>o.parentId===d.id);for(const o of h){if(o.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");o.x=d.x,o.width=t-1.5*_;const W=(await be(g,o,{config:u})).node().getBBox();o.y=l+W.height/2,await me(o),l=o.y+W.height/2+_/2}const n=s.cluster.select("rect"),T=Math.max(l-a+3*_,50)+(i-25);n.attr("height",T)}_e(void 0,y,(V=(U=u.mindmap)==null?void 0:U.padding)!=null?V:J.kanban.padding,(A=(X=u.mindmap)==null?void 0:X.useMaxWidth)!=null?A:J.kanban.useMaxWidth)},"draw"),Fe={draw:Ve},Ge=c(e=>{let p="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],Se(e["lineColor"+r])?e["lineColor"+r]=le(e["lineColor"+r],20):e["lineColor"+r]=ce(e["lineColor"+r],20);const f=c((r,m)=>e.darkMode?ce(r,m):le(r,m),"adjuster");for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const m=""+(17-3*r);p+=`
|
|
12
12
|
.section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {
|
|
13
13
|
fill: ${f(e["cScale"+r],10)};
|
|
14
14
|
stroke: ${f(e["cScale"+r],10)};
|
|
@@ -54,7 +54,7 @@ Expecting `+Y.join(", ")+", got '"+(this.terminals_[S]||S)+"'":$="Parse error on
|
|
|
54
54
|
stroke: ${e.nodeBorder};
|
|
55
55
|
text-decoration: underline;
|
|
56
56
|
}
|
|
57
|
-
`}return p},"genSections"),
|
|
57
|
+
`}return p},"genSections"),je=c(e=>`
|
|
58
58
|
.edge {
|
|
59
59
|
stroke-width: 3;
|
|
60
60
|
}
|
|
@@ -86,4 +86,4 @@ Expecting `+Y.join(", ")+", got '"+(this.terminals_[S]||S)+"'":$="Parse error on
|
|
|
86
86
|
text-align: center;
|
|
87
87
|
}
|
|
88
88
|
${Ne()}
|
|
89
|
-
`,"getStyles"),
|
|
89
|
+
`,"getStyles"),Me=je,ze={db:Be,renderer:Fe,parser:xe,styles:Me};export{ze as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{G as j,aq as p,x as w,ar as k,as as q}from"./mermaid.core-BkSEtyQI.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,b as F,a as x,f as z}from"./defaultLocale-CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function B(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===B?n:I,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function I(){return 0}function P(n){return n===null?NaN:+n}const V=R(M),$=V.right;R(P).center;const G=Math.sqrt(50),O=Math.sqrt(10),T=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=G?10:f>=O?5:f>=T?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function E(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=$(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=E(n,r,t),f;switch(e=F(e==null?",f":e),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),x(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return z(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t==null?10:t)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t==null?10:t,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,E as t};
|