@logan-jun/cd1-rag-chat 0.3.1 → 0.4.0

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 (58) hide show
  1. package/dist/assets/arc-scm8MMJs.js +1 -0
  2. package/dist/assets/architectureDiagram-3BPJPVTR-B4HnSePg.js +36 -0
  3. package/dist/assets/blockDiagram-GPEHLZMM-Br570MCp.js +132 -0
  4. package/dist/assets/c4Diagram-AAUBKEIU-DkTSnj0d.js +10 -0
  5. package/dist/assets/channel-DiZdOJ9B.js +1 -0
  6. package/dist/assets/chunk-2J33WTMH-CrTr9xzl.js +1 -0
  7. package/dist/assets/chunk-4BX2VUAB-D0wgG8xH.js +1 -0
  8. package/dist/assets/chunk-55IACEB6-Duov_Htw.js +1 -0
  9. package/dist/assets/chunk-727SXJPM-DDvX-nhe.js +206 -0
  10. package/dist/assets/chunk-AQP2D5EJ-09XyW5jk.js +231 -0
  11. package/dist/assets/chunk-FMBD7UC4-C8_DpYrt.js +15 -0
  12. package/dist/assets/chunk-ND2GUHAM-BeN_xln2.js +1 -0
  13. package/dist/assets/chunk-QZHKN3VN-vOMf7cyc.js +1 -0
  14. package/dist/assets/classDiagram-4FO5ZUOK-DDDJcc4H.js +1 -0
  15. package/dist/assets/classDiagram-v2-Q7XG4LA2-DDDJcc4H.js +1 -0
  16. package/dist/assets/cose-bilkent-S5V4N54A-pK2cAyHP.js +1 -0
  17. package/dist/assets/cytoscape.esm-C6a136cz.js +331 -0
  18. package/dist/assets/dagre-BM42HDAG-kL6GF6jg.js +4 -0
  19. package/dist/assets/defaultLocale-CrowFXzY.js +1 -0
  20. package/dist/assets/diagram-2AECGRRQ-dykDFI_K.js +43 -0
  21. package/dist/assets/diagram-5GNKFQAL-WJvXRiuM.js +10 -0
  22. package/dist/assets/diagram-KO2AKTUF-D2favLYT.js +3 -0
  23. package/dist/assets/diagram-LMA3HP47-CXVuETL_.js +24 -0
  24. package/dist/assets/diagram-OG6HWLK6-BcJzKfoj.js +24 -0
  25. package/dist/assets/erDiagram-TEJ5UH35-thR4lGNd.js +85 -0
  26. package/dist/assets/flowDiagram-I6XJVG4X-BxfwGe_r.js +162 -0
  27. package/dist/assets/ganttDiagram-6RSMTGT7-fwLip5Nh.js +292 -0
  28. package/dist/assets/gitGraphDiagram-PVQCEYII-D-oFePm0.js +106 -0
  29. package/dist/assets/graph-BB0J4w4c.js +1 -0
  30. package/dist/assets/index-CbSmh0fl.js +86 -0
  31. package/dist/assets/index-DDQloFPo.css +1 -0
  32. package/dist/assets/infoDiagram-5YYISTIA-D4MiRb75.js +2 -0
  33. package/dist/assets/init-Gi6I4Gst.js +1 -0
  34. package/dist/assets/ishikawaDiagram-YF4QCWOH-BXo0XBC7.js +70 -0
  35. package/dist/assets/journeyDiagram-JHISSGLW-CqScJnKj.js +139 -0
  36. package/dist/assets/kanban-definition-UN3LZRKU-MV47OAPx.js +89 -0
  37. package/dist/assets/katex-DOa3rsiF.js +257 -0
  38. package/dist/assets/layout-X4aHIIHH.js +1 -0
  39. package/dist/assets/linear-DLYnUT7M.js +1 -0
  40. package/dist/assets/mermaid.core-DuagT3S2.js +307 -0
  41. package/dist/assets/mindmap-definition-RKZ34NQL-HJXV2iNz.js +96 -0
  42. package/dist/assets/ordinal-Cboi1Yqb.js +1 -0
  43. package/dist/assets/pieDiagram-4H26LBE5-BVHq2F8U.js +30 -0
  44. package/dist/assets/quadrantDiagram-W4KKPZXB-BUPck4BP.js +7 -0
  45. package/dist/assets/requirementDiagram-4Y6WPE33-DQl89ON9.js +84 -0
  46. package/dist/assets/sankeyDiagram-5OEKKPKP-DD5N52ZQ.js +40 -0
  47. package/dist/assets/sequenceDiagram-3UESZ5HK-zctcDLCC.js +162 -0
  48. package/dist/assets/stateDiagram-AJRCARHV-Vyn0aDZv.js +1 -0
  49. package/dist/assets/stateDiagram-v2-BHNVJYJU-BY6pmmBt.js +1 -0
  50. package/dist/assets/timeline-definition-PNZ67QCA-1XNXDgjy.js +120 -0
  51. package/dist/assets/vennDiagram-CIIHVFJN-DZ1fF_Rg.js +34 -0
  52. package/dist/assets/wardley-L42UT6IY-DsEWk1n9.js +173 -0
  53. package/dist/assets/wardleyDiagram-YWT4CUSO-CpQIM9KB.js +78 -0
  54. package/dist/assets/xychartDiagram-2RQKCTM6-CIryoW2U.js +7 -0
  55. package/dist/index.html +2 -2
  56. package/package.json +18 -4
  57. package/dist/assets/index-BpgvSxpC.js +0 -89
  58. package/dist/assets/index-C4j9DEAI.css +0 -1
@@ -0,0 +1,96 @@
1
+ import{g as oe}from"./chunk-55IACEB6-Duov_Htw.js";import{s as ce}from"./chunk-2J33WTMH-CrTr9xzl.js";import{b as d,aE as $,ab as le,aV as he,a3 as de,T as z,a4 as V,aZ as W,ah as ge,av as ue,aA as pe,M as fe}from"./mermaid.core-DuagT3S2.js";import"./index-CbSmh0fl.js";const b=[];for(let t=0;t<256;++t)b.push((t+256).toString(16).slice(1));function me(t,e=0){return(b[t[e+0]]+b[t[e+1]]+b[t[e+2]]+b[t[e+3]]+"-"+b[t[e+4]]+b[t[e+5]]+"-"+b[t[e+6]]+b[t[e+7]]+"-"+b[t[e+8]]+b[t[e+9]]+"-"+b[t[e+10]]+b[t[e+11]]+b[t[e+12]]+b[t[e+13]]+b[t[e+14]]+b[t[e+15]]).toLowerCase()}const ye=new Uint8Array(16);function Ee(){return crypto.getRandomValues(ye)}function _e(t,e,o){return crypto.randomUUID?crypto.randomUUID():be(t)}function be(t,e,o){var c,n,g;t=t||{};const h=(g=(n=t.random)!=null?n:(c=t.rng)==null?void 0:c.call(t))!=null?g:Ee();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,me(h)}var J=function(){var t=d(function(C,s,i,a){for(i=i||{},a=C.length;a--;i[C[a]]=s);return i},"o"),e=[1,4],o=[1,13],h=[1,12],c=[1,15],n=[1,16],g=[1,20],E=[1,19],k=[6,7,8],_=[1,26],v=[1,24],L=[1,25],f=[6,7,11],D=[1,6,13,15,16,19,22],M=[1,33],P=[1,34],m=[1,6,7,11,13,15,16,19,22],R={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},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,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:d(function(s,i,a,l,p,r,U){var u=r.length-1;switch(p){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: ",r[u].id),l.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:l.getLogger().trace("Icon: ",r[u]),l.decorateNode({icon:r[u]});break;case 17:case 21:l.decorateNode({class:r[u]});break;case 18:l.getLogger().trace("SPACELIST");break;case 19:l.getLogger().trace("Node: ",r[u].id),l.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:l.decorateNode({icon:r[u]});break;case 25:l.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:l.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:l.nodeType.DEFAULT};break;case 27:l.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:l.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:h,14:14,15:c,16:n,17:17,18:18,19:g,22:E},t(k,[2,3]),{1:[2,2]},t(k,[2,4]),t(k,[2,5]),{1:[2,6],6:o,12:21,13:h,14:14,15:c,16:n,17:17,18:18,19:g,22:E},{6:o,9:22,12:11,13:h,14:14,15:c,16:n,17:17,18:18,19:g,22:E},{6:_,7:v,10:23,11:L},t(f,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:g,22:E}),t(f,[2,18]),t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),t(f,[2,23]),t(f,[2,24]),t(f,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:v,10:32,11:L},{1:[2,7],6:o,12:21,13:h,14:14,15:c,16:n,17:17,18:18,19:g,22:E},t(D,[2,14],{7:M,11:P}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(f,[2,15]),t(f,[2,16]),t(f,[2,17]),{20:[1,35]},{21:[1,36]},t(D,[2,13],{7:M,11:P}),t(m,[2,11]),t(m,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:d(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:d(function(s){var i=this,a=[0],l=[],p=[null],r=[],U=this.table,u="",G=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),I={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(I.yy[X]=this.yy[X]);y.setInput(s,I.yy),I.yy.lexer=y,I.yy.parser=this,typeof y.yylloc=="undefined"&&(y.yylloc={});var Y=y.yylloc;r.push(Y);var re=y.options&&y.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(x){a.length=a.length-2*x,p.length=p.length-x,r.length=r.length-x}d(ae,"popStack");function ee(){var x;return x=l.pop()||y.lex()||Q,typeof x!="number"&&(x instanceof Array&&(l=x,x=l.pop()),x=i.symbols_[x]||x),x}d(ee,"lex");for(var S,w,N,Z,A={},j,T,te,H;;){if(w=a[a.length-1],this.defaultActions[w]?N=this.defaultActions[w]:((S===null||typeof S=="undefined")&&(S=ee()),N=U[w]&&U[w][S]),typeof N=="undefined"||!N.length||!N[0]){var q="";H=[];for(j in U[w])this.terminals_[j]&&j>ie&&H.push("'"+this.terminals_[j]+"'");y.showPosition?q="Parse error on line "+(G+1)+`:
2
+ `+y.showPosition()+`
3
+ Expecting `+H.join(", ")+", got '"+(this.terminals_[S]||S)+"'":q="Parse error on line "+(G+1)+": Unexpected "+(S==Q?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(q,{text:y.match,token:this.terminals_[S]||S,line:y.yylineno,loc:Y,expected:H})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+S);switch(N[0]){case 1:a.push(S),p.push(y.yytext),r.push(y.yylloc),a.push(N[1]),S=null,K=y.yyleng,u=y.yytext,G=y.yylineno,Y=y.yylloc;break;case 2:if(T=this.productions_[N[1]][1],A.$=p[p.length-T],A._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},re&&(A._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),Z=this.performAction.apply(A,[u,K,G,I.yy,N[1],p,r].concat(se)),typeof Z!="undefined")return Z;T&&(a=a.slice(0,-1*T*2),p=p.slice(0,-1*T),r=r.slice(0,-1*T)),a.push(this.productions_[N[1]][0]),p.push(A.$),r.push(A._$),te=U[a[a.length-2]][a[a.length-1]],a.push(te);break;case 3:return!0}}return!0},"parse")},ne=function(){var C={EOF:1,parseError:d(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:d(function(s,i){return this.yy=i||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:d(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(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:d(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;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 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:a?(a.length===l.length?this.yylloc.first_column:0)+l[l.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(s){this.unput(this.match.slice(s))},"less"),pastInput:d(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:d(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:d(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
+ `+i+"^"},"showPosition"),test_match:d(function(s,i){var a,l,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))),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,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var r in p)this[r]=p[r];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,a,l;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),r=0;r<p.length;r++)if(a=this._input.match(this.rules[p[r]]),a&&(!i||a[0].length>i[0].length)){if(i=a,l=r,this.options.backtrack_lexer){if(s=this.test_match(a,p[r]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,p[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:d(function(){var i=this.next();return i||this.lex()},"lex"),begin:d(function(i){this.conditionStack.push(i)},"begin"),popState:d(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(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:d(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:d(function(i){this.begin(i)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(i,a,l,p){switch(l){case 0:return i.getLogger().trace("Found comment",a.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return i.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:i.getLogger().trace("end icon"),this.popState();break;case 10:return i.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return i.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return i.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),i.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 30:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 35:return i.getLogger().trace("Long description:",a.yytext),20;case 36:return i.getLogger().trace("Long description:",a.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\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:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return C}();R.lexer=ne;function F(){this.yy={}}return d(F,"Parser"),F.prototype=R,R.Parser=F,new F}();J.parser=J;var ke=J,Se=12,O={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},B,xe=(B=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=O,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let o=this.nodes.length-1;o>=0;o--)if(this.nodes[o].level<e)return this.nodes[o];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,o,h,c){var v,L,f,D;$.info("addNode",e,o,h,c);let n=!1;this.nodes.length===0?(this.baseLevel=e,e=0,n=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,n=!1);const g=V();let E=(L=(v=g.mindmap)==null?void 0:v.padding)!=null?L:z.mindmap.padding;switch(c){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:E*=2;break}const k={id:this.count++,nodeId:W(o,g),level:e,descr:W(h,g),type:c,children:[],width:(D=(f=g.mindmap)==null?void 0:f.maxNodeWidth)!=null?D:z.mindmap.maxNodeWidth,padding:E,isRoot:n},_=this.getParent(e);if(_)_.children.push(k),this.nodes.push(k);else if(n)this.nodes.push(k);else throw new Error(`There can be only one root. No parent could be found for ("${k.descr}")`)}getType(e,o){switch($.debug("In get type",e,o),e){case"[":return this.nodeType.RECT;case"(":return o===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,o){this.elements[e]=o}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const o=V(),h=this.nodes[this.nodes.length-1];e.icon&&(h.icon=W(e.icon,o)),e.class&&(h.class=W(e.class,o))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,o){if(e.level===0?e.section=void 0:e.section=o,e.children)for(const[h,c]of e.children.entries()){const n=e.level===0?h%(Se-1):o;this.assignSections(c,n)}}flattenNodes(e,o){var k;const h=V(),c=["mindmap-node"];e.isRoot===!0?c.push("section-root","section--1"):e.section!==void 0&&c.push(`section-${e.section}`),e.class&&c.push(e.class);const n=c.join(" "),g=d(_=>{var f,D;const L=((D=(f=h.theme)==null?void 0:f.toLowerCase())!=null?D:"").includes("redux");switch(_){case O.CIRCLE:return"mindmapCircle";case O.RECT:return"rect";case O.ROUNDED_RECT:return"rounded";case O.CLOUD:return"cloud";case O.BANG:return"bang";case O.HEXAGON:return"hexagon";case O.DEFAULT:return L?"rounded":"defaultMindmapNode";case O.NO_BORDER:default:return"rect"}},"getShapeFromType"),E={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:g(e.type),width:e.width,height:(k=e.height)!=null?k:0,padding:e.padding,cssClasses:n,cssStyles:[],look:h.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(o.push(E),e.children)for(const _ of e.children)this.flattenNodes(_,o)}generateEdges(e,o){if(!e.children)return;const h=V();for(const c of e.children){let n="edge";c.section!==void 0&&(n+=` section-edge-${c.section}`);const g=e.level+1;n+=` edge-depth-${g}`;const E={id:`edge_${e.id}_${c.id}`,start:e.id.toString(),end:c.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:h.look,classes:n,depth:e.level,section:c.section};o.push(E),this.generateEdges(c,o)}}getData(){const e=this.getMindmap(),o=V(),c=ge().layout!==void 0,n=o;if(c||(n.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:n};$.debug("getData: mindmapRoot",e,o),this.assignSections(e);const g=[],E=[];this.flattenNodes(e,g),this.generateEdges(e,E),$.debug(`getData: processed ${g.length} nodes and ${E.length} edges`);const k=new Map;for(const _ of g)k.set(_.id,{shape:_.shape,width:_.width,height:_.height,padding:_.padding});return{nodes:g,edges:E,config:n,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(k),type:"mindmap",diagramId:"mindmap-"+_e()}}getLogger(){return $}},d(B,"MindmapDB"),B),Ne=d(async(t,e,o,h)=>{var f,D,M,P;$.debug(`Rendering mindmap diagram
7
+ `+t);const c=h.db,n=c.getData(),g=oe(e,n.config.securityLevel);if(n.type=h.type,n.layoutAlgorithm=le(n.config.layout,{fallback:"cose-bilkent"}),n.diagramId=e,!c.getMindmap())return;n.nodes.forEach(m=>{m.shape==="rounded"?(m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15):m.shape==="circle"?m.padding=10:m.shape==="rect"?(m.width=0,m.padding=10):m.shape==="hexagon"&&(m.width=0,m.height=0)}),await he(n,g);const{themeVariables:k}=de(),{useGradient:_,gradientStart:v,gradientStop:L}=k;if(_&&v&&L){const m=g.attr("id"),R=g.append("defs").append("linearGradient").attr("id",`${m}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",v).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",L).attr("stop-opacity",1)}ce(g,(D=(f=n.config.mindmap)==null?void 0:f.padding)!=null?D:z.mindmap.padding,"mindmapDiagram",(P=(M=n.config.mindmap)==null?void 0:M.useMaxWidth)!=null?P:z.mindmap.useMaxWidth)},"draw"),De={draw:Ne},Le=d(t=>{var c;const{theme:e,look:o}=t;let h="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],ue(t["lineColor"+n])?t["lineColor"+n]=pe(t["lineColor"+n],20):t["lineColor"+n]=fe(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const g=""+(o==="neo"?Math.max(10-(n-1)*2,2):17-3*n);h+=`
8
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
9
+ fill: ${t["cScale"+n]};
10
+ }
11
+ .section-${n-1} text {
12
+ fill: ${t["cScaleLabel"+n]};
13
+ }
14
+ .section-${n-1} span {
15
+ color: ${t["cScaleLabel"+n]};
16
+ }
17
+ .node-icon-${n-1} {
18
+ font-size: 40px;
19
+ color: ${t["cScaleLabel"+n]};
20
+ }
21
+ .section-edge-${n-1}{
22
+ stroke: ${t["cScale"+n]};
23
+ }
24
+ .edge-depth-${n-1}{
25
+ stroke-width: ${g};
26
+ }
27
+ .section-${n-1} line {
28
+ stroke: ${t["cScaleInv"+n]} ;
29
+ stroke-width: 3;
30
+ }
31
+
32
+ .disabled, .disabled circle, .disabled text {
33
+ fill: lightgray;
34
+ }
35
+ .disabled text {
36
+ fill: #efefef;
37
+ }
38
+ [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
39
+ fill: ${e==="redux"||e==="redux-dark"||e==="neutral"?t.mainBkg:t["cScale"+n]};
40
+ stroke: ${e==="redux"||e==="redux-dark"?t.nodeBorder:t["cScale"+n]};
41
+ stroke-width: ${(c=t.strokeWidth)!=null?c:2}px;
42
+ }
43
+ [data-look="neo"].section-edge-${n-1}{
44
+ stroke: ${e!=null&&e.includes("redux")||e==="neo-dark"?t.nodeBorder:t["cScale"+n]};
45
+ }
46
+ [data-look="neo"].mindmap-node.section-${n-1} text {
47
+ fill: ${e==="redux"||e==="redux-dark"?t.nodeBorder:t["cScaleLabel"+(e==="neutral"?1:n)]};
48
+ }
49
+ `}return h},"genSections"),ve=d((t,e,o)=>{let h="";for(let c=0;c<t;c++)h+=`
50
+ [data-look="neo"].mindmap-node.section-${c-1} rect, [data-look="neo"].mindmap-node.section-${c-1} path, [data-look="neo"].mindmap-node.section-${c-1} circle, [data-look="neo"].mindmap-node.section-${c-1} polygon {
51
+ stroke: url(${e}-gradient);
52
+ fill: ${o};
53
+ }
54
+ .section-${c-1} line {
55
+ stroke-width: 0;
56
+ }`;return h},"genGradient"),Te=d(t=>{const{theme:e}=t,o=t.svgId,h=t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${o}-drop-shadow)`):"none";return`
57
+ .edge {
58
+ stroke-width: 3;
59
+ }
60
+ ${Le(t)}
61
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
62
+ fill: ${t.git0};
63
+ }
64
+ .section-root text {
65
+ fill: ${t.gitBranchLabel0};
66
+ }
67
+ .section-root span {
68
+ color: ${e!=null&&e.includes("redux")?t.nodeBorder:t.gitBranchLabel0};
69
+ }
70
+ .icon-container {
71
+ height:100%;
72
+ display: flex;
73
+ justify-content: center;
74
+ align-items: center;
75
+ }
76
+ .edge {
77
+ fill: none;
78
+ }
79
+ .mindmap-node-label {
80
+ dy: 1em;
81
+ alignment-baseline: middle;
82
+ text-anchor: middle;
83
+ dominant-baseline: middle;
84
+ text-align: center;
85
+ }
86
+ [data-look="neo"].mindmap-node {
87
+ filter: ${h};
88
+ }
89
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
90
+ fill: ${e!=null&&e.includes("redux")?t.mainBkg:t.git0};
91
+ }
92
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
93
+ fill: ${e!=null&&e.includes("redux")?t.nodeBorder:t["cScaleLabel"+(e==="neutral"?1:0)]};
94
+ }
95
+ ${t.useGradient&&o&&t.mainBkg?ve(t.THEME_COLOR_LIMIT,o,t.mainBkg):""}
96
+ `},"getStyles"),Oe=Te,Ae={get db(){return new xe},renderer:De,parser:ke,styles:Oe};export{Ae as diagram};
@@ -0,0 +1 @@
1
+ import{i as a}from"./init-Gi6I4Gst.js";class o extends Map{constructor(n,t=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(l(this,n),t)}delete(n){return super.delete(p(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function l({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function p({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),t}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,n=[],t=[],r=f;function s(u){let i=e.get(u);if(i===void 0){if(r!==f)return r;e.set(u,i=n.push(u)-1)}return t[i%t.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new o;for(const i of u)e.has(i)||e.set(i,n.push(i)-1);return s},s.range=function(u){return arguments.length?(t=Array.from(u),s):t.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return h(n,t).unknown(r)},a.apply(s,arguments),s}export{h as o};
@@ -0,0 +1,30 @@
1
+ import{G as y,be as R,g as Y,a1 as tt,b1 as et,a2 as at,b2 as rt,a6 as nt,b4 as it,b as p,aE as F,a4 as st,s as lt,b0 as ot,aN as ct,F as ut,t as pt,T as gt}from"./mermaid.core-DuagT3S2.js";import{p as dt}from"./chunk-4BX2VUAB-D0wgG8xH.js";import{p as ft}from"./wardley-L42UT6IY-DsEWk1n9.js";import{d as V}from"./arc-scm8MMJs.js";import{o as ht}from"./ordinal-Cboi1Yqb.js";import"./index-CbSmh0fl.js";import"./init-Gi6I4Gst.js";function mt(t,a){return a<t?-1:a>t?1:a>=t?0:NaN}function vt(t){return t}function xt(){var t=vt,a=mt,h=null,w=y(0),s=y(R),g=y(0);function l(e){var n,o=(e=Y(e)).length,d,m,x=0,c=new Array(o),i=new Array(o),f=+w.apply(this,arguments),S=Math.min(R,Math.max(-R,s.apply(this,arguments)-f)),v,$=Math.min(Math.abs(S)/o,g.apply(this,arguments)),T=$*(S<0?-1:1),u;for(n=0;n<o;++n)(u=i[c[n]=n]=+t(e[n],n,e))>0&&(x+=u);for(a!=null?c.sort(function(C,D){return a(i[C],i[D])}):h!=null&&c.sort(function(C,D){return h(e[C],e[D])}),n=0,m=x?(S-o*T)/x:0;n<o;++n,f=v)d=c[n],u=i[d],v=f+(u>0?u*m:0)+T,i[d]={data:e[d],index:n,value:u,startAngle:f,endAngle:v,padAngle:$};return i}return l.value=function(e){return arguments.length?(t=typeof e=="function"?e:y(+e),l):t},l.sortValues=function(e){return arguments.length?(a=e,h=null,l):a},l.sort=function(e){return arguments.length?(h=e,a=null,l):h},l.startAngle=function(e){return arguments.length?(w=typeof e=="function"?e:y(+e),l):w},l.endAngle=function(e){return arguments.length?(s=typeof e=="function"?e:y(+e),l):s},l.padAngle=function(e){return arguments.length?(g=typeof e=="function"?e:y(+e),l):g},l}var yt=gt.pie,z={sections:new Map,showData:!1},b=z.sections,G=z.showData,wt=structuredClone(yt),St=p(()=>structuredClone(wt),"getConfig"),At=p(()=>{b=new Map,G=z.showData,pt()},"clear"),Ct=p(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),F.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Dt=p(()=>b,"getSections"),$t=p(t=>{G=t},"setShowData"),Tt=p(()=>G,"getShowData"),U={getConfig:St,clear:At,setDiagramTitle:it,getDiagramTitle:nt,setAccTitle:rt,getAccTitle:at,setAccDescription:et,getAccDescription:tt,addSection:Ct,getSections:Dt,setShowData:$t,getShowData:Tt},bt=p((t,a)=>{dt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Et={parse:p(async t=>{const a=await ft("pie",t);F.debug(a),bt(a,U)},"parse")},Mt=p(t=>`
2
+ .pieCircle{
3
+ stroke: ${t.pieStrokeColor};
4
+ stroke-width : ${t.pieStrokeWidth};
5
+ opacity : ${t.pieOpacity};
6
+ }
7
+ .pieOuterCircle{
8
+ stroke: ${t.pieOuterStrokeColor};
9
+ stroke-width: ${t.pieOuterStrokeWidth};
10
+ fill: none;
11
+ }
12
+ .pieTitleText {
13
+ text-anchor: middle;
14
+ font-size: ${t.pieTitleTextSize};
15
+ fill: ${t.pieTitleTextColor};
16
+ font-family: ${t.fontFamily};
17
+ }
18
+ .slice {
19
+ font-family: ${t.fontFamily};
20
+ fill: ${t.pieSectionTextColor};
21
+ font-size:${t.pieSectionTextSize};
22
+ // fill: white;
23
+ }
24
+ .legend text {
25
+ fill: ${t.pieLegendTextColor};
26
+ font-family: ${t.fontFamily};
27
+ font-size: ${t.pieLegendTextSize};
28
+ }
29
+ `,"getStyles"),kt=Mt,Rt=p(t=>{const a=[...t.values()].reduce((s,g)=>s+g,0),h=[...t.entries()].map(([s,g])=>({label:s,value:g})).filter(s=>s.value/a*100>=1);return xt().value(s=>s.value).sort(null)(h)},"createPieArcs"),Ft=p((t,a,h,w)=>{var P,I;F.debug(`rendering pie chart
30
+ `+t);const s=w.db,g=st(),l=lt(s.getConfig(),g.pie),e=40,n=18,o=4,d=450,m=d,x=ot(a),c=x.append("g");c.attr("transform","translate("+m/2+","+d/2+")");const{themeVariables:i}=g;let[f]=ct(i.pieOuterStrokeWidth);f!=null||(f=2);const S=l.textPosition,v=Math.min(m,d)/2-e,$=V().innerRadius(0).outerRadius(v),T=V().innerRadius(v*S).outerRadius(v*S);c.append("circle").attr("cx",0).attr("cy",0).attr("r",v+f/2).attr("class","pieOuterCircle");const u=s.getSections(),C=Rt(u),D=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12];let E=0;u.forEach(r=>{E+=r});const N=C.filter(r=>(r.data.value/E*100).toFixed(0)!=="0"),M=ht(D).domain([...u.keys()]);c.selectAll("mySlices").data(N).enter().append("path").attr("d",$).attr("fill",r=>M(r.data.label)).attr("class","pieCircle"),c.selectAll("mySlices").data(N).enter().append("text").text(r=>(r.data.value/E*100).toFixed(0)+"%").attr("transform",r=>"translate("+T.centroid(r)+")").style("text-anchor","middle").attr("class","slice");const j=c.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),L=[...u.entries()].map(([r,A])=>({label:r,value:A})),k=c.selectAll(".legend").data(L).enter().append("g").attr("class","legend").attr("transform",(r,A)=>{const _=n+o,J=_*L.length/2,K=12*n,Q=A*_-J;return"translate("+K+","+Q+")"});k.append("rect").attr("width",n).attr("height",n).style("fill",r=>M(r.label)).style("stroke",r=>M(r.label)),k.append("text").attr("x",n+o).attr("y",n-o).text(r=>s.getShowData()?`${r.label} [${r.value}]`:r.label);const X=Math.max(...k.selectAll("text").nodes().map(r=>{var A;return(A=r==null?void 0:r.getBoundingClientRect().width)!=null?A:0})),Z=m+e+n+o+X,W=(I=(P=j.node())==null?void 0:P.getBoundingClientRect().width)!=null?I:0,q=m/2-W/2,H=m/2+W/2,B=Math.min(0,q),O=Math.max(Z,H)-B;x.attr("viewBox",`${B} 0 ${O} ${d}`),ut(x,d,O,l.useMaxWidth)},"draw"),zt={draw:Ft},_t={parser:Et,db:U,renderer:zt,styles:kt};export{_t as diagram};
@@ -0,0 +1,7 @@
1
+ import{b1 as Ae,a1 as ke,a6 as ae,b4 as Fe,a2 as Pe,b2 as ve,b as o,a4 as Rt,aE as Ft,a$ as It,F as Ce,t as Le,T as z,aZ as Ee,af as De}from"./mermaid.core-DuagT3S2.js";import{l as ie}from"./linear-DLYnUT7M.js";import"./index-CbSmh0fl.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-CrowFXzY.js";var wt=function(){var t=o(function(Y,r,l,g){for(l=l||{},g=Y.length;g--;l[Y[g]]=r);return l},"o"),n=[1,3],x=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],m=[1,36],b=[1,38],T=[1,35],q=[1,43],c=[1,41],S=[1,45],M=[1,14],j=[1,23],qt=[1,18],mt=[1,19],ct=[1,20],vt=[1,21],dt=[1,22],ut=[1,24],xt=[1,25],ft=[1,26],gt=[1,27],pt=[1,28],yt=[1,29],e=[1,32],U=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],O=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,91],J=[1,92],$=[1,93],tt=[1,100],et=[1,94],it=[1,97],at=[1,95],nt=[1,96],st=[1,98],rt=[1,99],Ct=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Lt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,A,i,Tt){var s=i.length-1;switch(A){case 23:this.$=i[s];break;case 24:this.$=i[s-1]+""+i[s];break;case 26:this.$=i[s-1]+i[s];break;case 27:this.$=[i[s].trim()];break;case 28:i[s-2].push(i[s].trim()),this.$=i[s-2];break;case 29:this.$=i[s-4],f.addClass(i[s-2],i[s]);break;case 37:this.$=[];break;case 42:this.$=i[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=i[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=i[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 47:f.addPoint(i[s-3],"",i[s-1],i[s],[]);break;case 48:f.addPoint(i[s-4],i[s-3],i[s-1],i[s],[]);break;case 49:f.addPoint(i[s-4],"",i[s-2],i[s-1],i[s]);break;case 50:f.addPoint(i[s-5],i[s-4],i[s-2],i[s-1],i[s]);break;case 51:f.setXAxisLeftText(i[s-2]),f.setXAxisRightText(i[s]);break;case 52:i[s-1].text+=" ⟶ ",f.setXAxisLeftText(i[s-1]);break;case 53:f.setXAxisLeftText(i[s]);break;case 54:f.setYAxisBottomText(i[s-2]),f.setYAxisTopText(i[s]);break;case 55:i[s-1].text+=" ⟶ ",f.setYAxisBottomText(i[s-1]);break;case 56:f.setYAxisBottomText(i[s]);break;case 57:f.setQuadrant1Text(i[s]);break;case 58:f.setQuadrant2Text(i[s]);break;case 59:f.setQuadrant3Text(i[s]);break;case 60:f.setQuadrant4Text(i[s]);break;case 64:this.$={text:i[s],type:"text"};break;case 65:this.$={text:i[s-1].text+""+i[s],type:i[s-1].type};break;case 66:this.$={text:i[s],type:"text"};break;case 67:this.$={text:i[s],type:"markdown"};break;case 68:this.$=i[s];break;case 69:this.$=i[s-1]+""+i[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:x,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:x,55:d,56:h,57:p},{18:n,26:9,27:2,28:x,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:m,10:b,12:T,13:q,14:c,15:S,18:M,25:j,35:qt,37:mt,39:ct,41:vt,42:dt,48:ut,50:xt,51:ft,52:gt,53:pt,54:yt,60:e,61:U,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:m,10:b,12:T,13:q,14:c,15:S,18:M,25:j,35:qt,37:mt,39:ct,41:vt,42:dt,48:ut,50:xt,51:ft,52:gt,53:pt,54:yt,60:e,61:U,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:m,10:b,12:T,13:q,14:c,15:S,43:52,58:31,60:e,61:U,63:F,64:P,65:v,66:C,67:L},{4:u,5:m,10:b,12:T,13:q,14:c,15:S,43:53,58:31,60:e,61:U,63:F,64:P,65:v,66:C,67:L},{4:u,5:m,10:b,12:T,13:q,14:c,15:S,43:54,58:31,60:e,61:U,63:F,64:P,65:v,66:C,67:L},{4:u,5:m,10:b,12:T,13:q,14:c,15:S,43:55,58:31,60:e,61:U,63:F,64:P,65:v,66:C,67:L},{4:u,5:m,10:b,12:T,13:q,14:c,15:S,43:56,58:31,60:e,61:U,63:F,64:P,65:v,66:C,67:L},{4:u,5:m,10:b,12:T,13:q,14:c,15:S,43:57,58:31,60:e,61:U,63:F,64:P,65:v,66:C,67:L},{4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:m,10:b,12:T,13:q,14:c,15:S,60:e,61:U,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:m,10:b,12:T,13:q,14:c,15:S,60:e,61:U,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:Z,5:J,6:$,8:tt,11:et,13:it,16:90,17:at,18:nt,19:st,20:rt,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:m,8:O,10:b,12:T,13:q,14:c,15:S,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,102]},t(a,[2,29],{10:Ct}),t(Zt,[2,27],{16:104,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t(N,[2,25]),t(N,[2,13]),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]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:Ct}),t(a,[2,48],{22:89,16:90,23:105,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:Z,5:J,6:$,8:tt,11:et,13:it,16:90,17:at,18:nt,19:st,20:rt,22:106},t(N,[2,26]),t(a,[2,50],{10:Ct}),t(Zt,[2,28],{16:104,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],A=[null],i=[],Tt=this.table,s="",St=0,Jt=0,me=2,$t=1,be=i.slice.call(arguments,1),D=Object.create(this.lexer),G={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(G.yy[Et]=this.yy[Et]);D.setInput(r,G.yy),G.yy.lexer=D,G.yy.parser=this,typeof D.yylloc=="undefined"&&(D.yylloc={});var Dt=D.yylloc;i.push(Dt);var Se=D.options&&D.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){g.length=g.length-2*R,A.length=A.length-R,i.length=i.length-R}o(_e,"popStack");function te(){var R;return R=f.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,K,W,zt,ot={},_t,X,ee,At;;){if(K=g[g.length-1],this.defaultActions[K]?W=this.defaultActions[K]:((B===null||typeof B=="undefined")&&(B=te()),W=Tt[K]&&Tt[K][B]),typeof W=="undefined"||!W.length||!W[0]){var Vt="";At=[];for(_t in Tt[K])this.terminals_[_t]&&_t>me&&At.push("'"+this.terminals_[_t]+"'");D.showPosition?Vt="Parse error on line "+(St+1)+`:
2
+ `+D.showPosition()+`
3
+ Expecting `+At.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Vt="Parse error on line "+(St+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Vt,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Dt,expected:At})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+B);switch(W[0]){case 1:g.push(B),A.push(D.yytext),i.push(D.yylloc),g.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,St=D.yylineno,Dt=D.yylloc;break;case 2:if(X=this.productions_[W[1]][1],ot.$=A[A.length-X],ot._$={first_line:i[i.length-(X||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(X||1)].first_column,last_column:i[i.length-1].last_column},Se&&(ot._$.range=[i[i.length-(X||1)].range[0],i[i.length-1].range[1]]),zt=this.performAction.apply(ot,[s,Jt,St,G.yy,W[1],A,i].concat(be)),typeof zt!="undefined")return zt;X&&(g=g.slice(0,-1*X*2),A=A.slice(0,-1*X),i=i.slice(0,-1*X)),g.push(this.productions_[W[1]][0]),A.push(ot.$),i.push(ot._$),ee=Tt[g[g.length-2]][g[g.length-1]],g.push(ee);break;case 3:return!0}}return!0},"parse")},qe=function(){var Y={EOF:1,parseError:o(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||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:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(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:o(function(r){var l=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=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),g.length-1&&(this.yylineno-=g.length-1);var A=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:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(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:o(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:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+l+"^"},"showPosition"),test_match:o(function(r,l){var g,f,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),f=r[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],g=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var i in A)this[i]=A[i];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,g,f;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),i=0;i<A.length;i++)if(g=this._input.match(this.rules[A[i]]),g&&(!l||g[0].length>l[0].length)){if(l=g,f=i,this.options.backtrack_lexer){if(r=this.test_match(g,A[i]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,A[f]),r!==!1?r:!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:o(function(){var l=this.next();return l||this.lex()},"lex"),begin:o(function(l){this.conditionStack.push(l)},"begin"),popState:o(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:o(function(l){this.begin(l)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(l,g,f,A){switch(f){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return Y}();Lt.lexer=qe;function bt(){this.yy={}}return o(bt,"Parser"),bt.prototype=Lt,Lt.Parser=bt,new bt}();wt.parser=wt;var ze=wt,I=De(),lt,Ve=(lt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var n,x,d,h,p,y,_,a,k,u,m,b,T,q,c,S,M,j;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((n=z.quadrantChart)==null?void 0:n.chartWidth)||500,chartWidth:((x=z.quadrantChart)==null?void 0:x.chartHeight)||500,titlePadding:((d=z.quadrantChart)==null?void 0:d.titlePadding)||10,titleFontSize:((h=z.quadrantChart)==null?void 0:h.titleFontSize)||20,quadrantPadding:((p=z.quadrantChart)==null?void 0:p.quadrantPadding)||5,xAxisLabelPadding:((y=z.quadrantChart)==null?void 0:y.xAxisLabelPadding)||5,yAxisLabelPadding:((_=z.quadrantChart)==null?void 0:_.yAxisLabelPadding)||5,xAxisLabelFontSize:((a=z.quadrantChart)==null?void 0:a.xAxisLabelFontSize)||16,yAxisLabelFontSize:((k=z.quadrantChart)==null?void 0:k.yAxisLabelFontSize)||16,quadrantLabelFontSize:((u=z.quadrantChart)==null?void 0:u.quadrantLabelFontSize)||16,quadrantTextTopPadding:((m=z.quadrantChart)==null?void 0:m.quadrantTextTopPadding)||5,pointTextPadding:((b=z.quadrantChart)==null?void 0:b.pointTextPadding)||5,pointLabelFontSize:((T=z.quadrantChart)==null?void 0:T.pointLabelFontSize)||12,pointRadius:((q=z.quadrantChart)==null?void 0:q.pointRadius)||5,xAxisPosition:((c=z.quadrantChart)==null?void 0:c.xAxisPosition)||"top",yAxisPosition:((S=z.quadrantChart)==null?void 0:S.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((M=z.quadrantChart)==null?void 0:M.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((j=z.quadrantChart)==null?void 0:j.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:I.quadrant1Fill,quadrant2Fill:I.quadrant2Fill,quadrant3Fill:I.quadrant3Fill,quadrant4Fill:I.quadrant4Fill,quadrant1TextFill:I.quadrant1TextFill,quadrant2TextFill:I.quadrant2TextFill,quadrant3TextFill:I.quadrant3TextFill,quadrant4TextFill:I.quadrant4TextFill,quadrantPointFill:I.quadrantPointFill,quadrantPointTextFill:I.quadrantPointTextFill,quadrantXAxisTextFill:I.quadrantXAxisTextFill,quadrantYAxisTextFill:I.quadrantYAxisTextFill,quadrantTitleFill:I.quadrantTitleFill,quadrantInternalBorderStrokeFill:I.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:I.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,Ft.info("clear called")}setData(n){this.data={...this.data,...n}}addPoints(n){this.data.points=[...n,...this.data.points]}addClass(n,x){this.classes.set(n,x)}setConfig(n){Ft.trace("setConfig called with: ",n),this.config={...this.config,...n}}setThemeConfig(n){Ft.trace("setThemeConfig called with: ",n),this.themeConfig={...this.themeConfig,...n}}calculateSpace(n,x,d,h){const p=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,y={top:n==="top"&&x?p:0,bottom:n==="bottom"&&x?p:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,a={left:this.config.yAxisPosition==="left"&&d?_:0,right:this.config.yAxisPosition==="right"&&d?_:0},k=this.config.titleFontSize+this.config.titlePadding*2,u={top:h?k:0},m=this.config.quadrantPadding+a.left,b=this.config.quadrantPadding+y.top+u.top,T=this.config.chartWidth-this.config.quadrantPadding*2-a.left-a.right,q=this.config.chartHeight-this.config.quadrantPadding*2-y.top-y.bottom-u.top,c=T/2,S=q/2;return{xAxisSpace:y,yAxisSpace:a,titleSpace:u,quadrantSpace:{quadrantLeft:m,quadrantTop:b,quadrantWidth:T,quadrantHalfWidth:c,quadrantHeight:q,quadrantHalfHeight:S}}}getAxisLabels(n,x,d,h){const{quadrantSpace:p,titleSpace:y}=h,{quadrantHalfHeight:_,quadrantHeight:a,quadrantLeft:k,quadrantHalfWidth:u,quadrantTop:m,quadrantWidth:b}=p,T=!!this.data.xAxisRightText,q=!!this.data.yAxisTopText,c=[];return this.data.xAxisLeftText&&x&&c.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:k+(T?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+m+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&x&&c.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:k+u+(T?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+m+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&d&&c.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+k+b+this.config.quadrantPadding,y:m+a-(q?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&d&&c.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+k+b+this.config.quadrantPadding,y:m+_-(q?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),c}getQuadrants(n){const{quadrantSpace:x}=n,{quadrantHalfHeight:d,quadrantLeft:h,quadrantHalfWidth:p,quadrantTop:y}=x,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y,width:p,height:d,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y,width:p,height:d,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant4Fill}];for(const a of _)a.text.x=a.x+a.width/2,this.data.points.length===0?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return _}getQuadrantPoints(n){const{quadrantSpace:x}=n,{quadrantHeight:d,quadrantLeft:h,quadrantTop:p,quadrantWidth:y}=x,_=ie().domain([0,1]).range([h,y+h]),a=ie().domain([0,1]).range([d+p,p]);return this.data.points.map(u=>{var T,q,c,S;const m=this.classes.get(u.className);return m&&(u={...m,...u}),{x:_(u.x),y:a(u.y),fill:(T=u.color)!=null?T:this.themeConfig.quadrantPointFill,radius:(q=u.radius)!=null?q:this.config.pointRadius,text:{text:u.text,fill:this.themeConfig.quadrantPointTextFill,x:_(u.x),y:a(u.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:(c=u.strokeColor)!=null?c:this.themeConfig.quadrantPointFill,strokeWidth:(S=u.strokeWidth)!=null?S:"0px"}})}getBorders(n){const x=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:d}=n,{quadrantHalfHeight:h,quadrantHeight:p,quadrantLeft:y,quadrantHalfWidth:_,quadrantTop:a,quadrantWidth:k}=d;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-x,y1:a,x2:y+k+x,y2:a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y+k,y1:a+x,x2:y+k,y2:a+p-x},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-x,y1:a+p,x2:y+k+x,y2:a+p},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y,y1:a+x,x2:y,y2:a+p-x},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+_,y1:a+x,x2:y+_,y2:a+p-x},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+x,y1:a+h,x2:y+k-x,y2:a+h}]}getTitle(n){if(n)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const n=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),x=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),d=this.config.showTitle&&!!this.data.titleText,h=this.data.points.length>0?"bottom":this.config.xAxisPosition,p=this.calculateSpace(h,n,x,d);return{points:this.getQuadrantPoints(p),quadrants:this.getQuadrants(p),axisLabels:this.getAxisLabels(h,n,x,p),borderLines:this.getBorders(p),title:this.getTitle(d)}}},o(lt,"QuadrantBuilder"),lt),ht,kt=(ht=class extends Error{constructor(n,x,d){super(`value for ${n} ${x} is invalid, please use a valid ${d}`),this.name="InvalidStyleError"}},o(ht,"InvalidStyleError"),ht);function Bt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}o(Bt,"validateHexCode");function ne(t){return!/^\d+$/.test(t)}o(ne,"validateNumber");function se(t){return!/^\d+px$/.test(t)}o(se,"validateSizeInPixels");var Ie=Rt();function Q(t){return Ee(t.trim(),Ie)}o(Q,"textSanitizer");var V=new Ve;function re(t){V.setData({quadrant1Text:Q(t.text)})}o(re,"setQuadrant1Text");function oe(t){V.setData({quadrant2Text:Q(t.text)})}o(oe,"setQuadrant2Text");function le(t){V.setData({quadrant3Text:Q(t.text)})}o(le,"setQuadrant3Text");function he(t){V.setData({quadrant4Text:Q(t.text)})}o(he,"setQuadrant4Text");function ce(t){V.setData({xAxisLeftText:Q(t.text)})}o(ce,"setXAxisLeftText");function de(t){V.setData({xAxisRightText:Q(t.text)})}o(de,"setXAxisRightText");function ue(t){V.setData({yAxisTopText:Q(t.text)})}o(ue,"setYAxisTopText");function xe(t){V.setData({yAxisBottomText:Q(t.text)})}o(xe,"setYAxisBottomText");function Pt(t){const n={};for(const x of t){const[d,h]=x.trim().split(/\s*:\s*/);if(d==="radius"){if(ne(h))throw new kt(d,h,"number");n.radius=parseInt(h)}else if(d==="color"){if(Bt(h))throw new kt(d,h,"hex code");n.color=h}else if(d==="stroke-color"){if(Bt(h))throw new kt(d,h,"hex code");n.strokeColor=h}else if(d==="stroke-width"){if(se(h))throw new kt(d,h,"number of pixels (eg. 10px)");n.strokeWidth=h}else throw new Error(`style named ${d} is not supported.`)}return n}o(Pt,"parseStyles");function fe(t,n,x,d,h){const p=Pt(h);V.addPoints([{x,y:d,text:Q(t.text),className:n,...p}])}o(fe,"addPoint");function ge(t,n){V.addClass(t,Pt(n))}o(ge,"addClass");function pe(t){V.setConfig({chartWidth:t})}o(pe,"setWidth");function ye(t){V.setConfig({chartHeight:t})}o(ye,"setHeight");function Te(){const t=Rt(),{themeVariables:n,quadrantChart:x}=t;return x&&V.setConfig(x),V.setThemeConfig({quadrant1Fill:n.quadrant1Fill,quadrant2Fill:n.quadrant2Fill,quadrant3Fill:n.quadrant3Fill,quadrant4Fill:n.quadrant4Fill,quadrant1TextFill:n.quadrant1TextFill,quadrant2TextFill:n.quadrant2TextFill,quadrant3TextFill:n.quadrant3TextFill,quadrant4TextFill:n.quadrant4TextFill,quadrantPointFill:n.quadrantPointFill,quadrantPointTextFill:n.quadrantPointTextFill,quadrantXAxisTextFill:n.quadrantXAxisTextFill,quadrantYAxisTextFill:n.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:n.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:n.quadrantInternalBorderStrokeFill,quadrantTitleFill:n.quadrantTitleFill}),V.setData({titleText:ae()}),V.build()}o(Te,"getQuadrantData");var we=o(function(){V.clear(),Le()},"clear"),Be={setWidth:pe,setHeight:ye,setQuadrant1Text:re,setQuadrant2Text:oe,setQuadrant3Text:le,setQuadrant4Text:he,setXAxisLeftText:ce,setXAxisRightText:de,setYAxisTopText:ue,setYAxisBottomText:xe,parseStyles:Pt,addPoint:fe,addClass:ge,getQuadrantData:Te,clear:we,setAccTitle:ve,getAccTitle:Pe,setDiagramTitle:Fe,getDiagramTitle:ae,getAccDescription:ke,setAccDescription:Ae},Re=o((t,n,x,d)=>{var ut,xt,ft,gt,pt,yt;function h(e){return e==="top"?"hanging":"middle"}o(h,"getDominantBaseLine");function p(e){return e==="left"?"start":"middle"}o(p,"getTextAnchor");function y(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}o(y,"getTransformation");const _=Rt();Ft.debug(`Rendering quadrant chart
7
+ `+t);const a=_.securityLevel;let k;a==="sandbox"&&(k=It("#i"+n));const m=(a==="sandbox"?It(k.nodes()[0].contentDocument.body):It("body")).select(`[id="${n}"]`),b=m.append("g").attr("class","main"),T=(xt=(ut=_.quadrantChart)==null?void 0:ut.chartWidth)!=null?xt:500,q=(gt=(ft=_.quadrantChart)==null?void 0:ft.chartHeight)!=null?gt:500;Ce(m,q,T,(yt=(pt=_.quadrantChart)==null?void 0:pt.useMaxWidth)!=null?yt:!0),m.attr("viewBox","0 0 "+T+" "+q),d.db.setHeight(q),d.db.setWidth(T);const c=d.db.getQuadrantData(),S=b.append("g").attr("class","quadrants"),M=b.append("g").attr("class","border"),j=b.append("g").attr("class","data-points"),qt=b.append("g").attr("class","labels"),mt=b.append("g").attr("class","title");c.title&&mt.append("text").attr("x",0).attr("y",0).attr("fill",c.title.fill).attr("font-size",c.title.fontSize).attr("dominant-baseline",h(c.title.horizontalPos)).attr("text-anchor",p(c.title.verticalPos)).attr("transform",y(c.title)).text(c.title.text),c.borderLines&&M.selectAll("line").data(c.borderLines).enter().append("line").attr("x1",e=>e.x1).attr("y1",e=>e.y1).attr("x2",e=>e.x2).attr("y2",e=>e.y2).style("stroke",e=>e.strokeFill).style("stroke-width",e=>e.strokeWidth);const ct=S.selectAll("g.quadrant").data(c.quadrants).enter().append("g").attr("class","quadrant");ct.append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill),ct.append("text").attr("x",0).attr("y",0).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>h(e.text.horizontalPos)).attr("text-anchor",e=>p(e.text.verticalPos)).attr("transform",e=>y(e.text)).text(e=>e.text.text),qt.selectAll("g.label").data(c.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(e=>e.text).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>h(e.horizontalPos)).attr("text-anchor",e=>p(e.verticalPos)).attr("transform",e=>y(e));const dt=j.selectAll("g.data-point").data(c.points).enter().append("g").attr("class","data-point");dt.append("circle").attr("cx",e=>e.x).attr("cy",e=>e.y).attr("r",e=>e.radius).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeColor).attr("stroke-width",e=>e.strokeWidth),dt.append("text").attr("x",0).attr("y",0).text(e=>e.text.text).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>h(e.text.horizontalPos)).attr("text-anchor",e=>p(e.text.verticalPos)).attr("transform",e=>y(e.text))},"draw"),Ne={draw:Re},Xe={parser:ze,db:Be,renderer:Ne,styles:o(()=>"","styles")};export{Xe as diagram};
@@ -0,0 +1,84 @@
1
+ import{g as ze}from"./chunk-55IACEB6-Duov_Htw.js";import{s as Xe}from"./chunk-2J33WTMH-CrTr9xzl.js";import{b as f,a3 as Be,b2 as Je,a2 as Ze,b1 as et,a1 as tt,b4 as st,a6 as it,a4 as Ne,aE as qe,t as rt,_ as nt,ab as at,aV as lt,bl as ct}from"./mermaid.core-DuagT3S2.js";import"./index-CbSmh0fl.js";var Ce=function(){var e=f(function($,i,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],c=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],m=[1,22],p=[2,7],g=[1,26],T=[1,27],E=[1,28],d=[1,29],b=[1,33],k=[1,34],q=[1,35],v=[1,36],x=[1,37],L=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],_=[1,39],S=[1,40],y=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ae=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],V=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:f(function(i,n,l,s,R,t,de){var a=t.length-1;switch(R){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:c},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:c},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:c},{1:[2,2]},{4:17,5:m,7:13,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:m,7:42,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:43,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:44,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:45,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:46,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:47,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:48,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:49,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:m,7:50,8:p,9:u,11:h,13:c,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:g,22:T,23:E,24:d,25:23,33:25,41:b,42:k,43:q,44:v,45:x,46:L,54:O,72:w,74:D,77:M,89:_,90:S},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),{30:60,33:62,75:P,89:_,90:S},{30:63,33:62,75:P,89:_,90:S},{30:64,33:62,75:P,89:_,90:S},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ae,66:ve,67:xe,68:Le,69:Oe,70:we,71:De},{62:77,65:Ae,66:ve,67:xe,68:Le,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:_,90:S},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:_,90:S},{5:[1,95]},{30:96,33:62,75:P,89:_,90:S},{5:[1,97]},{30:98,33:62,75:P,89:_,90:S},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(y,[2,59],{76:U}),e(y,[2,64],{76:Me}),{33:103,75:[1,102],89:_,90:S},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(V,[2,67]),e(V,[2,69]),e(V,[2,70]),e(V,[2,71]),e(V,[2,72]),e(V,[2,73]),e(V,[2,74]),e(V,[2,75]),e(V,[2,76]),e(V,[2,77]),e(V,[2,78]),e(y,[2,57],{76:Me}),e(y,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:_,90:S},{33:120,89:_,90:S},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(V,[2,68]),e(y,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(y,[2,28]),{5:[1,127]},e(y,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(y,[2,47]),{5:[1,131]},e(y,[2,48]),e(y,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:_,90:S},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(y,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(y,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(y,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(y,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),e(y,[2,26]),e(y,[2,44]),e(y,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:f(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:f(function(i){var n=this,l=[0],s=[],R=[null],t=[],de=this.table,a="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),I=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);I.setInput(i,G.yy),G.yy.lexer=I,G.yy.parser=this,typeof I.yylloc=="undefined"&&(I.yylloc={});var Ie=I.yylloc;t.push(Ie);var je=I.options&&I.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(C){l.length=l.length-2*C,R.length=R.length-C,t.length=t.length-C}f(Ge,"popStack");function Ue(){var C;return C=s.pop()||I.lex()||Pe,typeof C!="number"&&(C instanceof Array&&(s=C,C=s.pop()),C=n.symbols_[C]||C),C}f(Ue,"lex");for(var N,z,A,Te,J={},ye,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?A=this.defaultActions[z]:((N===null||typeof N=="undefined")&&(N=Ue()),A=de[z]&&de[z][N]),typeof A=="undefined"||!A.length||!A[0]){var ke="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");I.showPosition?ke="Parse error on line "+(ge+1)+`:
2
+ `+I.showPosition()+`
3
+ Expecting `+_e.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ke="Parse error on line "+(ge+1)+": Unexpected "+(N==Pe?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ke,{text:I.match,token:this.terminals_[N]||N,line:I.yylineno,loc:Ie,expected:_e})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+N);switch(A[0]){case 1:l.push(N),R.push(I.yytext),t.push(I.yylloc),l.push(A[1]),N=null,$e=I.yyleng,a=I.yytext,ge=I.yylineno,Ie=I.yylloc;break;case 2:if(F=this.productions_[A[1]][1],J.$=R[R.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(J,[a,$e,ge,G.yy,A[1],R,t].concat(We)),typeof Te!="undefined")return Te;F&&(l=l.slice(0,-1*F*2),R=R.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[A[1]][0]),R.push(J.$),t.push(J._$),Ye=de[l[l.length-2]][l[l.length-1]],l.push(Ye);break;case 3:return!0}}return!0},"parse")},He=function(){var $={EOF:1,parseError:f(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:f(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:f(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=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 R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(i){this.unput(this.match.slice(i))},"less"),pastInput:f(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
+ `+n+"^"},"showPosition"),test_match:f(function(i,n){var l,s,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),s=i[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in R)this[t]=R[t];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,l,s;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),t=0;t<R.length;t++)if(l=this._input.match(this.rules[R[t]]),l&&(!n||l[0].length>n[0].length)){if(n=l,s=t,this.options.backtrack_lexer){if(i=this.test_match(l,R[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,R[s]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var n=this.next();return n||this.lex()},"lex"),begin:f(function(n){this.conditionStack.push(n)},"begin"),popState:f(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:f(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:f(function(n){this.begin(n)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(n,l,s,R){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return l.yytext=l.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return $}();Se.lexer=He;function Re(){this.yy={}}return f(Re,"Parser"),Re.prototype=Se,Se.Parser=Re,new Re}();Ce.parser=Ce;var ot=Ce,Z,ht=(Z=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Je,this.getAccTitle=Ze,this.setAccDescription=et,this.getAccDescription=tt,this.setDiagramTitle=st,this.getDiagramTitle=it,this.getConfig=f(()=>Ne().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(r){this.direction=r}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(r,u){return this.requirements.has(r)||this.requirements.set(r,{name:r,type:u,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(r)}getRequirements(){return this.requirements}setNewReqId(r){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=r)}setNewReqText(r){this.latestRequirement!==void 0&&(this.latestRequirement.text=r)}setNewReqRisk(r){this.latestRequirement!==void 0&&(this.latestRequirement.risk=r)}setNewReqVerifyMethod(r){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=r)}addElement(r){return this.elements.has(r)||(this.elements.set(r,{name:r,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),qe.info("Added new element: ",r)),this.resetLatestElement(),this.elements.get(r)}getElements(){return this.elements}setNewElementType(r){this.latestElement!==void 0&&(this.latestElement.type=r)}setNewElementDocRef(r){this.latestElement!==void 0&&(this.latestElement.docRef=r)}addRelationship(r,u,h){this.relations.push({type:r,src:u,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,rt()}setCssStyle(r,u){var h;for(const c of r){const o=(h=this.requirements.get(c))!=null?h:this.elements.get(c);if(!u||!o)return;for(const m of u)m.includes(",")?o.cssStyles.push(...m.split(",")):o.cssStyles.push(m)}}setClass(r,u){var h,c;for(const o of r){const m=(h=this.requirements.get(o))!=null?h:this.elements.get(o);if(m)for(const p of u){m.classes.push(p);const g=(c=this.classes.get(p))==null?void 0:c.styles;g&&m.cssStyles.push(...g)}}}defineClass(r,u){for(const h of r){let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),u&&u.forEach(function(o){if(/color/.exec(o)){const m=o.replace("fill","bgFill");c.textStyles.push(m)}c.styles.push(o)}),this.requirements.forEach(o=>{o.classes.includes(h)&&o.cssStyles.push(...u.flatMap(m=>m.split(",")))}),this.elements.forEach(o=>{o.classes.includes(h)&&o.cssStyles.push(...u.flatMap(m=>m.split(",")))})}}getClasses(){return this.classes}getData(){var c,o,m,p,g,T;const r=Ne(),u=[],h=[];for(const E of this.requirements.values()){const d=E;d.id=E.name,d.cssStyles=E.cssStyles,d.cssClasses=E.classes.join(" "),d.shape="requirementBox",d.look=r.look,d.colorIndex=u.length,u.push(d)}for(const E of this.elements.values()){const d=E;d.shape="requirementBox",d.look=r.look,d.id=E.name,d.cssStyles=E.cssStyles,d.cssClasses=E.classes.join(" "),d.colorIndex=u.length,u.push(d)}for(const E of this.relations){let d=0;const b=E.type===this.Relationships.CONTAINS,k={id:`${E.src}-${E.dst}-${d}`,start:(m=(c=this.requirements.get(E.src))==null?void 0:c.name)!=null?m:(o=this.elements.get(E.src))==null?void 0:o.name,end:(T=(p=this.requirements.get(E.dst))==null?void 0:p.name)!=null?T:(g=this.elements.get(E.dst))==null?void 0:g.name,label:`&lt;&lt;${E.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",b?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:b?"normal":"dashed",arrowTypeStart:b?"requirement_contains":"",arrowTypeEnd:b?"":"requirement_arrow",look:r.look,labelType:"markdown"};h.push(k),d++}return{nodes:u,edges:h,other:{},config:r,direction:this.getDirection()}}},f(Z,"RequirementDB"),Z),ut=f(e=>{const r=Be(),{themeVariables:u,look:h}=r,{bkgColorArray:c,borderColorArray:o}=u;if(!(o!=null&&o.length))return"";let m="";for(let p=0;p<e.THEME_COLOR_LIMIT;p++)m+=`
7
+
8
+ [data-look="${h}"][data-color-id="color-${p}"].node path {
9
+ stroke: ${o[p]};
10
+ fill: ${c!=null&&c.length?c[p]:""};
11
+ }
12
+
13
+ [data-look="${h}"][data-color-id="color-${p}"].node rect {
14
+ stroke: ${o[p]};
15
+ fill: ${c!=null&&c.length?c[p]:""};
16
+ }
17
+ `;return m},"genColor"),ft=f(e=>{const r=Be(),{look:u,themeVariables:h}=r,{requirementEdgeLabelBackground:c}=h;return`
18
+ ${ut(e)}
19
+ marker {
20
+ fill: ${e.relationColor};
21
+ stroke: ${e.relationColor};
22
+ }
23
+
24
+ marker.cross {
25
+ stroke: ${e.lineColor};
26
+ }
27
+
28
+ svg {
29
+ font-family: ${e.fontFamily};
30
+ font-size: ${e.fontSize};
31
+ }
32
+
33
+ .reqBox {
34
+ fill: ${e.requirementBackground};
35
+ fill-opacity: 1.0;
36
+ stroke: ${e.requirementBorderColor};
37
+ stroke-width: ${e.requirementBorderSize};
38
+ }
39
+
40
+ .reqTitle, .reqLabel{
41
+ fill: ${e.requirementTextColor};
42
+ }
43
+ .reqLabelBox {
44
+ fill: ${e.relationLabelBackground};
45
+ fill-opacity: 1.0;
46
+ }
47
+
48
+ .req-title-line {
49
+ stroke: ${e.requirementBorderColor};
50
+ stroke-width: ${e.requirementBorderSize};
51
+ }
52
+ .relationshipLine {
53
+ stroke: ${e.relationColor};
54
+ stroke-width: ${u==="neo"?e.strokeWidth:"1px"};
55
+ }
56
+ .relationshipLabel {
57
+ fill: ${e.relationLabelColor};
58
+ }
59
+ .edgeLabel {
60
+ background-color: ${e.edgeLabelBackground};
61
+ }
62
+ .edgeLabel .label rect {
63
+ fill: ${e.edgeLabelBackground};
64
+ }
65
+ .edgeLabel .label text {
66
+ fill: ${e.relationLabelColor};
67
+ }
68
+ .divider {
69
+ stroke: ${e.nodeBorder};
70
+ stroke-width: 1;
71
+ }
72
+ .label {
73
+ font-family: ${e.fontFamily};
74
+ color: ${e.nodeTextColor||e.textColor};
75
+ }
76
+ .label text,span {
77
+ fill: ${e.nodeTextColor||e.textColor};
78
+ color: ${e.nodeTextColor||e.textColor};
79
+ }
80
+ .labelBkg {
81
+ background-color: ${c!=null?c:e.edgeLabelBackground};
82
+ }
83
+
84
+ `},"getStyles"),mt=ft,Qe={};nt(Qe,{draw:()=>dt});var dt=f(async function(e,r,u,h){var d,b,k,q;qe.info("REF0:"),qe.info("Drawing requirement diagram (unified)",r);const{securityLevel:c,state:o,layout:m,look:p}=Ne(),g=h.db.getData(),T=ze(r,c);g.type=h.type,g.layoutAlgorithm=at(m),g.nodeSpacing=(d=o==null?void 0:o.nodeSpacing)!=null?d:50,g.rankSpacing=(b=o==null?void 0:o.rankSpacing)!=null?b:50,g.markers=p==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],g.diagramId=r,await lt(g,T);const E=8;ct.insertTitle(T,"requirementDiagramTitleText",(k=o==null?void 0:o.titleTopMargin)!=null?k:25,h.db.getDiagramTitle()),Xe(T,E,"requirementDiagram",(q=o==null?void 0:o.useMaxWidth)!=null?q:!0)},"draw"),yt={parser:ot,get db(){return new ht},renderer:Qe,styles:mt};export{yt as diagram};
@@ -0,0 +1,40 @@
1
+ import{b4 as Et,a6 as At,b1 as Tt,a1 as Mt,b2 as Ct,a2 as Pt,b as g,a4 as ut,S as Nt,a$ as K,b7 as It,t as Ot,z as $t}from"./mermaid.core-DuagT3S2.js";import{o as zt}from"./ordinal-Cboi1Yqb.js";import"./index-CbSmh0fl.js";import"./init-Gi6I4Gst.js";function Dt(t){for(var e=t.length/6|0,i=new Array(e),o=0;o<e;)i[o]="#"+t.slice(o*6,++o*6);return i}const jt=Dt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function pt(t,e){let i;if(e===void 0)for(const o of t)o!=null&&(i<o||i===void 0&&o>=o)&&(i=o);else{let o=-1;for(let u of t)(u=e(u,++o,t))!=null&&(i<u||i===void 0&&u>=u)&&(i=u)}return i}function St(t,e){let i;if(e===void 0)for(const o of t)o!=null&&(i>o||i===void 0&&o>=o)&&(i=o);else{let o=-1;for(let u of t)(u=e(u,++o,t))!=null&&(i>u||i===void 0&&u>=u)&&(i=u)}return i}function rt(t,e){let i=0;if(e===void 0)for(let o of t)(o=+o)&&(i+=o);else{let o=-1;for(let u of t)(u=+e(u,++o,t))&&(i+=u)}return i}function Bt(t){return t.target.depth}function Ft(t){return t.depth}function Rt(t,e){return e-1-t.height}function wt(t,e){return t.sourceLinks.length?t.depth:e-1}function Vt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?St(t.sourceLinks,Bt)-1:0}function Z(t){return function(){return t}}function kt(t,e){return J(t.source,e.source)||t.index-e.index}function mt(t,e){return J(t.target,e.target)||t.index-e.index}function J(t,e){return t.y0-e.y0}function st(t){return t.value}function Wt(t){return t.index}function Gt(t){return t.nodes}function Ut(t){return t.links}function xt(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function _t({nodes:t}){for(const e of t){let i=e.y0,o=i;for(const u of e.sourceLinks)u.y0=i+u.width/2,i+=u.width;for(const u of e.targetLinks)u.y1=o+u.width/2,o+=u.width}}function Yt(){let t=0,e=0,i=1,o=1,u=24,f=8,d,x=Wt,r=wt,a,h,_=Gt,v=Ut,p=6;function b(){const n={nodes:_.apply(null,arguments),links:v.apply(null,arguments)};return C(n),M(n),P(n),$(n),w(n),_t(n),n}b.update=function(n){return _t(n),n},b.nodeId=function(n){return arguments.length?(x=typeof n=="function"?n:Z(n),b):x},b.nodeAlign=function(n){return arguments.length?(r=typeof n=="function"?n:Z(n),b):r},b.nodeSort=function(n){return arguments.length?(a=n,b):a},b.nodeWidth=function(n){return arguments.length?(u=+n,b):u},b.nodePadding=function(n){return arguments.length?(f=d=+n,b):f},b.nodes=function(n){return arguments.length?(_=typeof n=="function"?n:Z(n),b):_},b.links=function(n){return arguments.length?(v=typeof n=="function"?n:Z(n),b):v},b.linkSort=function(n){return arguments.length?(h=n,b):h},b.size=function(n){return arguments.length?(t=e=0,i=+n[0],o=+n[1],b):[i-t,o-e]},b.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],o=+n[1][1],b):[[t,e],[i,o]]},b.iterations=function(n){return arguments.length?(p=+n,b):p};function C({nodes:n,links:y}){for(const[c,s]of n.entries())s.index=c,s.sourceLinks=[],s.targetLinks=[];const l=new Map(n.map((c,s)=>[x(c,s,n),c]));for(const[c,s]of y.entries()){s.index=c;let{source:m,target:S}=s;typeof m!="object"&&(m=s.source=xt(l,m)),typeof S!="object"&&(S=s.target=xt(l,S)),m.sourceLinks.push(s),S.targetLinks.push(s)}if(h!=null)for(const{sourceLinks:c,targetLinks:s}of n)c.sort(h),s.sort(h)}function M({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(rt(y.sourceLinks,st),rt(y.targetLinks,st)):y.fixedValue}function P({nodes:n}){const y=n.length;let l=new Set(n),c=new Set,s=0;for(;l.size;){for(const m of l){m.depth=s;for(const{target:S}of m.sourceLinks)c.add(S)}if(++s>y)throw new Error("circular link");l=c,c=new Set}}function $({nodes:n}){const y=n.length;let l=new Set(n),c=new Set,s=0;for(;l.size;){for(const m of l){m.height=s;for(const{source:S}of m.targetLinks)c.add(S)}if(++s>y)throw new Error("circular link");l=c,c=new Set}}function N({nodes:n}){const y=pt(n,s=>s.depth)+1,l=(i-t-u)/(y-1),c=new Array(y);for(const s of n){const m=Math.max(0,Math.min(y-1,Math.floor(r.call(null,s,y))));s.layer=m,s.x0=t+m*l,s.x1=s.x0+u,c[m]?c[m].push(s):c[m]=[s]}if(a)for(const s of c)s.sort(a);return c}function B(n){const y=St(n,l=>(o-e-(l.length-1)*d)/rt(l,st));for(const l of n){let c=e;for(const s of l){s.y0=c,s.y1=c+s.value*y,c=s.y1+d;for(const m of s.sourceLinks)m.width=m.value*y}c=(o-c+d)/(l.length+1);for(let s=0;s<l.length;++s){const m=l[s];m.y0+=c*(s+1),m.y1+=c*(s+1)}A(l)}}function w(n){const y=N(n);d=Math.min(f,(o-e)/(pt(y,l=>l.length)-1)),B(y);for(let l=0;l<p;++l){const c=Math.pow(.99,l),s=Math.max(1-c,(l+1)/p);Y(y,c,s),I(y,c,s)}}function I(n,y,l){for(let c=1,s=n.length;c<s;++c){const m=n[c];for(const S of m){let E=0,D=0;for(const{source:V,value:X}of S.targetLinks){let W=X*(S.layer-V.layer);E+=O(V,S)*W,D+=W}if(!(D>0))continue;let R=(E/D-S.y0)*y;S.y0+=R,S.y1+=R,G(S)}a===void 0&&m.sort(J),F(m,l)}}function Y(n,y,l){for(let c=n.length,s=c-2;s>=0;--s){const m=n[s];for(const S of m){let E=0,D=0;for(const{target:V,value:X}of S.sourceLinks){let W=X*(V.layer-S.layer);E+=T(S,V)*W,D+=W}if(!(D>0))continue;let R=(E/D-S.y0)*y;S.y0+=R,S.y1+=R,G(S)}a===void 0&&m.sort(J),F(m,l)}}function F(n,y){const l=n.length>>1,c=n[l];z(n,c.y0-d,l-1,y),H(n,c.y1+d,l+1,y),z(n,o,n.length-1,y),H(n,e,0,y)}function H(n,y,l,c){for(;l<n.length;++l){const s=n[l],m=(y-s.y0)*c;m>1e-6&&(s.y0+=m,s.y1+=m),y=s.y1+d}}function z(n,y,l,c){for(;l>=0;--l){const s=n[l],m=(s.y1-y)*c;m>1e-6&&(s.y0-=m,s.y1-=m),y=s.y0-d}}function G({sourceLinks:n,targetLinks:y}){if(h===void 0){for(const{source:{sourceLinks:l}}of y)l.sort(mt);for(const{target:{targetLinks:l}}of n)l.sort(kt)}}function A(n){if(h===void 0)for(const{sourceLinks:y,targetLinks:l}of n)y.sort(mt),l.sort(kt)}function O(n,y){let l=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:c,width:s}of n.sourceLinks){if(c===y)break;l+=s+d}for(const{source:c,width:s}of y.targetLinks){if(c===n)break;l-=s}return l}function T(n,y){let l=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:c,width:s}of y.targetLinks){if(c===n)break;l+=s+d}for(const{target:c,width:s}of n.sourceLinks){if(c===y)break;l-=s}return l}return b}var ot=Math.PI,at=2*ot,U=1e-6,Ht=at-U;function lt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lt(){return new lt}lt.prototype=Lt.prototype={constructor:lt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,o){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(t,e,i,o,u,f){this._+="C"+ +t+","+ +e+","+ +i+","+ +o+","+(this._x1=+u)+","+(this._y1=+f)},arcTo:function(t,e,i,o,u){t=+t,e=+e,i=+i,o=+o,u=+u;var f=this._x1,d=this._y1,x=i-t,r=o-e,a=f-t,h=d-e,_=a*a+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(_>U)if(!(Math.abs(h*x-r*a)>U)||!u)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var v=i-f,p=o-d,b=x*x+r*r,C=v*v+p*p,M=Math.sqrt(b),P=Math.sqrt(_),$=u*Math.tan((ot-Math.acos((b+_-C)/(2*M*P)))/2),N=$/P,B=$/M;Math.abs(N-1)>U&&(this._+="L"+(t+N*a)+","+(e+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*v>a*p)+","+(this._x1=t+B*x)+","+(this._y1=e+B*r)}},arc:function(t,e,i,o,u,f){t=+t,e=+e,i=+i,f=!!f;var d=i*Math.cos(o),x=i*Math.sin(o),r=t+d,a=e+x,h=1^f,_=f?o-u:u-o;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+r+","+a:(Math.abs(this._x1-r)>U||Math.abs(this._y1-a)>U)&&(this._+="L"+r+","+a),i&&(_<0&&(_=_%at+at),_>Ht?this._+="A"+i+","+i+",0,1,"+h+","+(t-d)+","+(e-x)+"A"+i+","+i+",0,1,"+h+","+(this._x1=r)+","+(this._y1=a):_>U&&(this._+="A"+i+","+i+",0,"+ +(_>=ot)+","+h+","+(this._x1=t+i*Math.cos(u))+","+(this._y1=e+i*Math.sin(u))))},rect:function(t,e,i,o){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};function vt(t){return function(){return t}}function Xt(t){return t[0]}function qt(t){return t[1]}var Qt=Array.prototype.slice;function Kt(t){return t.source}function Zt(t){return t.target}function Jt(t){var e=Kt,i=Zt,o=Xt,u=qt,f=null;function d(){var x,r=Qt.call(arguments),a=e.apply(this,r),h=i.apply(this,r);if(f||(f=x=Lt()),t(f,+o.apply(this,(r[0]=a,r)),+u.apply(this,r),+o.apply(this,(r[0]=h,r)),+u.apply(this,r)),x)return f=null,x+""||null}return d.source=function(x){return arguments.length?(e=x,d):e},d.target=function(x){return arguments.length?(i=x,d):i},d.x=function(x){return arguments.length?(o=typeof x=="function"?x:vt(+x),d):o},d.y=function(x){return arguments.length?(u=typeof x=="function"?x:vt(+x),d):u},d.context=function(x){return arguments.length?(f=x==null?null:x,d):f},d}function te(t,e,i,o,u){t.moveTo(e,i),t.bezierCurveTo(e=(e+o)/2,i,e,u,o,u)}function ee(){return Jt(te)}function ne(t){return[t.source.x1,t.y0]}function ie(t){return[t.target.x0,t.y1]}function re(){return ee().source(ne).target(ie)}var ct=function(){var t=g(function(x,r,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=r);return a},"o"),e=[1,9],i=[1,10],o=[1,5,10,12],u={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(function(r,a,h,_,v,p,b){var C=p.length-1;switch(v){case 7:const M=_.findOrCreateNode(p[C-4].trim().replaceAll('""','"')),P=_.findOrCreateNode(p[C-2].trim().replaceAll('""','"')),$=parseFloat(p[C].trim());_.addLink(M,P,$);break;case 8:case 9:case 11:this.$=p[C];break;case 10:this.$=p[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(o,[2,8]),t(o,[2,9]),{19:[1,16]},t(o,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(o,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},"parseError"),parse:g(function(r){var a=this,h=[0],_=[],v=[null],p=[],b=this.table,C="",M=0,P=0,$=2,N=1,B=p.slice.call(arguments,1),w=Object.create(this.lexer),I={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(I.yy[Y]=this.yy[Y]);w.setInput(r,I.yy),I.yy.lexer=w,I.yy.parser=this,typeof w.yylloc=="undefined"&&(w.yylloc={});var F=w.yylloc;p.push(F);var H=w.options&&w.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(E){h.length=h.length-2*E,v.length=v.length-E,p.length=p.length-E}g(z,"popStack");function G(){var E;return E=_.pop()||w.lex()||N,typeof E!="number"&&(E instanceof Array&&(_=E,E=_.pop()),E=a.symbols_[E]||E),E}g(G,"lex");for(var A,O,T,n,y={},l,c,s,m;;){if(O=h[h.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((A===null||typeof A=="undefined")&&(A=G()),T=b[O]&&b[O][A]),typeof T=="undefined"||!T.length||!T[0]){var S="";m=[];for(l in b[O])this.terminals_[l]&&l>$&&m.push("'"+this.terminals_[l]+"'");w.showPosition?S="Parse error on line "+(M+1)+`:
2
+ `+w.showPosition()+`
3
+ Expecting `+m.join(", ")+", got '"+(this.terminals_[A]||A)+"'":S="Parse error on line "+(M+1)+": Unexpected "+(A==N?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(S,{text:w.match,token:this.terminals_[A]||A,line:w.yylineno,loc:F,expected:m})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+A);switch(T[0]){case 1:h.push(A),v.push(w.yytext),p.push(w.yylloc),h.push(T[1]),A=null,P=w.yyleng,C=w.yytext,M=w.yylineno,F=w.yylloc;break;case 2:if(c=this.productions_[T[1]][1],y.$=v[v.length-c],y._$={first_line:p[p.length-(c||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(c||1)].first_column,last_column:p[p.length-1].last_column},H&&(y._$.range=[p[p.length-(c||1)].range[0],p[p.length-1].range[1]]),n=this.performAction.apply(y,[C,P,M,I.yy,T[1],v,p].concat(B)),typeof n!="undefined")return n;c&&(h=h.slice(0,-1*c*2),v=v.slice(0,-1*c),p=p.slice(0,-1*c)),h.push(this.productions_[T[1]][0]),v.push(y.$),p.push(y._$),s=b[h[h.length-2]][h[h.length-1]],h.push(s);break;case 3:return!0}}return!0},"parse")},f=function(){var x={EOF:1,parseError:g(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:g(function(r,a){return this.yy=a||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:g(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(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:g(function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var _=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),h.length-1&&(this.yylineno-=h.length-1);var v=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:h?(h.length===_.length?this.yylloc.first_column:0)+_[_.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(r){this.unput(this.match.slice(r))},"less"),pastInput:g(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:g(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:g(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
+ `+a+"^"},"showPosition"),test_match:g(function(r,a){var h,_,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),_=r[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var p in v)this[p]=v[p];return!1}return!1},"test_match"),next:g(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,h,_;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),p=0;p<v.length;p++)if(h=this._input.match(this.rules[v[p]]),h&&(!a||h[0].length>a[0].length)){if(a=h,_=p,this.options.backtrack_lexer){if(r=this.test_match(h,v[p]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,v[_]),r!==!1?r:!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:g(function(){var a=this.next();return a||this.lex()},"lex"),begin:g(function(a){this.conditionStack.push(a)},"begin"),popState:g(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:g(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:g(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:g(function(a){this.begin(a)},"pushState"),stateStackSize:g(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:g(function(a,h,_,v){switch(_){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return x}();u.lexer=f;function d(){this.yy={}}return g(d,"Parser"),d.prototype=u,u.Parser=d,new d}();ct.parser=ct;var tt=ct,nt=[],it=[],et=new Map,se=g(()=>{nt=[],it=[],et=new Map,Ot()},"clear"),q,oe=(q=class{constructor(e,i,o=0){this.source=e,this.target=i,this.value=o}},g(q,"SankeyLink"),q),ae=g((t,e,i)=>{nt.push(new oe(t,e,i))},"addLink"),Q,le=(Q=class{constructor(e){this.ID=e}},g(Q,"SankeyNode"),Q),ce=g(t=>{t=$t.sanitizeText(t,ut());let e=et.get(t);return e===void 0&&(e=new le(t),et.set(t,e),it.push(e)),e},"findOrCreateNode"),ue=g(()=>it,"getNodes"),he=g(()=>nt,"getLinks"),fe=g(()=>({nodes:it.map(t=>({id:t.ID})),links:nt.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),ye={nodesMap:et,getConfig:g(()=>ut().sankey,"getConfig"),getNodes:ue,getLinks:he,getGraph:fe,addLink:ae,findOrCreateNode:ce,getAccTitle:Pt,setAccTitle:Ct,getAccDescription:Mt,setAccDescription:Tt,getDiagramTitle:At,setDiagramTitle:Et,clear:se},j,bt=(j=class{static next(e){return new j(e+ ++j.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},g(j,"Uid"),j.count=0,j),de={left:Ft,right:Rt,center:Vt,justify:wt},ge=g(t=>{var o,u;let e=0,i=0;for(const f of t){const d=(o=f.value)!=null?o:0;d>e&&(e=d,i=(u=f.layer)!=null?u:0)}return i},"findCentralNodeLayer"),pe=g(function(t,e,i,o){var c,s,m,S,E,D,R,V,X,W,ht,ft,yt,dt,gt;const{securityLevel:u,sankey:f}=ut(),d=Nt.sankey;let x;u==="sandbox"&&(x=K("#i"+e));const r=u==="sandbox"?K(x.nodes()[0].contentDocument.body):K("body"),a=u==="sandbox"?r.select(`[id="${e}"]`):K(`[id="${e}"]`),h=(c=f==null?void 0:f.width)!=null?c:d.width,_=(s=f==null?void 0:f.height)!=null?s:d.width,v=(m=f==null?void 0:f.useMaxWidth)!=null?m:d.useMaxWidth,p=(S=f==null?void 0:f.nodeAlignment)!=null?S:d.nodeAlignment,b=(E=f==null?void 0:f.prefix)!=null?E:d.prefix,C=(D=f==null?void 0:f.suffix)!=null?D:d.suffix,M=(R=f==null?void 0:f.showValues)!=null?R:d.showValues,P=(X=(V=f==null?void 0:f.nodeWidth)!=null?V:d.nodeWidth)!=null?X:10,$=(ht=(W=f==null?void 0:f.nodePadding)!=null?W:d.nodePadding)!=null?ht:12,N=(yt=(ft=f==null?void 0:f.labelStyle)!=null?ft:d.labelStyle)!=null?yt:"legacy",B=(dt=f==null?void 0:f.nodeColors)!=null?dt:{},w=o.db.getGraph(),I=de[p];Yt().nodeId(k=>k.id).nodeWidth(P).nodePadding($+(M?15:0)).nodeAlign(I).extent([[0,0],[h,_]])(w);const F=ge(w.nodes),H=zt(jt),z=g(k=>{var L;return(L=B[k])!=null?L:H(k)},"getNodeColor");a.append("g").attr("class","nodes").selectAll(".node").data(w.nodes).join("g").attr("class","node").attr("id",k=>(k.uid=bt.next("node-")).id).attr("transform",function(k){return"translate("+k.x0+","+k.y0+")"}).attr("x",k=>k.x0).attr("y",k=>k.y0).append("rect").attr("height",k=>k.y1-k.y0).attr("width",k=>k.x1-k.x0).attr("fill",k=>z(k.id));const G=g(({id:k,value:L})=>M?`${k}
7
+ ${b}${Math.round(L*100)/100}${C}`:k,"getText"),A=g(k=>{var L;return N==="outlined"?((L=k.layer)!=null?L:0)<F?{x:k.x0-6,anchor:"end"}:{x:k.x1+6,anchor:"start"}:k.x0<h/2?{x:k.x1+6,anchor:"start"}:{x:k.x0-6,anchor:"end"}},"getLabelPosition"),O=a.append("g").attr("class","node-labels").attr("font-size",14),T=g(k=>O.selectAll(k?`.${k}`:"text").data(w.nodes).join("text").attr("class",k!=null?k:null).attr("x",L=>A(L).x).attr("y",L=>(L.y1+L.y0)/2).attr("dy",`${M?"0":"0.35"}em`).attr("text-anchor",L=>A(L).anchor).text(G),"appendLabel");N==="outlined"?(T("sankey-label-bg"),T("sankey-label-fg")):T();const n=a.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(w.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),y=(gt=f==null?void 0:f.linkColor)!=null?gt:"gradient";if(y==="gradient"){const k=n.append("linearGradient").attr("id",L=>(L.uid=bt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",L=>L.source.x1).attr("x2",L=>L.target.x0);k.append("stop").attr("offset","0%").attr("stop-color",L=>z(L.source.id)),k.append("stop").attr("offset","100%").attr("stop-color",L=>z(L.target.id))}let l;switch(y){case"gradient":l=g(k=>k.uid,"coloring");break;case"source":l=g(k=>z(k.source.id),"coloring");break;case"target":l=g(k=>z(k.target.id),"coloring");break;default:l=y}n.append("path").attr("d",re()).attr("stroke",l).attr("stroke-width",k=>Math.max(1,k.width)),It(void 0,a,0,v)},"draw"),ke={draw:pe},me=g(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
8
+ `).trim(),"prepareTextForParsing"),xe=g(t=>`.label {
9
+ font-family: ${t.fontFamily};
10
+ }
11
+
12
+ .node-labels {
13
+ font-family: ${t.fontFamily};
14
+ }
15
+
16
+ /* Outlined label style - background stroke for better readability */
17
+ .sankey-label-bg {
18
+ stroke: ${t.mainBkg||t.background||"#fff"};
19
+ stroke-width: 4px;
20
+ stroke-linejoin: round;
21
+ paint-order: stroke;
22
+ }
23
+
24
+ /* Foreground label text */
25
+ .sankey-label-fg {
26
+ fill: ${t.textColor};
27
+ }
28
+
29
+ /* Node styling */
30
+ .node rect {
31
+ shape-rendering: crispEdges;
32
+ }
33
+
34
+ /* Link styling */
35
+ .link {
36
+ fill: none;
37
+ stroke-opacity: 0.5;
38
+ mix-blend-mode: multiply;
39
+ }
40
+ `,"getStyles"),_e=xe,ve=tt.parse.bind(tt);tt.parse=t=>ve(me(t));var Ae={styles:_e,parser:tt,db:ye,renderer:ke};export{Ae as diagram};